if (!$search_query) {
echo nc_search::should('EnableAdvancedSearchForm') ? $nc_search->show_advanced_form() : $nc_search->show_form();
} else {
?>
$totRows = $results->get_total_count();
if ($totRows == 0) {
if ($results->get_error_message()) {
?>= NETCAT_MODULE_SEARCH_QUERY_ERROR ?>
} else {
?>= NETCAT_MODULE_SEARCH_NO_RESULTS ?>
}
} else {
if ($results->get_correction_suggestion()) {
?>= $results->get_correction_suggestion() ?>
}
if ($show_time) { // показать блок сортировки по дате/релевантности
$params = $nc_core->input->fetch_get();
unset($params["curPos"]);
unset($params["REQUEST_URI"]);
$params = http_build_query($params, '', '&');
?>
}
?>
}
}
if (!$advanced && $totRows) {
?>
echo
($begRow == $endRow ? sprintf(NETCAT_MODULE_SEARCH_RESULTS_ONE, $begRow, $totRows) : sprintf(NETCAT_MODULE_SEARCH_RESULTS_RANGE, $begRow, $endRow, $totRows) )
?>
:
} ?>