2
0
forked from Wavyzz/dolibarr

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)
{
# Si edition contact deja existant
// Si edition contact deja existant
$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<EFBFBD>n<EFBFBD>ral";
$hselected=$h;
$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");
$h++;
dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
$contact = new Contact($db);
$contact->fetch($_GET["id"], $user);
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"];
$head[$h][1] = "G<EFBFBD>n<EFBFBD>ral";
$hselected=$h;
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"];
$head[$h][1] = 'Informations personnelles';
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/vcard.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("VCard");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"];
$head[$h][1] = $langs->trans("Info");
$h++;
dolibarr_fiche_head($head, $hselected, $contact->firstname.' '.$contact->name);
}