mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2014-03-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: uploaded the lost changes in the code for to make the link in the group item. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
cb97e7d9f1
commit
705d46e25e
@ -1,3 +1,8 @@
|
|||||||
|
2014-03-21 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_visual_map.php: uploaded the lost changes in the
|
||||||
|
code for to make the link in the group item.
|
||||||
|
|
||||||
2014-03-20 Miguel de Dios <miguel.dedios@artica.es>
|
2014-03-20 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* images/group_green.disabled.png, images/group_green.png,
|
* images/group_green.disabled.png, images/group_green.png,
|
||||||
|
@ -1132,8 +1132,9 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||||||
echo '<div style="left: 0px; top: 0px; text-align: center; z-index: '.$z_index.'; '.($layout_data['label_color'][0] == '#' ? 'color: '.$layout_data['label_color'].';' : '').' position: absolute; margin-left: '.$layout_data['pos_x'].'px; margin-top:'.$layout_data['pos_y'].'px;" id="layout-data-'.$layout_data['id'].'" class="layout-data">';
|
echo '<div style="left: 0px; top: 0px; text-align: center; z-index: '.$z_index.'; '.($layout_data['label_color'][0] == '#' ? 'color: '.$layout_data['label_color'].';' : '').' position: absolute; margin-left: '.$layout_data['pos_x'].'px; margin-top:'.$layout_data['pos_y'].'px;" id="layout-data-'.$layout_data['id'].'" class="layout-data">';
|
||||||
|
|
||||||
if ($show_links) {
|
if ($show_links) {
|
||||||
if (!empty($layout_data['id_agent'])
|
if ((!empty($layout_data['id_agent'])
|
||||||
&& empty($layout_data['id_layout_linked'])) {
|
&& empty($layout_data['id_layout_linked']))
|
||||||
|
|| ($layout_data['type'] == GROUP_ITEM)) {
|
||||||
|
|
||||||
if ($layout_data['enable_link']
|
if ($layout_data['enable_link']
|
||||||
&& can_user_access_node()) {
|
&& can_user_access_node()) {
|
||||||
@ -1148,7 +1149,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||||||
'prediction_module' => 1));
|
'prediction_module' => 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($id_service)) {
|
if ($layout_data['type'] == GROUP_ITEM) {
|
||||||
|
$url = $config['homeurl'] .
|
||||||
|
'index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id=' .
|
||||||
|
$layout_data['id_group'];
|
||||||
|
}
|
||||||
|
else if (!empty($id_service)) {
|
||||||
//Link to an service page
|
//Link to an service page
|
||||||
if (empty($layout_data['id_metaconsole'])) {
|
if (empty($layout_data['id_metaconsole'])) {
|
||||||
$url = $config['homeurl'] .
|
$url = $config['homeurl'] .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user