[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * $Id: exportimport.php,v 1.4 2005/10/30 13:15:58 eldy Exp $ 19 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/contact/exportimport.php,v $ 20 */ 21 22 /** 23 \file htdocs/contact/exportimport.php 24 \ingroup societe 25 \brief Onglet exports-imports d'un contact 26 \version $Revision: 1.4 $ 27 */ 28 29 require ("./pre.inc.php"); 30 require_once (DOL_DOCUMENT_ROOT."/contact.class.php"); 31 32 $langs->load("companies"); 33 34 35 /* 36 * 37 * 38 */ 39 40 llxHeader(); 41 42 $form = new Form($db); 43 44 $contact = new Contact($db); 45 $contact->fetch($_GET["id"], $user); 46 47 48 $h=0; 49 50 $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"]; 51 $head[$h][1] = $langs->trans("General"); 52 $h++; 53 54 $head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"]; 55 $head[$h][1] = $langs->trans("PersonalInformations"); 56 $h++; 57 58 $head[$h][0] = DOL_URL_ROOT.'/contact/exportimport.php?id='.$_GET["id"]; 59 $head[$h][1] = $langs->trans("ExportImport"); 60 $hselected=$h; 61 $h++; 62 63 $head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"]; 64 $head[$h][1] = $langs->trans("Info"); 65 $h++; 66 67 dolibarr_fiche_head($head, $hselected, $langs->trans("Contact").": ".$contact->firstname.' '.$contact->name); 68 69 70 /* 71 * Fiche en mode visu 72 */ 73 print '<table class="border" width="100%">'; 74 75 if ($contact->socid > 0) 76 { 77 $objsoc = new Societe($db); 78 $objsoc->fetch($contact->socid); 79 80 print '<tr><td width="15%">'.$langs->trans("Company").'</td><td colspan="3">'.$objsoc->nom_url.'</td></tr>'; 81 } 82 else 83 { 84 print '<tr><td width="15%">'.$langs->trans("Company").'</td><td colspan="3">'; 85 print $langs->trans("ContactNotLinkedToCompany"); 86 print '</td></tr>'; 87 } 88 89 print '<tr><td>'.$langs->trans("UserTitle").'</td><td colspan="3">'; 90 print $form->civilite_name($contact->civilite_id); 91 print '</td></tr>'; 92 93 print '<tr><td width="15%">'.$langs->trans("Lastname").'</td><td>'.$contact->name.'</td>'; 94 print '<td width="20%">'.$langs->trans("Firstname").'</td><td width="25%">'.$contact->firstname.'</td></tr>'; 95 96 print '</table>'; 97 98 print '</div>'; 99 100 print '<br>'; 101 102 print $langs->trans("ExportCardToFormat").': '; 103 print '<a href="'.DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"].'">'; 104 print img_file($langs->trans("VCard")).' '; 105 print $langs->trans("VCard"); 106 print '</a>'; 107 108 109 110 111 $db->close(); 112 113 llxFooter('$Date: 2005/10/30 13:15:58 $ - $Revision: 1.4 $'); 114 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |