Change visual and add new images

This commit is contained in:
m-lopez-f 2015-04-21 17:26:20 +02:00
parent 05c47bcafe
commit dc09a9a14e
76 changed files with 161 additions and 105 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 570 B

View File

@ -57,7 +57,7 @@ function ssh_gateway () {
echo "<td>".__("Host address")."<td><input type=text size=25 value='$HOST' name=host>";
//echo "<tr>";
echo "<td>".__("User")."<td><input type=text size=25 value='$USER' name=user>" . ui_print_help_tip(__('For security reasons the following characters are not allowed: %s', '< > | ` $ ; &'), true);
echo "<td rowspan=2 vertical_aling='middle'>&nbsp;&nbsp;&nbsp;<input type=submit name=connect class='sub upd' value=".__("Connect").">";
echo "<td rowspan=2 vertical_aling='middle'>&nbsp;&nbsp;&nbsp;<input type=submit name=connect class='sub upd' style='margin-top:0px;' value=".__("Connect").">";
echo "<input type=hidden name=commit value=1></td>";
echo "<tr>";
echo "<td>".__("Port (use 0 for default)")."<td><input type=text size=5 value='$PORT' name=port>";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 486 B

View File

@ -25,7 +25,7 @@ function vnc_view() {
echo __("VNC Display (:0 by default)") . "&nbsp;";
echo "<input type=text name=display value=$display>";
echo "</td><td>";
echo "<input type=submit class='sub next' value='".__("Send")."'>";
echo "<input type=submit class='sub next' style='margin-top:0px;' value='".__("Send")."'>";
echo "</td>";
echo "</tr></table>";
$port = 5800 + $display;

View File

@ -46,10 +46,10 @@ if (!gis_get_agent_map($id_agente, "500px", "98%", false)) {
}
if ($agentData === false) {
echo "<p>" . __("There is no GIS data for this agent, so it's positioned in default position of map.") . "</p>";
ui_print_info_message ( __("There is no GIS data for this agent, so it's positioned in default position of map.") );
}
echo "<div class='warn'>" .
__("Warning: When you change the Agent position, the agent automatically activates the 'Ignore new GIS data' option") . "</div>";
ui_print_warning_message (
__("When you change the Agent position, the agent automatically activates the 'Ignore new GIS data' option") );
$table->width = '100%';
$table->class = 'databox filters';

View File

@ -141,7 +141,7 @@ if ($disk_conf_delete) {
echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&amp;sec2=godmode/agentes/configurar_agente">';
$table->width = '100%';
$table->class = "databox_color";
$table->class = "databox filters";
$table->head = array ();
$table->style = array ();
@ -277,7 +277,7 @@ html_print_table ($table);
unset($table);
$table->width = '100%';
$table->class = "databox_color";
$table->class = "databox filters";
$table->head = array ();
$table->style = array ();
@ -391,7 +391,7 @@ ui_toggle(html_print_table ($table, true), __('Advanced options'));
unset($table);
$table->width = '100%';
$table->class = "databox_color";
$table->class = "databox filters";
$table->head = array ();
$table->style = array ();

View File

@ -247,10 +247,10 @@ if ($create_modules) {
echo '<span id ="none_text" style="display: none;">' . __('None') . '</span>';
echo "<form method='post' id='wmi_form' action='index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=agent_wizard&wizard_section=wmi_explorer&id_agente=$id_agent'>";
$table->width = '98%';
$table->valign[0] = 'top';
$table->valign[1] = 'top';
$table->width = '100%';
$table->cellpadding = 0;
$table->cellspacing = 0;
$table->class = 'databox filters';
$table->data[0][0] = '<b>' . __('Target IP') . '</b>';
$table->data[0][1] = html_print_input_text ('ip_target', $ip_target, '', 15, 60, true);

BIN
pandora_console/images/agent_critical.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 435 B

BIN
pandora_console/images/agent_mc.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 445 B

BIN
pandora_console/images/agent_notinit.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 438 B

BIN
pandora_console/images/agent_ok.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 438 B

BIN
pandora_console/images/agent_unknown.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 430 B

BIN
pandora_console/images/agent_warning.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 514 B

BIN
pandora_console/images/list.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

After

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 484 B

BIN
pandora_console/images/module.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 519 B

BIN
pandora_console/images/module_critical.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 523 B

BIN
pandora_console/images/module_notinit.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 562 B

BIN
pandora_console/images/module_ok.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 558 B

BIN
pandora_console/images/module_unknown.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 551 B

BIN
pandora_console/images/module_warning.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 564 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 447 B

BIN
pandora_console/images/recon.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 468 B

BIN
pandora_console/images/warn.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

BIN
pandora_console/images/xml.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 473 B

View File

@ -509,6 +509,6 @@ if ($table_events) {
array_keys($groups), 'ER', 'event_condition', 'AND');
events_print_event_table ("estado <> 1 $tags_condition", 10, '100%',
false, $id_agente);
false, $id_agente,true);
}
?>

View File

@ -128,7 +128,7 @@ if ($get_module_detail) {
$formtable->data[0][1] = html_print_select ($periods, 'period', $period, '', '', 0, true, false, false);
$formtable->data[0][2] = '';
$formtable->data[0][3] = "<a href='javascript: show_module_detail_dialog(" . $module_id .", ". $agentId.", \"" . $server_name .
"\", 0, -1,\"" . modules_get_agentmodule_name( $module_id ) . "\")'>" .
"\", 0, -1,\"" . modules_get_agentmodule_name( $module_id ) . "\")'>" .
html_print_image ("images/refresh.png", true, array ("style" => 'vertical-align: middle;', "border" => "0" )) .
"</a>";
$formtable->rowspan[0][3] = 2;

View File

@ -849,11 +849,11 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
if ($result === false) {
if ($return){
$returned = '<div class="nf">' . __('No events') . '</div>';
$returned = ui_print_info_message ( __('No events'),'',true );
return $returned;
}
else
echo '<div class="nf">' . __('No events') . '</div>';
echo ui_print_info_message ( __('No events') );
}
else {
$table->id = 'latest_events_table';
@ -871,7 +871,7 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
$table->cellclass = array ();
$table->data = array ();
$table->align = array ();
$table->style[0] = $table->style[1] = $table->style[2] = 'width:25px; background: #E8E8E8;';
$table->style[0] = $table->style[1] = $table->style[2] = 'width:25px;';
if ($agent_id == 0) {
$table->style[3] = 'word-break: break-all;';
}
@ -891,11 +891,13 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret
if ($agent_id == 0) {
$table->head[4] = __('Agent name');
$table->size[4] = "15%";
}
$table->head[5] = __('Timestamp');
$table->headclass[5] = "datos3 f9";
$table->align[5] = "left";
$table->size[5] = "15%";
foreach ($result as $event) {
if (! check_acl ($config["id_user"], $event["id_grupo"], "ER")) {

View File

@ -231,6 +231,9 @@ function ui_print_message ($message, $class = '', $attributes = '', $return = fa
case 'suc':
$text_title = __('Success');
break;
case 'warning':
$text_title = __('Warning');
break;
}
}
@ -246,6 +249,9 @@ function ui_print_message ($message, $class = '', $attributes = '', $return = fa
case 'suc':
$icon_image = 'images/suc.png';
break;
case 'warning':
$icon_image = 'images/warn.png';
break;
}
$icon_image = $icon_image;
@ -370,6 +376,21 @@ function ui_print_result_message ($result, $good = '', $bad = '', $attributes =
}
}
/**
* Prints an warning message.
*
* @param mixed The string warning message or array ('title', 'message', 'icon', 'no_close') to be displayed
* @param string Any other attributes to be set for the tag.
* @param bool Whether to output the string or return it
* @param string What tag to use (you could specify something else than
* h3 like div or h2)
*
* @return string HTML code if return parameter is true.
*/
function ui_print_warning_message ($message, $attributes = '', $return = false, $tag = 'h3') {
return ui_print_message ($message, 'warning', $attributes, $return, $tag);
}
/**
* Evaluates a unix timestamp and returns a span (or whatever tag specified)
* with as title the correctly formatted full timestamp and a time comparation
@ -2400,7 +2421,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "",
$buffer .= '<span style="">' .
ui_print_truncate_text($title, 38);
if ($help != "")
$buffer .= "<div class='head_help' style='float: right; margin-top: 3px !important; margin-left: 2px !important;'>" .
$buffer .= "<div class='head_help' style='float: right; margin-top: -2px !important; margin-left: 2px !important;'>" .
ui_print_help_icon ($help, true, '', 'images/help_w.png') . "</div>";
$buffer .= '</span></li></ul></div>';

View File

@ -16,13 +16,13 @@
.defaultSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0}
/* Layout */
.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC}
.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC; margin-bottom:10px;}
.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC}
.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC}
.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;}
.defaultSkin td.mceToolbar {background:#F0F0EE; padding-top:1px; vertical-align:top}
.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC}
.defaultSkin .mceStatusbar {background:#F0F0EE; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px}
.defaultSkin .mceStatusbar {background:#F0F0EE; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:10px;}
.defaultSkin .mceStatusbar div {float:left; margin:2px}
.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0}
.defaultSkin .mceStatusbar a:hover {text-decoration:underline}

View File

@ -195,6 +195,7 @@ li:hover ul { display: block; }
}
#icon_god-extensions {
background: url(../../images/builder.menu.png) no-repeat 50% 50%;
}
#menu_container {

