Definition at line 8 of file report_table_navigator.inc.
◆ drawView()
ReportTableNavigator::drawView |
( |
| ) |
|
Definition at line 30 of file report_table_navigator.inc.
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";
◆ ReportTableNavigator()
ReportTableNavigator::ReportTableNavigator |
( |
|
$tables | ) |
|
◆ writeScript()
ReportTableNavigator::writeScript |
( |
| ) |
|
Definition at line 17 of file report_table_navigator.inc.
20 <script type=
'text/javascript'>
21 window.addEvent(
'domready',
function() {
ReportTableNavigator($tables)
◆ $tables
ReportTableNavigator::$tables |
The documentation for this class was generated from the following file: