Changed visual of metaconsole

This commit is contained in:
m-lopez-f 2015-03-12 10:27:28 +01:00
parent b47e72a151
commit d673737e2d
2 changed files with 20 additions and 9 deletions

View File

@ -124,7 +124,9 @@ $table->head[2] = __('Action') .
$table->style = array (); $table->style = array ();
$table->style[0] = 'font-weight: bold'; $table->style[0] = 'font-weight: bold';
$table->align = array (); $table->align = array ();
$table->align[1] = 'center'; if (!defined('METACONSOLE'))
$table->align[1] = 'center';
$table->align[2] = 'center'; $table->align[2] = 'center';
$table->size = array (); $table->size = array ();
$table->size[0] = '60%'; $table->size[0] = '60%';
@ -155,7 +157,7 @@ if (isset($data)) {
html_print_input_hidden('multiple_delete', 1); html_print_input_hidden('multiple_delete', 1);
html_print_table ($table); html_print_table ($table);
if (defined('METACONSOLE')) if (defined('METACONSOLE'))
echo "<div style='padding-bottom: 20px; text-align: right; width:100%'>"; echo "<div style='text-align: right; width:100%'>";
else else
echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>"; echo "<div style='padding-bottom: 20px; text-align: right; width:" . $table->width . "'>";

View File

@ -142,7 +142,10 @@ $row = array();
$row[] = __('Agent status'); $row[] = __('Agent status');
$row[] = html_print_select($agent_status_arr, "status_agent", $status_agent, '', '', 0, true); $row[] = html_print_select($agent_status_arr, "status_agent", $status_agent, '', '', 0, true);
$row[] = __('Search agent'); $row[] = __('Search agent');
$row[] = html_print_input_text("search_agent", $search_agent, '', 40, 30, true); if (defined('METACONSOLE'))
$row[] = html_print_input_text("search_agent", $search_agent, '', 70, 30, true);
else
$row[] = html_print_input_text("search_agent", $search_agent, '', 40, 30, true);
// Button // Button
$row[] = html_print_submit_button(__('Filter'), "uptbutton", false, 'class="sub search"', true); $row[] = html_print_submit_button(__('Filter'), "uptbutton", false, 'class="sub search"', true);
@ -164,22 +167,28 @@ if (!$strict_acl) {
$row[] = __('Module status'); $row[] = __('Module status');
$row[] = html_print_select($module_status_arr, "status_module", $status_module, '', '', 0, true); $row[] = html_print_select($module_status_arr, "status_module", $status_module, '', '', 0, true);
$row[] = __('Search module'); $row[] = __('Search module');
if (defined('METACONSOLE'))
$row[] = html_print_input_text("search_module", $search_module, '', 70, 30, true);
else
$row[] = html_print_input_text("search_module", $search_module, '', 40, 30, true); $row[] = html_print_input_text("search_module", $search_module, '', 40, 30, true);
$table->data[] = $row; $table->data[] = $row;
} }
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {
$table->width = "70%"; $table->width = "96%";
$table->class='tree_filters'; $table->cellpadding = "0";
echo "<div class='view_tree'>"; $table->cellspacing = "0";
$table->class='databox_filters';
$table->styleTable='padding:0px;margin-bottom:0px; ';
} }
$form_html = '<form id="tree_search" method="post" action="index.php?sec=monitoring&sec2=operation/tree&refr=0&tab='.$tab.'&pure='.$config['pure'].'">'; $form_html = '<form id="tree_search" method="post" action="index.php?sec=monitoring&sec2=operation/tree&refr=0&tab='.$tab.'&pure='.$config['pure'].'">';
$form_html .= html_print_table($table, true); $form_html .= html_print_table($table, true);
$form_html .= '</form>'; $form_html .= '</form>';
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {
echo $form_html; echo "<div class='view_tree'>";
ui_toggle($form_html, __('Show Options'));
echo "<br>"; echo "<br>";
}else{ }else{
echo "<br>"; echo "<br>";