styles review

This commit is contained in:
fbsanchez 2019-06-04 13:57:55 +02:00
parent cb1fb19b95
commit c741020538
23 changed files with 383 additions and 268 deletions

View File

@ -103,27 +103,21 @@ if (!empty($all_data)) {
$data['server_sanity'] = format_numeric((100 - $data['module_sanity']), 1); $data['server_sanity'] = format_numeric((100 - $data['module_sanity']), 1);
} }
ui_require_css_file('logon');
?> echo '<div id="welcome_panel">';
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="25%" style="padding-right: 20px;" valign="top">
<?php
// //
// Overview Table. // Overview Table.
// //
$table = new stdClass(); $table = new stdClass();
$table->class = 'databox'; $table->class = 'no-class';
$table->cellpadding = 4; $table->cellpadding = 4;
$table->cellspacing = 4; $table->cellspacing = 4;
$table->head = []; $table->head = [];
$table->data = []; $table->data = [];
$table->headstyle[0] = 'text-align:center;'; $table->headstyle[0] = 'text-align:center;';
$table->width = '100%'; $table->width = '100%';
$table->head[0] = '<span>'.__('%s Overview', get_product_name()).'</span>';
$table->head_colspan[0] = 4; $table->head_colspan[0] = 4;
// Indicators. // Indicators.
@ -166,17 +160,18 @@ if (!empty($all_data)) {
$table->data[] = $tdata; $table->data[] = $tdata;
} }
html_print_table($table); ui_toggle(
html_print_table($table, true),
__('%s Overview', get_product_name()),
'',
'overview',
false
);
unset($table); unset($table);
?>
echo '<div id="right">';
</td> // News.
<td width="75%" valign="top">
<?php
$options = []; $options = [];
$options['id_user'] = $config['id_user']; $options['id_user'] = $config['id_user'];
$options['modal'] = false; $options['modal'] = false;
@ -185,17 +180,15 @@ if (!empty($all_data)) {
if (!empty($news)) { if (!empty($news)) {
ui_require_css_file('news');
// NEWS BOARD. // NEWS BOARD.
echo '<div id="news_board">';
echo '<table cellpadding="0" width=100% cellspacing="0" class="databox filters">';
echo '<tr><th style="text-align:center;"><span >'.__('News board').'</span></th></tr>';
if ($config['prominent_time'] == 'timestamp') { if ($config['prominent_time'] == 'timestamp') {
$comparation_suffix = ''; $comparation_suffix = '';
} else { } else {
$comparation_suffix = __('ago'); $comparation_suffix = __('ago');
} }
$output_news = '<div id="news_board" class="new">';
foreach ($news as $article) { foreach ($news as $article) {
$image = false; $image = false;
if ($article['text'] == '&amp;lt;p&#x20;style=&quot;text-align:&#x20;center;&#x20;font-size:&#x20;13px;&quot;&amp;gt;Hello,&#x20;congratulations,&#x20;if&#x20;you&apos;ve&#x20;arrived&#x20;here&#x20;you&#x20;already&#x20;have&#x20;an&#x20;operational&#x20;monitoring&#x20;console.&#x20;Remember&#x20;that&#x20;our&#x20;forums&#x20;and&#x20;online&#x20;documentation&#x20;are&#x20;available&#x20;24x7&#x20;to&#x20;get&#x20;you&#x20;out&#x20;of&#x20;any&#x20;trouble.&#x20;You&#x20;can&#x20;replace&#x20;this&#x20;message&#x20;with&#x20;a&#x20;personalized&#x20;one&#x20;at&#x20;Admin&#x20;tools&#x20;-&amp;amp;gt;&#x20;Site&#x20;news.&amp;lt;/p&amp;gt;&#x20;') { if ($article['text'] == '&amp;lt;p&#x20;style=&quot;text-align:&#x20;center;&#x20;font-size:&#x20;13px;&quot;&amp;gt;Hello,&#x20;congratulations,&#x20;if&#x20;you&apos;ve&#x20;arrived&#x20;here&#x20;you&#x20;already&#x20;have&#x20;an&#x20;operational&#x20;monitoring&#x20;console.&#x20;Remember&#x20;that&#x20;our&#x20;forums&#x20;and&#x20;online&#x20;documentation&#x20;are&#x20;available&#x20;24x7&#x20;to&#x20;get&#x20;you&#x20;out&#x20;of&#x20;any&#x20;trouble.&#x20;You&#x20;can&#x20;replace&#x20;this&#x20;message&#x20;with&#x20;a&#x20;personalized&#x20;one&#x20;at&#x20;Admin&#x20;tools&#x20;-&amp;amp;gt;&#x20;Site&#x20;news.&amp;lt;/p&amp;gt;&#x20;') {
@ -204,31 +197,34 @@ if (!empty($all_data)) {
$text_bbdd = io_safe_output($article['text']); $text_bbdd = io_safe_output($article['text']);
$text = html_entity_decode($text_bbdd); $text = html_entity_decode($text_bbdd);
echo '<tr><th class="green_title">'.$article['subject'].'</th></tr>'; $output_news .= '<span class="green_title">'.$article['subject'].'</span>';
echo '<tr><td>'.__('by').' <b>'.$article['author'].'</b> <i>'.ui_print_timestamp($article['timestamp'], true).'</i> '.$comparation_suffix.'</td></tr>'; $output_news .= '<div class="new content">';
echo '<tr><td class="datos">'; $output_news .= '<p>'.__('by').' <b>'.$article['author'].'</b> <i>'.ui_print_timestamp($article['timestamp'], true).'</i> '.$comparation_suffix.'</p>';
if ($image) { if ($image) {
echo '<center><img src="./images/welcome_image.png" alt="img colabora con nosotros - Support" width="191" height="207"></center>'; $output_news .= '<center><img src="./images/welcome_image.png" alt="img colabora con nosotros - Support" width="191" height="207"></center>';
} }
echo nl2br($text); $output_news .= nl2br($text);
echo '</td></tr>'; $output_news .= '</div>';
} }
echo '</table>'; $output_news .= '</div>';
echo '</div>';
// News board. // News board.
echo '<br><br>'; ui_toggle(
$output_news,
__('News board'),
'',
'news',
false
);
// END OF NEWS BOARD. // END OF NEWS BOARD.
} }
// LAST ACTIVITY. // LAST ACTIVITY.
// Show last activity from this user. // Show last activity from this user.
echo '<div id="activity">';
$table = new stdClass(); $table = new stdClass();
$table->class = 'info_table'; $table->class = 'no-td-padding info_table';
$table->cellpadding = 0; $table->cellpadding = 0;
$table->cellspacing = 0; $table->cellspacing = 0;
$table->width = '100%'; $table->width = '100%';
@ -249,7 +245,7 @@ if (!empty($all_data)) {
$table->head[2] = __('Date'); $table->head[2] = __('Date');
$table->head[3] = __('Source IP'); $table->head[3] = __('Source IP');
$table->head[4] = __('Comments'); $table->head[4] = __('Comments');
$table->title = '<span>'.__('This is your last activity performed on the %s console', get_product_name()).'</span>'; $table->align[4] = 'left';
$sql = sprintf( $sql = sprintf(
'SELECT id_usuario,accion, ip_origen,descripcion,utimestamp 'SELECT id_usuario,accion, ip_origen,descripcion,utimestamp
FROM tsesion FROM tsesion
@ -271,7 +267,6 @@ if (!empty($all_data)) {
$session_ip_origen = $session['ip_origen']; $session_ip_origen = $session['ip_origen'];
$data[0] = '<strong>'.$session_id_usuario.'</strong>'; $data[0] = '<strong>'.$session_id_usuario.'</strong>';
$data[1] = ui_print_session_action_icon($session['accion'], true).' '.$session['accion']; $data[1] = ui_print_session_action_icon($session['accion'], true).' '.$session['accion'];
$data[2] = ui_print_help_tip( $data[2] = ui_print_help_tip(
@ -289,16 +284,22 @@ if (!empty($all_data)) {
array_push($table->data, $data); array_push($table->data, $data);
} }
echo "<div style='width:100%; overflow-x:auto;'>"; $activity .= html_print_table($table, true);
html_print_table($table);
unset($table); unset($table);
echo '</div>';
echo '</div>'; ui_toggle(
$activity,
__('Latest activity'),
'',
'activity',
false,
false,
'',
'white-box-content padded'
);
// END OF LAST ACTIVIYY. // END OF LAST ACTIVIYY.
?> // Close right panel.
echo '</div>';
// Close welcome panel.
</td> echo '</div>';
</tr>
</table>

View File

@ -94,7 +94,7 @@ $table->data[1] = $data;
$form = '<form name="query_sel" method="post" action="index.php?sec=glog&sec2=godmode/admin_access_logs">'; $form = '<form name="query_sel" method="post" action="index.php?sec=glog&sec2=godmode/admin_access_logs">';
$form .= html_print_table($table, true); $form .= html_print_table($table, true);
$form .= '</form>'; $form .= '</form>';
ui_toggle($form, __('Filter'), '', false); ui_toggle($form, __('Filter'), '', '', false);
$filter = '1=1'; $filter = '1=1';

View File

@ -781,7 +781,7 @@ ui_toggle(
$table_adv_options, $table_adv_options,
__('Advanced options'), __('Advanced options'),
'', '',
true, '',
false, false,
'', '',
'padding-4' 'padding-4'
@ -907,7 +907,7 @@ if (!empty($fields)) {
html_print_table($table, true), html_print_table($table, true),
__('Custom fields'), __('Custom fields'),
'', '',
true, '',
false, false,
'white_box white_box_opened', 'white_box white_box_opened',
'no-border' 'no-border'

View File

@ -586,7 +586,8 @@ echo '<form method="post" id="module_form">';
ui_toggle( ui_toggle(
html_print_table($table_simple, true), html_print_table($table_simple, true),
__('Base options'), __('Base options'),
true, '',
'',
false false
); );

View File

@ -414,7 +414,7 @@ if ($edit_container) {
echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>"; echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
echo '<tr>'; echo '<tr>';
echo '<td>'; echo '<td>';
echo ui_toggle($single_table, 'Simple module graph', '', true, true); echo ui_toggle($single_table, 'Simple module graph', '', '', true);
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';
echo '</table>'; echo '</table>';
@ -466,7 +466,7 @@ if ($edit_container) {
echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>"; echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
echo '<tr>'; echo '<tr>';
echo '<td>'; echo '<td>';
echo ui_toggle(html_print_table($table, true), 'Custom graph', '', true, true); echo ui_toggle(html_print_table($table, true), 'Custom graph', '', '', true);
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';
echo '</table>'; echo '</table>';
@ -561,7 +561,7 @@ if ($edit_container) {
echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>"; echo "<table width='100%' cellpadding=4 cellspacing=4 class='databox filters'>";
echo '<tr>'; echo '<tr>';
echo '<td>'; echo '<td>';
echo ui_toggle(html_print_table($table, true), 'Dynamic rules for simple module graph', '', true, true); echo ui_toggle(html_print_table($table, true), 'Dynamic rules for simple module graph', '', '', true);
echo '</td>'; echo '</td>';
echo '</tr>'; echo '</tr>';
echo '</table>'; echo '</table>';

View File

@ -234,7 +234,8 @@ if ($tiny) {
ui_toggle( ui_toggle(
html_print_table($table, true), html_print_table($table, true),
__('Tactical server information'), __('Tactical server information'),
false, '',
'',
$hidden_toggle $hidden_toggle
); );
} else { } else {

View File

@ -297,7 +297,14 @@ if (defined('METACONSOLE')) {
$form_filter = "<form method='post'>"; $form_filter = "<form method='post'>";
$form_filter .= html_print_table($table, true); $form_filter .= html_print_table($table, true);
$form_filter .= '</form>'; $form_filter .= '</form>';
ui_toggle($form_filter, __('Users control filter'), __('Toggle filter(s)'), !$search); ui_toggle(
$form_filter,
__('Users control filter'),
__('Toggle filter(s)'),
'',
'',
!$search
);
} }
// Urls to sort the table. // Urls to sort the table.

View File

@ -651,20 +651,24 @@ class DiscoveryTaskList extends Wizard
array_push($table->data, $data); array_push($table->data, $data);
} }
echo '<h2>'.__('Server tasks').'</h2>';
if (empty($table->data)) { if (empty($table->data)) {
echo '<div class="nf">'.__('Server').' '.$server_name.' '.__('has no discovery tasks assigned').'</div>'; $content = '<div class="nf">'.__('Server').' '.$server_name.' '.__('has no discovery tasks assigned').'</div>';
return false; $return = false;
} else { } else {
html_print_table($table); $content = html_print_table($table, true);
$return = true;
} }
ui_toggle($content, __('Server Tasks'), '', '', false);
// Div neccesary for modal map task. // Div neccesary for modal map task.
echo '<div id="map_task" style="display:none"></div>'; echo '<div id="map_task" style="display:none"></div>';
unset($table); unset($table);
ui_require_javascript_file('pandora_taskList'); ui_require_javascript_file('pandora_taskList');
return $return;
} }
return true; return true;

View File

@ -2845,8 +2845,9 @@ class NetworkMap
html_print_table($table, true), html_print_table($table, true),
__('Node Details'), __('Node Details'),
__('Node Details'), __('Node Details'),
'',
false, false,
true false
); );
$output .= '</div>'; $output .= '</div>';
@ -2897,6 +2898,7 @@ class NetworkMap
html_print_table($table, true), html_print_table($table, true),
__('Node Details'), __('Node Details'),
__('Node Details'), __('Node Details'),
'',
false, false,
true true
); );
@ -2922,6 +2924,7 @@ class NetworkMap
html_print_table($table, true), html_print_table($table, true),
__('Interface Information (SNMP)'), __('Interface Information (SNMP)'),
__('Interface Information (SNMP)'), __('Interface Information (SNMP)'),
'',
true, true,
true true
); );
@ -2996,6 +2999,7 @@ class NetworkMap
html_print_table($table, true), html_print_table($table, true),
__('Node options'), __('Node options'),
__('Node options'), __('Node options'),
'',
true, true,
true true
); );
@ -3056,6 +3060,7 @@ class NetworkMap
html_print_table($table, true), html_print_table($table, true),
__('Relations'), __('Relations'),
__('Relations'), __('Relations'),
'',
true, true,
true true
); );
@ -3165,6 +3170,7 @@ class NetworkMap
$add_agent_node_html, $add_agent_node_html,
__('Add agent node'), __('Add agent node'),
__('Add agent node'), __('Add agent node'),
'',
false, false,
true true
); );
@ -3216,6 +3222,7 @@ class NetworkMap
$add_agent_node_html, $add_agent_node_html,
__('Add agent node (filter by group)'), __('Add agent node (filter by group)'),
__('Add agent node'), __('Add agent node'),
'',
true, true,
true true
); );
@ -3256,6 +3263,7 @@ class NetworkMap
$add_agent_node_html, $add_agent_node_html,
__('Add fictional point'), __('Add fictional point'),
__('Add agent node'), __('Add agent node'),
'',
true, true,
true true
); );

