Fix image pandora UX modules links - #90
(cherry picked from commit a6f546c8d8
)
This commit is contained in:
parent
c78e2e2f1c
commit
596ad9dd2f
|
@ -3649,13 +3649,22 @@ function ui_print_module_string_value($value, $id_agente_module,
|
||||||
"id=" . $id_agente_module .
|
"id=" . $id_agente_module .
|
||||||
"&refr=" . $current_interval .
|
"&refr=" . $current_interval .
|
||||||
"&label=" . rawurlencode(urlencode(io_safe_output($module_name))) . "','" . $win_handle . "', 700,480)";
|
"&label=" . rawurlencode(urlencode(io_safe_output($module_name))) . "','" . $win_handle . "', 700,480)";
|
||||||
|
if (is_image_data($value)) {
|
||||||
$salida = '<a href="javascript:' . $link . '">' .
|
$salida = '<a href="javascript:' . $link . '">' .
|
||||||
html_print_image("images/photo.png", true,
|
html_print_image("images/photo.png", true,
|
||||||
array("border" => '0',
|
array("border" => '0',
|
||||||
"alt" => "",
|
"alt" => "",
|
||||||
"title" => __("Snapshot view"))) . '</a> ';
|
"title" => __("Snapshot view"))) . '</a> ';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$salida = '<a href="javascript:' . $link . '">' .
|
||||||
|
html_print_image("images/default_list.png", true,
|
||||||
|
array("border" => '0',
|
||||||
|
"alt" => "",
|
||||||
|
"title" => __("Snapshot view"))) . '</a> ';
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
$sub_string = substr(io_safe_output($value), 0, 12);
|
$sub_string = substr(io_safe_output($value), 0, 12);
|
||||||
|
|
|
@ -1347,13 +1347,15 @@ if (!empty($result)) {
|
||||||
$link = "winopeng_var('$row[datos]','',700,480)";
|
$link = "winopeng_var('$row[datos]','',700,480)";
|
||||||
|
|
||||||
}
|
}
|
||||||
if(!is_snapshot_data($row['datos'])){
|
|
||||||
|
if(!is_image_data($row['datos'])){
|
||||||
$salida = '<a href="javascript:' . $link . '">' .
|
$salida = '<a href="javascript:' . $link . '">' .
|
||||||
html_print_image('images/default_list.png', true,
|
html_print_image('images/default_list.png', true,
|
||||||
array('border' => '0',
|
array('border' => '0',
|
||||||
'alt' => '',
|
'alt' => '',
|
||||||
'title' => __('Snapshot view'))) . '</a> ';
|
'title' => __('Snapshot view'))) . '</a> ';
|
||||||
}else{
|
}
|
||||||
|
else {
|
||||||
$salida = '<a href="javascript:' . $link . '">' .
|
$salida = '<a href="javascript:' . $link . '">' .
|
||||||
html_print_image('images/photo.png', true,
|
html_print_image('images/photo.png', true,
|
||||||
array('border' => '0',
|
array('border' => '0',
|
||||||
|
|
Loading…
Reference in New Issue