2009-03-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_visual_map: Small fixes to render backgrounds with spaces in filename correctly * operation/visual_console/index.php, godmode/reporting/map_builder.php: Fixes to render icons correctly. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1522 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7feab70ec5
commit
227fc56921
|
@ -1,3 +1,11 @@
|
|||
2009-03-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* include/functions_visual_map: Small fixes to render backgrounds with
|
||||
spaces in filename correctly
|
||||
|
||||
* operation/visual_console/index.php, godmode/reporting/map_builder.php:
|
||||
Fixes to render icons correctly.
|
||||
|
||||
2009-03-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* include/javascript/pandora.js: Moved agent_changed here from map_builder
|
||||
|
|
|
@ -277,9 +277,9 @@ if (! $edit_layout && ! $id_layout) {
|
|||
|
||||
$data[0] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'">'.$map['name'].'</a>';
|
||||
|
||||
$data[1] = print_image ("images/".get_group_icon ($map['id_group']).'.png', true).' ';
|
||||
$data[1] = print_group_icon ($map['id_group'], true).' ';
|
||||
$data[1] .= get_group_name ($map['id_group']);
|
||||
$data[2] = get_db_sql ("SELECT COUNT(id) FROM tlayout_data WHERE id_layout = ".$map['id']);
|
||||
$data[2] = get_db_sql ("SELECT COUNT(*) FROM tlayout_data WHERE id_layout = ".$map['id']);
|
||||
$data[3] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/map_builder_wizard&id_layout='.$map['id'].'">'.print_image ("images/pill.png", true).'</a>';
|
||||
|
||||
$data[4] = '<a href="index.php?sec=greporting&sec2=godmode/reporting/map_builder&id_layout='.$map['id'].'&delete_layout=1">'.print_image ("images/cross.png", true).'</a>';
|
||||
|
|
|
@ -29,7 +29,7 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines =
|
|||
global $config;
|
||||
$layout = get_db_row ('tlayout', 'id', $id_layout);
|
||||
|
||||
echo '<div id="layout_map" style="z-index: 0; position:relative; background: url(images/console/background/'.$layout["background"].'); width:'.$layout["width"].'px; height:'.$layout["height"].'px;">';
|
||||
echo '<div id="layout_map" style="z-index: 0; position:relative; background: url(\'images/console/background/'.safe_input ($layout["background"]).'\'); width:'.$layout["width"].'px; height:'.$layout["height"].'px;">';
|
||||
$layout_datas = get_db_all_rows_field_filter ('tlayout_data', 'id_layout', $id_layout);
|
||||
$lines = array ();
|
||||
|
||||
|
@ -164,12 +164,12 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines =
|
|||
echo '<a href="index.php?sec=visualc&sec2=operation/visual_console/render_view&pure='.$config["pure"].'&id='.$layout_data['id_layout_linked'].'">';
|
||||
}
|
||||
}
|
||||
print_image ("reporting/fgraph.php?tipo=sparse&id=".$layout_data['id_agente_modulo']."&label=".$layout_data['label']."&height=".$layout_data['height']."&width=".$layout_data['width']."&period=".$layout_data['period'], false, array ("title" => $layout_data['label'], "border" => 0));
|
||||
print_image ("reporting/fgraph.php?tipo=sparse&id=".$layout_data['id_agente_modulo']."&label=".safe_input ($layout_data['label'])."&height=".$layout_data['height']."&width=".$layout_data['width']."&period=".$layout_data['period'], false, array ("title" => $layout_data['label'], "border" => 0));
|
||||
echo "</a>";
|
||||
echo "</div>";
|
||||
|
||||
// Line, not implemented in editor
|
||||
} else if ($layout_data['type'] == 2) {
|
||||
} elseif ($layout_data['type'] == 2) {
|
||||
$line['id'] = $layout_data['id'];
|
||||
$line['x'] = $layout_data['pos_x'];
|
||||
$line['y'] = $layout_data['pos_y'];
|
||||
|
|
|
@ -41,8 +41,8 @@ foreach ($layouts as $layout) {
|
|||
|
||||
$data[0] = '<a href="index.php?sec=visualc&sec2=operation/visual_console/render_view&id='.
|
||||
$layout['id'].'">'.$layout['name'].'</a> ';
|
||||
$data[1] = print_image ("images/".get_group_icon ($layout["id_group"]).".png", true, array ("title" => get_group_name ($layout["id_group"])));
|
||||
$data[1] .= " ".get_group_name ($layout["id_group"]);
|
||||
$data[1] = print_group_icon ($layout["id_group"], true);
|
||||
$data[1] .= " ".get_group_name ($layout["id_group"]);
|
||||
$data[2] = get_db_value ('COUNT(*)', 'tlayout_data', 'id_layout', $layout['id']);
|
||||
|
||||
array_push ($table->data, $data);
|
||||
|
|
Loading…
Reference in New Issue