View File

@ -900,10 +900,10 @@ function snmp_browser_print_container($return=false, $width='100%', $height='500
$output .= '<div id="snmp3_browser_options" style="display: none;">'; $output .= '<div id="snmp3_browser_options" style="display: none;">';
} }
$output .= ui_toggle(html_print_table($table3, true), __('SNMP v3 options'), '', true, true); $output .= ui_toggle(html_print_table($table3, true), __('SNMP v3 options'), '', '', true, true);
$output .= '</div>'; $output .= '</div>';
$output .= '<div style="width: 100%; padding-top: 10px;">'; $output .= '<div style="width: 100%; padding-top: 10px;">';
$output .= ui_toggle(html_print_table($table2, true), __('Search options'), '', true, true); $output .= ui_toggle(html_print_table($table2, true), __('Search options'), '', '', true, true);
$output .= '</div>'; $output .= '</div>';
// SNMP tree container // SNMP tree container

View File

@ -670,7 +670,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
$agent_table .= '<br>'; $agent_table .= '<br>';
// print agent data toggle // print agent data toggle
ui_toggle($agent_table, __('Agent data'), '', false); ui_toggle($agent_table, __('Agent data'), '', '', false);
// Advanced data // Advanced data
$table = new StdClass(); $table = new StdClass();

