$total) { $to = $total; } else { $to = $_REQUEST['f_start_this_page'] + $_REQUEST['f_records_per_page']; } if ($total > 0) { echo '

Displaying '. $from .' to '. $to .' of '. $total .' records. '. (isset($_REQUEST['ANP']) ? '.' : '') .'

'; } } echo ''; #if (! preg_match("/MSIE\ 6|MSIE\ 7/", $_SERVER['HTTP_USER_AGENT'])) # echo '



Loading...
'; $_SESSION[SESS_NAME]['SEARCH_PARAMS'] = $_SERVER['QUERY_STRING']; if (isset($_REQUEST['f_map_x']) && ! empty($_REQUEST['f_map_x']) && isset($_REQUEST['f_map_y']) && ! empty($_REQUEST['f_map_y'])) $_REQUEST['which'] = "map"; $_REQUEST['search'] = (! isset($_REQUEST['search']) ? "quick" : $_REQUEST['search']); if ($_REQUEST['search'] == "spatial") { if ($_REQUEST['which'] == "map") { $m = new Map; $m->initMap(); $m->showLayerGroups(); $m->clickMap(); $img_url = $m->drawMap(); if (! external_portal()) { require_once(FILE_ROOT ."/php/search-spatial-map.php"); } } else { if (! external_portal()) { require_once(FILE_ROOT ."/php/search-spatial-form.php"); } } } else if ($_REQUEST['search'] == "advanced") { $msg = ''; $count = 0; if ($_REQUEST['submit'] == "Search") { $s = new Search(); if (($count = $s->advancedSearch(true)) == false) echo ''; if ($count == 0) echo ''; $recordids = $s->advancedSearch(); #$recordids = $s->advancedSearch(); #$count = count($recordids); } pagination($count); if (! external_portal()) { require_once(FILE_ROOT ."/php/search-". ($count == 0 ? "advanced" : "results") .".php"); } else { if (count($recordids) > 0) { echo 'Found '. count($recordids) .' records.
'; require_once(FILE_ROOT ."/php/search-results.php"); } } } else if ($_REQUEST['search'] == "quick") { $msg = ''; $count = 0; if ($_REQUEST['submit'] == "Search") { $s = new Search(); if ((($count = $s->quickSearch(true)) == false) || $count == 0) echo '

Nothing found!

'; $recordids = $s->quickSearch(); } pagination($count); if (! external_portal()) { require_once(FILE_ROOT ."/php/search-". ($count == 0 ? "quick" : "results") .".php"); } else { if (count($recordids) > 0) { echo 'Found '. count($recordids) .' records.
'; require_once(FILE_ROOT ."/php/search-results.php"); } } } if (! preg_match("/MSIE\ 6|MSIE\ 7/", $_SERVER['HTTP_USER_AGENT'])) { echo ''; } ! external_portal() ? require_once(FILE_ROOT ."/php". $version ."/footer.php") : null; if (isset($_REQUEST['URBAN_STREAMS'])) { echo ''."\n"; } db_disconnect(); ?>