public function act_checkPlatformExist() { $name = trim($_GET['name']); //调用model层获取数据 $platformModel = new platformModel(); $is = $platformModel->checkPlatformExist($name); if ($is) { //存在 self::$errCode = 0; self::$errMsg = '已存在!'; return false; } else { //不存在 self::$errCode = 1; self::$errMsg = 'OK'; return true; } }
public function view_platformDel() { if (!isset($_SESSION['userId'])) { header('Location:index.php?mod=login&act=index'); } //删除获取UIL传递参数 $delId = trim($_GET['delId']); $where = " where id = '{$delId}'"; $platformAct = new platformAct(); $list = $platformAct->act_platformDel($where); if ($list) { header('Location:index.php?mod=platformManage&act=platformShow'); } else { header('Location:index.php?mod=platformManage&act=platformShow'); } }