Fix: Bad links after navigation
This commit is contained in:
parent
d5a9e4badf
commit
a4feead496
@ -23,7 +23,7 @@
|
|||||||
* \file htdocs/fichinter/fiche.php
|
* \file htdocs/fichinter/fiche.php
|
||||||
* \brief Fichier fiche intervention
|
* \brief Fichier fiche intervention
|
||||||
* \ingroup ficheinter
|
* \ingroup ficheinter
|
||||||
* \version $Id: fiche.php,v 1.171 2011/07/10 20:03:39 eldy Exp $
|
* \version $Id: fiche.php,v 1.172 2011/07/18 03:04:48 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
@ -1072,14 +1072,14 @@ elseif ($fichinterid)
|
|||||||
// Validate
|
// Validate
|
||||||
if ($object->statut == 0 && $user->rights->ficheinter->creer && sizeof($object->lines) > 0)
|
if ($object->statut == 0 && $user->rights->ficheinter->creer && sizeof($object->lines) > 0)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="fiche.php?id='.$id.'&action=validate"';
|
print '<a class="butAction" href="fiche.php?id='.$object->id.'&action=validate"';
|
||||||
print '>'.$langs->trans("Valid").'</a>';
|
print '>'.$langs->trans("Valid").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Modify
|
// Modify
|
||||||
if ($object->statut == 1 && $user->rights->ficheinter->creer)
|
if ($object->statut == 1 && $user->rights->ficheinter->creer)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="fiche.php?id='.$id.'&action=modify"';
|
print '<a class="butAction" href="fiche.php?id='.$object->id.'&action=modify"';
|
||||||
print '>'.$langs->trans("Modify").'</a>';
|
print '>'.$langs->trans("Modify").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1092,7 +1092,7 @@ elseif ($fichinterid)
|
|||||||
{
|
{
|
||||||
if (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || $user->rights->ficheinter->ficheinter_advance->send)
|
if (empty($conf->global->MAIN_USE_ADVANCED_PERMS) || $user->rights->ficheinter->ficheinter_advance->send)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$id.'&action=presend&mode=init">'.$langs->trans('SendByMail').'</a>';
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=presend&mode=init">'.$langs->trans('SendByMail').'</a>';
|
||||||
}
|
}
|
||||||
else print '<a class="butActionRefused" href="#">'.$langs->trans('SendByMail').'</a>';
|
else print '<a class="butActionRefused" href="#">'.$langs->trans('SendByMail').'</a>';
|
||||||
}
|
}
|
||||||
@ -1112,7 +1112,7 @@ elseif ($fichinterid)
|
|||||||
{
|
{
|
||||||
if ($object->statut != 2)
|
if ($object->statut != 2)
|
||||||
{
|
{
|
||||||
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$id.'&action=classifybilled">'.$langs->trans("ClassifyBilled").'</a>';
|
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=classifybilled">'.$langs->trans("ClassifyBilled").'</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1120,7 +1120,7 @@ elseif ($fichinterid)
|
|||||||
// Delete
|
// Delete
|
||||||
if (($object->statut == 0 && $user->rights->ficheinter->creer) || $user->rights->ficheinter->supprimer)
|
if (($object->statut == 0 && $user->rights->ficheinter->creer) || $user->rights->ficheinter->supprimer)
|
||||||
{
|
{
|
||||||
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$id.'&action=delete"';
|
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=delete"';
|
||||||
print '>'.$langs->trans('Delete').'</a>';
|
print '>'.$langs->trans('Delete').'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1128,7 +1128,7 @@ elseif ($fichinterid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
if ($action != 'presend')
|
if ($action != 'presend')
|
||||||
{
|
{
|
||||||
@ -1219,5 +1219,5 @@ elseif ($fichinterid)
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/07/10 20:03:39 $ - $Revision: 1.171 $');
|
llxFooter('$Date: 2011/07/18 03:04:48 $ - $Revision: 1.172 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user