Fix image pandora UX modules links - #90

(cherry picked from commit a6f546c8d8)
This commit is contained in:
enriquecd 2016-11-22 11:52:16 +01:00
parent c78e2e2f1c
commit 596ad9dd2f
2 changed files with 28 additions and 17 deletions

View File

@ -3649,12 +3649,21 @@ 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> &nbsp;&nbsp;'; "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 { else {

View File

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