Fix: Liens onglet manquant

This commit is contained in:
Laurent Destailleur 2005-04-15 20:54:29 +00:00
parent 7ec9c7d451
commit 6c7eaa2d47
3 changed files with 62 additions and 26 deletions

View File

@ -424,10 +424,14 @@ else
$author->fetch(); $author->fetch();
$h=0; $h=0;
$head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("OrderCard"); if ($conf->commande->enabled && $user->rights->commande->lire)
$hselected = $h; {
$h++; $head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("OrderCard");
$hselected = $h;
$h++;
}
if ($conf->expedition->enabled && $user->rights->expedition->lire) if ($conf->expedition->enabled && $user->rights->expedition->lire)
{ {
@ -436,9 +440,12 @@ else
$h++; $h++;
} }
$head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id; if ($conf->compta->enabled)
$head[$h][1] = $langs->trans("ComptaCard"); {
$h++; $head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("ComptaCard");
$h++;
}
dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref"); dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref");

View File

@ -30,6 +30,7 @@
require("./pre.inc.php"); require("./pre.inc.php");
$langs->load("sendings");
$langs->load("companies"); $langs->load("companies");
$langs->load("bills"); $langs->load("bills");
@ -85,16 +86,30 @@ if ($_GET["id"] > 0)
$author->fetch(); $author->fetch();
$h=0; $h=0;
$head[0][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$head[0][1] = $langs->trans("OrderCard");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id; if ($conf->commande->enabled && $user->rights->commande->lire)
$head[$h][1] = $langs->trans("ComptaCard"); {
$hselected = $h; $head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$h++; $head[$h][1] = $langs->trans("OrderCard");
$h++;
}
dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref"); if ($conf->expedition->enabled && $user->rights->expedition->lire)
{
$head[$h][0] = DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id;
$head[$h][1] = $langs->trans("SendingCard");
$h++;
}
if ($conf->compta->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("ComptaCard");
$hselected = $h;
$h++;
}
dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref");
/* /*
* Commande * Commande

View File

@ -80,14 +80,28 @@ if ($_GET["id"] > 0)
$author->fetch(); $author->fetch();
$h=0; $h=0;
$head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("OrderCard");
$h++;
$head[$h][0] = DOL_URL_ROOT."/expedition/commande.php?id=".$commande->id; if ($conf->commande->enabled && $user->rights->commande->lire)
$head[$h][1] = $langs->trans("SendingCard"); {
$hselected = $h; $head[$h][0] = DOL_URL_ROOT.'/commande/fiche.php?id='.$commande->id;
$h++; $head[$h][1] = $langs->trans("OrderCard");
$h++;
}
if ($conf->expedition->enabled && $user->rights->expedition->lire)
{
$head[$h][0] = DOL_URL_ROOT.'/expedition/commande.php?id='.$commande->id;
$head[$h][1] = $langs->trans("SendingCard");
$hselected = $h;
$h++;
}
if ($conf->compta->enabled)
{
$head[$h][0] = DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$commande->id;
$head[$h][1] = $langs->trans("ComptaCard");
$h++;
}
dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref"); dolibarr_fiche_head($head, $hselected, $soc->nom." / ".$langs->trans("Order")." : $commande->ref");
/* /*