View File

@ -2924,9 +2924,12 @@ function ui_print_event_priority(
* @param string $code Html code. * @param string $code Html code.
* @param string $name Name of the link. * @param string $name Name of the link.
* @param string $title Title of the link. * @param string $title Title of the link.
* @param string $id Block id.
* @param boolean $hidden_default If the div will be hidden by default (default: true). * @param boolean $hidden_default If the div will be hidden by default (default: true).
* @param boolean $return Whether to return an output string or echo now (default: true). * @param boolean $return Whether to return an output string or echo now (default: true).
* @param string $toggle_class Toggle class. * @param string $toggle_class Toggle class.
* @param string $container_class Container class.
* @param string $main_class Main object class.
* *
* @return string HTML. * @return string HTML.
*/ */
@ -2934,10 +2937,12 @@ function ui_toggle(
$code, $code,
$name, $name,
$title='', $title='',
$id='',
$hidden_default=true, $hidden_default=true,
$return=false, $return=false,
$toggle_class='', $toggle_class='',
$container_class='white-box-content' $container_class='white-box-content',
$main_class='box-shadow white_table_graph'
) { ) {
// Generate unique Id. // Generate unique Id.
$uniqid = uniqid(''); $uniqid = uniqid('');
@ -2954,7 +2959,7 @@ function ui_toggle(
} }
// Link to toggle. // Link to toggle.
$output = '<div class="box-shadow white_table_graph">'; $output = '<div class="'.$main_class.'" id="'.$id.'">';
$output .= '<div class="white_table_graph_header" style="cursor: pointer;" id="tgl_ctrl_'.$uniqid.'">'.html_print_image( $output .= '<div class="white_table_graph_header" style="cursor: pointer;" id="tgl_ctrl_'.$uniqid.'">'.html_print_image(
$original, $original,
true, true,

View File

@ -19,6 +19,10 @@ div.agent_details_agent_alias * {
font-family: "lato-bolder", "Open Sans", sans-serif; font-family: "lato-bolder", "Open Sans", sans-serif;
} }
#module_list {
width: 100%;
}
#module_filter_agent_view tr td { #module_filter_agent_view tr td {
padding-bottom: 3em; padding-bottom: 3em;
} }

