diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 45a926eaf0..71fa7149a6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2014-02-07 Sergio Martin + + * mobile/operation/networkmaps.php + mobile/operation/agent.php + mobile/include/style/main.css + mobile/include/ui.class.php + mobile/include/user.class.php + mobile/images/pandora_mobile_console.png: Improve + network map ACLs and more usability/aesthetic issues + 2014-02-06 Sergio Martin * mobile/index.php diff --git a/pandora_console/mobile/images/pandora_mobile_console.png b/pandora_console/mobile/images/pandora_mobile_console.png new file mode 100644 index 0000000000..772736b31e Binary files /dev/null and b/pandora_console/mobile/images/pandora_mobile_console.png differ diff --git a/pandora_console/mobile/include/style/main.css b/pandora_console/mobile/include/style/main.css index 642b31d4ad..bd51f2e0e0 100644 --- a/pandora_console/mobile/include/style/main.css +++ b/pandora_console/mobile/include/style/main.css @@ -1020,6 +1020,11 @@ li.ui-btn { padding-top: 15px !important; height: 20px !important; } + + .login_logo img { + width: 185px; + margin-bottom: 10px; + } } /* For tablets */ @media screen and (min-width: 750px) @@ -1053,6 +1058,11 @@ li.ui-btn { .event_name { font-size: 18px !important; } + + .login_logo img { + width: 300px; + margin-bottom: 20px; + } } #login_container { diff --git a/pandora_console/mobile/include/ui.class.php b/pandora_console/mobile/include/ui.class.php index 9785195a6c..e9791d7865 100755 --- a/pandora_console/mobile/include/ui.class.php +++ b/pandora_console/mobile/include/ui.class.php @@ -123,7 +123,7 @@ class Ui { $this->header = array(); $this->header['button_left'] = ''; $this->header['button_right'] = ''; - $this->header['title'] = __('Pandora FMS mobile'); + $this->header['title'] = ''; $this->endHeader = false; } diff --git a/pandora_console/mobile/include/user.class.php b/pandora_console/mobile/include/user.class.php index e725b25b05..b79818e5c1 100644 --- a/pandora_console/mobile/include/user.class.php +++ b/pandora_console/mobile/include/user.class.php @@ -155,8 +155,8 @@ class User { $ui->createHeader(); $ui->showFooter(false); $ui->beginContent(); - $ui->contentAddHtml('
' . - html_print_image ("images/pandora_login.png", + $ui->contentAddHtml(''); $ui->contentAddHtml('
'); diff --git a/pandora_console/mobile/operation/agent.php b/pandora_console/mobile/operation/agent.php index c3df1c9e49..9a6194af4d 100644 --- a/pandora_console/mobile/operation/agent.php +++ b/pandora_console/mobile/operation/agent.php @@ -112,11 +112,16 @@ class Agent { } $ip .= '
'; - $last_contact = __('Last contact') . ' / ' . __('Remote') . ': ' - .ui_print_timestamp ($this->agent["ultimo_contacto"], true) . '
'; + $last_contact = '' . __('Last contact') . ': ' + .ui_print_timestamp ($this->agent["ultimo_contacto"], true) . '
'; - $description = - empty($agent["comentarios"]) ? '' : $this->agent["comentarios"] . '
'; + $description = '' . __('Description') . ':
'; + if (empty($agent["comentarios"])) { + $description .= '' . __('N/A') . ''; + } + else { + $description .= $this->agent["comentarios"]; + } $html = '
'; @@ -129,15 +134,18 @@ class Agent { $ui->contentGridAddCell($html); ob_start(); - $html = graph_agent_status ($this->id, 160, 160, true); + $html = '
'; + $html .= "" . __('Modules by status') . "
"; + $html .= graph_agent_status ($this->id, 160, 160, true); $graph_js = ob_get_clean(); $html = $graph_js . $html; unset($this->agent['fired_count']); $html .= '' . reporting_tiny_stats($this->agent, true) . '
'; - $html .= "" . __('Events (24h)') . "
"; + $html .= "" . __('Events (24h)') . "

"; $html .= graph_graphic_agentevents( $this->id, 250, 15, 86400, ui_get_full_url(false), true); $html .= '
'; + $html .= '
'; $ui->contentGridAddCell($html); $ui->contentEndGrid(); @@ -165,6 +173,36 @@ class Agent { $ui->contentCollapsibleAddItem($events->putEventsTableJS($this->id)); $ui->contentEndCollapsible(); } + + $ui->contentAddHtml(""); + $ui->endContent(); $ui->showPage(); } diff --git a/pandora_console/mobile/operation/networkmaps.php b/pandora_console/mobile/operation/networkmaps.php index d1605c7c68..1e6ab2dd4a 100755 --- a/pandora_console/mobile/operation/networkmaps.php +++ b/pandora_console/mobile/operation/networkmaps.php @@ -163,8 +163,12 @@ class Networkmaps { // Order by type field $where['order'] = 'type'; - if ($this->group != '0') + if ($this->group != '0') { $where['id_group'] = $this->group; + } + else { + $where['id_group'] = array_keys(users_get_groups()); + } if ($this->type != '0') $where['type'] = $this->type; @@ -176,6 +180,9 @@ class Networkmaps { } $list = array(); foreach ($network_maps as $networkmap) { + // If enterprise not loaded then skip this code + if ($networkmap['type'] == 'policies' and (!defined('PANDORA_ENTERPRISE'))) + continue; $row = array(); $row[__('Name')] = '' . io_safe_output($networkmap['name']) . ''; $row[__('Type')] = $networkmap['type'];