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);
|
'class="sub search"', true);
|
||||||
$table->data[0][4] .= '</div>';
|
$table->data[0][4] .= '</div>';
|
||||||
|
|
||||||
if (defined("METACONSOLE"))
|
if (defined("METACONSOLE")){
|
||||||
echo '<form class="filters_form" method="post" action="' . $url . '">';
|
$filter = '<form class="filters_form" method="post" action="' . $url . '">';
|
||||||
else
|
$filter .= html_print_table ($table,true);
|
||||||
|
$filter .= '</form>';
|
||||||
|
ui_toggle($filter, __("Show Options"));
|
||||||
|
}
|
||||||
|
else{
|
||||||
echo '<form method="post" action="' . $url . '">';
|
echo '<form method="post" action="' . $url . '">';
|
||||||
|
html_print_table ($table);
|
||||||
html_print_table ($table);
|
echo '</form>';
|
||||||
echo '</form>';
|
}
|
||||||
|
|
||||||
unset ($table);
|
unset ($table);
|
||||||
|
|
||||||
$filter = array ();
|
$filter = array ();
|
||||||
|
|
|
@ -132,10 +132,16 @@ if (!empty($result)) {
|
||||||
$iterator++;
|
$iterator++;
|
||||||
|
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
if(defined('METACONSOLE')){
|
||||||
$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[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=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=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=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>';
|
$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);
|
array_push ($table->data, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +151,10 @@ if (!empty($result)) {
|
||||||
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
echo "<table border=0 cellpadding=0 cellspacing=0 class='' width=100%>";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td align=right>";
|
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_input_hidden ("create_category", "1", true);
|
||||||
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
html_print_submit_button (__('Create category'), 'create_button', false, 'class="sub next"');
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
|
|
|
@ -212,8 +212,10 @@ foreach ($groups as $group) {
|
||||||
$data = array ();
|
$data = array ();
|
||||||
|
|
||||||
$tabulation = str_repeat(' ', $group['deep']);
|
$tabulation = str_repeat(' ', $group['deep']);
|
||||||
|
if (defined("METACONSOLE"))
|
||||||
$data[0] = $tabulation . '<a href="index.php?sec=gmodules&sec2=godmode/modules/manage_nc_groups&id='.$group['id_sg'].'">'.$group['name'].'</a>';
|
$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;'
|
$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'>" .
|
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][2] = __('Search');
|
||||||
$table->data[0][3] = html_print_input_text ('search_string', $search_string, '', 25,
|
$table->data[0][3] = html_print_input_text ('search_string', $search_string, '', 25,
|
||||||
255, true);
|
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,
|
$table->data[0][4] .= html_print_submit_button (__('Search'), 'search', false,
|
||||||
'class="sub search"', true);
|
'class="sub search"', true);
|
||||||
$table->data[0][4] .= '</div>';
|
$table->data[0][4] .= '</div>';
|
||||||
|
|
||||||
if(defined("METACONSOLE"))
|
if(defined("METACONSOLE")){
|
||||||
echo '<form class="filters_form" method="post" action="'.$url.'">';
|
$filter = '<form class="filters_form" method="post" action="'.$url.'">';
|
||||||
else
|
$filter .= html_print_table ($table,true);
|
||||||
|
$filter .= '</form>';
|
||||||
|
ui_toggle($filter, __("Show Options"));
|
||||||
|
}
|
||||||
|
else{
|
||||||
echo '<form method="post" action="'.$url.'">';
|
echo '<form method="post" action="'.$url.'">';
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
|
}
|
||||||
|
|
||||||
$filter = array ();
|
$filter = array ();
|
||||||
if ($search_id_group)
|
if ($search_id_group)
|
||||||
|
|
|
@ -425,22 +425,40 @@ foreach ($items as $item) {
|
||||||
metaconsole_restore_db();
|
metaconsole_restore_db();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
if (defined("METACONSOLE")){
|
||||||
html_print_table($table);
|
if ($items != false) {
|
||||||
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
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);
|
||||||
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
ui_pagination ($countItems, 'index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=edit&id_report=' . $idReport . $urlFilter);
|
||||||
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
echo "<form action='index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete_items&id_report=" . $idReport . "'
|
||||||
if (defined("METACONSOLE"))
|
method='post' onSubmit='return added_ids_deleted_items_to_hidden_input();'>";
|
||||||
echo "<div style='text-align: right; width:100%'>";
|
if (defined("METACONSOLE"))
|
||||||
else
|
echo "<div style='text-align: right; width:100%'>";
|
||||||
echo "<div style='padding-bottom: 20px; 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"');
|
html_print_input_hidden('ids_items_to_delete', '');
|
||||||
echo "</div>";
|
html_print_submit_button(__('Delete'), 'delete_btn', false, 'class="sub delete"');
|
||||||
echo "</form>";
|
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 = null;
|
||||||
$table->width = '100%';
|
$table->width = '100%';
|
||||||
$table->colspan[0][0] = 3;
|
$table->colspan[0][0] = 3;
|
||||||
|
|
|
@ -144,14 +144,6 @@ else {
|
||||||
$phone_tag = "";
|
$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
|
// 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">';
|
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%>";
|
echo "<table border=0 cellpadding=0 cellspacing=0 class='databox data' width=100%>";
|
||||||
else
|
else
|
||||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
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 "<tr>";
|
||||||
echo "<td align='left'>";
|
echo "<td align='left'>";
|
||||||
html_print_label (__("Name"),'name');
|
html_print_label (__("Name"),'name');
|
||||||
|
|
|
@ -119,44 +119,45 @@ else {
|
||||||
|
|
||||||
// Form to add new tags or search tags
|
// Form to add new tags or search tags
|
||||||
if (!defined('METACONSOLE')) {
|
if (!defined('METACONSOLE')) {
|
||||||
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
echo "<table border=0 cellpadding=4 cellspacing=4 class=databox width=98%>";
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
echo '<b>' . __("Name") . "/" . __("Description") . '</b>';
|
echo '<b>' . __("Name") . "/" . __("Description") . '</b>';
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td align=center>";
|
echo "<td align=center>";
|
||||||
echo '<form method=post action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
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_hidden ("search_tag", "1");
|
||||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
||||||
echo " ";
|
echo " ";
|
||||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "<td align=right>";
|
echo "<td align=right>";
|
||||||
echo '<form method="post" action="index.php?sec='.$sec.'&sec2=godmode/tag/edit_tag&action=new">';
|
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_input_hidden ("create_tag", "1", true);
|
||||||
html_print_submit_button (__('Create tag'), 'create_button', false, 'class="sub next"');
|
html_print_submit_button (__('Create tag'), 'create_button', false, 'class="sub next"');
|
||||||
echo "</form>";
|
echo "</form>";
|
||||||
echo "</td>";
|
echo "</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
echo '<form method=post class="filters_form" action="index.php?sec='.$sec.'&sec2=godmode/tag/tag&delete_tag=0">';
|
$filters = '<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%>";
|
$filters .= "<table border=0 cellpadding=0 cellspacing=0 class=databox_filters width=70%>";
|
||||||
echo "<tr>";
|
$filters .= "<tr>";
|
||||||
echo "<td>";
|
$filters .= "<td>";
|
||||||
echo __("Name") . "/" . __("Description");
|
$filters .= __("Name") . "/" . __("Description");
|
||||||
echo " ";
|
$filters .= " ";
|
||||||
html_print_input_hidden ("search_tag", "1");
|
$filters .= html_print_input_hidden ("search_tag", "1",true);
|
||||||
html_print_input_text ('tag_name', $tag_name, '', 30, 255, false);
|
$filters .= html_print_input_text ('tag_name', $tag_name, '', 30, 255, true);
|
||||||
echo "</td>";
|
$filters .= "</td>";
|
||||||
echo "<td>";
|
$filters .= "<td>";
|
||||||
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"');
|
$filters .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"',true);
|
||||||
echo "</td>";
|
$filters .= "</td>";
|
||||||
echo "</tr>";
|
$filters .= "</tr>";
|
||||||
echo "</table>";
|
$filters .= "</table>";
|
||||||
echo "</form>";
|
$filters .= "</form>";
|
||||||
|
ui_toggle($filters, __("Show Options"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare pagination
|
// Prepare pagination
|
||||||
|
|
|
@ -590,11 +590,15 @@ function filemanager_file_explorer($real_directory, $relative_directory,
|
||||||
$table->data[1][1] = '';
|
$table->data[1][1] = '';
|
||||||
|
|
||||||
$table->data[1][1] .= '<div id="create_folder" style="display: none;">';
|
$table->data[1][1] .= '<div id="create_folder" style="display: none;">';
|
||||||
$table->data[1][1] .= html_print_button(__('Close'), 'close',
|
if(!defined("METACONSOLE"))
|
||||||
false, 'show_main_buttons_folder();', "class='sub cancel' style='float: left;'", true);
|
$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] .= '<form method="post" action="' . $url . '">';
|
||||||
$table->data[1][1] .= html_print_input_text ('dirname', '', '', 15, 255, true);
|
$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);
|
$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 ('directory', $relative_directory, true);
|
||||||
$table->data[1][1] .= html_print_input_hidden ('create_dir', 1, 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);
|
$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>';
|
||||||
|
|
||||||
$table->data[1][1] .= '<div id="upload_file" style="display: none;">';
|
$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] .= '<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] .= 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);
|
$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] .= __('Decompress');
|
||||||
$table->data[1][1] .= ' ';
|
$table->data[1][1] .= ' ';
|
||||||
$table->data[1][1] .= html_print_submit_button (__('Go'), 'go', false, 'class="sub next"', true);
|
$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 ('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 ('directory', $relative_directory, true);
|
||||||
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), 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>';
|
||||||
|
|
||||||
$table->data[1][1] .= '<div id="create_text_file" style="display: none;">';
|
$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] .= '<form method="post" action="' . $url . '">';
|
||||||
$table->data[1][1] .= html_print_input_text('name_file', '', '', 30, 50, true);
|
$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);
|
$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 ('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 ('directory', $relative_directory, true);
|
||||||
$table->data[1][1] .= html_print_input_hidden('hash', md5($real_directory . $relative_directory . $config['dbpass']), 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{
|
else{
|
||||||
$table_events->class="tactical_view";
|
$table_events->class="tactical_view";
|
||||||
|
$table_events->styleTable="text-align:center;";
|
||||||
$table_events->size[0]="10%";
|
$table_events->size[0]="10%";
|
||||||
$table_events->size[1]="10%";
|
$table_events->size[1]="10%";
|
||||||
$table_events->size[2]="10%";
|
$table_events->size[2]="10%";
|
||||||
|
|
|
@ -322,7 +322,7 @@ if(defined('METACONSOLE')){
|
||||||
$tabletags_with->class = 'nobady';
|
$tabletags_with->class = 'nobady';
|
||||||
$tabletags_with->cellspacing = 0;
|
$tabletags_with->cellspacing = 0;
|
||||||
$tabletags_with->cellpadding = 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->style[0] = 'text-align:center;';
|
||||||
$table->data = array ();
|
$table->data = array ();
|
||||||
$table->data[0][0] = html_print_image("images/reporting32.png", true, array("width" => "32", "height" => "32"));
|
$table->data[0][0] = html_print_image("images/reporting32.png", true, array("width" => "32", "height" => "32"));
|
||||||
if ($report['description'] != '') {
|
if (defined("METACONSOLE")) {
|
||||||
$table->data[0][1] = '<div style="float:left">'.$report['description'].'</div>';
|
if ($report['description'] != '') {
|
||||||
}
|
$table->data[0][1] = '<div style="">' . __("Description: ") . $report['description'] . '</div>';
|
||||||
else {
|
}
|
||||||
$table->data[0][1] = '<div style="float:left">'.$report['name'].'</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);
|
$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));
|
$html_enterprise = enterprise_hook('reporting_print_button_PDF', array($id_report));
|
||||||
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
||||||
$table->data[0][1] .= $html_enterprise;
|
$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[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);
|
||||||
$table->data[1][1] .= html_print_input_text ('date_init', $date_init, '', 12, 10, true). ' ';
|
$html_enterprise = enterprise_hook('reporting_print_button_PDF', array($id_report));
|
||||||
$table->data[1][1] .= html_print_input_text ('time_init', $time_init, '', 10, 7, true). ' ';
|
if ($html_enterprise !== ENTERPRISE_NOT_HOOK) {
|
||||||
$table->data[1][2] = '<div style="float:left;padding-top:3px;display:'.$display_item.'" id="string_items">' . __('Items period before') . ':</div>';
|
$table->data[0][1] .= $html_enterprise;
|
||||||
$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[0][1] .= '</div>';
|
||||||
$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[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;">';
|
echo '<form method="post" action="'.$url.'&pure='.$config["pure"].'" style="margin-right: 0px;">';
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
|
|
Loading…
Reference in New Issue