module_ini['main']['filter_duplicates'] == 1) {
echo '
Duplikat-Filterung ist eingeschaltet!
' . "\n\n";
} else {
echo '
' . "\n\n";
}
$query = $this->get_db_query();
$result = mysql_query($query, $this->dbconn);
if(!$result) {
throw new exception('Database query failed:
' . mysql_error() . ':
"' . $query . '"', $this->monitord_ini['failcodes']['dbquery']);
}
if(mysql_affected_rows() == 0) {
echo 'Es befinden sich derzeit keine Einträge in der Datenbank,
die zu den Filterkriterien passen.
';
} else {
// $this->write_jscript_updater($this->module_ini['main']['lines_per_page'], $this->module_ini['main']['show_fields']); // FOR FUTURE AJAX TECHNOLOGY
// echo 'Neuner Eintrag';
echo '';
echo '
' . "\n";
$tmp_element_name = 'monitord_single_' . $this->type;
$tmp_element = new $tmp_element_name();
$linecount = 0;
$res_old = null;
while($res = mysql_fetch_assoc($result)) {
if(($this->module_ini['main']['filter_duplicates'] == 1) && ($res_old['kennung'] != null) && (substr($res_old['uhrzeit'], -2) - substr($res['uhrzeit'], -2) < 2) && (substr($res_old['uhrzeit'], -5, 2) == substr($res['uhrzeit'], -5, 2)) && ($this->type == 'zvei')) {
if(($res['kennung'] == $res_old['kennung'])) {
$print = 0;
} else {
$print = 1;
}
} else {
$print = 1;
}
$tmp_element->set_all_data($res);
if($linecount == 0) {
$tmp_element->monitord_write_tableheader();
$linecount++;
}
if($print == 1) {
echo '';
echo $tmp_element->monitord_write_tableentry($this->monitord_ini, $linecount);
echo "
\n";
$linecount++;
}
$res_old = $res;
}
echo "
\n\n";
}
}
/* function write_jscript_updater_old($lines_per_page, $show_fields) {
$show_fields = explode(",", $show_fields);
$this->write_jscript_rotate_function($lines_per_page, $show_fields);
echo '\n";
}
*/
function write_jscript_updater($lines_per_page, $show_fields) {
$show_fields = explode(",", $show_fields);
$this->write_jscript_rotate_function($lines_per_page, $show_fields);
echo '\n";
}
function write_jscript_rotate_function($lines_per_page, $show_fields) {
echo '\n";
}
}
?>