public function view_carrierCountriesDel() { if (!isset($_SESSION['userId'])) { header('Location:index.php?mod=login&act=index'); } //删除获取UIL传递参数 $delId = trim($_GET['delId']); $where = " where id = {$delId}"; $countriesManageAct = new CountriesManageAct(); $list = $countriesManageAct->act_carrierCountriesDel($where); if ($list) { header('Location:index.php?mod=countriesManage&act=carrierCountriesList'); } else { header('Location:index.php?mod=countriesManage&act=carrierCountriesList'); } }
public function act_checkExistSmall() { $name = trim($_GET['name']); //调用model层获取数据 $countriesManageModel = new CountriesManageModel(); $is = $countriesManageModel->checkExist($name); if ($is) { //存在 self::$errCode = 1; self::$errMsg = '有效标准国家'; return true; } else { //不存在 self::$errCode = 0; self::$errMsg = '未找到国家,请先添加此标准国家名。'; return false; } }