示例#1
0
文件: FAQEdit.php 项目: sinfocol/gwf3
 public function execute()
 {
     if (false === ($faq = GWF_HelpdeskFAQ::getByID(Common::getGetString('faqid')))) {
         return $this->module->error('err_faq');
     }
     if (isset($_POST['edit'])) {
         return $this->onEdit($faq);
     }
     if (isset($_POST['delete'])) {
         return $this->onDelete($faq);
     }
     return $this->templateEdit($faq);
 }