1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Fixes #835 and brings Pages search routine up to v2.x standards.

This commit is contained in:
Cameron
2015-01-27 19:06:12 -08:00
parent 4c897c905d
commit 543c296442
11 changed files with 209 additions and 39 deletions

View File

@@ -15,7 +15,7 @@
*/
if (!defined('e107_INIT')) { exit; }
/*
$advanced['cat']['type'] = 'dropdown';
$advanced['cat']['text'] = LAN_SEARCH_63.':';
$advanced['cat']['list'][] = array('id' => 'all', 'title' => LAN_SEARCH_51);
@@ -40,5 +40,6 @@ $advanced['match']['type'] = 'dropdown';
$advanced['match']['text'] = LAN_SEARCH_52.':';
$advanced['match']['list'][] = array('id' => 0, 'title' => LAN_SEARCH_67);
$advanced['match']['list'][] = array('id' => 1, 'title' => LAN_SEARCH_54);
*/
?>

View File

@@ -15,7 +15,7 @@
*/
if (!defined('e107_INIT')) { exit; }
/*
$advanced['cat']['type'] = 'dropdown';
$advanced['cat']['text'] = LAN_SEARCH_55.':';
$advanced['cat']['list'][] = array('id' => 'all', 'title' => LAN_SEARCH_51);
@@ -37,5 +37,6 @@ $advanced['match']['type'] = 'dropdown';
$advanced['match']['text'] = LAN_SEARCH_52.':';
$advanced['match']['list'][] = array('id' => 0, 'title' => LAN_SEARCH_53);
$advanced['match']['list'][] = array('id' => 1, 'title' => LAN_SEARCH_54);
*/
?>

View File

@@ -15,8 +15,8 @@
*/
if (!defined('e107_INIT')) { exit; }
/*
$advanced['date']['type'] = 'date';
$advanced['date']['text'] = LAN_SEARCH_68.':';
*/
?>

View File

@@ -17,6 +17,7 @@
if (!defined('e107_INIT')) { exit; }
// advanced
/*
$advanced_where = "";
if (isset($_GET['cat']) && is_numeric($_GET['cat'])) {
$advanced_where .= " d.download_category='".$_GET['cat']."' AND";
@@ -59,5 +60,5 @@ function search_downloads($row) {
$res['detail'] = LAN_SEARCH_15." ".$row['download_author']." | ".LAN_SEARCH_66.": ".$datestamp;
return $res;
}
*/
?>

View File

@@ -13,6 +13,7 @@
if (!defined('e107_INIT')) { exit; }
// advanced
/*
$advanced_where = "";
if (isset($_GET['cat']) && $_GET['cat'] != 'all') {
$advanced_where .= " c.category_id='".intval($_GET['cat'])."' AND";
@@ -51,5 +52,5 @@ function search_news($row) {
$res['detail'] = LAN_SEARCH_3.$con -> convert_date($row['news_datestamp'], "long");
return $res;
}
*/
?>

View File

@@ -13,6 +13,7 @@
if (!defined('e107_INIT')) { exit; }
// advanced
/*
$advanced_where = "";
if (isset($_GET['time']) && is_numeric($_GET['time'])) {
$advanced_where .= " page_datestamp ".($_GET['on'] == 'new' ? '>=' : '<=')." '".(time() - $_GET['time'])."' AND";
@@ -41,5 +42,6 @@ function search_pages($row) {
$res['detail'] = LAN_SEARCH_3.$con -> convert_date($row['page_datestamp'], "long");
return $res;
}
*/
?>