Exemplo n.º 1
0
 /**
  * Report Edit page.
  */
 public function edit_report()
 {
     eval(USER);
     $this->assign("less", "new_report.less");
     try {
         $rid = xassert(unsafeget('show'), Error('get'));
         $res = DBModel::getReportDetail($rid);
         $types = DBModel::getByFields('cernet_report_type');
         $this->assign('type', $types);
         $this->assign('team', $res);
     } catch (Exception $e) {
         throw_exception($e->getMessage());
     }
     eval(NDSP);
 }
Exemplo n.º 2
0
 /**
  * Delete a notice by a given nnotice_id.
  */
 public function delete_notice_()
 {
     try {
         $cond["id"] = xassert(unsafeget("id"), Error("post"));
         $result = DBModel::deleteDB("cernet_notice", $cond);
         // print_r($data);
         echo "success";
     } catch (Exception $e) {
         // throw_exception($e->getMessage());
         echo $e->getMessage();
     }
 }