Solvented visualization of group in few views, tiquet: #1946
This commit is contained in:
parent
d967b4eed9
commit
912462c71a
|
@ -526,7 +526,7 @@ function ui_print_group_icon ($id_group, $return = false, $path = "groups_small"
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (empty ($icon))
|
if (empty ($icon))
|
||||||
$output .= '<span title="'. groups_get_name($id_group, true).'"> - </span>';
|
$output .= '<span title="'. groups_get_name($id_group, true).'"> </span>';
|
||||||
else {
|
else {
|
||||||
$output .= html_print_image("images/" . $path . "/" . $icon . ".png",
|
$output .= html_print_image("images/" . $path . "/" . $icon . ".png",
|
||||||
true, array("style" => $style, "class" => "bot", "alt" => groups_get_name($id_group, true), "title" => groups_get_name ($id_group, true)));
|
true, array("style" => $style, "class" => "bot", "alt" => groups_get_name($id_group, true), "title" => groups_get_name ($id_group, true)));
|
||||||
|
|
|
@ -82,7 +82,10 @@ else {
|
||||||
$agent_name = $agent_name;
|
$agent_name = $agent_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data[0] = ui_print_group_icon ($agent["id_grupo"], true);
|
if (!$config["show_group_name"])
|
||||||
|
$data[0] = ui_print_group_icon ($agent["id_grupo"], true);
|
||||||
|
else
|
||||||
|
$data[0] = "";
|
||||||
$table_agent->cellstyle[count($table_agent->data)][0] =
|
$table_agent->cellstyle[count($table_agent->data)][0] =
|
||||||
'width: 16px; text-align:center; padding: 0px;';
|
'width: 16px; text-align:center; padding: 0px;';
|
||||||
|
|
||||||
|
|
|
@ -429,10 +429,15 @@ if ($result === false) {
|
||||||
|
|
||||||
foreach ($result as $profile) {
|
foreach ($result as $profile) {
|
||||||
$data[0] = '<b>'.profile_get_name ($profile["id_perfil"]).'</b>';
|
$data[0] = '<b>'.profile_get_name ($profile["id_perfil"]).'</b>';
|
||||||
$data[1] = ui_print_group_icon ($profile["id_grupo"], true) .
|
if ($config["show_group_name"])
|
||||||
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60&group_id=' . $profile['id_grupo'] . '">' .
|
$data[1] = ui_print_group_icon ($profile["id_grupo"], true) .
|
||||||
' ' . ui_print_truncate_text(groups_get_name ($profile['id_grupo'], True), GENERIC_SIZE_TEXT) .
|
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60&group_id=' . $profile['id_grupo'] . '">' .
|
||||||
'</a>';
|
' ' . '</a>';
|
||||||
|
else
|
||||||
|
$data[1] = ui_print_group_icon ($profile["id_grupo"], true) .
|
||||||
|
'<a href="index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60&group_id=' . $profile['id_grupo'] . '">' .
|
||||||
|
' ' . ui_print_truncate_text(groups_get_name ($profile['id_grupo'], True), GENERIC_SIZE_TEXT) .
|
||||||
|
'</a>';
|
||||||
|
|
||||||
$tags_ids = explode(',',$profile["tags"]);
|
$tags_ids = explode(',',$profile["tags"]);
|
||||||
$tags = tags_get_tags($tags_ids);
|
$tags = tags_get_tags($tags_ids);
|
||||||
|
|
Loading…
Reference in New Issue