View File

@ -16,7 +16,7 @@ div#foot {
background: #343434; background: #343434;
clear: both; clear: both;
width: auto; width: auto;
height: 4em; height: 41px;
margin-top: auto; margin-top: auto;
box-sizing: border-box; box-sizing: border-box;
} }

View File

@ -0,0 +1,24 @@
#welcome_panel {
display: flex;
flex-direction: row;
}
#overview {
width: 30em;
min-width: 30em;
margin-top: 15px;
align-self: start;
}
#right {
flex: 1;
}
#news {
flex: 1 1 auto;
margin: 15px;
}
#activity {
flex: 1 1 auto;
margin: 15px;
}

View File

@ -0,0 +1,14 @@
.green_title {
background-color: #82b92e;
font-weight: 600;
width: 100%;
text-align: center;
display: block;
padding: 1em;
font-size: 1.3em;
color: #fff;
}
.new.content {
padding: 0 4em 2em;
}

View File

@ -2145,7 +2145,8 @@ td.cellBig {
} }
.info_box { .info_box {
background: #f9faf9; background: #fff;
box-shadow: 0px 0px 15px -10px #888;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
padding: 0px 5px 5px 10px; padding: 0px 5px 5px 10px;
@ -3151,6 +3152,10 @@ div.div_groups_status {
border-radius: 100px; border-radius: 100px;
} }
.databox.pies {
border: none;
}
.databox.pies fieldset.tactical_set { .databox.pies fieldset.tactical_set {
width: 100%; width: 100%;
min-height: 285px; min-height: 285px;
@ -3227,61 +3232,6 @@ div.div_groups_status {
border: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
} }
.databox.filters,
.databox.data {
margin-bottom: 20px;
}
.databox.filters > tbody > tr > td {
padding: 10px;
padding-left: 20px;
}
.databox.filters > tbody > tr > td > img,
.databox.filters > tbody > tr > td > div > a > img,
.databox.filters > tbody > tr > td > span > img,
.databox.filters > tbody > tr > td > span > a > img,
.databox.filters > tbody > tr > td > a > img {
vertical-align: middle;
margin-left: 5px;
}
.databox.data > tbody > tr > td > img,
.databox.data > thead > tr > th > img,
.databox.data > tbody > tr > td > div > a > img,
.databox.data > tbody > tr > td > span > img,
.databox.data > tbody > tr > td > span > a > img,
.databox.data > tbody > tr > td > a > img,
.databox.data > tbody > tr > td > form > a > img {
vertical-align: middle;
}
.databox.filters > tbody > tr > td > a > img {
vertical-align: middle;
}
.databox.data > tbody > tr > td > input[type="checkbox"] {
margin: 0px;
}
.databox_color > tbody > tr > td {
padding-left: 10px;
}
.databox.agente > tbody > tr > td > div > canvas {
width: 100%;
text-align: left;
}
.databox.agente > tbody > tr > td > div.graph {
width: 100%;
text-align: left;
}
.green_title {
background-color: #82b92e;
font-weight: normal;
text-align: center;
}
.dashboard { .dashboard {
top: 23px; top: 23px;
} }
@ -3935,9 +3885,6 @@ span.log_zone_line_error {
.rowOdd:hover { .rowOdd:hover {
background-color: #eee; background-color: #eee;
} }
.databox.data > tbody > tr:hover {
background-color: #eee;
}
.checkselected { .checkselected {
background-color: #eee; background-color: #eee;
} }
@ -5688,6 +5635,11 @@ div#status_pie {
padding-left: 10px; padding-left: 10px;
} }
.white-box-content.padded {
padding-top: 2em;
padding-bottom: 2em;
}
.white-box-content { .white-box-content {
width: 100%; width: 100%;
height: 100%; height: 100%;

View File

@ -26,6 +26,68 @@
width: 33%; width: 33%;
} }
.white-box-content > form > .databox.filters {
border: none;
}
.databox.filters {
background: #fff;
padding: 1em 0;
}
.databox.filters,
.databox.data {
margin-bottom: 20px;
}
.databox.filters > tbody > tr > td {
padding: 10px;
padding-left: 20px;
}
.databox.filters > tbody > tr > td > img,
.databox.filters > tbody > tr > td > div > a > img,
.databox.filters > tbody > tr > td > span > img,
.databox.filters > tbody > tr > td > span > a > img,
.databox.filters > tbody > tr > td > a > img {
vertical-align: middle;
margin-left: 5px;
}
.databox.filters > tbody > tr > td > a > img {
vertical-align: middle;
}
.databox.data > tbody > tr > td > img,
.databox.data > thead > tr > th > img,
.databox.data > tbody > tr > td > div > a > img,
.databox.data > tbody > tr > td > span > img,
.databox.data > tbody > tr > td > span > a > img,
.databox.data > tbody > tr > td > a > img,
.databox.data > tbody > tr > td > form > a > img {
vertical-align: middle;
}
.databox.data > tbody > tr:hover {
background-color: #eee;
}
.databox.data > tbody > tr > td > input[type="checkbox"] {
margin: 0px;
}
.databox_color > tbody > tr > td {
padding-left: 10px;
}
.databox.agente > tbody > tr > td > div > canvas {
width: 100%;
text-align: left;
}
.databox.agente > tbody > tr > td > div.graph {
width: 100%;
text-align: left;
}
.info_table { .info_table {
background-color: #fff; background-color: #fff;
margin-bottom: 10px; margin-bottom: 10px;
@ -57,6 +119,11 @@
border-bottom: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2;
} }
.info_table > thead > tr {
height: 3em;
vertical-align: top;
}
/* Radius top */ /* Radius top */
.info_table > thead > tr:first-child > th:first-child { .info_table > thead > tr:first-child > th:first-child {
border-top-left-radius: 4px; border-top-left-radius: 4px;
@ -93,12 +160,17 @@
-webkit-border-radius: 0px; -webkit-border-radius: 0px;
border-radius: 0px; border-radius: 0px;
border: none; border: none;
padding-left: 9px; padding-left: 0px;
padding-right: 9px; padding-right: 0px;
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
} }
.info_table.no-td-padding td {
padding-left: 0;
padding-right: 0;
}
.info_table > tbody > tr > td > img, .info_table > tbody > tr > td > img,
.info_table > thead > tr > th > img, .info_table > thead > tr > th > img,
.info_table > tbody > tr > td > div > a > img, .info_table > tbody > tr > td > div > a > img,
@ -131,6 +203,18 @@
font-weight: normal; font-weight: normal;
} }
.databox.datos2 {
background: #f5f5f5;
}
.databox.datos {
background: #fff;
}
.filters input {
background: #fbfbfb;
}
.datos4 { .datos4 {
/*Add because in php the function html_print_table write style in cell and this is style head.*/ /*Add because in php the function html_print_table write style in cell and this is style head.*/
text-align: center; text-align: center;
@ -141,7 +225,7 @@
.info_table .datos3 *, .info_table .datos3 *,
.info_table .datos4 * { .info_table .datos4 * {
font-size: 8.6pt; font-size: 8.6pt;
font-weight: normal; font-weight: 600;
padding: 1.3em 0; padding: 1.3em 0;
} }

View File

@ -255,7 +255,7 @@ $htmlForm .= html_print_button(
$htmlForm .= '</div>'; $htmlForm .= '</div>';
$htmlForm .= '</form>'; $htmlForm .= '</form>';
ui_toggle($htmlForm, __('Filter graphs'), __('Toggle filter(s)'), false); ui_toggle($htmlForm, __('Filter graphs'), __('Toggle filter(s)'), '', false);
$utime = get_system_time(); $utime = get_system_time();
$current = date('Y-m-d', $utime); $current = date('Y-m-d', $utime);

View File

@ -25,6 +25,7 @@ ui_toggle(
"<div style='width: 100%;' id='event_list'>".html_print_image('images/spinner.gif', true).'</div>', "<div style='width: 100%;' id='event_list'>".html_print_image('images/spinner.gif', true).'</div>',
__('Latest events for this agent'), __('Latest events for this agent'),
__('Latest events for this agent'), __('Latest events for this agent'),
'',
false, false,
false, false,
'', '',

View File

@ -421,7 +421,7 @@ if (!is_metaconsole()) {
$table->data[0][5] = html_print_select($rows_select, 'modulegroup', $modulegroup, '', __('All'), -1, true, false, true, '', false, 'width: 120px;'); $table->data[0][5] = html_print_select($rows_select, 'modulegroup', $modulegroup, '', __('All'), -1, true, false, true, '', false, 'width: 120px;');
$table->rowspan[0][6] = 2; $table->rowspan[0][6] = 3;
$table->data[0][6] = html_print_submit_button( $table->data[0][6] = html_print_submit_button(
__('Show'), __('Show'),
'uptbutton', 'uptbutton',
@ -705,13 +705,14 @@ if (is_metaconsole()) {
html_print_table($table_custom_fields, true), html_print_table($table_custom_fields, true),
__('Advanced Options'), __('Advanced Options'),
'', '',
'',
true, true,
true true
); );
$filters .= html_print_table($table, true); $filters .= html_print_table($table, true);
$filters .= '</form>'; $filters .= '</form>';
ui_toggle($filters, __('Show Options'), '', false); ui_toggle($filters, __('Show Options'), '', '', false);
} else { } else {
$table->colspan[3][0] = 7; $table->colspan[3][0] = 7;
$table->cellstyle[3][0] = 'padding-left: 10px;'; $table->cellstyle[3][0] = 'padding-left: 10px;';
@ -722,8 +723,12 @@ if (is_metaconsole()) {
), ),
__('Agent custom fields'), __('Agent custom fields'),
'', '',
'',
true, true,
true true,
'',
'white-box-content',
'white_table_graph'
); );
$filters .= html_print_table($table, true); $filters .= html_print_table($table, true);

View File

@ -168,7 +168,8 @@ if ($is_admin) {
ui_toggle( ui_toggle(
html_print_table($table, true), html_print_table($table, true),
__('Report of State'), __('Report of State'),
true, '',
'',
false false
); );
@ -194,7 +195,8 @@ if (check_acl($config['id_user'], 0, 'ER')) {
ui_toggle( ui_toggle(
$events, $events,
__('Latest events'), __('Latest events'),
false, '',
'',
false false
); );
} }
@ -219,7 +221,8 @@ $out = '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-t
ui_toggle( ui_toggle(
$out, $out,
__('Event graphs'), __('Event graphs'),
true, '',
'',
false false
); );

View File

@ -992,6 +992,7 @@ $data[0] = ui_toggle(
html_print_table($table_advanced, true), html_print_table($table_advanced, true),
__('Advanced options'), __('Advanced options'),
'', '',
'',
true, true,
true true
); );