Changed of visual
This commit is contained in:
parent
37d792e07c
commit
5b4214277b
|
@ -111,7 +111,7 @@ function dbmgr_extension_main () {
|
|||
|
||||
echo "<br /><br />";
|
||||
echo "<form method='post' action=''>";
|
||||
html_print_textarea ('sql', 5, 40, html_entity_decode($sql, ENT_QUOTES));
|
||||
html_print_textarea ('sql', 5, 50, html_entity_decode($sql, ENT_QUOTES));
|
||||
echo '<br />';
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
echo '<br />';
|
||||
|
|
|
@ -174,6 +174,7 @@ if (empty ($result)) {
|
|||
$result = array ();
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = '100%';
|
||||
|
|
|
@ -138,6 +138,7 @@ if ($disk_conf_delete) {
|
|||
|
||||
echo '<form name="conf_agent" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">';
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
|
@ -274,6 +275,7 @@ $table->data[7][1] = html_print_input_text ('comentarios', $comentarios,
|
|||
html_print_table ($table);
|
||||
unset($table);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
|
@ -389,6 +391,7 @@ $table->data[3][3] = html_print_checkbox('quiet', 1, $quiet, true);
|
|||
ui_toggle(html_print_table ($table, true), __('Advanced options'));
|
||||
unset($table);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ else {
|
|||
ui_print_page_header (__("Create agent custom field"), "images/custom_field.png", false, "", true, "");
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->style[0] = 'font-weight: bold';
|
||||
|
|
|
@ -86,6 +86,7 @@ if ($delete_field) {
|
|||
|
||||
$fields = db_get_all_fields_in_table('tagent_custom_fields');
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($fields) {
|
||||
|
|
|
@ -112,7 +112,7 @@ if (strstr($page, "policy_modules") === false && $id_agent_module) {
|
|||
}
|
||||
|
||||
$update_module_id = (int) get_parameter_get ('update_module');
|
||||
|
||||
$table_simple = new stdClass();
|
||||
$table_simple->id = 'simple';
|
||||
$table_simple->width = '100%';
|
||||
$table_simple->class = 'databox';
|
||||
|
@ -291,6 +291,7 @@ else {
|
|||
}
|
||||
|
||||
/* Advanced form part */
|
||||
$table_advanced = new stdClass();
|
||||
$table_advanced->id = 'advanced';
|
||||
$table_advanced->width = '100%';
|
||||
$table_advanced->class = 'databox filters';
|
||||
|
@ -555,6 +556,7 @@ else {
|
|||
}
|
||||
|
||||
/* Advanced form part */
|
||||
$table_macros = new stdClass();
|
||||
$table_macros->id = 'module_macros';
|
||||
$table_macros->width = '100%';
|
||||
$table_macros->class = 'databox filters';
|
||||
|
@ -744,7 +746,7 @@ $(document).ready (function () {
|
|||
|
||||
var type_name_selected = type_names[type_selected];
|
||||
|
||||
if(type_name_selected.match(/_string$/) == null) {
|
||||
if (type_name_selected.match(/_string$/) == null) {
|
||||
// Numeric types
|
||||
$('#string_critical').hide();
|
||||
$('#string_warning').hide();
|
||||
|
@ -758,8 +760,8 @@ $(document).ready (function () {
|
|||
$('#minmax_critical').hide();
|
||||
$('#minmax_warning').hide();
|
||||
}
|
||||
|
||||
if(type_name_selected.match(/async/) == null) {
|
||||
|
||||
if (type_name_selected.match(/async/) == null) {
|
||||
$('#ff_timeout').hide();
|
||||
$('#ff_timeout_disable').show();
|
||||
}
|
||||
|
@ -770,7 +772,7 @@ $(document).ready (function () {
|
|||
});
|
||||
|
||||
$("#id_module_type").trigger('change');
|
||||
|
||||
|
||||
// Prevent the form submission when the user hits the enter button from the relationship autocomplete inputs
|
||||
$("#text-autocomplete_agent_name").keydown(function(event) {
|
||||
if(event.keyCode == 13) { // key code 13 is the enter button
|
||||
|
@ -846,7 +848,8 @@ function change_modules_autocomplete_input () {
|
|||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
module_autocomplete.html(error_icon);
|
||||
}
|
||||
},
|
||||
|
@ -940,12 +943,12 @@ function change_lock_relation (num_row, id_relation) {
|
|||
var button = row.find("#disable_updates_button");
|
||||
var oldSrc = button.find("img").prop("src");
|
||||
var isEnabled = button.hasClass('alpha50');
|
||||
|
||||
|
||||
if (row.length > 0 && !button.hasClass('working')) {
|
||||
button.addClass('working');
|
||||
button.removeClass('alpha50');
|
||||
button.find("img").prop("src", 'images/spinner.gif');
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax.php",
|
||||
|
@ -978,11 +981,11 @@ function delete_relation (num_row, id_relation) {
|
|||
var row = $("#module_relations-" + num_row);
|
||||
var button = row.find("#delete_relation_button");
|
||||
var oldSrc = button.find("img").prop("src");
|
||||
|
||||
|
||||
if (row.length > 0 && !button.hasClass('working')) {
|
||||
button.addClass('working');
|
||||
button.find("img").prop("src", 'images/spinner.gif');
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ajax.php",
|
||||
|
|
|
@ -318,8 +318,9 @@ if ($id_downtime > 0) {
|
|||
// when the planned down time is in execution, only action to postpone on once type is enabled and the other are disabled.
|
||||
$disabled_in_execution = $executed ? 1 : 0;
|
||||
|
||||
$table->class = 'databox_color';
|
||||
$table->width = '98%';
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name');
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 25, 40, true, $disabled_in_execution);
|
||||
|
@ -463,8 +464,8 @@ if ($id_downtime > 0) {
|
|||
html_print_table ($table);
|
||||
|
||||
html_print_input_hidden ('id_agent', $id_agent);
|
||||
echo '<div class="action-buttons" style="width: 90%">';
|
||||
if ($id_downtime) {
|
||||
echo '<div class="action-buttons" style="width: 100%">';
|
||||
if ($id_downtime > 0) {
|
||||
html_print_input_hidden ('update_downtime', 1);
|
||||
html_print_input_hidden ('id_downtime', $id_downtime);
|
||||
html_print_submit_button (__('Update'), 'updbutton', false, 'class="sub upd"');
|
||||
|
@ -485,18 +486,18 @@ if ($id_downtime > 0) {
|
|||
$filter_group = get_parameter("filter_group", 0);
|
||||
|
||||
$filter_cond = '';
|
||||
if($filter_group > 0)
|
||||
if ($filter_group > 0)
|
||||
$filter_cond = " AND id_grupo = $filter_group ";
|
||||
$sql = sprintf ("SELECT tagente.id_agente, tagente.nombre,
|
||||
tagente.id_grupo
|
||||
FROM tagente
|
||||
WHERE tagente.id_agente NOT IN (
|
||||
SELECT tagente.id_agente
|
||||
FROM tagente, tplanned_downtime_agents
|
||||
WHERE tplanned_downtime_agents.id_agent = tagente.id_agente
|
||||
AND tplanned_downtime_agents.id_downtime = %d
|
||||
) AND disabled = 0 $filter_cond
|
||||
ORDER by tagente.nombre", $id_downtime);
|
||||
tagente.id_grupo
|
||||
FROM tagente
|
||||
WHERE tagente.id_agente NOT IN (
|
||||
SELECT tagente.id_agente
|
||||
FROM tagente, tplanned_downtime_agents
|
||||
WHERE tplanned_downtime_agents.id_agent = tagente.id_agente
|
||||
AND tplanned_downtime_agents.id_downtime = %d
|
||||
) AND disabled = 0 $filter_cond
|
||||
ORDER by tagente.nombre", $id_downtime);
|
||||
$downtimes = db_get_all_rows_sql ($sql);
|
||||
$data = array ();
|
||||
if ($downtimes) {
|
||||
|
@ -541,11 +542,11 @@ if ($id_downtime > 0) {
|
|||
echo '<h4>'.__('Agents planned for this downtime').':</h4>';
|
||||
|
||||
$sql = sprintf ("SELECT tagente.nombre, tplanned_downtime_agents.id,
|
||||
tagente.id_os, tagente.id_agente, tagente.id_grupo,
|
||||
tagente.ultimo_contacto, tplanned_downtime_agents.all_modules
|
||||
FROM tagente, tplanned_downtime_agents
|
||||
WHERE tplanned_downtime_agents.id_agent = tagente.id_agente
|
||||
AND tplanned_downtime_agents.id_downtime = %d ", $id_downtime);
|
||||
tagente.id_os, tagente.id_agente, tagente.id_grupo,
|
||||
tagente.ultimo_contacto, tplanned_downtime_agents.all_modules
|
||||
FROM tagente, tplanned_downtime_agents
|
||||
WHERE tplanned_downtime_agents.id_agent = tagente.id_agente
|
||||
AND tplanned_downtime_agents.id_downtime = %d ", $id_downtime);
|
||||
|
||||
$downtimes = db_get_all_rows_sql ($sql);
|
||||
if ($downtimes === false) {
|
||||
|
@ -553,9 +554,10 @@ if ($id_downtime > 0) {
|
|||
__('There are no scheduled downtimes') . '</div>';
|
||||
}
|
||||
else {
|
||||
$table = new stdClass();
|
||||
$table->id = 'list';
|
||||
$table->class = 'databox';
|
||||
$table->width = '98%';
|
||||
$table->class = 'databox data';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->head[0] = __('Name');
|
||||
|
@ -563,9 +565,12 @@ if ($id_downtime > 0) {
|
|||
$table->head[2] = __('OS');
|
||||
$table->head[3] = __('Last contact');
|
||||
$table->head['count_modules'] = __('Modules');
|
||||
$table->head[5] = __('Actions');
|
||||
$table->align[5] = "center";
|
||||
$table->size[5] = "5%";
|
||||
|
||||
if (!$executed) {
|
||||
$table->head[5] = __('Actions');
|
||||
$table->align[5] = "center";
|
||||
$table->size[5] = "5%";
|
||||
}
|
||||
|
||||
foreach ($downtimes as $downtime) {
|
||||
$data = array ();
|
||||
|
@ -573,8 +578,8 @@ if ($id_downtime > 0) {
|
|||
$data[0] = $downtime['nombre'];
|
||||
|
||||
$data[1] = db_get_sql ("SELECT nombre
|
||||
FROM tgrupo
|
||||
WHERE id_grupo = " . $downtime["id_grupo"]);
|
||||
FROM tgrupo
|
||||
WHERE id_grupo = " . $downtime["id_grupo"]);
|
||||
|
||||
$data[2] = ui_print_os_icon($downtime["id_os"], true, true);
|
||||
|
||||
|
@ -619,8 +624,9 @@ if ($id_downtime > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
$table->id = 'loading';
|
||||
$table->width = '100%';
|
||||
$table->colspan['loading'][0] = '6';
|
||||
$table->style[0] = 'text-align: center;';
|
||||
$table->data = array();
|
||||
|
@ -630,8 +636,9 @@ echo "<div style='display: none;'>";
|
|||
html_print_table ($table);
|
||||
echo "</div>";
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
$table->id = 'editor';
|
||||
$table->width = '100%';
|
||||
$table->colspan['module'][1] = '5';
|
||||
$table->data = array();
|
||||
$table->data['module'] = array();
|
||||
|
@ -640,7 +647,7 @@ $table->data['module'][1] = "<h4>" . __('Modules') . "</h4>";
|
|||
|
||||
//List of modules, empty, it is populated by javascript.
|
||||
$table->data['module'][1] = "
|
||||
<table cellspacing='4' cellpadding='4' border='0' width='98%'
|
||||
<table cellspacing='4' cellpadding='4' border='0' width='100%'
|
||||
id='modules_in_agent' class='databox_color'>
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -651,7 +658,7 @@ $table->data['module'][1] = "
|
|||
<tbody>
|
||||
<tr class='datos' id='template' style='display: none;'>
|
||||
<td class='name_module' style=''></td>
|
||||
<td class='cell_delete_button' style='text-align: center; width:10%;' id=''>"
|
||||
<td class='cell_delete_button' style='text-align: right; width:10%;' id=''>"
|
||||
. '<a class="link_delete"
|
||||
onclick="if(!confirm(\'' . __('Are you sure?') . '\')) return false;"
|
||||
href="">'
|
||||
|
@ -665,7 +672,7 @@ $table->data['module'][1] = "
|
|||
. html_print_select(array(),
|
||||
'modules', '', '', '', 0, true)
|
||||
. "</td>
|
||||
<td class='datos2 button_cell' style='text-align: center; width:10%;' id=''>"
|
||||
<td class='datos2 button_cell' style='text-align: right; width:10%;' id=''>"
|
||||
. '<div id="add_button_div">'
|
||||
. '<a class="add_button" href="">'
|
||||
. html_print_image("images/add.png", true,
|
||||
|
@ -976,8 +983,7 @@ ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascri
|
|||
$.datepicker.setDefaults($.datepicker.regional[ "<?php echo get_user_language(); ?>"]);
|
||||
|
||||
|
||||
$("#filter_group").click (
|
||||
function () {
|
||||
$("#filter_group").click (function () {
|
||||
$(this).css ("width", "auto");
|
||||
});
|
||||
|
||||
|
@ -985,8 +991,7 @@ ui_require_jquery_file("ui.datepicker-" . get_user_language(), "include/javascri
|
|||
$(this).css ("width", "180px");
|
||||
});
|
||||
|
||||
$("#id_agent").click (
|
||||
function () {
|
||||
$("#id_agent").click (function () {
|
||||
$(this).css ("width", "auto");
|
||||
});
|
||||
|
||||
|
|
|
@ -226,8 +226,8 @@ $filter_params_str = !empty($filter_params_aux) ? implode("&", $filter_params_au
|
|||
|
||||
// Table filter
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox';
|
||||
$table->width = '99%';
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->rowstyle = array();
|
||||
$table->rowstyle[0] = "background-color: #f9faf9;";
|
||||
$table->rowstyle[1] = "background-color: #f9faf9;";
|
||||
|
@ -284,9 +284,9 @@ echo "</form>";
|
|||
|
||||
// View available downtimes present in database (if any of them)
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox';
|
||||
$table->class = 'databox data';
|
||||
//Start Overview of existing planned downtime
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$table->cellstyle = array();
|
||||
$table->data = array();
|
||||
$table->head = array();
|
||||
|
|
|
@ -333,11 +333,14 @@ if (!$id_agente) {
|
|||
else {
|
||||
$url = 'index.php?sec='.$sec.'&sec2=godmode/agentes/configurar_agente&pure='.$pure.'&tab=alert&id_agente=' . $id_agente . '&offset=' . $offset . $form_params;
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
|
||||
if ( defined("METACONSOLE") )
|
||||
$table->class = 'alert_list databox';
|
||||
else
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
||||
$table->width = '100%';
|
||||
$table->cellpadding = 0;
|
||||
$table->cellspacing = 0;
|
||||
|
|
|
@ -145,6 +145,7 @@ if ($delete_special_day) {
|
|||
__('Could not be deleted'));
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ $url = ui_get_url_refresh (array ('offset' => false));
|
|||
|
||||
$search_string = (string) get_parameter ('search_string');
|
||||
$search_type = (string) get_parameter ('search_type');
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if (defined("METACONSOLE")) {
|
||||
|
@ -288,7 +288,7 @@ $templates = alerts_get_alert_templates ($filter,
|
|||
array ('id', 'name', 'description', 'type', 'id_group'));
|
||||
if ($templates === false)
|
||||
$templates = array ();
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->data = array ();
|
||||
|
|
|
@ -88,6 +88,7 @@ html_print_div(
|
|||
'content' => ui_print_help_icon ('alert_macros', true),
|
||||
'hidden' => true));
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = 'table_macros';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
|
|
@ -118,6 +118,7 @@ if (!empty($fields_values)) {
|
|||
$fields_values = json_decode($fields_values, true);
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ if ($date == '') {
|
|||
// Header
|
||||
ui_print_page_header (__('Alerts').' » '.__('Configure special day'), "images/gm_alerts.png", false, "", true);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -469,11 +469,11 @@ if ($id && ! $create_template) {
|
|||
|
||||
print_alert_template_steps ($step, $id);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = 'template';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if(defined("METACONSOLE")) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Create Template');
|
||||
$table->head_colspan[0] = 4;
|
||||
|
|
|
@ -96,11 +96,11 @@ if (!empty($result)) {
|
|||
|
||||
// Prepare pagination
|
||||
ui_pagination ($total_categories, $url);
|
||||
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if(defined('METACONSOLE'))
|
||||
$table->width = '100%';
|
||||
|
||||
$table->data = array ();
|
||||
$table->head = array ();
|
||||
$table->align = array ();
|
||||
|
|
|
@ -51,6 +51,7 @@ $row = db_get_row_sql ("
|
|||
MAX(timestamp) AS latest_date
|
||||
FROM tevento");
|
||||
|
||||
$table = new stdClass();
|
||||
$table->data = array ();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
|
|
|
@ -133,6 +133,7 @@ echo ' <a href="index.php?sec=geventos&sec2=godmode/events/events§ion=f
|
|||
html_print_image ('images/clean.png', false, array ('title' => __('Load default event fields'), 'onclick' => "if (! confirm ('" . __('Default event fields will be loaded. Do you want to continue?') ."')) return false"));
|
||||
echo '</a></h3>';
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -96,6 +96,7 @@ $filters = db_get_all_rows_sql($sql);
|
|||
if ($filters === false)
|
||||
$filters = array ();
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ else {
|
|||
$event_response['params'] = '';
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ if(empty($event_responses)) {
|
|||
return;
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
|
|
|
@ -307,7 +307,7 @@ switch ($action) {
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ switch ($action) {
|
|||
|
||||
ui_print_page_header (__('GIS Maps builder'), "images/gm_gis.png", false, "gis_map_builder", true);
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __('Map name');
|
||||
|
|
|
@ -236,7 +236,6 @@ $table->width = '100%';
|
|||
$table->class = 'databox filters';
|
||||
/* $table came from manage_network_components_form_common.php */
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
if ($id) {
|
||||
$table->head[0] = __('Update Network Component');
|
||||
|
|
|
@ -466,6 +466,7 @@ switch ($action) {
|
|||
$table = new stdClass();
|
||||
$table->width = '0px';
|
||||
if (sizeof ($reports)) {
|
||||
$table = new stdClass();
|
||||
$table->id = 'report_list';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
@ -512,7 +513,7 @@ switch ($action) {
|
|||
$next++;
|
||||
$table->head[$next] = __('Group');
|
||||
$table->size[$next] = '15%';
|
||||
|
||||
|
||||
$next++;
|
||||
if(!defined('METACONSOLE'))
|
||||
$table->head[$next] = '<span title="Operations">' .
|
||||
|
|
|
@ -84,9 +84,9 @@ switch ($action) {
|
|||
break;
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head[0] = __("Create visual console");
|
||||
$table->head_colspan[0] = 5;
|
||||
|
@ -96,9 +96,11 @@ if (defined('METACONSOLE')) {
|
|||
}
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array ();
|
||||
$table->data[0][0] = __('Name:'). ui_print_help_tip (__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
|
||||
$table->data[0][0] = __('Name:') .
|
||||
ui_print_help_tip(__("Use [ or ( as first character, for example '[*] Map name', to render this map name in main menu"), true);
|
||||
|
||||
$table->data[0][1] = html_print_input_text ('name', $visualConsoleName, '', 80, 100, true);
|
||||
$table->data[0][1] = html_print_input_text('name', $visualConsoleName,
|
||||
'', 80, 100, true);
|
||||
$table->data[1][0] = __('Group:');
|
||||
$groups = users_get_groups ($config['id_user'], 'RW');
|
||||
|
||||
|
@ -110,11 +112,15 @@ if ($own_info['is_admin'] || $vconsole_write || $vconsole_manage)
|
|||
else
|
||||
$display_all_group = false;
|
||||
|
||||
$table->data[1][1] = html_print_select_groups($config['id_user'], "RW", $display_all_group, 'id_group', $idGroup, '', '', '', true);
|
||||
$backgrounds_list = list_files ($config['homedir'] . '/images/console/background/', "jpg", 1, 0);
|
||||
$backgrounds_list = array_merge ($backgrounds_list, list_files ($config['homedir'] . '/images/console/background/', "png", 1, 0));
|
||||
$table->data[1][1] = html_print_select_groups($config['id_user'], "RW",
|
||||
$display_all_group, 'id_group', $idGroup, '', '', '', true);
|
||||
$backgrounds_list = list_files(
|
||||
$config['homedir'] . '/images/console/background/', "jpg", 1, 0);
|
||||
$backgrounds_list = array_merge($backgrounds_list,
|
||||
list_files($config['homedir'] . '/images/console/background/', "png", 1, 0));
|
||||
$table->data[2][0] = __('Background');
|
||||
$table->data[2][1] = html_print_select ($backgrounds_list, 'background', $background, '', '', 0, true);
|
||||
$table->data[2][1] = html_print_select($backgrounds_list, 'background',
|
||||
$background, '', '', 0, true);
|
||||
if ($action == 'new') {
|
||||
$textButtonSubmit = __('Save');
|
||||
$classButtonSubmit = 'sub wand';
|
||||
|
@ -126,8 +132,9 @@ else {
|
|||
|
||||
html_print_table($table);
|
||||
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'; margin-top: 15px;">';
|
||||
html_print_submit_button ($textButtonSubmit, 'update_layout', false, 'class="' . $classButtonSubmit . '"');
|
||||
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
||||
html_print_submit_button ($textButtonSubmit, 'update_layout', false,
|
||||
'class="' . $classButtonSubmit . '"');
|
||||
echo '</div>';
|
||||
|
||||
echo "</form>";
|
||||
|
|
|
@ -29,9 +29,11 @@ if (empty($visualConsole)) {
|
|||
// if (!isset($vconsole_read))
|
||||
// $vconsole_read = check_acl ($config['id_user'], $visualConsole['id_group'], "VR");
|
||||
if (!isset($vconsole_write))
|
||||
$vconsole_write = check_acl ($config['id_user'], $visualConsole['id_group'], "VW");
|
||||
$vconsole_write = check_acl($config['id_user'],
|
||||
$visualConsole['id_group'], "VW");
|
||||
if (!isset($vconsole_manage))
|
||||
$vconsole_manage = check_acl ($config['id_user'], $visualConsole['id_group'], "VM");
|
||||
$vconsole_manage = check_acl($config['id_user'],
|
||||
$visualConsole['id_group'], "VM");
|
||||
|
||||
if (!$vconsole_write && !$vconsole_manage) {
|
||||
db_pandora_audit("ACL Violation",
|
||||
|
@ -47,11 +49,14 @@ enterprise_include_once('meta/include/functions_agents_meta.php');
|
|||
enterprise_include_once('meta/include/functions_users_meta.php');
|
||||
|
||||
//Arrays for select box.
|
||||
$backgrounds_list = list_files($config['homedir'] . '/images/console/background/', "jpg", 1, 0);
|
||||
$backgrounds_list = array_merge($backgrounds_list, list_files ($config['homedir'] . '/images/console/background/', "png", 1, 0));
|
||||
$backgrounds_list = list_files(
|
||||
$config['homedir'] . '/images/console/background/', "jpg", 1, 0);
|
||||
$backgrounds_list = array_merge($backgrounds_list,
|
||||
list_files($config['homedir'] . '/images/console/background/', "png", 1, 0));
|
||||
|
||||
$images_list = array ();
|
||||
$all_images = list_files ($config['homedir'] . '/images/console/icons/', "png", 1, 0);
|
||||
$all_images = list_files ($config['homedir'] . '/images/console/icons/',
|
||||
"png", 1, 0);
|
||||
foreach ($all_images as $image_file) {
|
||||
if (strpos ($image_file, "_bad"))
|
||||
continue;
|
||||
|
@ -63,13 +68,14 @@ foreach ($all_images as $image_file) {
|
|||
$images_list[$image_file] = $image_file;
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
if (!defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
}
|
||||
else {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->class = 'databox';
|
||||
}
|
||||
$table->head = array();
|
||||
$table->head['icon'] = '';
|
||||
|
@ -133,51 +139,63 @@ foreach ($layoutDatas as $layoutData) {
|
|||
switch ($layoutData['type']) {
|
||||
case STATIC_GRAPH:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/camera.png', true, array('title' => __('Static Graph')));
|
||||
html_print_image('images/camera.png', true,
|
||||
array('title' => __('Static Graph')));
|
||||
break;
|
||||
case PERCENTILE_BAR:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/chart_bar.png', true, array('title' => __('Percentile Bar')));
|
||||
html_print_image('images/chart_bar.png', true,
|
||||
array('title' => __('Percentile Bar')));
|
||||
break;
|
||||
case PERCENTILE_BUBBLE:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/dot_red.png', true, array('title' => __('Percentile Bubble')));
|
||||
html_print_image('images/dot_red.png', true,
|
||||
array('title' => __('Percentile Bubble')));
|
||||
break;
|
||||
case MODULE_GRAPH:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/chart_curve.png', true, array('title' => __('Module Graph')));
|
||||
html_print_image('images/chart_curve.png', true,
|
||||
array('title' => __('Module Graph')));
|
||||
break;
|
||||
case SIMPLE_VALUE:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/binary.png', true, array('title' => __('Simple Value')));
|
||||
html_print_image('images/binary.png', true,
|
||||
array('title' => __('Simple Value')));
|
||||
break;
|
||||
case SIMPLE_VALUE_MAX:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/binary.png', true, array('title' => __('Simple Value (Process Max)')));
|
||||
html_print_image('images/binary.png', true,
|
||||
array('title' => __('Simple Value (Process Max)')));
|
||||
break;
|
||||
case SIMPLE_VALUE_MIN:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/binary.png', true, array('title' => __('Simple Value (Process Min)')));
|
||||
html_print_image('images/binary.png', true,
|
||||
array('title' => __('Simple Value (Process Min)')));
|
||||
break;
|
||||
case SIMPLE_VALUE_AVG:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/binary.png', true, array('title' => __('Simple Value (Process Avg)')));
|
||||
html_print_image('images/binary.png', true,
|
||||
array('title' => __('Simple Value (Process Avg)')));
|
||||
break;
|
||||
case LABEL:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/tag_red.png', true, array('title' => __('Label')));
|
||||
html_print_image('images/tag_red.png', true,
|
||||
array('title' => __('Label')));
|
||||
break;
|
||||
case ICON:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/photo.png', true, array('title' => __('Icon')));
|
||||
html_print_image('images/photo.png', true,
|
||||
array('title' => __('Icon')));
|
||||
break;
|
||||
case BOX_ITEM:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/box_item.png', true, array('title' => __('Box')));
|
||||
html_print_image('images/box_item.png', true,
|
||||
array('title' => __('Box')));
|
||||
break;
|
||||
case GROUP_ITEM:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
html_print_image('images/group_green.png', true, array('title' => __('Group')));
|
||||
html_print_image('images/group_green.png', true,
|
||||
array('title' => __('Group')));
|
||||
break;
|
||||
case LINE_ITEM:
|
||||
$table->data[$i + 1]['icon'] =
|
||||
|
@ -334,7 +352,8 @@ foreach ($layoutDatas as $layoutData) {
|
|||
default:
|
||||
$cell_content_enterprise = false;
|
||||
if (enterprise_installed()) {
|
||||
$cell_content_enterprise = enterprise_visual_map_print_list_element('agent', $layoutData);
|
||||
$cell_content_enterprise =
|
||||
enterprise_visual_map_print_list_element('agent', $layoutData);
|
||||
}
|
||||
if ($cell_content_enterprise === false) {
|
||||
$params = array();
|
||||
|
@ -504,7 +523,8 @@ if (!defined('METACONSOLE')) {
|
|||
"tab=" . $activeTab . "&" .
|
||||
"id_visual_console=" . $visualConsole["id"];
|
||||
|
||||
echo '<form id="form_multiple_delete" method="post" action="' . $url_multiple_delete . '">';
|
||||
echo '<form id="form_multiple_delete" method="post" action="' .
|
||||
$url_multiple_delete . '">';
|
||||
}
|
||||
else {
|
||||
$url_multiple_delete = "index.php?" .
|
||||
|
@ -516,7 +536,8 @@ else {
|
|||
"tab=list_elements&" .
|
||||
"id_visual_console=" . $idVisualConsole;
|
||||
|
||||
echo "<form id='form_multiple_delete' method='post' action=" . $url_multiple_delete . ">";
|
||||
echo "<form id='form_multiple_delete' method='post' action=" .
|
||||
$url_multiple_delete . ">";
|
||||
}
|
||||
if (!defined('METACONSOLE')) {
|
||||
html_print_input_hidden ('action', 'multiple_delete');
|
||||
|
@ -556,10 +577,12 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
|||
theme : "advanced",
|
||||
<?php
|
||||
if ($config['style'] == 'pandora_legacy') {
|
||||
echo 'content_css: "' . ui_get_full_url('include/styles/pandora_legacy.css', false, false, false) . '",' . "\n";
|
||||
echo 'content_css: "' .
|
||||
ui_get_full_url('include/styles/pandora_legacy.css', false, false, false) . '",' . "\n";
|
||||
}
|
||||
else {
|
||||
echo 'content_css: "' . ui_get_full_url('include/styles/pandora.css', false, false, false) . '",' . "\n";
|
||||
echo 'content_css: "' .
|
||||
ui_get_full_url('include/styles/pandora.css', false, false, false) . '",' . "\n";
|
||||
}
|
||||
?>
|
||||
theme_advanced_font_sizes :
|
||||
|
@ -625,9 +648,11 @@ ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
|
|||
|
||||
function submit_delete_multiple_items() {
|
||||
delete_items = [];
|
||||
jQuery.each($("input[name='multiple_delete_items']:checked"), function(i, item) {
|
||||
delete_items.push($(item).val());
|
||||
});
|
||||
jQuery.each($("input[name='multiple_delete_items']:checked"),
|
||||
function(i, item) {
|
||||
delete_items.push($(item).val());
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
$("input[name='id_item_json']").val(JSON.stringify(delete_items));
|
||||
|
|
|
@ -247,6 +247,7 @@ else {
|
|||
}
|
||||
$color=1;
|
||||
if ($result !== false) {
|
||||
$table = new StdClass();
|
||||
$table->head = array (__('Name'), __('Network'), __('Mode'), __('Group'), __('Incident'), __('OS'), __('Interval'), __('Ports'), __('Action'));
|
||||
$table->align = array ("left","left","left","left","left","left","left","left");
|
||||
$table->width = "100%";
|
||||
|
|
|
@ -150,28 +150,30 @@ if ($is_windows) {
|
|||
echo '</div>';
|
||||
}
|
||||
|
||||
$table->id='table_recon';
|
||||
$table->width='100%';
|
||||
$table->cellspacing=4;
|
||||
$table->cellpadding=4;
|
||||
$table->class="databox filters";
|
||||
$table->rowclass[3]="network_sweep";
|
||||
$table->rowclass[5]="network_sweep";
|
||||
$table->rowclass[7]="network_sweep";
|
||||
$table->rowclass[8]="network_sweep";
|
||||
$table->rowclass[11]="network_sweep";
|
||||
$table->rowclass[17]="network_sweep";
|
||||
$table->rowclass[18]="network_sweep";
|
||||
$table->rowclass[19]="network_sweep";
|
||||
$table->rowclass[20]="network_sweep";
|
||||
$table->rowclass[21]="network_sweep";
|
||||
$table = new stdClass();
|
||||
$table->id = 'table_recon';
|
||||
$table->width = '100%';
|
||||
$table->cellspacing = 4;
|
||||
$table->cellpadding = 4;
|
||||
$table->class = "databox filters";
|
||||
|
||||
$table->rowclass[6]="recon_script";
|
||||
$table->rowclass[12]="recon_script";
|
||||
$table->rowclass[13]="recon_script";
|
||||
$table->rowclass[14]="recon_script";
|
||||
$table->rowclass[15]="recon_script";
|
||||
$table->rowclass[16]="recon_script";
|
||||
$table->rowclass[3] = "network_sweep";
|
||||
$table->rowclass[5] = "network_sweep";
|
||||
$table->rowclass[7] = "network_sweep";
|
||||
$table->rowclass[8] = "network_sweep";
|
||||
$table->rowclass[11] = "network_sweep";
|
||||
$table->rowclass[17] = "network_sweep";
|
||||
$table->rowclass[18] = "network_sweep";
|
||||
$table->rowclass[19] = "network_sweep";
|
||||
$table->rowclass[20] = "network_sweep";
|
||||
$table->rowclass[21] = "network_sweep";
|
||||
|
||||
$table->rowclass[6] = "recon_script";
|
||||
$table->rowclass[12] = "recon_script";
|
||||
$table->rowclass[13] = "recon_script";
|
||||
$table->rowclass[14] = "recon_script";
|
||||
$table->rowclass[15] = "recon_script";
|
||||
$table->rowclass[16] = "recon_script";
|
||||
// Name
|
||||
$table->data[0][0] = "<b>" . __('Task name') . "</b>";
|
||||
$table->data[0][1] = html_print_input_text ('name', $name, '', 25, 0, true);
|
||||
|
@ -181,11 +183,11 @@ $table->data[1][0] = "<b>" . __('Recon server') .
|
|||
ui_print_help_tip(
|
||||
__('You must select a Recon Server for the Task, otherwise the Recon Task will never run'), true);
|
||||
|
||||
$table->data[1][1] = html_print_select_from_sql ('SELECT id_server, name
|
||||
FROM tserver
|
||||
WHERE server_type = 3
|
||||
ORDER BY name', "id_recon_server", $id_recon_server, '', '', '', true);
|
||||
|
||||
$sql = 'SELECT id_server, name
|
||||
FROM tserver
|
||||
WHERE server_type = 3
|
||||
ORDER BY name';
|
||||
$table->data[1][1] = html_print_select_from_sql ($sql, "id_recon_server", $id_recon_server, '', '', '', true);
|
||||
|
||||
$fields['network_sweep'] = __("Network sweep");
|
||||
if (!$is_windows)
|
||||
|
@ -217,8 +219,11 @@ $table->data[4][1] .= '</span>';
|
|||
|
||||
// Module template
|
||||
$table->data[5][0] = "<b>".__('Module template');
|
||||
$table->data[5][1] = html_print_select_from_sql ('SELECT id_np, name FROM tnetwork_profile',
|
||||
"id_network_profile", $id_network_profile, '', __('None'), 0, true);
|
||||
|
||||
$sql = 'SELECT id_np, name
|
||||
FROM tnetwork_profile
|
||||
ORDER BY name';
|
||||
$table->data[5][1] = html_print_select_from_sql ($sql, "id_network_profile", $id_network_profile, '', __('None'), 0, true);
|
||||
|
||||
// Recon script
|
||||
$data[1] = '';
|
||||
|
@ -231,8 +236,11 @@ $table->data[6][1] .= $data[1] .= html_print_input_hidden('macros',
|
|||
|
||||
// OS
|
||||
$table->data[7][0] = "<b>".__('OS');
|
||||
$table->data[7][1] = html_print_select_from_sql ('SELECT id_os, name FROM tconfig_os ORDER BY name',
|
||||
"id_os", $id_os, '', __('Any'), -1, true);
|
||||
|
||||
$sql = 'SELECT id_os, name
|
||||
FROM tconfig_os
|
||||
ORDER BY name';
|
||||
$table->data[7][1] = html_print_select_from_sql ($sql, "id_os", $id_os, '', __('Any'), -1, true);
|
||||
|
||||
// Recon ports
|
||||
$table->data[8][0] = "<b>".__('Ports');
|
||||
|
|
|
@ -230,6 +230,7 @@ if (($create != "") OR ($view != "")) {
|
|||
echo "<form name=plugin method='post' action='index.php?sec=gservers&sec2=godmode/servers/plugin&tab=$tab&create_plugin=1&pure=" . $config['pure'] . "'>";
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->id = 'table-form';
|
||||
$table->class = 'databox filters';
|
||||
|
@ -712,7 +713,7 @@ else {
|
|||
'tnetwork_component',
|
||||
array('id_plugin' => $row["id"]));
|
||||
if (($components_using_plugin + $modules_using_plugin) > 0) {
|
||||
echo "<a href='javascript: show_locked_dialog(" . $row['id'] . ");'>";
|
||||
echo '<a href="javascript: show_locked_dialog(' . $row['id'] . ', \'' . $row["name"] . '\');">';
|
||||
html_print_image('images/lock.png');
|
||||
echo "</a>";
|
||||
}
|
||||
|
@ -734,8 +735,9 @@ else {
|
|||
echo "<input name='crtbutton' type='submit' class='sub next' value='".__('Add')."'>";
|
||||
echo "</td></tr></table>";
|
||||
|
||||
// The '%s' will be replaced in the javascript code of the function 'show_locked_dialog'
|
||||
echo "<div id='dialog_locked' title='" .
|
||||
sprintf(__('List of modules and components created by "%s" '), $row["name"]) .
|
||||
__('List of modules and components created by "%s" ') .
|
||||
"' style='display: none; text-align: left;'>";
|
||||
echo "</div>";
|
||||
|
||||
|
|
|
@ -82,6 +82,7 @@ if (($create != "") OR ($view != "")) {
|
|||
else
|
||||
echo "<form name=reconscript method='post' action='index.php?sec=gservers&sec2=godmode/servers/recon_script&create_reconscript=1'>";
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->id = 'table-form';
|
||||
$table->class = 'databox filters';
|
||||
|
|
|
@ -37,6 +37,7 @@ if ($servers === false) {
|
|||
return;
|
||||
}
|
||||
|
||||
$table = new StdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->size = array ();
|
||||
|
|
|
@ -143,7 +143,7 @@ if ((isset ($_GET["form_add"])) || (isset ($_GET["form_edit"]))) {
|
|||
}
|
||||
|
||||
// Create news
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->id = "news";
|
||||
$table->cellpadding = 4;
|
||||
|
|
|
@ -25,7 +25,7 @@ if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_us
|
|||
}
|
||||
|
||||
echo '<form id="form_setup" method="post">';
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_us
|
|||
return;
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
|
|
@ -35,8 +35,8 @@ If you added a new token, please check config_update_config() in functions_confi
|
|||
to add it there.
|
||||
*/
|
||||
|
||||
|
||||
$table->width = '98%';
|
||||
$table = new StdClass();
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
|
||||
$table->size[0] = '70%';
|
||||
|
@ -66,8 +66,9 @@ $table->data[7][1] = html_print_input_text ('days_compact', $config["days_compac
|
|||
$table->data[8][0] = __('Max. days before delete unknown modules');
|
||||
$table->data[8][1] = html_print_input_text ('days_delete_unknown', $config["days_delete_unknown"], '', 5, 5, true);
|
||||
|
||||
|
||||
$table_other->width = '98%';
|
||||
$table_other = new StdClass();
|
||||
$table_other->width = '100%';
|
||||
$table_other->class = 'databox filters';
|
||||
$table_other->data = array ();
|
||||
|
||||
$table_other->size[0] = '70%';
|
||||
|
|
|
@ -29,9 +29,10 @@ include_once($config['homedir'] . "/include/functions_profile.php");
|
|||
// Load enterprise extensions
|
||||
enterprise_include ('godmode/setup/setup_auth.php');
|
||||
|
||||
|
||||
$table = new StdClass();
|
||||
$table->data = array ();
|
||||
$table->width = '98%';
|
||||
$table->width = '100%';
|
||||
$tablw->class = 'databox filters';
|
||||
$table->size[0] = '30%';
|
||||
|
||||
$table->data[0][0] = __('Authentication method');
|
||||
|
|
|
@ -18,6 +18,8 @@ global $config;
|
|||
|
||||
check_login ();
|
||||
|
||||
$table = new StdClass();
|
||||
$table->class = 'databox filters';
|
||||
$table->width = '100%';
|
||||
$table->data = array ();
|
||||
$table->size = array();
|
||||
|
|
|
@ -170,6 +170,7 @@ $iterator = 0;
|
|||
|
||||
if (!empty($result)) {
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
||||
|
|
|
@ -53,7 +53,8 @@ if ($action_update_url_update_manager) {
|
|||
}
|
||||
|
||||
echo '<form method="post" action="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=setup">';
|
||||
$table = null;
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -219,6 +219,7 @@ if ($id_profile || $new_profile) {
|
|||
$page_title = __('Update profile');
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
if (defined("METACONSOLE")) {
|
||||
|
|
|
@ -413,6 +413,7 @@ if ($delete_profile) {
|
|||
__('Could not be deleted'));
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = 'user_configuration_table';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
|
|
@ -288,6 +288,7 @@ if ($create_profile) {
|
|||
$id_profile = 0;
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->class = 'databox data';
|
||||
|
|
|
@ -218,7 +218,7 @@ if (($filter_group == 0) && ($filter_search == '')) {
|
|||
$search = false;
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = "databox filters";
|
||||
if(defined('METACONSOLE'))
|
||||
|
|
|
@ -30,9 +30,10 @@ $get_agents_group = (bool) get_parameter('get_agents_group', false);
|
|||
$force_local = (bool) get_parameter('force_local', false);
|
||||
|
||||
if ($get_agents_group) {
|
||||
$id_group = (int)get_parameter('id_group', -1);
|
||||
$mode = (string)get_parameter('mode', 'json');
|
||||
$id_server = (int)get_parameter('id_server', 0);
|
||||
|
||||
$id_group = (int) get_parameter('id_group', -1);
|
||||
$mode = (string) get_parameter('mode', 'json');
|
||||
$id_server = (int) get_parameter('id_server', 0);
|
||||
|
||||
$return = array();
|
||||
if ($id_group != -1) {
|
||||
|
@ -56,8 +57,8 @@ if ($get_agents_group) {
|
|||
if ($search_agents && ((!defined('METACONSOLE')) || $force_local)) {
|
||||
require_once ('include/functions_agents.php');
|
||||
|
||||
$id_agent = (int) get_parameter ('id_agent');
|
||||
$string = (string) get_parameter ('q'); /* q is what autocomplete plugin gives */
|
||||
$id_agent = (int) get_parameter('id_agent');
|
||||
$string = (string) get_parameter('q'); /* q is what autocomplete plugin gives */
|
||||
$id_group = (int) get_parameter('id_group', -1);
|
||||
$addedItems = html_entity_decode((string) get_parameter('add'));
|
||||
$addedItems = json_decode($addedItems);
|
||||
|
|
|
@ -66,7 +66,7 @@ if ($add_sla) {
|
|||
$sla_max = get_parameter('sla_max', 0);
|
||||
$sla_min = get_parameter('sla_min', 0);
|
||||
$server_id = (int)get_parameter('server_id', 0);
|
||||
|
||||
|
||||
$id_service = (int) get_parameter("id_service");
|
||||
if (empty($id_module) && !empty($id_service)) {
|
||||
$id_module = $id_service;
|
||||
|
|
|
@ -39,6 +39,7 @@ function printFormFilterAlert($id_group, $filter, $free_search, $url, $filter_st
|
|||
global $config;
|
||||
require_once ($config['homedir'] . "/include/functions_tags.php");
|
||||
|
||||
$table = new StdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->cellpadding = '0';
|
||||
|
|
|
@ -52,6 +52,7 @@ if ($fields === false) {
|
|||
ui_print_empty_data ( __("No fields defined") );
|
||||
}
|
||||
else {
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->head = array ();
|
||||
|
|
|
@ -105,7 +105,7 @@ if (empty($modules)) {
|
|||
$modules = $module_ids;
|
||||
}
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
||||
|
|
|
@ -108,40 +108,6 @@ if ($delete_networkmap) {
|
|||
$group_search = (int) get_parameter('group_search');
|
||||
$type_search = get_parameter('type_filter', '0');
|
||||
|
||||
?>
|
||||
<form method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap_list">
|
||||
<table style='width: 100%' class='databox filters'>
|
||||
<tr>
|
||||
<td class='datos' style="font-weight:bold;">
|
||||
<?php echo __('Group'); ?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
html_print_select_groups($config['id_user'], 'AR',
|
||||
true, 'group_search', $group_search);
|
||||
?>
|
||||
</td>
|
||||
<td class='datos' style="font-weight:bold;">
|
||||
<?php echo __('Type'); ?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
$networkmap_filter_types = networkmap_get_filter_types($strict_user);
|
||||
html_print_select($networkmap_filter_types, 'type_filter',
|
||||
$type_search, '', __('All'), 0, false);
|
||||
?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
html_print_submit_button (__('Filter'), 'crt', false,
|
||||
'class="sub search"');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
// Display table
|
||||
$table = new StdClass();
|
||||
$table->width = "100%";
|
||||
|
@ -193,9 +159,43 @@ $user_info = users_get_user_by_id($config['id_user']);
|
|||
$network_maps = db_get_all_rows_filter('tnetwork_map', $where);
|
||||
|
||||
if ($network_maps === false) {
|
||||
ui_print_info_message ( array('no_close'=>true, 'message'=> __('Not networkmap defined.') ) );
|
||||
require($config['homedir']."/general/firts_task/network_map.php");
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<form method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap_list">
|
||||
<table style='width: 100%' class='databox filters'>
|
||||
<tr>
|
||||
<td class='datos' style="font-weight:bold;">
|
||||
<?php echo __('Group'); ?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
html_print_select_groups($config['id_user'], 'AR',
|
||||
true, 'group_search', $group_search);
|
||||
?>
|
||||
</td>
|
||||
<td class='datos' style="font-weight:bold;">
|
||||
<?php echo __('Type'); ?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
$networkmap_filter_types = networkmap_get_filter_types($strict_user);
|
||||
html_print_select($networkmap_filter_types, 'type_filter',
|
||||
$type_search, '', __('All'), 0, false);
|
||||
?>
|
||||
</td>
|
||||
<td class='datos'>
|
||||
<?php
|
||||
html_print_submit_button (__('Filter'), 'crt', false,
|
||||
'class="sub search"');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
$table->data = array();
|
||||
foreach ($network_maps as $network_map) {
|
||||
// ACL
|
||||
|
@ -231,46 +231,45 @@ else {
|
|||
}
|
||||
|
||||
html_print_table($table);
|
||||
}
|
||||
// Create networkmap form
|
||||
if ($networkmaps_write || $networkmaps_manage) {
|
||||
$table_manage = new StdClass();
|
||||
$table_manage->width = "100%";
|
||||
$table_manage->class = "databox filters";
|
||||
$table_manage->style = array();
|
||||
$table_manage->style[0] = 'font-weight: bold';
|
||||
$table_manage->style[2] = 'font-weight: bold';
|
||||
$table_manage->style[4] = 'text-align: center';
|
||||
$table_manage->size = array();
|
||||
$table_manage->head = array();
|
||||
$table_manage->data = array();
|
||||
|
||||
// Create networkmap form
|
||||
if ($networkmaps_write || $networkmaps_manage) {
|
||||
$table_manage = new StdClass();
|
||||
$table_manage->width = "100%";
|
||||
$table_manage->class = "databox filters";
|
||||
$table_manage->style = array();
|
||||
$table_manage->style[0] = 'font-weight: bold';
|
||||
$table_manage->style[2] = 'font-weight: bold';
|
||||
$table_manage->style[4] = 'text-align: center';
|
||||
$table_manage->size = array();
|
||||
$table_manage->head = array();
|
||||
$table_manage->data = array();
|
||||
$actions = array(
|
||||
'create' => __('Create'),
|
||||
'delete' => __('Delete')
|
||||
);
|
||||
$networkmap_types = networkmap_get_types($strict_user);
|
||||
$delete_options = array(
|
||||
'selected' => __('Delete selected')
|
||||
);
|
||||
|
||||
$actions = array(
|
||||
'create' => __('Create'),
|
||||
'delete' => __('Delete')
|
||||
);
|
||||
$networkmap_types = networkmap_get_types($strict_user);
|
||||
$delete_options = array(
|
||||
'selected' => __('Delete selected')
|
||||
);
|
||||
$row = array();
|
||||
$row[] = __('Action');
|
||||
$row[] = html_print_select($actions, 'action', 'create', '', '', 0, true, false, false);
|
||||
$row[] = __('Type');
|
||||
$row[] = html_print_select($networkmap_types, 'tab', 'topology', '', '', 0, true)
|
||||
. html_print_select($delete_options, 'delete_options', 'selected', '', '', 0, true, false, false);
|
||||
$row[] = html_print_submit_button (__('Execute'), 'crt', false, 'class="sub next"', true)
|
||||
. html_print_image("images/spinner.gif", true, array('id' => 'action-loading', 'style' => 'display: none;'));
|
||||
|
||||
$row = array();
|
||||
$row[] = __('Action');
|
||||
$row[] = html_print_select($actions, 'action', 'create', '', '', 0, true, false, false);
|
||||
$row[] = __('Type');
|
||||
$row[] = html_print_select($networkmap_types, 'tab', 'topology', '', '', 0, true)
|
||||
. html_print_select($delete_options, 'delete_options', 'selected', '', '', 0, true, false, false);
|
||||
$row[] = html_print_submit_button (__('Execute'), 'crt', false, 'class="sub next"', true)
|
||||
. html_print_image("images/spinner.gif", true, array('id' => 'action-loading', 'style' => 'display: none;'));
|
||||
$table_manage->data[] = $row;
|
||||
|
||||
$table_manage->data[] = $row;
|
||||
|
||||
echo '<form id="networkmap_action" method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap">';
|
||||
html_print_table($table_manage);
|
||||
html_print_input_hidden('add_networkmap', 0);
|
||||
html_print_input_hidden('delete_networkmaps', 0);
|
||||
echo "</form>";
|
||||
echo '<form id="networkmap_action" method="post" action="index.php?sec=network&sec2=operation/agentes/networkmap">';
|
||||
html_print_table($table_manage);
|
||||
html_print_input_hidden('add_networkmap', 0);
|
||||
html_print_input_hidden('delete_networkmaps', 0);
|
||||
echo "</form>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@ if(!isset($table->width)) {
|
|||
$table->width = '100%';
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->id = "eventtable";
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
|
|
|
@ -27,6 +27,7 @@ ui_print_page_header(__('GIS Maps')." » ".__('Summary'), "images/op_gis.pn
|
|||
|
||||
$maps = gis_get_maps();
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = "100%";
|
||||
$table->class = "databox data";
|
||||
$table->data = array ();
|
||||
|
|
|
@ -71,6 +71,7 @@ if ($read_message) {
|
|||
$dst_name = $message["id_usuario_destino"];
|
||||
}
|
||||
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->data = array();
|
||||
|
|
|
@ -93,6 +93,7 @@ if (empty ($messages)) {
|
|||
echo '<div class="nf">'.__('There are no messages').'</div>';
|
||||
}
|
||||
else {
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
$table->cellpadding = 4;
|
||||
|
|
|
@ -103,7 +103,7 @@ if ($view_graph) {
|
|||
include ("general/noaccess.php");
|
||||
exit;
|
||||
}
|
||||
html_print_input_hidden ('lineWidhtGraph', $config['custom_graph_widht']);
|
||||
html_print_input_hidden ('lineWidhtGraph', $config['custom_graph_width']);
|
||||
$url = "index.php?" .
|
||||
"sec=reporting&" .
|
||||
"sec2=operation/reporting/graph_viewer&" .
|
||||
|
|
|
@ -74,6 +74,7 @@ else {
|
|||
$recon_tasks = array ();
|
||||
}
|
||||
|
||||
$table = new StdClass();
|
||||
$table->cellpadding = 4;
|
||||
$table->cellspacing = 4;
|
||||
$table->width = "100%";
|
||||
|
|
|
@ -179,6 +179,7 @@ if ($status != -1) {
|
|||
__('Error updating user info'));
|
||||
}
|
||||
$jump = " ";
|
||||
$table = new stdClass();
|
||||
$table->id = 'user_form';
|
||||
$table->width = '100%';
|
||||
$table->cellspacing = 4;
|
||||
|
|
|
@ -70,7 +70,7 @@ check_login ();
|
|||
|
||||
ui_print_page_header (__('Webchat'), "images/comments.png", false, "", false, "");
|
||||
|
||||
$table = null;
|
||||
$table = new stdClass();
|
||||
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
|
|
Loading…
Reference in New Issue