Fixed errors new tab base64 image
This commit is contained in:
parent
a8bf9843ee
commit
b9d5ab9c4a
|
@ -372,7 +372,13 @@ if (check_login()) {
|
||||||
$data[] = date('d F Y h:i:s A', $row['utimestamp']);
|
$data[] = date('d F Y h:i:s A', $row['utimestamp']);
|
||||||
} else if (is_snapshot_data($row[$attr[0]])) {
|
} else if (is_snapshot_data($row[$attr[0]])) {
|
||||||
if ($config['command_snapshot']) {
|
if ($config['command_snapshot']) {
|
||||||
$data[] = "<a target='_blank' href='".io_safe_input($row[$attr[0]])."'><img style='width:300px' src='".io_safe_input($row[$attr[0]])."'></a>";
|
$imagetab = '<img style="width:100%" src="';
|
||||||
|
$imagetab .= io_safe_input($row[$attr[0]]);
|
||||||
|
$imagetab .= '">';
|
||||||
|
$image = '<img style="width:300px" src="';
|
||||||
|
$image .= io_safe_input($row[$attr[0]]);
|
||||||
|
$image .= '">';
|
||||||
|
$data[] = '<a style="cursor:pointer;" onclick="newTabjs(\''.base64_encode($imagetab).'\')">'.$image.'</a>';
|
||||||
} else {
|
} else {
|
||||||
$data[] = '<span>'.wordwrap(io_safe_input($row[$attr[0]]), 60, "<br>\n", true).'</span>';
|
$data[] = '<span>'.wordwrap(io_safe_input($row[$attr[0]]), 60, "<br>\n", true).'</span>';
|
||||||
}
|
}
|
||||||
|
@ -1099,6 +1105,7 @@ if (check_login()) {
|
||||||
$rowIndex++;
|
$rowIndex++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui_require_javascript_file('pandora.js');
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
|
|
@ -36,6 +36,12 @@ function winopeng_var(url, wid, width, height) {
|
||||||
status = wid;
|
status = wid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function newTabjs(content) {
|
||||||
|
content = atob(content);
|
||||||
|
var printWindow = window.open("");
|
||||||
|
printWindow.document.body.innerHTML += "<div>" + content + "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
function open_help(url) {
|
function open_help(url) {
|
||||||
if (!navigator.onLine) {
|
if (!navigator.onLine) {
|
||||||
alert(
|
alert(
|
||||||
|
|
Loading…
Reference in New Issue