View File

@ -102,7 +102,7 @@ h1, h2, h3, h4 {
font-size: 1em;
font-family: Arial, Sans-serif;
text-transform: uppercase;
color: #3f4e2f;
color: #3F3F3F;
padding-bottom: 4px;
padding-top: 7px;
}
@ -116,9 +116,7 @@ h3 {
font-size: 14px;
}
h4 {
margin-bottom: 2px;
padding-bottom: 0px;
padding-top: 5px;
margin-bottom: 10px;
font-size: 13px;
color: #3F3F3F;
text-transform: none;
@ -969,6 +967,10 @@ tr.disabled_row_user * {
color: #f85858;
}
.warning *{
color: #FAD403;
}
.help {
background: url(../../images/help.png) no-repeat;
}
@ -1176,7 +1178,7 @@ div.title_line {
/* text-transform: uppercase; */
padding: 0px 0px 0px 0px;
color: #fff;
font-size: 9pt;
font-size: 8.5pt;
font-weight: bold;
line-height: 18px;
}
@ -1301,13 +1303,12 @@ span.rmess, span.nrmess {
/* New styles for data box */
.databox, .databox_color, .databox_frame {
margin-bottom: 5px;
margin-top: 5px;
margin-top: 0px;
margin-left: 0px;
border: 1px solid #e2e2e2;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
padding-bottom: 5px;
}
.databox_color{
@ -1336,6 +1337,9 @@ table.databox {
color: #fff;
padding-left: 10px;
}
.databox td {
#border-bottom: 1px solid #E2E2E2;
}
.databox th * {
color: #fff;
@ -1488,7 +1492,6 @@ div#main_pure {
}
.img_help {
cursor: help;
margin-top: -5px;
}
#loading {
position:fixed;
@ -1881,7 +1884,7 @@ div#steps_clean {
width: 100%;
padding-right: 0px;
margin-left: 0px !important;
margin-bottom: 15px;
margin-bottom: 20px;
height: 31px;
}
div#events_list {
@ -1910,6 +1913,7 @@ div#logo_text3 {
}
.pagination {
margin-top: 15px;
margin-bottom: 5px;
}
.pagination * {
margin-left: 0px !important;
@ -2071,6 +2075,7 @@ div.cellBig {
.info_box {
background: #F9FAF9;
margin-top: 10px !important;
margin-bottom: 10px !important;
padding: 0px 5px 5px 10px;
border-color: #E2E2E2;
border-style: solid;
@ -2455,8 +2460,8 @@ input.search_input {
margin-top: 8px !important;
}
a>img, td>input, td>span {
vertical-align: middle;
a[id^='tgl_ctrl_']>img{
vertical-align:middle;
}
.noshadow {
@ -2854,7 +2859,7 @@ table#policy_modules td * {
.databox.data td{
padding-left: 10px;
border: 1px solid #EFEFEF;
border-bottom: 1px solid #E2E2E2;
}
.databox .search{
@ -2937,9 +2942,22 @@ table#policy_modules td * {
margin-top: 0px !important ;
}
.databox.filters{
margin-bottom: 17px;
}
.databox.filters td{
padding: 10px;
padding-left:20px;
}
.databox.filters td>img, .databox.filters td>div>a>img,
.databox.filters td>span>img, .databox.filters td>span>a>img,
.databox.filters td>a>img{
vertical-align: middle;
margin-left: 5px;
}
.databox_color td{
padding-left: 10px;
}

View File

@ -155,7 +155,7 @@ div.tree-table-cell.tree-table-cell-tree {
div.tree-table-cell.tree-table-cell-detail {
padding-left: 10px;
width: 550px;
width: 60%;
}
div.tree-element-detail-closed {

View File

@ -384,7 +384,10 @@ if ($print_agent) {
$table->width = '100%';
$table->class = "databox data";
$table->cellpadding = '0';
$table->cellspacing = '0';
if(defined('METACONSOLE')){
$table->class = "databox";
$table->cellpadding = '0';
$table->cellspacing = '0';
}

View File

@ -197,15 +197,6 @@ echo '</td><td style="width:5%;">&nbsp;</td>';
echo '</tr></table></form>';
if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0, "AM")) {
echo '<div style="text-align: right; float: right;">';
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">';
html_print_input_hidden ('new_agent', 1);
html_print_submit_button (__('Create agent'), 'crt', false, 'class="sub next"');
echo "</form>";
echo '</div>';
}
if ($search != "") {
$filter = array ("string" => '%' . $search . '%');
}
@ -427,11 +418,11 @@ if (empty ($agents)) {
// Prepare pagination
ui_pagination ($total_agents,
ui_get_url_refresh (array ('group_id' => $group_id, 'recursion' => $recursion, 'search' => $search, 'sort_field' => $sortField, 'sort' => $sort, 'status' => $status)));
ui_get_url_refresh (array ('group_id' => $group_id, 'recursion' => $recursion, 'search' => $search, 'sort_field' => $sortField, 'sort' => $sort, 'status' => $status)));
// Show data.
$table->cellpadding = 4;
$table->cellspacing = 4;
$table->cellpadding = 0;
$table->cellspacing = 0;
$table->width = "100%";
$table->class = "databox data";
@ -439,35 +430,52 @@ $table->head = array ();
$table->head[0] = __('Agent'). ' ' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=name&amp;sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '</a>' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=name&amp;sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . '</a>';
$table->size[0] = "10%";
$table->head[1] = __('Description');
$table->size[1] = "30%";
$table->head[2] = __('OS'). ' ' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=os&amp;sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectOsUp, "alt" => "up")) . '</a>' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=os&amp;sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectOsDown, "alt" => "down")) . '</a>';
$table->size[2] = "4%";
$table->head[3] = __('Interval'). ' ' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=interval&amp;sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '</a>' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=interval&amp;sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . '</a>';
$table->size[3] = "10%";
$table->head[4] = __('Group'). ' ' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=group&amp;sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectGroupUp, "alt" => "up")) . '</a>' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=group&amp;sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectGroupDown, "alt" => "down")) . '</a>';
$table->size[4] = "15%";
$table->head[5] = __('Modules');
$table->size[5] = "10%";
$table->head[6] = __('Status');
$table->size[6] = "4%";
$table->head[7] = __('Alerts');
$table->size[7] = "4%";
$table->head[8] = __('Last contact'). ' ' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=last_contact&amp;sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '</a>' .
'<a href="index.php?sec=estado&amp;sec2=operation/agentes/estado_agente&amp;refr=' . $refr . '&amp;offset=' . $offset . '&amp;group_id=' . $group_id . '&amp;recursion=' . $recursion . '&amp;search=' . $search . '&amp;status='. $status . '&amp;sort_field=last_contact&amp;sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>';
$table->size[8] = "15%";
$table->align = array ();
$table->align[2] = "center";
$table->align[3] = "center";
$table->align[4] = "center";
$table->align[5] = "center";
$table->align[3] = "left";
$table->align[4] = "left";
$table->align[5] = "left";
$table->align[6] = "center";
$table->align[7] = "center";
$table->align[8] = "right";
$table->align[8] = "left";
$table->style = array();
$table->style[0] = 'width: 15%';
//$table->style[0] = 'width: 15%';
$table->data = array ();
@ -489,14 +497,14 @@ foreach ($agents as $agent) {
$data = array ();
$data[0] = '';
$data[0] .= '<span class="left">';
$data[0] = '<div class="left_' . $agent["id_agente"] . '">';
$data[0] .= '<span>';
if ($agent['quiet']) {
$data[0] .= html_print_image("images/dot_green.disabled.png", true, array("border" => '0', "title" => __('Quiet'), "alt" => "")) . "&nbsp;";
}
$data[0] .= ui_print_agent_name($agent["id_agente"], true, 60, 'font-size:6.5pt !important;', true);
$data[0] .= '</span>';
$data[0] .= '<div class="left actions" style="visibility: hidden; clear: left">';
$data[0] .= '<div class="agentleft_' . $agent["id_agente"] . '" style="visibility: hidden; clear: left;">';
$data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'">'.__('View').'</a>';
$data[0] .= ' | ';
$data[0] .= '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$agent["id_agente"].'&tab=data">'.__('Data').'</a>';
@ -504,7 +512,7 @@ foreach ($agents as $agent) {
$data[0] .= ' | ';
$data[0] .= '<a href="index.php?sec=gagente&amp;sec2=godmode/agentes/configurar_agente&amp;id_agente='.$agent["id_agente"].'">'.__('Edit').'</a>';
}
$data[0] .= '</div>';
$data[0] .= '</div></div>';
$data[1] = ui_print_truncate_text(strip_tags(ui_bbcode_to_html($agent["description"])), 'description', false, true, true, '[&hellip;]', 'font-size: 6.5pt');
@ -541,6 +549,14 @@ foreach ($agents as $agent) {
if (!empty ($table->data)) {
html_print_table ($table);
if (check_acl ($config['id_user'], 0, "AW") || check_acl ($config['id_user'], 0, "AM")) {
echo '<div style="text-align: right; float: right;">';
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">';
html_print_input_hidden ('new_agent', 1);
html_print_submit_button (__('Create agent'), 'crt', false, 'class="sub next"');
echo "</form>";
echo '</div>';
}
ui_pagination ($total_agents,
ui_get_url_refresh(array(
'group_id' => $group_id,
@ -550,20 +566,20 @@ if (!empty ($table->data)) {
'status' => $status)),
0, 0, false, 'offset', false);
unset ($table);
}
else {
echo '<div class="nf">'.__('There are no defined agents').'</div>';
ui_print_info_message (__('There are no defined agents') );
}
?>
<script type="text/javascript">
$(document).ready (function () {
$("table#table1 tr").hover (function () {
$(".actions", this).css ("visibility", "");
},
function () {
$(".actions", this).css ("visibility", "hidden");
$("[class^='left']").mouseenter (function () {
console.log($(this));
$(".agent"+$(this)[0].className).css('visibility', '');
}).mouseleave(function () {
$(".agent"+$(this)[0].className).css('visibility', 'hidden');
});
});
</script>

View File

@ -60,9 +60,9 @@ if (! check_acl ($config["id_user"], $agent["id_grupo"], "AR") && !$is_extra) {
// START: TABLE AGENT BUILD
$table_agent->id = 'agent_details_main';
$table_agent->width = '450px';
$table_agent->cellspacing = 4;
$table_agent->cellpadding = 4;
$table_agent->width = '82%';
$table_agent->cellspacing = 0;
$table_agent->cellpadding = 0;
$table_agent->class = 'databox';
$table_agent->style[0] = 'width: 16px; text-align:center; padding: 0px;';
$table_agent->style[5] = 'width: 16px; text-align:center; padding: 0px;';
@ -184,8 +184,8 @@ $table_agent->rowclass[] = '';
// START: TABLE CONTACT BUILD
$table_contact->id = 'agent_contact_main';
$table_contact->width = '100%';
$table_contact->cellspacing = 4;
$table_contact->cellpadding = 4;
$table_contact->cellspacing = 0;
$table_contact->cellpadding = 0;
$table_contact->class = 'databox data';
$table_contact->style[0] = 'width: 30%;';
$table_contact->style[1] = 'width: 70%;';
@ -227,8 +227,8 @@ $table_contact->data[] = $data;
// START: TABLE DATA BUILD
$table_data->id = 'agent_data_main';
$table_data->width = '100%';
$table_data->cellspacing = 4;
$table_data->cellpadding = 4;
$table_data->cellspacing = 0;
$table_data->cellpadding = 0;
$table_data->class = 'databox data';
$table_data->style[0] = 'width: 30%;';
$table_data->style[1] = 'width: 70%;';
@ -355,8 +355,8 @@ if ($last_incident != false) {
$table_incident->id = 'agent_incident_main';
$table_incident->width = '100%';
$table_incident->cellspacing = 4;
$table_incident->cellpadding = 4;
$table_incident->cellspacing = 0;
$table_incident->cellpadding = 0;
$table_incident->class = 'databox';
$table_incident->style[0] = 'width: 30%;';
$table_incident->style[1] = 'width: 70%;';
@ -484,8 +484,8 @@ if (!empty($network_interfaces)) {
$table = null;
$table->id = 'agent_details';
$table->width = '100%';
$table->cellspacing = 4;
$table->cellpadding = 4;
$table->cellspacing = 0;
$table->cellpadding = 0;
$table->class = 'agents';
$table->style = array_fill(0, 3, 'vertical-align: top;');
@ -508,7 +508,7 @@ $access_agent = db_get_value_sql("SELECT COUNT(id_agent)
if ($config["agentaccess"] && $access_agent > 0) {
$data[0] .=
'<table width=100% class="databox" style="position: static;">
'<br /><table width=82% class="databox" style="">
<tr><th>' .
__('Agent access rate (24h)') .
'</th></tr>' .

View File

@ -450,7 +450,7 @@ function print_form_filter_monitors($id_agent, $status_filter_monitor = -1,
}
$table->data[0][5] = html_print_select ($rows_select,'status_module_group', $status_module_group, '', '',0, true);
$table->data[0][6] = html_print_button(__('Filter'), 'filter', false, 'filter_modules();', 'class="sub search"', true);
$table->data[0][7] = '&nbsp;' . html_print_button(__('Reset'), 'filter', false, 'reset_filter_modules();', 'class="sub upd"', true);
$table->data[0][7] = '&nbsp;' . html_print_button(__('Reset'), 'filter', false, 'reset_filter_modules();', 'class="sub upd" style="margin-top:0px;"', true);
$form_text .= html_print_table($table, true);
$filter_hidden = false;
@ -459,6 +459,6 @@ function print_form_filter_monitors($id_agent, $status_filter_monitor = -1,
$filter_hidden = true;
}
ui_toggle($form_text, __('Form filter'), __('Form filter'), $filter_hidden);
echo $form_text;
}
?>

View File

@ -52,7 +52,7 @@ echo "<div style='margin-bottom: 30px;'></div>";
echo "<div id=\"" . $agent_name . "_agent_map\" style=\"border:1px solid black; width:100%; height: 30em;\"></div>";
if (!gis_get_agent_map($id_agente, "500px", "100%", true, true, $period)) {
ui_print_error_message(__("There is no default map. Please go to the setup for to set a default map."));
ui_print_error_message( __("There is no default map. Please go to the setup for to set a default map.") );
echo "<script type='text/javascript'>
$(document).ready(function() {
$('#" . $agent_name . "_agent_map').hide();
@ -82,26 +82,24 @@ gis_activate_ajax_refresh(null, $timestampLastOperation);
gis_activate_select_control();
if ($agentData === false) {
echo "<p>" .
__("There is no GIS data for this agent, so it's positioned in default position of map.") .
"</p>";
ui_print_info_message (
__("There is no GIS data for this agent, so it's positioned in default position of map.") );
}
echo "<br />";
$dataLastPosition = gis_get_data_last_position_agent($agentId);
if ($dataLastPosition !== false) {
echo "<b>" . __("Last position in ") .
$dataLastPosition['start_timestamp'] . ":</b> " .
$dataLastPosition['stored_longitude'] . ", " . $dataLastPosition['stored_latitude'] . ", " . $dataLastPosition['stored_altitude'];
}
echo "<br />";
echo "<form class='' action='index.php?" . $url . "' method='POST'>";
echo "<table width=100% class='databox filters'>";
echo "<tr><td>" . __("Period to show data as path") . ": ";
echo "<td>";
html_print_extended_select_for_time ('period', $period, '', '', '0', 10);
echo "<td>";
html_print_submit_button(__('Refresh path'), 'refresh', false, 'class = "sub upd"');
html_print_submit_button(__('Refresh path'), 'refresh', false, 'class = "sub upd" style="margin-top:0px"');
echo "</table></form>";
echo "<h4>" . __("Positional data from the last") . " " . human_time_description_raw ($period) ."</h4>";

View File

@ -107,10 +107,11 @@ if (empty($modules)) {
$table = null;
$table->width = '100%';
$table->class = 'databox filters';
$table->style[0] = 'font-weight: bolder; text-align: right;';
$table->style[0] = 'font-weight: bolder; text-align: left;';
$table->style[1] = '';
$table->style[2] = 'font-weight: bolder; text-align: right;';
$table->style[2] = 'font-weight: bolder; text-align: left;';
$table->rowspan[0][0] = 6;
$table->rowspan[0][1] = 6;
@ -154,7 +155,9 @@ $htmlForm = '<form method="post" action="index.php?sec=estado&sec2=operation/age
$htmlForm .= html_print_table($table, true);
$htmlForm .= html_print_input_hidden('filter', 1, true);
$htmlForm .= '<div class="action-buttons" style="width: '.$table->width.'">';
$htmlForm .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd"', true);
$htmlForm .= html_print_button(__('Save as custom graph'), 'save_custom_graph',
false, 'save_custom_graph();', 'class="sub add" style="margin-top:10px"',true) . '&nbsp;&nbsp;' .
html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub upd" style="margin-top:10px"', true);
$htmlForm .= '</div>';
$htmlForm .= '</form>';
@ -170,9 +173,7 @@ else
if ($combined) {
echo "<div style='width: 555px;'><strong style='font-size:9pt;'>" . __('Combined graph') . '</strong>&nbsp;&nbsp;';
html_print_button(__('Save as custom graph'), 'save_custom_graph',
false, 'save_custom_graph();', 'class="sub add" style="margin:0px"');
echo "<div style='width: 555px;'><strong style='font-size:9pt;'>" . __('Combined graph') . '</strong>';
echo "</div>";
custom_graphs_print(0,

View File

@ -91,7 +91,6 @@ foreach ($result_groups as $data) {
$monitor_unknown += $data["_monitors_unknown_"];
}
$total = $monitor_ok + $monitor_warning + $monitor_critical;
//$total_ok = format_numeric (($total_agentes / $monitor_ok / 100), 1);
$total_ok = format_numeric (($monitor_ok*100)/$total,0);
$total_warning = format_numeric (($monitor_warning*100)/$total,0);
$total_critical = format_numeric (($monitor_critical*100)/$total,0);
@ -110,8 +109,6 @@ echo '<table cellpadding="0" cellspacing="0" border="0" width="100%" class="data
echo "</tr>";
echo "</table>";
ui_pagination($count);
if (!empty($result_groups)) {
@ -126,15 +123,15 @@ if (!empty($result_groups)) {
echo "<tr>";
echo "<th style='width: 26px;'>" . __("Force") . "</th>";
echo "<th width='30%' style='min-width: 60px;'>" . __("Group") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Total") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Unknown") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Not init") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Unknown") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Not Init") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Normal") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Warning") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Critical") . "</th>";
echo "<th width='10%' style='min-width: 60px;'>" . __("Alert fired") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Total") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Unknown") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Not init") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Unknown") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Not Init") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Normal") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Warning") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Critical") . "</th>";
echo "<th width='10%' style='min-width: 60px;text-align:center;'>" . __("Alert fired") . "</th>";
echo "</tr>";
foreach ($result_groups as $data) {
@ -331,7 +328,6 @@ if (!empty($result_groups)) {
}
echo '</table>';
} else {
echo "<div class='nf'>" . __('There are no defined agents') .
"</div>";
ui_print_info_message ( __('There are no defined agents'));
}
?>

View File

@ -159,10 +159,10 @@ if (check_acl ($config['id_user'], 0, "AR")) {
else {
$firstLetter = $name[0];
}
/*
if (!in_array($firstLetter, $firstLetterNameVisualToShow)) {
continue;
}*/
}
$sub2["operation/visual_console/render_view&amp;id=".$layout["id"]]["text"] = mb_substr ($name, 0, 19);
$sub2["operation/visual_console/render_view&amp;id=".$layout["id"]]["title"] = $name;
if (!empty($config['vc_refr'])) {

View File

@ -190,7 +190,7 @@ if (defined('METACONSOLE')) {
ui_toggle($form_html, __('Show Options'));
echo "<br>";
}else{
echo "<br>";
//echo "<br>";
ui_toggle($form_html, __('Tree search'));
}