20 <script type=
'text/javascript'>
21 window.addEvent(
'domready',
function() {
32 echo
"<div id='report_table_navigator'>\n";
34 echo
"<h2>Choose Your Data Fields</h2>";
36 foreach($this->tables as
$table)
38 $tableID =
"table_{$table->class}";
40 $tableID =
"table_{$table->class}";
41 $selected =
$table->selected ?
" selected_table" :
"";
44 echo
"<div id='$tableID' class='report_table$selected'>\n";
45 echo
"<input type='checkbox' style='display: none' name='$tableID' value='{$table->class}'$checked/>";
47 if (
$table->help) echo
"<a href='#' class='report_table_help_icon'><img src='/fakoli/images/context_help.png' alt='Help'/></a><div class='report_table_help'>{$table->help}</div>";
48 echo
$table->getTitle().
"</h3>\n";
49 echo
"<div class='columns'>";
50 echo
"<div style='display: inline-block; width: 100%'><a class='select_all' id='{$tableID}_select_all'>Select All</a><a class='show_all' id='{$tableID}_show_all'>Show All Fields</a></div>\n";
52 foreach(
$table->columns as $column)
54 $columnID =
"column_".codify($column->title);
56 $selected = $column->selected ?
" selected_column" :
"";
57 $checked = $column->selected ?
" checked='checked'" :
"";
58 $favorite = $column->favorite ?
" favorite" :
"";
60 echo
"<div class='column$selected$favorite'><input type='checkbox' class='checkbox' id='$columnID' name='$columnID' value='{$column->title}'$checked/> {$column->title}</div>\n";
63 echo
"</div></div>\n";
88 echo
"<div id='report_filter_navigator'>\n";
90 echo
"<h2>Filter Your Results</h2>";
92 foreach($this->tables as
$table)
94 $display =
$table->selected ?
"block" :
"none";
96 echo
"<div class='report_filter' id='{$table->class}' style='display: $display'><h3>".$table->getTitle().
"</h3>\n";
98 echo
"<div class='filter'>\n";
100 if ($this->
formCSS) echo
"class='{$this->formCSS}'";
104 $table->form->params->fromArray($this->request);
105 $table->form->renderSearchFields();
ReportFilterNavigator($tables)
ReportTableNavigator($tables)