示例#1
0
 public function view_batchTrackNumberImport()
 {
     $data = TrackNumberAct::actBatchTrackNumberImport();
     $this->smarty->assign('title', '跟踪号批量导入');
     $this->smarty->assign('countrys', $data['countrys']);
     $this->smarty->assign('lists', $data['lists']);
     $this->smarty->assign('errMsg', $data['res']);
     $this->smarty->display('trackNumberImport.htm');
 }
示例#2
0
 /**
  * TrackNumberAct::act_delTrackNumber()
  * 删除跟踪号
  * @param int $id 跟踪号ID
  * @return  bool
  */
 public function act_delTrackNumber()
 {
     $id = isset($_POST["id"]) ? abs(intval(trim($_POST["id"]))) : 0;
     $act = isset($_REQUEST["act"]) ? post_check($_REQUEST["act"]) : "";
     $mod = isset($_REQUEST["mod"]) ? post_check($_REQUEST["mod"]) : "";
     if (!AuthUser::checkLogin($mod, $act)) {
         self::$errCode = 10001;
         self::$errMsg = "对不起,您无数据删除权限!";
         return false;
     }
     if (empty($id) || !is_numeric($id)) {
         self::$errCode = 10000;
         self::$errMsg = "ID有误!";
         return false;
     }
     $res = TrackNumberModel::delTrackNumber($id);
     self::$errCode = TrackNumberModel::$errCode;
     self::$errMsg = TrackNumberModel::$errMsg;
     return $res;
 }