diff --git a/htdocs/blockedlog/admin/blockedlog.php b/htdocs/blockedlog/admin/blockedlog.php
index 091e520c333..1970cafa0a6 100644
--- a/htdocs/blockedlog/admin/blockedlog.php
+++ b/htdocs/blockedlog/admin/blockedlog.php
@@ -81,12 +81,20 @@ $block_static = new BlockedLog($db);
llxHeader('',$langs->trans("BlockedLogSetup"));
-$linkback=''.$langs->trans("BackToModuleList").'';
+$linkback='';
+if (GETPOST('withtab','alpha'))
+{
+ $linkback=''.$langs->trans("BackToModuleList").'';
+}
+
print load_fiche_titre($langs->trans("ModuleSetup").' '.$langs->trans('BlockedLog'),$linkback);
-$head=blockedlogadmin_prepare_head();
+if (GETPOST('withtab','alpha'))
+{
+ $head=blockedlogadmin_prepare_head();
+ dol_fiche_head($head, 'blockedlog', '', -1);
+}
-dol_fiche_head($head, 'blockedlog', '', -1);
print $langs->trans("BlockedLogDesc")."
\n";
@@ -148,7 +156,10 @@ print '';
print '';
-dol_fiche_end();
+if (GETPOST('withtab','alpha'))
+{
+ dol_fiche_end();
+}
print '
';
diff --git a/htdocs/blockedlog/admin/blockedlog_list.php b/htdocs/blockedlog/admin/blockedlog_list.php
index 5caf9ef501c..078501d5bd8 100644
--- a/htdocs/blockedlog/admin/blockedlog_list.php
+++ b/htdocs/blockedlog/admin/blockedlog_list.php
@@ -38,6 +38,7 @@ $optioncss = GETPOST('optioncss','aZ'); // Option for the css output
$showonlyerrors = GETPOST('showonlyerrors','int');
+$search_fk_user=GETPOST('search_fk_user','intcomma');
$search_start = -1;
if(GETPOST('search_startyear')!='') $search_start = dol_mktime(0, 0, 0, GETPOST('search_startmonth'), GETPOST('search_startday'), GETPOST('search_startyear'));
$search_end = -1;
@@ -72,6 +73,7 @@ $result = restrictedArea($user, 'blockedlog', 0, '');
// Purge search criteria
if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') ||GETPOST('button_removefilter','alpha')) // All tests are required to be compatible with all browsers
{
+ $search_fk_user = '';
$search_start = -1;
$search_end = -1;
$search_ref = '';
@@ -156,45 +158,56 @@ $form=new Form($db);
llxHeader('',$langs->trans("BlockedLogSetup"));
-$blocks = $block_static->getLog('all', 0, GETPOST('all','alpha') ? 0 : 50, $sortfield, $sortorder, $search_start, $search_end, $search_ref, $search_amount);
+$blocks = $block_static->getLog('all', 0, GETPOST('all','alpha') ? 0 : 50, $sortfield, $sortorder, $search_fk_user, $search_start, $search_end, $search_ref, $search_amount);
if (! is_array($blocks))
{
dol_print_error($block_static->db);
exit;
}
-$linkback=''.$langs->trans("BackToModuleList").'';
+$linkback='';
+if (GETPOST('withtab','alpha'))
+{
+ $linkback=''.$langs->trans("BackToModuleList").'';
+}
+
print load_fiche_titre($langs->trans("ModuleSetup").' '.$langs->trans('BlockedLog'),$linkback);
-$head=blockedlogadmin_prepare_head();
+if (GETPOST('withtab','alpha'))
+{
+ $head=blockedlogadmin_prepare_head();
+ dol_fiche_head($head, 'fingerprints', '', -1);
+}
-dol_fiche_head($head, 'fingerprints', '', -1);
-
-print $langs->trans("FingerprintsDesc")."
\n";
+print ''.$langs->trans("FingerprintsDesc")."
\n";
print '
';
$param='';
if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.urlencode($contextpage);
if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.urlencode($limit);
-if ($search_start > 0) $param.='&search_startyear='.urlencode(GETPOST('search_startyear','int')).'&search_startmonth='.urlencode(GETPOST('search_startmonth','int')).'&search_startday='.urlencode(GETPOST('search_startday','int'));
-if ($search_end > 0) $param.='&search_endyear='.urlencode(GETPOST('search_endyear','int')).'&search_endmonth='.urlencode(GETPOST('search_endmonth','int')).'&search_endday='.urlencode(GETPOST('search_endday','int'));
-if ($optioncss != '') $param.='&optioncss='.urlencode($optioncss);
+if ($search_fk_user > 0) $param.='&search_fk_user='.urlencode($search_fk_user);
+if ($search_start > 0) $param.='&search_startyear='.urlencode(GETPOST('search_startyear','int')).'&search_startmonth='.urlencode(GETPOST('search_startmonth','int')).'&search_startday='.urlencode(GETPOST('search_startday','int'));
+if ($search_end > 0) $param.='&search_endyear='.urlencode(GETPOST('search_endyear','int')).'&search_endmonth='.urlencode(GETPOST('search_endmonth','int')).'&search_endday='.urlencode(GETPOST('search_endday','int'));
+if ($optioncss != '') $param.='&optioncss='.urlencode($optioncss);
+if (GETPOST('withtab','alpha')) $param.='&withtab='.urlencode(GETPOST('withtab','alpha'));
+
// Add $param from extra fields
//include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
print '