Modify styles in tactical view and tables is responsibe with window size

This commit is contained in:
m-lopez-f 2015-04-15 11:28:07 +02:00
parent 25277eb550
commit a77d962590
3 changed files with 17 additions and 7 deletions

View File

@ -2095,6 +2095,9 @@ function ui_toggle($code, $name, $title = '', $hidden_default = true, $return =
$output .= '<a href="javascript:" id="tgl_ctrl_'.$uniqid.'">' . html_print_image ($original, true, array ("title" => $title, "id" => "image_".$uniqid)) . '&nbsp;&nbsp;<b>'.$name.'</b></a>'; $output .= '<a href="javascript:" id="tgl_ctrl_'.$uniqid.'">' . html_print_image ($original, true, array ("title" => $title, "id" => "image_".$uniqid)) . '&nbsp;&nbsp;<b>'.$name.'</b></a>';
$output .= '<br />'; $output .= '<br />';
if (!defined("METACONSOLE"))
$output .= '<br />';
// Code into a div // Code into a div
$output .= "<div id='tgl_div_".$uniqid."' style='".$style."'>\n"; $output .= "<div id='tgl_div_".$uniqid."' style='".$style."'>\n";
$output .= $code; $output .= $code;

View File

@ -1357,8 +1357,9 @@ table.databox {
.tactical_set{ .tactical_set{
background: #FFF; background: #FFF;
border: 1px solid #E2E2E2; border: 1px solid #E2E2E2;
margin-left: 10%; margin-left: auto;
width: 71%; margin-right: auto;
width: auto;
} }
/* For use in Netflow */ /* For use in Netflow */
@ -2825,8 +2826,9 @@ table#policy_modules td * {
} }
.status_tactical{ .status_tactical{
width: 78%; width: 100%;
margin-left: 10%; margin-left: auto;
margin-right: auto;
background-color: #FFF !important; background-color: #FFF !important;
padding: 10px; padding: 10px;
border: 1px solid #E2E2E2; border: 1px solid #E2E2E2;
@ -2866,9 +2868,14 @@ table#policy_modules td * {
.databox td{ .databox td{
padding-left: 10px; padding-left: 10px;
padding-right: 10px;
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
} }
.databox.pies fieldset.tactical_set{
width:70% !important;
height: 285px;
}
.difference{ .difference{
border-left-width: 2px; border-left-width: 2px;

View File

@ -242,18 +242,18 @@ if ($is_admin) {
require($config['homedir'] . '/godmode/servers/servers.build_table.php'); require($config['homedir'] . '/godmode/servers/servers.build_table.php');
} }
$out .= '<table cellpadding=0 cellspacing=0 class="databox" style="margin-top:15px;" width=100%><tr><td>'; $out .= '<table cellpadding=0 cellspacing=0 class="databox pies" style="margin-top:15px;" width=100%><tr><td>';
$out .= '<fieldset class="databox tactical_set"> $out .= '<fieldset class="databox tactical_set">
<legend>' . <legend>' .
__('Event graph') . __('Event graph') .
'</legend>' . '</legend>' .
grafico_eventos_total("", 250, 80, false) . '</fieldset>'; grafico_eventos_total("", 250, 150, false) . '</fieldset>';
$out .="</td><td>"; $out .="</td><td>";
$out .= '<fieldset class="databox tactical_set"> $out .= '<fieldset class="databox tactical_set">
<legend>' . <legend>' .
__('Event graph by agent') . __('Event graph by agent') .
'</legend>' . '</legend>' .
grafico_eventos_grupo(250, 80, "", false, false, false) . '</fieldset>'; grafico_eventos_grupo(250, 150, "", false, false, false) . '</fieldset>';
$out .= '</td></tr></table>'; $out .= '</td></tr></table>';
echo $out; echo $out;