2011-07-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_visual_map.php: Added links to service items in visual console. Pending tasks: #3175079 * general/pandora_help.php: Changed color of the footer. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4526 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
acfcbbe49a
commit
424d4c96f2
|
@ -1,3 +1,12 @@
|
|||
2011-07-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_visual_map.php: Added links to service items
|
||||
in visual console.
|
||||
|
||||
Pending tasks: #3175079
|
||||
|
||||
* general/pandora_help.php: Changed color of the footer.
|
||||
|
||||
2011-07-07 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* include/functions_network_components.php,
|
||||
|
|
|
@ -70,7 +70,7 @@ echo '<div style="font-size: 12px; margin-left: 30px; margin-right:25px;">';
|
|||
require_once ($help_file);
|
||||
echo '</div>';
|
||||
echo '<br /><br /><hr width="100%" size="1" />';
|
||||
echo '<div style="background-color: #CCC; font-family: verdana, arial; font-size: 11px;">';
|
||||
echo '<div style="background-color: #6E6E6E; font-family: verdana, arial; font-size: 11px;">';
|
||||
include ('footer.php');
|
||||
echo '</div>';
|
||||
?>
|
||||
|
|
|
@ -738,9 +738,35 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
echo '<div style="left: 0px; top: 0px; z-index: 1; color: '.$layout_data['label_color'].'; position: absolute; margin-left: '.((integer)($proportion *$layout_data['pos_x'])).'px; margin-top:'.((integer)($proportion *$layout_data['pos_y'])).'px;" id="layout-data-'.$layout_data['id'].'" class="layout-data">';
|
||||
else
|
||||
echo '<div style="left: 0px; top: 0px; z-index: 1; 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">';
|
||||
|
||||
$endTagA = false;
|
||||
|
||||
if ($show_links) {
|
||||
//Extract id service if it is a prediction module.
|
||||
$id_service = db_get_value_filter('custom_integer_1',
|
||||
'tagente_modulo',
|
||||
array('id_agente_modulo' => $layout_data['id_agente_modulo'],
|
||||
'prediction_module' => 1));
|
||||
|
||||
if ($id_service === false) {
|
||||
$id_service = 0;
|
||||
}
|
||||
|
||||
if ($id_service != 0) {
|
||||
//Link to an service page
|
||||
echo '<a href="index.php?sec=services&sec2=enterprise/operation/services/services&id_service=' .
|
||||
$id_service . '&offset=0">';
|
||||
$endTagA = true;
|
||||
}
|
||||
}
|
||||
|
||||
echo '<strong>'.$layout_data['label']. ' ';
|
||||
echo db_get_value ('datos', 'tagente_estado', 'id_agente_modulo', $layout_data['id_agente_modulo']);
|
||||
echo '</strong></div>';
|
||||
echo '</strong>';
|
||||
|
||||
if ($endTagA) echo '</a>';
|
||||
|
||||
echo '</div>';
|
||||
break;
|
||||
case 3:
|
||||
// ****************************************************************
|
||||
|
@ -756,7 +782,28 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
$percentile = $valor / $layout_data['height'] * 100;
|
||||
else
|
||||
$percentile = 100;
|
||||
|
||||
$endTagA = false;
|
||||
|
||||
if ($show_links) {
|
||||
//Extract id service if it is a prediction module.
|
||||
$id_service = db_get_value_filter('custom_integer_1',
|
||||
'tagente_modulo',
|
||||
array('id_agente_modulo' => $layout_data['id_agente_modulo'],
|
||||
'prediction_module' => 1));
|
||||
|
||||
if ($id_service === false) {
|
||||
$id_service = 0;
|
||||
}
|
||||
|
||||
if ($id_service != 0) {
|
||||
//Link to an service page
|
||||
echo '<a href="index.php?sec=services&sec2=enterprise/operation/services/services&id_service=' .
|
||||
$id_service . '&offset=0">';
|
||||
$endTagA = true;
|
||||
}
|
||||
}
|
||||
|
||||
echo $layout_data['label'];
|
||||
echo "<br>";
|
||||
|
||||
|
@ -764,6 +811,9 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
echo progress_bar2($percentile, ((integer)($proportion * $width)), 15);
|
||||
else
|
||||
echo progress_bar2($percentile, $width, 15);
|
||||
|
||||
if ($endTagA) echo '</a>';
|
||||
|
||||
echo '</div>';
|
||||
break;
|
||||
case 1;
|
||||
|
@ -779,10 +829,29 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
echo $layout_data['label'];
|
||||
echo "<br>";
|
||||
|
||||
|
||||
$endTagA = false;
|
||||
|
||||
if ($show_links) {
|
||||
if (($layout_data['id_layout_linked'] == "") || ($layout_data['id_layout_linked'] == 0)) {
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$layout_data["id_agent"].'&tab=data">';
|
||||
|
||||
//Extract id service if it is a prediction module.
|
||||
$id_service = db_get_value_filter('custom_integer_1',
|
||||
'tagente_modulo',
|
||||
array('id_agente_modulo' => $layout_data['id_agente_modulo'],
|
||||
'prediction_module' => 1));
|
||||
|
||||
if ($id_service === false) {
|
||||
$id_service = 0;
|
||||
}
|
||||
|
||||
if ($id_service != 0) {
|
||||
//Link to an service page
|
||||
echo '<a href="index.php?sec=services&sec2=enterprise/operation/services/services&id_service=' .
|
||||
$id_service . '&offset=0">';
|
||||
}
|
||||
else {
|
||||
echo '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$layout_data["id_agent"].'&tab=data">';
|
||||
}
|
||||
} else {
|
||||
echo '<a href="index.php?sec=visualc&sec2=operation/visual_console/render_view&pure='.$config["pure"].'&id='.$layout_data['id_layout_linked'].'">';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue