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

View File

@ -142,6 +142,9 @@ $row = array();
$row[] = __('Agent status');
$row[] = html_print_select($agent_status_arr, "status_agent", $status_agent, '', '', 0, true);
$row[] = __('Search agent');
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
@ -164,22 +167,28 @@ if (!$strict_acl) {
$row[] = __('Module status');
$row[] = html_print_select($module_status_arr, "status_module", $status_module, '', '', 0, true);
$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);
$table->data[] = $row;
}
if (defined('METACONSOLE')) {
$table->width = "70%";
$table->class='tree_filters';
echo "<div class='view_tree'>";
$table->width = "96%";
$table->cellpadding = "0";
$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 .= html_print_table($table, true);
$form_html .= '</form>';
if (defined('METACONSOLE')) {
echo $form_html;
echo "<div class='view_tree'>";
ui_toggle($form_html, __('Show Options'));
echo "<br>";
}else{
echo "<br>";