Ajout curseur precedent et suivant
This commit is contained in:
parent
8485b591a4
commit
7c9972341f
@ -457,9 +457,16 @@ else
|
|||||||
$head[$h][1] = $langs->trans("Infos");
|
$head[$h][1] = $langs->trans("Infos");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$contrat->load_previous_next_id();
|
||||||
|
$previous_ref = $contrat->ref_previous?'<a href="'.$_SERVER["PHP_SELF"].'?id='.$contrat->ref_previous.'">'.img_previous().'</a>':'';
|
||||||
|
$next_ref = $contrat->ref_next?'<a href="'.$_SERVER["PHP_SELF"].'?id='.$contrat->ref_next.'">'.img_next().'</a>':'';
|
||||||
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);
|
||||||
|
|
||||||
|
print '<table class="nobordernopadding" width="100%"><tr class="nobordernopadding"><td class="nobordernopadding">Fiche Contrat</td>';
|
||||||
|
print '<td class="nobordernopadding"><a href="'.$_SERVER["PHP_SELF"].'?id='.$product->id.'">'.$product->ref.'</a>';
|
||||||
|
print '</td><td class="nobordernopadding" align="center" width="20">'.$previous_ref.'</td><td class="nobordernopadding" align="center" width="20">'.$next_ref.'</td></tr></table><br />';
|
||||||
|
|
||||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
|
|
||||||
@ -951,16 +958,11 @@ else
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
|
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
/* */
|
/* */
|
||||||
/* Barre d'action */
|
/* Barre d'action */
|
||||||
@ -971,7 +973,6 @@ else
|
|||||||
|
|
||||||
if ($_GET["action"] == '')
|
if ($_GET["action"] == '')
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6)
|
if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6)
|
||||||
{
|
{
|
||||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?action=create&contratid='.$contrat->id.'">Nouvelle ligne</a>';
|
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/telephonie/ligne/fiche.php?action=create&contratid='.$contrat->id.'">Nouvelle ligne</a>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user