2010-08-31 Sergio Martin <sergio.martin@artica.es>
* operation/search_reports.php: Added the description field to the reports search in the main menu git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3197 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7d6175bd4b
commit
3dd24c5b5d
|
@ -1,3 +1,8 @@
|
|||
2010-08-31 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/search_reports.php: Added the description
|
||||
field to the reports search in the main menu
|
||||
|
||||
2010-08-31 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/search_maps.php: Fixed the group icon
|
||||
|
|
|
@ -42,11 +42,11 @@ if(!$userreports_id){
|
|||
$reports = false;
|
||||
|
||||
if($searchReports) {
|
||||
$sql = "SELECT id_report, name, description FROM treport WHERE name LIKE '%" . $stringSearchSQL . "%'".$reports_condition.
|
||||
$sql = "SELECT id_report, name, description FROM treport WHERE (name LIKE '%" . $stringSearchSQL . "%' OR description LIKE '%" . $stringSearchSQL . "%')".$reports_condition.
|
||||
" LIMIT " . $config['block_size'] . " OFFSET " . get_parameter ('offset',0);
|
||||
$reports = process_sql($sql);
|
||||
|
||||
$sql = "SELECT COUNT(id_report) AS count FROM treport WHERE name LIKE '%" . $stringSearchSQL . "%'";
|
||||
$sql = "SELECT COUNT(id_report) AS count FROM treport WHERE (name LIKE '%" . $stringSearchSQL . "%' OR description LIKE '%" . $stringSearchSQL . "%')";
|
||||
$totalReports = get_db_row_sql($sql);
|
||||
$totalReports = $totalReports['count'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue