New function pandora ux, let open pics from base64 image modules #90 - 2

This commit is contained in:
enriquecd 2016-10-28 14:08:13 +02:00
parent 8263823e45
commit 88453e2075
2 changed files with 9 additions and 3 deletions

View File

@ -249,7 +249,7 @@ if ($get_module_detail) {
foreach ($columns as $col => $attr) {
if ($attr[1] != "modules_format_data") {
$data[] = $attr[1] ($row[$attr[0]]);
$data[] = date('d F Y - h:i:s A', $row['utimestamp']);
}
elseif (($config['command_snapshot']) && (preg_match ("/[\n]+/i", $row[$attr[0]]))) {

View File

@ -547,14 +547,20 @@ class Modules {
$output = $sub_string;
}
}
if (is_snapshot($module['datos'])){
'<span style="white-space: nowrap;">' .
'<span style="display: none;" class="show_collapside">' . $row[__('Status')] . '&nbsp;&nbsp;</span>' .
'<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style="width:300px" src='".io_safe_input($row[$attr[0]])."'>' .
$output . '</a>' . '</span>';
}
else{
$row[7] = $row[__('Data')] =
'<span style="white-space: nowrap;">' .
'<span style="display: none;" class="show_collapside">' . $row[__('Status')] . '&nbsp;&nbsp;</span>' .
'<a data-ajax="false" class="ui-link" ' .
'href="index.php?page=module_graph&id=' . $module['id_agente_modulo'] . '&id_agent=' . $this->id_agent . '">' .
$output . '</a>' . '</span>';
}
if (!$ajax) {
if ($this->columns['agent']) {
unset($row[0]);