2011-02-28 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/ajax/visual_console_builder.ajax.php godmode/reporting/visual_console_builder.editor.js: Status information is saved when static graph are created in visual console. * godmode/reporting/visual_console_builder.elements.php: Fixed wrong call to __() function from functions_db. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4023 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d3d72fcc0a
commit
adca7b7420
|
@ -1,3 +1,11 @@
|
|||
2011-02-28 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/ajax/visual_console_builder.ajax.php
|
||||
godmode/reporting/visual_console_builder.editor.js: Status information is
|
||||
saved when static graph are created in visual console.
|
||||
* godmode/reporting/visual_console_builder.elements.php: Fixed wrong call to
|
||||
__() function from functions_db.
|
||||
|
||||
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* pandoradb_data.sql, pandoradb.data.postgreSQL.sql: in the table "tgrupo"
|
||||
|
|
|
@ -416,9 +416,9 @@ function setAspectRatioBackground(side) {
|
|||
dataType: "json",
|
||||
success: function(data){
|
||||
old_width = parseInt($("#background").css('width').replace('px', ''));
|
||||
old_height = parseInt($("#background").css('height').replace('px', ''));
|
||||
old_height = parseInt($("#background").css('height').replace('px', ''));
|
||||
|
||||
img_width = data[0];
|
||||
img_width = data[0];
|
||||
img_height = data[1];
|
||||
|
||||
|
||||
|
@ -672,10 +672,28 @@ function createItem(type, values, id_data) {
|
|||
var sizeStyle = 'width: ' + values['width'] + 'px; height: ' + values['height'] + 'px;';
|
||||
var imageSize = 'width="' + values['width'] + '" height="' + values['height'] + '"';
|
||||
}
|
||||
|
||||
var element_status= null;
|
||||
var parameter = Array();
|
||||
parameter.push ({name: "page", value: "include/ajax/visual_console_builder.ajax"});
|
||||
parameter.push ({name: "get_element_status", value: "1"});
|
||||
parameter.push ({name: "id_element", value: id_data});
|
||||
|
||||
jQuery.ajax ({
|
||||
type: 'POST',
|
||||
url: action="ajax.php",
|
||||
data: parameter,
|
||||
async: false,
|
||||
timeout: 10000,
|
||||
success: function (data) {
|
||||
element_status = data;
|
||||
}
|
||||
});
|
||||
|
||||
var item = $('<div id="' + id_data + '" class="item static_graph" style="left: 0px; top: 0px; color: ' + values['label_color'] + '; text-align: center; position: absolute; ' + sizeStyle + ' margin-top: ' + values['top'] + 'px; margin-left: ' + values['left'] + 'px;">' +
|
||||
'<img id="image_' + id_data + '" class="image" src="' + getImageElement(id_data) + '" ' + imageSize + ' /><br />' +
|
||||
'<span id="text_' + id_data + '" class="text">' + values['label'] + '</span>' +
|
||||
'</div>'
|
||||
'</div><input id="hidden-status_' + id_data + '" type="hidden" value="' + element_status + '" name="status_' + id_data + '">'
|
||||
);
|
||||
break;
|
||||
case 'percentile_bar':
|
||||
|
|
|
@ -113,10 +113,10 @@ foreach ($layoutDatas as $layoutData) {
|
|||
$table->data[$i + 1]['icon'] = print_image('images/chart_curve.png', true, array('title' => __('Module Graph')));
|
||||
break;
|
||||
case SIMPLE_VALUE:
|
||||
$table->data[$i + 1]['icon'] = print_image('images/binary.png', true, array('title' => ___('Simple Value')));
|
||||
$table->data[$i + 1]['icon'] = print_image('images/binary.png', true, array('title' => __('Simple Value')));
|
||||
break;
|
||||
case LABEL:
|
||||
$table->data[$i + 1]['icon'] = print_image('images/tag_red.png', true, array('title' => ___('Label')));
|
||||
$table->data[$i + 1]['icon'] = print_image('images/tag_red.png', true, array('title' => __('Label')));
|
||||
break;
|
||||
case ICON:
|
||||
$table->data[$i + 1]['icon'] = print_image('images/photo.png', true, array('title' => __('Icon')));
|
||||
|
|
|
@ -52,6 +52,8 @@ $max_percentile = get_parameter('max_percentile', null);
|
|||
$height_module_graph = get_parameter('height_module_graph', null);
|
||||
$width_module_graph = get_parameter('width_module_graph', null);
|
||||
|
||||
$get_element_status = get_parameter('get_element_status', 0);
|
||||
|
||||
switch ($action) {
|
||||
case 'get_layout_data':
|
||||
$layoutData = get_db_row_filter('tlayout_data', array('id' => $id_element));
|
||||
|
@ -285,4 +287,14 @@ switch ($action) {
|
|||
echo json_encode($return);
|
||||
break;
|
||||
}
|
||||
|
||||
/* visual map element status check */
|
||||
if ($get_element_status){
|
||||
|
||||
$res = getStatusElement($id_element);
|
||||
|
||||
echo $res;
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue