Changed visual of metaconsole
This commit is contained in:
parent
674a4f2697
commit
7e1b707b64
|
@ -258,14 +258,17 @@ $table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false,
|
|||
'class="sub search"', true);
|
||||
$table->data[0][4] .= '</div>';
|
||||
|
||||
if (defined("METACONSOLE"))
|
||||
echo '<form class="filters_form" method="post" action="' . $url . '">';
|
||||
else
|
||||
if (defined("METACONSOLE")){
|
||||
$filter = '<form class="filters_form" method="post" action="' . $url . '">';
|
||||
$filter .= html_print_table ($table,true);
|
||||
$filter .= '</form>';
|
||||
ui_toggle($filter, __("Show Options"));
|
||||
}
|
||||
else{
|
||||
echo '<form method="post" action="' . $url . '">';
|
||||
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
}
|
||||
unset ($table);
|
||||
|
||||
$filter = array ();
|
||||
|
|
|
@ -132,10 +132,16 @@ if (!empty($result)) {
|
|||
$iterator++;
|
||||
|
||||
$data = array ();
|
||||
|
||||
$data[0] = "<a href='index.php?sec=gmodules&sec2=godmode/category/edit_category&action=update&id_category=" . $category["id"] . "&pure=" . (int)$config['pure'] . "'>" . $category["name"] . "</a>";
|
||||
$data[1] = "<a href='index.php?sec=gmodules&sec2=godmode/category/edit_category&action=update&id_category=".$category["id"] . "&pure=" . (int)$config['pure'] . "'>" . html_print_image("images/config.png", true, array("title" => "Edit")) . "</a> ";
|
||||
$data[1] .= '<a href="index.php?sec=gmodules&sec2=godmode/category/category&delete_category='.$category["id"] . '&pure='.(int)$config['pure'].'"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">' . html_print_image("images/cross.png", true, array("title" => "Delete")) . '</a>';
|
||||
if(defined('METACONSOLE')){
|
||||
$data[0] = "<a href='index.php?sec=advanced&sec2=godmode/category/edit_category&action=update&id_category=" . $category["id"] . "&pure=" . (int)$config['pure'] . "'>" . $category["name"] . "</a>";
|
||||
$data[1] = "<a href='index.php?sec=advanced&sec2=godmode/category/edit_category&action=update&id_category=".$category["id"] . "&pure=" . (int)$config['pure'] . "'>" . html_print_image("images/config.png", true, array("title" => "Edit")) . "</a> ";
|
||||
$data[1] .= '<a href="index.php?sec=advanced&sec2=godmode/category/category&delete_category='.$category["id"] . '&pure='.(int)$config['pure'].'"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">' . html_print_image("images/cross.png", true, array("title" => "Delete")) . '</a>';
|
||||
}
|
||||
else{
|
||||
$data[0] = "<a href='index.php?sec=gmodules&sec2=godmode/category/edit_category&action=update&id_category=" . $category["id"] . "&pure=" . (int)$config['pure'] . "'>" . $category["name"] . "</a>";
|
||||
$data[1] = "<a href='index.php?sec=gmodules&sec2=godmode/category/edit_category&action=update&id_category=".$category["id"] . "&pure=" . (int)$config['pure'] . "'>" . html_print_image("images/config.png", true, array("title" => "Edit")) . "</a> ";
|
||||
$data[1] .= '<a href="index.php?sec=gmodules&sec2=godmode/category/category&delete_category='.$category["id"] . '&pure='.(int)$config['pure'].'"onclick="if (! confirm (\''.__('Are you sure?').'\')) return false">' . html_print_image("images/cross.png", true, array("title" => "Delete")) . '</a>';
|
||||
}
|
||||
array_push ($table->data, $data);
|
||||
}
|
||||
|
||||
|
@ -145,7 +151,10 @@ if (!empty($result)) {
|
|||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||
echo "<tr>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
if(defined('METACONSOLE'))
|
||||
echo '<form method="post" action="index.php?sec=advanced&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
else
|
||||
echo '<form method="post" action="index.php?sec=gmodules&sec2=godmode/category/edit_category&action=new&pure='.(int)$config['pure'].'">';
|
||||
html_print_input_hidden ("create_category", "1", true);
|
||||
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
|
|
|
@ -212,8 +212,10 @@ foreach ($groups as $group) {
|
|||
$data = array ();
|
||||
|
||||
$tabulation = str_repeat(' ', $group['deep']);
|
||||
|
||||
$data[0] = $tabulation . '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&id='.$group['id_sg'].'">'.$group['name'].'</a>';
|
||||
if (defined("METACONSOLE"))
|
||||
$data[0] = $tabulation . '<a href="index.php?sec=advanced&sec2=godmode/modules/manage_nc_groups&id='.$group['id_sg'].'">'.$group['name'].'</a>';
|
||||
else
|
||||
$data[0] = $tabulation . '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&id='.$group['id_sg'].'">'.$group['name'].'</a>';
|
||||
|
||||
$data[1] = "<a onclick='if(confirm(\"" . __('Are you sure?') . "\")) return true; else return false;'
|
||||
href='index.php?sec=".$sec."&sec2=godmode/modules/manage_nc_groups&delete=1&id=".$group['id_sg']."&offset=0'>" .
|
||||
|
|
|
@ -493,17 +493,25 @@ $table->data[0][1] = html_print_select ($component_groups,
|
|||
$table->data[0][2] = __('Search');
|
||||
$table->data[0][3] = html_print_input_text ('search_string', $search_string, '', 25,
|
||||
255, true);
|
||||
$table->data[0][4] = '<div class="action-buttons">';
|
||||
if(defined("METACONSOLE"))
|
||||
$table->data[0][4] = '<div>';
|
||||
else
|
||||
$table->data[0][4] = '<div class="action-buttons">';
|
||||
$table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false,
|
||||
'class="sub search"', true);
|
||||
$table->data[0][4] .= '</div>';
|
||||
|
||||
if(defined("METACONSOLE"))
|
||||
echo '<form class="filters_form" method="post" action="'.$url.'">';
|
||||
else
|
||||
if(defined("METACONSOLE")){
|
||||
$filter = '<form class="filters_form" method="post" action="'.$url.'">';
|
||||
$filter .= html_print_table ($table,true);
|
||||
$filter .= '</form>';
|
||||
ui_toggle($filter, __("Show Options"));
|
||||
}
|
||||
else{
|
||||
echo '<form method="post" action="'.$url.'">';
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
html_print_table ($table);
|
||||
echo '</form>';
|
||||
}
|
||||
|
||||
$filter = array ();
|
||||
if ($search_id_group)
|
||||
|
|
|
@ -425,22 +425,40 @@ foreach ($items as $item) {
|
|||
metaconsole_restore_db();
|
||||
}
|
||||
}
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
html_print_table($table);
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
if (defined("METACONSOLE")){
|
||||
if ($items != false) {
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
html_print_table($table);
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
}else{
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
html_print_table($table);
|
||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||
|
||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||
if (defined("METACONSOLE"))
|
||||
echo "<div style='text-align: right; width:100%'>";
|
||||
else
|
||||
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>";
|
||||
|
||||
html_print_input_hidden('ids_items_to_delete', '');
|
||||
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
}
|
||||
$table = null;
|
||||
$table->width = '100%';
|
||||
$table->colspan[0][0] = 3;
|
||||
|
|
|
@ -144,14 +144,6 @@ else {
|
|||
$phone_tag = "";
|
||||
}
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
if ($action == "update") {
|
||||
echo "<div class='title_tactical'>" . __("Update Tag") . "</div>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<div class='title_tactical'>" . __("Create Tag") . "</div>";
|
||||
}
|
||||
}
|
||||
|
||||
// Create/Update tag form
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=' . $action . '&id_tag=' . $id_tag . '" enctype="multipart/form-data">';
|
||||
|
@ -162,7 +154,14 @@ if (defined('METACONSOLE'))
|
|||
echo "<table border=0 cellpadding=0 cellspacing=0 class='databox data' width=100%>";
|
||||
else
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
|
||||
if (defined('METACONSOLE')) {
|
||||
if ($action == "update") {
|
||||
echo "<th colspan=8 style='text-align:center'>" . __("Update Tag") . "</th>";
|
||||
}
|
||||
if ($action == "new") {
|
||||
echo "<th colspan=8 style='text-align:center'>" . __("Create Tag") . "</th>";
|
||||
}
|
||||
}
|
||||
echo "<tr>";
|
||||
echo "<td align='left'>";
|
||||
html_print_label (__("Name"),'name');
|
||||
|
|
|
@ -119,44 +119,45 @@ else {
|
|||
|
||||
// Form to add new tags or search tags
|
||||
if (!defined('METACONSOLE')) {
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
echo '<b>' . __("Name") . "/" . __("Description") . '</b>';
|
||||
echo "</td>";
|
||||
echo "<td align=center>";
|
||||
echo '<form method=post action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
||||
html_print_input_hidden ("search_tag", "1");
|
||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
||||
echo " ";
|
||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=new">';
|
||||
html_print_input_hidden ("create_tag", "1", true);
|
||||
html_print_submit_button (__('Create tag'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
echo '<b>' . __("Name") . "/" . __("Description") . '</b>';
|
||||
echo "</td>";
|
||||
echo "<td align=center>";
|
||||
echo '<form method=post action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
||||
html_print_input_hidden ("search_tag", "1");
|
||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
||||
echo " ";
|
||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "<td align=right>";
|
||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=new">';
|
||||
html_print_input_hidden ("create_tag", "1", true);
|
||||
html_print_submit_button (__('Create tag'), 'create_button', false, 'class="sub next"');
|
||||
echo "</form>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
}else{
|
||||
|
||||
echo '<form method=post class="filters_form" action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
||||
echo "<table border=0 cellpadding=0 cellspacing=0 class=databox_filters width=50%>";
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
echo __("Name") . "/" . __("Description");
|
||||
echo " ";
|
||||
html_print_input_hidden ("search_tag", "1");
|
||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
||||
echo "</td>";
|
||||
echo "<td>";
|
||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
echo "</table>";
|
||||
echo "</form>";
|
||||
$filters = '<form method=post class="filters_form" action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
||||
$filters .= "<table border=0 cellpadding=0 cellspacing=0 class=databox_filters width=70%>";
|
||||
$filters .= "<tr>";
|
||||
$filters .= "<td>";
|
||||
$filters .= __("Name") . "/" . __("Description");
|
||||
$filters .= " ";
|
||||
$filters .= html_print_input_hidden ("search_tag", "1",true);
|
||||
$filters .= html_print_input_text ('tag_name', $tag_name, '', 30, 255, true);
|
||||
$filters .= "</td>";
|
||||
$filters .= "<td>";
|
||||
$filters .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"',true);
|
||||
$filters .= "</td>";
|
||||
$filters .= "</tr>";
|
||||
$filters .= "</table>";
|
||||
$filters .= "</form>";
|
||||
ui_toggle($filters, __("Show Options"));
|
||||
}
|
||||
|
||||
// Prepare pagination
|
||||
|
|
|
@ -590,11 +590,15 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
$table->data[1][1] = '';
|
||||
|
||||
$table->data[1][1] .= '<div id="create_folder" style="display: none;">';
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
if(!defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
$table->data[1][1] .= '<form method="post" action="' . $url . '">';
|
||||
$table->data[1][1] .= html_print_input_text ('dirname', '', '', 15, 255, true);
|
||||
$table->data[1][1] .= html_print_submit_button (__('Create'), 'crt', false, 'class="sub next"', true);
|
||||
if(defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('create_dir', 1, true);
|
||||
$table->data[1][1] .= html_print_input_hidden('hash', md5($relative_directory . $config['dbpass']), true);
|
||||
|
@ -603,7 +607,9 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
$table->data[1][1] .= '</div>';
|
||||
|
||||
$table->data[1][1] .= '<div id="upload_file" style="display: none;">';
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close', false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
if(!defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
$table->data[1][1] .= '<form method="post" action="' . $url . '" enctype="multipart/form-data">';
|
||||
$table->data[1][1] .= ui_print_help_tip (__("The zip upload in this dir, easy to upload multiple files."), true);
|
||||
$table->data[1][1] .= html_print_input_file ('file', true, false);
|
||||
|
@ -612,6 +618,9 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
$table->data[1][1] .= __('Decompress');
|
||||
$table->data[1][1] .= ' ';
|
||||
$table->data[1][1] .= html_print_submit_button (__('Go'), 'go', false, 'class="sub next"', true);
|
||||
if(defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('real_directory', $real_directory, true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
|
||||
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), true);
|
||||
|
@ -621,10 +630,15 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
|||
$table->data[1][1] .= '</div>';
|
||||
|
||||
$table->data[1][1] .= '<div id="create_text_file" style="display: none;">';
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close', false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
if(!defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
||||
$table->data[1][1] .= '<form method="post" action="' . $url . '">';
|
||||
$table->data[1][1] .= html_print_input_text('name_file', '', '', 30, 50, true);
|
||||
$table->data[1][1] .= html_print_submit_button (__('Create'), 'create', false, 'class="sub next"', true);
|
||||
if(defined("METACONSOLE"))
|
||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
||||
false, 'show_main_buttons_folder();', "class='sub cancel'", true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('real_directory', $real_directory, true);
|
||||
$table->data[1][1] .= html_print_input_hidden ('directory', $relative_directory, true);
|
||||
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), true);
|
||||
|
|
|
@ -8291,6 +8291,7 @@ function reporting_get_events ($data, $links = false) {
|
|||
}
|
||||
else{
|
||||
$table_events->class="tactical_view";
|
||||
$table_events->styleTable="text-align:center;";
|
||||
$table_events->size[0]="10%";
|
||||
$table_events->size[1]="10%";
|
||||
$table_events->size[2]="10%";
|
||||
|
|
|
@ -322,7 +322,7 @@ if(defined('METACONSOLE')){
|
|||
$tabletags_with->class = 'nobady';
|
||||
$tabletags_with->cellspacing = 0;
|
||||
$tabletags_with->cellpadding = 0;
|
||||
$tabletags_with->styleTable = 'border: 0px; margin-top:10px';
|
||||
$tabletags_with->styleTable = 'border: 0px;';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -165,29 +165,58 @@ $table->colspan[0][1] = 2;
|
|||
$table->style[0] = 'text-align:center;';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = html_print_image("images/reporting32.png", true, array("width" => "32", "height" => "32"));
|
||||
if ($report['description'] != '') {
|
||||
$table->data[0][1] = '<div style="float:left">'.$report['description'].'</div>';
|
||||
}
|
||||
else {
|
||||
$table->data[0][1] = '<div style="float:left">'.$report['name'].'</div>';
|
||||
}
|
||||
if (defined("METACONSOLE")) {
|
||||
if ($report['description'] != '') {
|
||||
$table->data[0][1] = '<div style="">' . __("Description: ") . $report['description'] . '</div>';
|
||||
}
|
||||
else {
|
||||
$table->data[0][1] = '<div style="">' . __("Name: ") . $report['name'] . '</div>';
|
||||
}
|
||||
|
||||
$table->data[0][1] .= '<div style="text-align:right; width:100%; margin-right:50px">'.__('Set initial date') . html_print_checkbox('enable_init_date', 1, $enable_init_date, true);
|
||||
$html_enterprise = enterprise_hook('reporting_print_button_PDF', array($id_report));
|
||||
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->data[0][1] .= $html_enterprise;
|
||||
$table->data[0][1] .= '<div style=" width:100%;">'.__('Set initial date') . html_print_checkbox('enable_init_date', 1, $enable_init_date, true);
|
||||
$html_enterprise = enterprise_hook('reporting_print_button_PDF', array($id_report));
|
||||
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->data[0][1] .= $html_enterprise;
|
||||
}
|
||||
$table->data[0][1] .= '</div>';
|
||||
|
||||
$table->data[1][1] = '<div style="">' . __('From') . ': ';
|
||||
$table->data[1][1] .= html_print_input_text ('date_init', $date_init, '', 12, 10, true). ' ';
|
||||
$table->data[1][1] .= html_print_input_text ('time_init', $time_init, '', 10, 7, true). ' </div>';
|
||||
$table->data[1][2] = '<div style="display:'.$display_item.';" id="string_items">' . __('Items period before') . ':';
|
||||
$table->data[1][2] .= html_print_input_text ('date', $date, '', 12, 10, true) . ' ';
|
||||
$table->data[1][2] .= html_print_input_text ('time', $time, '', 10, 7, true) . ' ';
|
||||
$table->data[1][2] .= html_print_submit_button (__('Update'), 'date_submit', false, 'class="sub next"', true) . ' </div>';
|
||||
$table->data[1][2] .= '<div style="display:'.$display_to.';" id="string_to">' . __('to') . ':';
|
||||
$table->data[1][2] .= html_print_input_text ('date', $date, '', 12, 10, true) . ' ';
|
||||
$table->data[1][2] .= html_print_input_text ('time', $time, '', 10, 7, true) . ' ';
|
||||
$table->data[1][2] .= html_print_submit_button (__('Update'), 'date_submit', false, 'class="sub next"', true) . ' </div>';
|
||||
}
|
||||
$table->data[0][1] .= '</div>';
|
||||
else{
|
||||
if ($report['description'] != '') {
|
||||
$table->data[0][1] = '<div style="float:left">'.$report['description'].'</div>';
|
||||
}
|
||||
else {
|
||||
$table->data[0][1] = '<div style="float:left">'.$report['name'].'</div>';
|
||||
}
|
||||
|
||||
$table->data[1][1] = '<div style="float:left;padding-top:3px;">' . __('From') . ': </div>';
|
||||
$table->data[1][1] .= html_print_input_text ('date_init', $date_init, '', 12, 10, true). ' ';
|
||||
$table->data[1][1] .= html_print_input_text ('time_init', $time_init, '', 10, 7, true). ' ';
|
||||
$table->data[1][2] = '<div style="float:left;padding-top:3px;display:'.$display_item.'" id="string_items">' . __('Items period before') . ':</div>';
|
||||
$table->data[1][2] .= '<div style="float:left;padding-top:3px;display:'.$display_to.'" id="string_to">' . __('to') . ':</div>';
|
||||
$table->data[1][2] .= html_print_input_text ('date', $date, '', 12, 10, true). ' ';
|
||||
$table->data[1][2] .= html_print_input_text ('time', $time, '', 10, 7, true). ' ';
|
||||
$table->data[1][2] .= html_print_submit_button (__('Update'), 'date_submit', false, 'class="sub next"', true);
|
||||
$table->data[0][1] .= '<div style="text-align:right; width:100%; margin-right:50px">'.__('Set initial date') . html_print_checkbox('enable_init_date', 1, $enable_init_date, true);
|
||||
$html_enterprise = enterprise_hook('reporting_print_button_PDF', array($id_report));
|
||||
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
||||
$table->data[0][1] .= $html_enterprise;
|
||||
}
|
||||
$table->data[0][1] .= '</div>';
|
||||
|
||||
$table->data[1][1] = '<div style="float:left;padding-top:3px;">' . __('From') . ': </div>';
|
||||
$table->data[1][1] .= html_print_input_text ('date_init', $date_init, '', 12, 10, true). ' ';
|
||||
$table->data[1][1] .= html_print_input_text ('time_init', $time_init, '', 10, 7, true). ' ';
|
||||
$table->data[1][2] = '<div style="float:left;padding-top:3px;display:'.$display_item.'" id="string_items">' . __('Items period before') . ':</div>';
|
||||
$table->data[1][2] .= '<div style="float:left;padding-top:3px;display:'.$display_to.'" id="string_to">' . __('to') . ':</div>';
|
||||
$table->data[1][2] .= html_print_input_text ('date', $date, '', 12, 10, true). ' ';
|
||||
$table->data[1][2] .= html_print_input_text ('time', $time, '', 10, 7, true). ' ';
|
||||
$table->data[1][2] .= html_print_submit_button (__('Update'), 'date_submit', false, 'class="sub next"', true);
|
||||
|
||||
}
|
||||
|
||||
echo '<form method="post" action="'.$url.'&pure='.$config["pure"].'" style="margin-right: 0px;">';
|
||||
html_print_table ($table);
|
||||
|
|
Loading…
Reference in New Issue