';
+
+$contact = new Contact($db);
+$contact->fetch($_GET["id"], $user);
+
+
+$h=0;
+$head[$h][0] = DOL_URL_ROOT.'fiche.php?id='.$_GET["id"];
+$head[$h][1] = "Général";
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'perso.php?id='.$_GET["id"];
+$head[$h][1] = 'Informations personnelles';
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'vcard.php?id='.$_GET["id"];
+$head[$h][1] = $langs->trans("VCard");
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'info.php?id='.$_GET["id"];
+$head[$h][1] = $langs->trans("Info");
+$hselected=$h;
+$h++;
+
+dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
/*
* Visualisation de la fiche
*
*/
-$contact = new Contact($db);
-$contact->fetch($_GET["id"], $user);
+print '
| ';
$contact->info($_GET["id"]);
+print ' |
';
-print_fiche_titre ($langs->trans("Contact")." : ". $contact->firstname.' '.$contact->name);
-
if ($contact->socid > 0)
{
$objsoc = new Societe($db);
diff --git a/htdocs/contact/perso.php b/htdocs/contact/perso.php
index a892f3901a1..f71d0581e9d 100644
--- a/htdocs/contact/perso.php
+++ b/htdocs/contact/perso.php
@@ -20,10 +20,21 @@
* $Source$
*
*/
+
+/*!
+ \file htdocs/contact/perso.php
+ \ingroup companies
+ \brief Onglet informations personnelles d'un contact
+ \version $Revision$
+*/
+
require("./pre.inc.php");
require("../contact.class.php");
require (DOL_DOCUMENT_ROOT."/lib/vcard/vcard.class.php");
+$langs->load("companies");
+
+
if ($_POST["action"] == 'update')
{
$contact = new Contact($db);
@@ -31,7 +42,7 @@ if ($_POST["action"] == 'update')
if ($_POST["birthdayyear"]) {
if ($_POST["birthdayyear"]<=1970 && $_SERVER["WINDIR"]) {
- # windows mktime does not support negative date timestamp so birthday is not support for old persons
+ # windows mktime does not support negative date timestamp so birthday is not supported for old persons
$contact->birthday = $_POST["birthdayyear"].'-'.$_POST["birthdaymonth"].'-'.$_POST["birthdayday"];
//array_push($error,"Windows ne sachant pas gérer des dates avant 1970, les dates de naissance avant cette date ne seront pas sauvegardées");
} else {
@@ -50,22 +61,34 @@ if ($_POST["action"] == 'update')
*/
llxHeader();
-print '
';
-print '
';
+$contact = new Contact($db);
+$contact->fetch($_GET["id"], $user);
+
+
+$h=0;
+$head[$h][0] = DOL_URL_ROOT.'fiche.php?id='.$_GET["id"];
+$head[$h][1] = "Général";
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'perso.php?id='.$_GET["id"];
+$head[$h][1] = 'Informations personnelles';
+$hselected=$h;
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'vcard.php?id='.$_GET["id"];
+$head[$h][1] = $langs->trans("VCard");
+$h++;
+
+$head[$h][0] = DOL_URL_ROOT.'info.php?id='.$_GET["id"];
+$head[$h][1] = $langs->trans("Info");
+$h++;
+
+dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
+
if ($_GET["action"] == 'edit')
{
// Fiche info perso en mode edition
-
- $contact = new Contact($db);
- $contact->fetch($_GET["id"], $user);
-
- print_fiche_titre ("Contact : ". $contact->firstname.' '.$contact->name);
print '
";
}
}
- $db->close();
+
+$db->close();
llxFooter("
Dernière modification $Date$ révision $Revision$");
?>