2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map_editor.php, include/ajax/visual_console_builder.ajax.php, godmode/reporting/visual_console_builder.php, godmode/reporting/visual_console_builder.data.php, godmode/reporting/visual_console_builder.editor.js: some fixes in the visualconsole. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7956 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2bae3e75f7
commit
45313de94d
|
@ -1,3 +1,12 @@
|
||||||
|
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_visual_map_editor.php,
|
||||||
|
include/ajax/visual_console_builder.ajax.php,
|
||||||
|
godmode/reporting/visual_console_builder.php,
|
||||||
|
godmode/reporting/visual_console_builder.data.php,
|
||||||
|
godmode/reporting/visual_console_builder.editor.js: some fixes in
|
||||||
|
the visualconsole.
|
||||||
|
|
||||||
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
|
2013-04-10 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/ajax/visual_console_builder.ajax.php: fixed the name of
|
* include/ajax/visual_console_builder.ajax.php: fixed the name of
|
||||||
|
|
|
@ -81,7 +81,7 @@ $own_info = get_user_info($config['id_user']);
|
||||||
// Only display group "All" if user is administrator or has "PM" privileges
|
// Only display group "All" if user is administrator or has "PM" privileges
|
||||||
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
if ($own_info['is_admin'] || check_acl ($config['id_user'], 0, "PM"))
|
||||||
$display_all_group = true;
|
$display_all_group = true;
|
||||||
else
|
else
|
||||||
$display_all_group = false;
|
$display_all_group = false;
|
||||||
|
|
||||||
$table->data[1][1] = html_print_select_groups($config['id_user'], "RW", $display_all_group, 'id_group', $idGroup, '', '', '', true);
|
$table->data[1][1] = html_print_select_groups($config['id_user'], "RW", $display_all_group, 'id_group', $idGroup, '', '', '', true);
|
||||||
|
|
|
@ -219,6 +219,7 @@ function readFields() {
|
||||||
values['metaconsole'] = 1;
|
values['metaconsole'] = 1;
|
||||||
values['id_agent'] = $("#hidden-agent").val();
|
values['id_agent'] = $("#hidden-agent").val();
|
||||||
values['server_name'] = $("#id_server_name").val();
|
values['server_name'] = $("#id_server_name").val();
|
||||||
|
values['server_id'] = $("input[name='id_server_metaconsole']").val();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
values['metaconsole'] = 0;
|
values['metaconsole'] = 0;
|
||||||
|
@ -1511,13 +1512,6 @@ function eventsItems(drag) {
|
||||||
$('.item').unbind('dragstop');
|
$('.item').unbind('dragstop');
|
||||||
$('.item').unbind('dragstart');
|
$('.item').unbind('dragstart');
|
||||||
|
|
||||||
//Check if exist or create the previous draggable
|
|
||||||
check_draggable = $(".item").data();
|
|
||||||
if (check_draggable) {
|
|
||||||
if (typeof(check_draggable.uiDraggable) != "undefined")
|
|
||||||
$(".item").draggable('destroy');
|
|
||||||
}
|
|
||||||
|
|
||||||
//$(".item").resizable(); //Disable but run in ff and in the waste (aka micro$oft IE) show ungly borders
|
//$(".item").resizable(); //Disable but run in ff and in the waste (aka micro$oft IE) show ungly borders
|
||||||
|
|
||||||
$('.item').bind('click', function(event, ui) {
|
$('.item').bind('click', function(event, ui) {
|
||||||
|
|
|
@ -401,6 +401,8 @@ else {
|
||||||
$url_view = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap=' . $idVisualConsole . '&refr=' . $view_refresh;
|
$url_view = 'index.php?sec=screen&sec2=screens/screens&action=visualmap&pure=0&id_visualmap=' . $idVisualConsole . '&refr=' . $view_refresh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$buttons = array(
|
$buttons = array(
|
||||||
'view' => array('active' => false,
|
'view' => array('active' => false,
|
||||||
'text' => '<a href="' . $url_view . '">' .
|
'text' => '<a href="' . $url_view . '">' .
|
||||||
|
@ -453,4 +455,4 @@ switch ($activeTab) {
|
||||||
require_once($config['homedir'] . '/godmode/reporting/visual_console_builder.editor.php');
|
require_once($config['homedir'] . '/godmode/reporting/visual_console_builder.editor.php');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
|
@ -65,6 +65,7 @@ $type_percentile = get_parameter('type_percentile', 'percentile');
|
||||||
$value_show = get_parameter('value_show', 'percent');
|
$value_show = get_parameter('value_show', 'percent');
|
||||||
$metaconsole = get_parameter('metaconsole', 0);
|
$metaconsole = get_parameter('metaconsole', 0);
|
||||||
$server_name = get_parameter('server_name', null);
|
$server_name = get_parameter('server_name', null);
|
||||||
|
$server_id = (int)get_parameter('server_id', 0);
|
||||||
$id_agent = get_parameter('id_agent', null);
|
$id_agent = get_parameter('id_agent', null);
|
||||||
$id_metaconsole = get_parameter('id_metaconsole', null);
|
$id_metaconsole = get_parameter('id_metaconsole', null);
|
||||||
|
|
||||||
|
@ -333,6 +334,10 @@ switch ($action) {
|
||||||
$values['id_metaconsole'] = db_get_value('id',
|
$values['id_metaconsole'] = db_get_value('id',
|
||||||
'tmetaconsole_setup', 'server_name', $server_name);
|
'tmetaconsole_setup', 'server_name', $server_name);
|
||||||
}
|
}
|
||||||
|
if ($server_id > 0) {
|
||||||
|
$values['id_metaconsole'] = $server_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($id_agent !== null) {
|
if ($id_agent !== null) {
|
||||||
$values['id_agent'] = $id_agent;
|
$values['id_agent'] = $id_agent;
|
||||||
|
@ -546,8 +551,13 @@ switch ($action) {
|
||||||
$values['pos_y'] = $top;
|
$values['pos_y'] = $top;
|
||||||
|
|
||||||
if (defined('METACONSOLE') && $metaconsole) {
|
if (defined('METACONSOLE') && $metaconsole) {
|
||||||
$values['id_metaconsole'] = db_get_value('id',
|
if ($server_id > 0) {
|
||||||
'tmetaconsole_setup', 'server_name', $server_name);
|
$values['id_metaconsole'] = $server_id;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$values['id_metaconsole'] = db_get_value('id',
|
||||||
|
'tmetaconsole_setup', 'server_name', $server_name);
|
||||||
|
}
|
||||||
$values['id_agent'] = $id_agent;
|
$values['id_agent'] = $id_agent;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -132,8 +132,11 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) {
|
||||||
$params['disabled_javascript_on_blur_function'] = true;
|
$params['disabled_javascript_on_blur_function'] = true;
|
||||||
|
|
||||||
$params['print_input_server'] = true;
|
$params['print_input_server'] = true;
|
||||||
|
$params['print_input_id_server'] = true;
|
||||||
$params['input_server_id'] = 'id_server_name';
|
$params['input_server_id'] = 'id_server_name';
|
||||||
|
$params['input_id_server_name'] = 'id_server_metaconsole';
|
||||||
$params['input_server_value'] = '';
|
$params['input_server_value'] = '';
|
||||||
|
$params['use_input_id_server'] = true;
|
||||||
$params['metaconsole_enabled'] = true;
|
$params['metaconsole_enabled'] = true;
|
||||||
$params['print_hidden_input_idagent'] = true;
|
$params['print_hidden_input_idagent'] = true;
|
||||||
}
|
}
|
||||||
|
@ -402,4 +405,4 @@ function visual_map_editor_print_hack_translate_strings() {
|
||||||
echo '<span style="display: none" id="hack_translation_correct_save">' . __('Successfully save the changes.') .'</span>';
|
echo '<span style="display: none" id="hack_translation_correct_save">' . __('Successfully save the changes.') .'</span>';
|
||||||
echo '<span style="display: none" id="hack_translation_incorrect_save">' . __('Could not be save') .'</span>';
|
echo '<span style="display: none" id="hack_translation_incorrect_save">' . __('Could not be save') .'</span>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue