Back link to module page

This commit is contained in:
Laurent Destailleur 2017-12-15 10:46:11 +01:00
parent 4a75d847e2
commit fb0169cbb8
3 changed files with 8 additions and 5 deletions

View File

@ -40,9 +40,12 @@ if (! $user->admin) accessforbidden();
$extrafields = new ExtraFields($db);
$action = GETPOST('action','alpha');
$backtopage = GETPOST('backtopage', 'alpha');
$value = GETPOST('value','alpha');
$type='user';
/*
* Action
*/
@ -130,10 +133,12 @@ elseif ($action == 'sethideinactiveuser')
* View
*/
$form = new Form($db);
$help_url='EN:Module_Users|FR:Module_Utilisateurs|ES:Módulo_Usuarios';
llxHeader('',$langs->trans("UsersSetup"),$help_url);
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
$linkback='<a href="'.($backtopage?$backtopage:DOL_URL_ROOT.'/admin/modules.php').'">'.$langs->trans("BackToModuleList").'</a>';
print load_fiche_titre($langs->trans("UsersSetup"),$linkback,'title_setup');
@ -148,8 +153,6 @@ print '<td align="center" width="20">&nbsp;</td>';
print '<td align="center" width="100">'.$langs->trans("Value").'</td>'."\n";
print '</tr>';
$var=true;
$form = new Form($db);
// Mail required for members
@ -218,7 +221,6 @@ print "</tr>\n";
clearstatcache();
$var=true;
foreach ($dirmodels as $reldir)
{
foreach (array('','/doc') as $valdir)
@ -255,7 +257,6 @@ foreach ($dirmodels as $reldir)
if ($modulequalified)
{
$var = !$var;
print '<tr class="oddeven"><td width="100">';
print (empty($module->name)?$name:$module->name);
print "</td><td>\n";

View File

@ -53,6 +53,7 @@ if (! $user->admin) {
// Parameters
$action = GETPOST('action', 'alpha');
$backtopage = GETPOST('backtopage', 'alpha');
/*

View File

@ -51,6 +51,7 @@ if (! $user->admin) accessforbidden();
// Parameters
$action = GETPOST('action', 'alpha');
$backtopage = GETPOST('backtopage', 'alpha');
$arrayofparameters=array('MYMODULE_MYPARAM1'=>array('css'=>'minwidth200'), 'MYMODULE_MYPARAM2'=>array('css'=>'minwidth500'));