- window.open('','REP_WINDOW','toolbar=no,scrollbar=no,resizable=yes,menubar=no');
- document.forms[0].target='REP_WINDOW';
- document.forms[0].action= '" . $path_to_root . "/reporting/rep" . $this->id . ".php';
- document.forms[0].submit();
- }
- function checkDate(pObj) {
- var re = /^(3[01]|0[1-9]|[12]\d)\/(0[1-9]|1[012])\/\d{4}/;
- if (re.test(pObj.value)==false) {
- alert('" . _("Invalid date format") . "')
- }
- }
-</script>
- ";
- $st .= "<input type='button' onclick='javascript:displayReport_" . $this->id ."()' value='" . _("Display: ") . $this->name . "'><br><br>";
+ $st = hidden('REP_ID', $this->id, false);
+ $st .= submit('Rep'.$this->id,
+ _("Display: ") . access_string($this->name,true),
+ false, '', $pdf_debug==0) . '<br><br>';