// titles and screen header
global $path_to_root, $SysPrefs, $db_connections;
- if (in_ajax())
+ if (in_ajax() || isset($_POST['REP_ID']))
return; // just for speed up
$theme = user_theme();
{
// in case of GET request redirect to avoid confirmation dialog
// after return from menu option
- header("HTTP/1.1 303 See Other");
+ header("HTTP/1.1 307 Temporary Redirect");
header("Location: ".$_SESSION['timeout']['uri']);
exit();
}
e.onclick = function(){
if (validate(e)) {
setTimeout(function() { var asp = e.getAttribute('aspect');
- if (asp && asp.indexOf('download') === -1)
+ if (asp && asp.indexOf('download') === -1 && asp.indexOf('popup') === -1)
set_mark((asp && ((asp.indexOf('process') !== -1) || (asp.indexOf('nonajax') !== -1))) ? 'progressbar.gif' : 'ajax-loader.gif');
}, 100);
return true;
showClass(this.id.substring(5)); // id=classX
return false;
}
- }
+ },
+ 'button': function(e) {
+ e.onclick = function() {
+ window.open('', 'formpopup', 'toolbar=no,scrollbars=yes,resizable=yes,menubar=no');
+ e.form.target='formpopup';
+ }
+ },
}
function set_options(e)
. "<form method='POST' action='$action' target='_blank'>\n";
$st_params .= submit('Rep'.$report->id,
_("Display: ") . access_string($report->name, true),
- false, '', $SysPrefs->pdf_debug ? false : 'default process') . hidden('REP_ID', $report->id, false).'<br><br>';
+ false, '', $SysPrefs->pdf_debug ? false : 'default popup') . hidden('REP_ID', $report->id, false).'<br><br>';
$st_params .= $this->getOptions($report->get_controls(), $report->id);
$st_params .= "\n<input type=hidden name='Class' value=".$cur_class.">"
."\n</form></td></tr></table>\n";
-4527<?php
+<?php
//============================================================+
// File name : tcpdf.php
// Begin : 2002-08-03