Ajout onglet info
This commit is contained in:
parent
bcf63aca54
commit
1f5cbfe19d
@ -25,12 +25,6 @@ require_once DOL_DOCUMENT_ROOT."/lib/dolibarrmail.class.php";
|
|||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
$dt = time();
|
|
||||||
|
|
||||||
$h = strftime("%H",$dt);
|
|
||||||
$m = strftime("%M",$dt);
|
|
||||||
$s = strftime("%S",$dt);
|
|
||||||
|
|
||||||
if ($_POST["action"] == 'add')
|
if ($_POST["action"] == 'add')
|
||||||
{
|
{
|
||||||
$contrat = new TelephonieContrat($db);
|
$contrat = new TelephonieContrat($db);
|
||||||
@ -91,7 +85,6 @@ if ($_POST["action"] == 'addcontact')
|
|||||||
{
|
{
|
||||||
Header("Location: fiche.php?id=".$contrat->id);
|
Header("Location: fiche.php?id=".$contrat->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_GET["action"] == 'delcontact')
|
if ($_GET["action"] == 'delcontact')
|
||||||
@ -116,8 +109,6 @@ if ($_GET["action"] == 'delete')
|
|||||||
Header("Location: index.php");
|
Header("Location: index.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
llxHeader("","","Fiche Contrat");
|
llxHeader("","","Fiche Contrat");
|
||||||
|
|
||||||
if ($cancel == $langs->trans("Cancel"))
|
if ($cancel == $langs->trans("Cancel"))
|
||||||
@ -420,7 +411,24 @@ else
|
|||||||
$head[$h][1] = $langs->trans("Contrat");
|
$head[$h][1] = $langs->trans("Contrat");
|
||||||
$hselected = $h;
|
$hselected = $h;
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$nser = $contrat->count_associated_services();
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/telephonie/contrat/services.php?id=".$contrat->id;
|
||||||
|
if ($nser > 0)
|
||||||
|
{
|
||||||
|
$head[$h][1] = $langs->trans("Services")." (".$nser.")";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$head[$h][1] = $langs->trans("Services");
|
||||||
|
}
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/telephonie/contrat/info.php?id=".$contrat->id;
|
||||||
|
$head[$h][1] = $langs->trans("Infos");
|
||||||
|
$h++;
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, 'Contrat : '.$contrat->ref);
|
dolibarr_fiche_head($head, $hselected, 'Contrat : '.$contrat->ref);
|
||||||
|
|
||||||
print_fiche_titre('Fiche Contrat', $mesg);
|
print_fiche_titre('Fiche Contrat', $mesg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user