Class Table
$table_content = new class_table;
$table_content->id = "kernel_log_site";
$table_content->db_table = "kernel_log_site";
$table_content->current_site_step = 10;
$table_content->without_head_row = true;
$table_content->button_style_context_menu = true;
$table_content->show_checkbox = true;
$table_content->foot_functions = array( delete => array(title => "löschen"), );
$table_content->space_over_table = $this->system->template->get_template("button_new_bill.tpl",1,$this);
$table_content->search_block= $table_search->info_template;
$table_content->db_fields = array(
timestamp => array(
width => "20%",
title => "Datum / Uhrzeit",
alt_text => "[field][request]",),
replace => array(
array("on","icon::traffic_light_green"),
array("1","icon::traffic_light_yellow"),
array("NULL","icon::traffic_light_red"),
),
styleif => array(
array("readed","","text_bold"),
),
),
from_person => array(
width => "20%",
title => "von Person"
),
$table_content->replace_rules = array( "field:annulation==on" => array( array("",""), ), );
$table_content->db_where_var = $var_for_where;
$table_content->buttons = array(
array(
title => "Seite Anzeigen",
action => "change",
icon => "change",
id => "[field][id]",
href => "#",
onclick => "window.open('./log_site_viewer.php?selected_kernel_log_site=[field][id]');",
doif => "\$row_now[acc]==\$_REQUEST[asdf]",
use_for_checkbox => true,
class_css => "",
),
);
$table_content->db_order_by_field = "timestamp"; $table_content->db_order_by_kind = "asc"; $content = $table_content->get_table_content();
return $this->system->moduls->main->get_site_border("Kernel-Log Sites",$content);