Beispiel #1
0
        $entries_to_show = $count - $start_at;
    }
    $last = $start_at + $entries_to_show;
}
// query count
// For display, convert query string characters < and > into 'html form' so
// that they will be displayed.
//
//$html_text=str_replace('<', '&lt;', str_replace('>', '&gt;', $main_query));
//echo "<p>Query: <b>$html_text</b><p>\n";
echo "\n<script type=\"text/javascript\">\n   \nfunction SetAllCheckBoxes(FormName, FieldName, CheckValue)\n{\n\tif(!document.forms[FormName])\n\t\treturn;\n\tvar objCheckBoxes = document.forms[FormName].elements[FieldName];\n\tif(!objCheckBoxes)\n\t\treturn;\n\tvar countCheckBoxes = objCheckBoxes.length;\n\tif(!countCheckBoxes)\n\t\tobjCheckBoxes.checked = CheckValue;\n\telse\n\t\t// set the check value for all check boxes\n\t\tfor(var i = 0; i < countCheckBoxes; i++)\n\t           if (! objCheckBoxes[i].disabled)\n                      objCheckBoxes[i].checked = CheckValue;\n}\n</script>\n<HR>\n";
$start_1_offset = $start_at + 1;
if (!$bUseCSV && !$bDownloadAll) {
    echo "\n    <p>{$count} records match the query.\n    Displaying {$start_1_offset} to {$last}.<p>\n";
}
$url = $q->get_url("trdl.php");
if ($detail) {
    $url .= "&detail={$detail}";
}
$queryString = "&nresults={$page_entries_to_show}" . "&cbUseHost={$bUseHost}" . "&cbUseArchive={$bUseArchive}" . "&cbUseFile={$bUseFile}" . "&cbUseCSV={$bUseCSV}" . "&cbUseQuake={$bUseQuake}" . "&cbUseQCNQuake={$bUseQCNQuake}" . "&cbUseLat={$bUseLat}" . "&cbUseTime={$bUseTime}" . "&cbUseSensor={$bUseSensor}" . "&qcn_sensorid={$qcn_sensorid}" . "&date_start={$dateStart}" . "&date_end={$dateEnd}" . "&LonMin={$strLonMin}" . "&LonMax={$strLonMax}" . "&LatMin={$strLatMin}" . "&LatMax={$strLatMax}" . "&quake_mag_min={$quake_mag_min}" . "&qcn_quake_mag_min={$qcn_quake_mag_min}" . "&time_hour_start={$timeHourStart}" . "&time_minute_start={$timeMinuteStart}" . "&time_hour_end={$timeHourEnd}" . "&time_minute_end={$timeMinuteEnd}" . "&HostID={$strHostID}" . "&HostName={$strHostName}" . "&rb_sort={$sortOrder}" . "&plot_map={$plot_map}" . "&search_show={$search_show}";
//echo "<hr>$url<hr><br>\n";
if ($start_at || $last < $count) {
    echo "<table border=\"1\"><tr><td width=\"100\">";
    if ($start_at) {
        $prev_pos = $start_at - $page_entries_to_show;
        if ($prev_pos < 0) {
            $prev_pos = 0;
        }
        echo "\n            <a href=\"{$url}&last_pos={$prev_pos}" . $queryString . "\">Previous {$page_entries_to_show}</a><br>\n        ";
    }
    echo "</td><td width=100>";
Beispiel #2
0
$title = table_title($table);
admin_page_head($title);
$count = $q->count();
if ($count < $start_at + $entries_to_show) {
    $entries_to_show = $count - $start_at;
}
$last = $start_at + $entries_to_show;
$main_query = $q->get_select_query($entries_to_show, $start_at);
// For display, convert query string characters < and > into 'html form' so
// that they will be displayed.
//
$html_text = str_replace('<', '&lt;', str_replace('>', '&gt;', $main_query));
echo "<p>Query: <b>{$html_text}</b><p>\n";
$start_1_offset = $start_at + 1;
echo "\r\n\t<p>{$count} records match the query.\r\n\tDisplaying {$start_1_offset} to {$last}.<p>\r\n";
$url = $q->get_url("db_action.php");
if ($detail) {
    $url .= "&detail={$detail}";
}
//echo "<hr>$url<hr><br>\n";
if ($start_at || $last < $count) {
    echo "<table border=\"1\"><tr><td width=\"100\">";
    if ($start_at) {
        $prev_pos = $start_at - $page_entries_to_show;
        if ($prev_pos < 0) {
            $prev_pos = 0;
        }
        echo "\r\n\t\t\t<a href=\"{$url}&last_pos={$prev_pos}&nresults={$page_entries_to_show}\">Previous {$page_entries_to_show}</a><br>\r\n\t\t";
    }
    echo "</td><td width=100>";
    if ($last < $count) {
Beispiel #3
0
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
	           if (! objCheckBoxes[i].disabled)
                      objCheckBoxes[i].checked = CheckValue;
}
</script>
<HR>
";
*/
$start_1_offset = $start_at + 1;
if (!$bUseCSV) {
    echo "\n    <p>{$count} records match the query.\n    Displaying {$start_1_offset} to {$last}.<p>\n";
}
$url = $q->get_url("ramp.php");
if ($detail) {
    $url .= "&detail={$detail}";
}
/*
$queryString = "&nresults=$page_entries_to_show"
       . "&cbUseHost=$bUseHost"
       . "&cbUseArchive=$bUseArchive"
       . "&cbUseFile=$bUseFile"
       . "&cbUseCSV=$bUseCSV"
       . "&cbUseQuake=$bUseQuake"
       . "&cbUseQCNQuake=$bUseQCNQuake"
       . "&cbUseLat=$bUseLat"
       . "&cbUseTime=$bUseTime"
       . "&cbUseSensor=$bUseSensor"
       . "&qcn_sensorid=$qcn_sensorid"