NEW Can filter on user on unalterable log

This commit is contained in:
Laurent Destailleur 2017-12-16 21:50:58 +01:00
parent 4abcbae79f
commit 9f2a42b67d
4 changed files with 15 additions and 5 deletions

View File

@ -740,11 +740,13 @@ if ($mode == 'common')
{
if (preg_match('/^([^@]+)@([^@]+)$/i',$urlpage,$regs))
{
print '<a href="'.dol_buildpath('/'.$regs[2].'/admin/'.$regs[1],1).'?backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"),"setup",'style="padding-right: 6px"').'</a>';
$urltouse=dol_buildpath('/'.$regs[2].'/admin/'.$regs[1],1);
print '<a href="'.$urltouse.(preg_match('/\?/',$urltouse)?'&':'?').'backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"),"setup",'style="padding-right: 6px"').'</a>';
}
else
{
print '<a href="'.$urlpage.'?backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"),"setup",'style="padding-right: 6px"').'</a>';
$urltouse=$urlpage;
print '<a href="'.$urltouse.(preg_match('/\?/',$urltouse)?'&':'?').'backtopage='.urlencode($backtourl).'" title="'.$langs->trans("Setup").'">'.img_picto($langs->trans("Setup"),"setup",'style="padding-right: 6px"').'</a>';
}
}
}

View File

@ -63,7 +63,7 @@ class modBlockedLog extends DolibarrModules
// Config pages
//-------------
$this->config_page_url = array('blockedlog.php@blockedlog');
$this->config_page_url = array('blockedlog.php?withtab=1@blockedlog');
// Dependancies
//-------------

View File

@ -4574,12 +4574,16 @@ dl.dropdown {
/* ============================================================================== */
/* Mardown rendering */
/* Markdown rendering */
/* ============================================================================== */
.imgmd {
width: 90%;
}
.moduledesclong h1 {
padding-top: 10px;
padding-bottom: 20px;
}
/* ============================================================================== */

View File

@ -4557,12 +4557,16 @@ dl.dropdown {
/* ============================================================================== */
/* Mardown rendering */
/* Markdown rendering */
/* ============================================================================== */
.imgmd {
width: 90%;
}
.moduledesclong h1 {
padding-top: 10px;
padding-bottom: 20px;
}
/* ============================================================================== */