Fix image pandora UX modules links - #90

This commit is contained in:
enriquecd 2016-11-22 11:52:16 +01:00
parent e7ea4bbda8
commit a6f546c8d8
2 changed files with 28 additions and 17 deletions

View File

@ -3649,13 +3649,22 @@ function ui_print_module_string_value($value, $id_agente_module,
"id=" . $id_agente_module .
"&refr=" . $current_interval .
"&label=" . rawurlencode(urlencode(io_safe_output($module_name))) . "','" . $win_handle . "', 700,480)";
if (is_image_data($value)) {
$salida = '<a href="javascript:' . $link . '">' .
html_print_image("images/photo.png", true,
array("border" => '0',
"alt" => "",
"title" => __("Snapshot view"))) . '</a> &nbsp;&nbsp;';
}
else {
$salida = '<a href="javascript:' . $link . '">' .
html_print_image("images/default_list.png", true,
array("border" => '0',
"alt" => "",
"title" => __("Snapshot view"))) . '</a> &nbsp;&nbsp;';
}
}
else {
$sub_string = substr(io_safe_output($value), 0, 12);

View File

@ -1347,13 +1347,15 @@ if (!empty($result)) {
$link = "winopeng_var('$row[datos]','',700,480)";
}
if(!is_snapshot_data($row['datos'])){
if(!is_image_data($row['datos'])){
$salida = '<a href="javascript:' . $link . '">' .
html_print_image('images/default_list.png', true,
array('border' => '0',
'alt' => '',
'title' => __('Snapshot view'))) . '</a> &nbsp;&nbsp;';
}else{
}
else {
$salida = '<a href="javascript:' . $link . '">' .
html_print_image('images/photo.png', true,
array('border' => '0',