| | |
| | | $app->tform->loadFormDef($tform_def_file); |
| | | |
| | | // Importing ID |
| | | $this->id = (isset($_REQUEST["id"]))?intval($_REQUEST["id"]):0; |
| | | $this->id = (isset($_REQUEST["id"]))?$app->functions->intval($_REQUEST["id"]):0; |
| | | |
| | | // show print version of the form |
| | | if(isset($_GET["print_form"]) && $_GET["print_form"] == 1) { |
| | |
| | | $app->tform->loadFormDef($tform_def_file); |
| | | |
| | | // importing ID |
| | | $this->id = intval($_REQUEST["id"]); |
| | | $this->id = $app->functions->intval($_REQUEST["id"]); |
| | | |
| | | if($this->id > 0) { |
| | | |
| | |
| | | $navibar .= '<a href="'.$app->tform->formDef['action'].'?id='.$this->id.'&print_form=1" target="_blank"><img src="../themes/iprg/icons/printer.png" border="0" alt="Drucken" /></a> '; |
| | | } |
| | | if($app->tform->formDef['template_mailsend'] != '') { |
| | | $navibar .= "<a href=\"#\" onClick=\"window.open('".$app->tform->formDef['action'].'?id='.$this->id."&send_form_by_mail=1','send','width=370,height=240')\"><img src=\"../themes/iprg/icons/mail.png\" border=\"0\" alt=\"Als E-Mail versenden\" /></a>"; |
| | | $navibar .= "<a href=\"#\" onclick=\"window.open('".$app->tform->formDef['action'].'?id='.$this->id."&send_form_by_mail=1','send','width=370,height=240')\"><img src=\"../themes/iprg/icons/mail.png\" border=\"0\" alt=\"Als E-Mail versenden\" /></a>"; |
| | | } |
| | | $app->tpl->setVar('form_navibar',$navibar); |
| | | } |
| | | |
| | | if(isset($_SESSION['show_info_msg'])) { |
| | | $app->tpl->setVar('show_info_msg', $_SESSION['show_info_msg']); |
| | | unset($_SESSION['show_info_msg']); |
| | | } |
| | | if(isset($_SESSION['show_error_msg'])) { |
| | | $app->tpl->setVar('show_error_msg', $_SESSION['show_error_msg']); |
| | | unset($_SESSION['show_error_msg']); |
| | | } |
| | | |
| | | // loading plugins |
| | | $this->loadPlugins($this->active_tab); |