Changed the agent name by its alias in some sections
This commit is contained in:
parent
c26eb06adb
commit
3d521ec290
|
@ -2017,10 +2017,7 @@ function events_page_details ($event, $server = "") {
|
|||
$data = array();
|
||||
$data[0] = '<div style="font-weight:normal; margin-left: 20px;">'.__('Name').'</div>';
|
||||
if (can_user_access_node ()) {
|
||||
//$data[1] = ui_print_agent_name ($event["id_agente"], true, 'agent_medium', '', false, $serverstring, $hashstring, $agent['nombre']);
|
||||
$alias = db_get_row ("tagente","id_agente",$event["id_agente"]);
|
||||
$data[1] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $event["id_agente"] . '" title='.$alias['nombre']. '>';
|
||||
$data[1] .= '<b>' . $alias['alias'] . '</a></b>';
|
||||
$data[1] = ui_print_agent_name($event["id_agente"], true, 'agent_medium', '', false, $serverstring, $hashstring, $agent['alias']);
|
||||
}
|
||||
else {
|
||||
$data[1] = ui_print_truncate_text($agent['alias'], 'agent_medium', true, true, true);
|
||||
|
@ -3799,7 +3796,7 @@ function events_list_events_grouped_agents($sql) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
$data[$i] .= ui_print_agent_name ($event["id_agente"], true);
|
||||
$data[$i] .= ui_print_agent_name($event["id_agente"], true);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -152,7 +152,7 @@ class Events {
|
|||
$event['agent'] = "<a style='color: black;'" .
|
||||
"href='index.php?page=agent&id=" .
|
||||
$event['id_agente'] . "'>" .
|
||||
agents_get_name($event['id_agente']) .
|
||||
agents_get_alias($event['id_agente']) .
|
||||
"</a>";
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -73,12 +73,7 @@ $table_agent->styleTable = 'padding:0px;';
|
|||
$table_agent->data = array();
|
||||
$data = array();
|
||||
|
||||
/*$agent_name = ui_print_agent_name ($agent["id_agente"], true, 500,
|
||||
"font-size: medium;", true);*/
|
||||
|
||||
$agent_name = "<a alt =".$agent["nombre"]." href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=" . $agent["id_agente"] . "'>" .
|
||||
'<span style="font-size: medium;font-weight:bold" title="' . $agent["nombre"] . '">'.$agent["alias"].'</span>' .
|
||||
"</a>";
|
||||
$agent_name = ui_print_agent_name($agent["id_agente"], true, 500, "font-size: medium;font-weight:bold", true);
|
||||
|
||||
if ($agent['disabled']) {
|
||||
$agent_name = "<em>" . $agent_name . "</em>" . ui_print_help_tip(__('Disabled'), true);
|
||||
|
|
Loading…
Reference in New Issue