Mise jour des url dans les onglets

This commit is contained in:
Rodolphe Quiedeville 2004-11-15 14:20:16 +00:00
parent 64f48f5744
commit c8fdad07db

View File

@ -142,31 +142,30 @@ $form = new Form($db);
*/ */
if ($_GET["id"] > 0) if ($_GET["id"] > 0)
{ {
# Si edition contact deja existant // Si edition contact deja existant
$contact = new Contact($db); $contact = new Contact($db);
$contact->fetch($_GET["id"], $user); $contact->fetch($_GET["id"], $user);
$h=0;
$h=0; $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
$head[$h][0] = DOL_URL_ROOT.'fiche.php?id='.$_GET["id"]; $head[$h][1] = "Général";
$head[$h][1] = "Général"; $hselected=$h;
$hselected=$h; $h++;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
$head[$h][0] = DOL_URL_ROOT.'perso.php?id='.$_GET["id"]; $head[$h][1] = 'Informations personnelles';
$head[$h][1] = 'Informations personnelles'; $h++;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
$head[$h][0] = DOL_URL_ROOT.'vcard.php?id='.$_GET["id"]; $head[$h][1] = $langs->trans("VCard");
$head[$h][1] = $langs->trans("VCard"); $h++;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"];
$head[$h][0] = DOL_URL_ROOT.'info.php?id='.$_GET["id"]; $head[$h][1] = $langs->trans("Info");
$head[$h][1] = $langs->trans("Info"); $h++;
$h++;
dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
} }