|
@@ -90,8 +90,8 @@ $year = GETPOST('year','int');
|
|
|
if ($search_status == '') $search_status=-1; // -1 or 1
|
|
|
|
|
|
|
|
|
-// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
|
|
|
-$contextpage='projectlist';
|
|
|
+// Initialize context for list
|
|
|
+$contextpage=GETPOST('contextpage','aZ')?GETPOST('contextpage','aZ'):'projectlist';
|
|
|
|
|
|
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
|
|
|
$hookmanager->initHooks(array($contextpage));
|
|
@@ -308,7 +308,8 @@ if ($resql)
|
|
|
$num = $db->num_rows($resql);
|
|
|
|
|
|
$param='';
|
|
|
- if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
|
|
+ if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
|
|
|
+ if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
|
|
|
if ($sday) $param.='&sday='.$day;
|
|
|
if ($smonth) $param.='&smonth='.$smonth;
|
|
|
if ($syear) $param.='&syear=' .$syear;
|
|
@@ -346,7 +347,8 @@ if ($resql)
|
|
|
print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
|
|
|
print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
|
|
print '<input type="hidden" name="type" value="'.$type.'">';
|
|
|
-
|
|
|
+ print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
|
|
+
|
|
|
print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'title_project', 0, '', '', $limit);
|
|
|
|
|
|
// Show description of content
|