mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 13:00:20 +02:00
added download all hits feature
This commit is contained in:
1 parent
f12ae31881
commit
e537ff5461
12 files changed
+94
-6
No files matched your search
@@ -13,6 +13,8 @@ class ModelSearchSearch extends Model {
|
||||
$s = "";
|
||||
$all_ids_csv = "";
|
||||
|
||||
$session = Registry::get('session');
|
||||
|
||||
while(list($k,$v) = each($data)) {
|
||||
if($v) { $s .= '&' . $k . '=' . $v; }
|
||||
}
|
||||
@@ -56,6 +58,12 @@ class ModelSearchSearch extends Model {
|
||||
$total_hits = count($all_ids);
|
||||
|
||||
|
||||
if($total_hits > 0) {
|
||||
$session->set('last_search', serialize($all_ids));
|
||||
} else {
|
||||
$session->set('last_search', '');
|
||||
}
|
||||
|
||||
$data['page_len'] = get_page_length();
|
||||
|
||||
if($total_hits > 0) {
|
||||
|
||||
Reference in new issue
Block a user