public function updateDetail($arrPost) { Utility::pushArrAreaID($arrPost); // 区域ID if (empty($arrPost['endtime'])) { $arrPost['endtime'] = ''; } if (!empty($arrPost['photos']) && stristr($arrPost['photos'], '|')) { $arrPost['photos'] = Utility::sortImg($arrPost['photos']); // 排序 } // 需要 处理的 数字大小 $arrParam = array('floor', 'floortotal', 'roomnumber', 'livingnumber', 'houseage', 'toiletnumber'); Utility::checkMaxNum($arrPost, $arrParam); $arrPost['aroundpoint'] = empty($arrPost['aroundpoint']) ? '' : implode(',', $arrPost['aroundpoint']); $arrPost['livepoint'] = empty($arrPost['livepoint']) ? '' : implode(',', $arrPost['livepoint']); $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['SECOND_HOUSE_ADD'] : $this->arrRequestApi['SECOND_HOUSE__UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); // D($arrPost); // D($arrResultList); // exit(); // 成功跳转 if ($arrResultList['errorCode'] === 0 || $arrResultList['errorCode'] === 2) { Utility::location('secondHouse.php'); } // Utility::UIWindowAlert( '请填写完整。'); // Utility::location( null , '填写信息有误,请耐心检查下。'); Utility::location(null, ACTION_ERROR); }
public function updateDetail($arrPost) { $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['SCHOOL_ADD'] : $this->arrRequestApi['SCHOOL_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); //成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('school.php'); } else { Utility::location('school.php', ACTION_ERROR); } }
public function updateDetail($arrPost) { $this->strRequestApi = empty($_REQUEST['userid']) ? $this->arrRequestApi['STUDENT_ADD'] : $this->arrRequestApi['STUDENT_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); //成功跳转 if ($arrResultList['errorcode'] == 0 || $arrResultList['errorcode'] == 2) { Utility::location('studentslist.php'); } else { Utility::location('studentslist.php', ACTION_ERROR); } }
public function updateDetail($arrPost) { $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['COMPANY_AUTH'] : $this->arrRequestApi['COMPANY_AUTH']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); //成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('companylist.php'); } else { Utility::location('companylist.php', ACTION_ERROR); } }
public function updateDetail($arrPost) { $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['ACTIVITY_MESSAGE_ADD'] : $this->arrRequestApi['ACTIVITY_MESSAGE_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); // D($arrPost); // D($this->strRequestApi); // D($arrResultList); // exit(); // 成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('activitymessage.php'); } Utility::location(null, ACTION_ERROR); }
public function updateDetail($arrPost) { $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['SYSTEM_MESSAGE_ADD'] : $this->arrRequestApi['SYSTEM_MESSAGE_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); // D($arrPost); // D($arrResultList); // exit(); // 成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('systemmessage.php'); } // Utility::UIWindowAlert( '请填写完整。'); // Utility::location( null , '填写信息有误,请耐心检查下。'); Utility::location(null, ACTION_ERROR); }
public function updateDetail($arrPost) { $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['WITHDRAWALS_UPDATE'] : $this->arrRequestApi['WITHDRAWALS_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); // D($arrPost); // D($arrResultList); // exit(); // 成功跳转 //成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('withdrawals.php'); } else { Utility::location('withdrawals.php', ACTION_ERROR); } }
public function updateDetail($arrPost) { // Utility::pushArrAreaID($arrPost);// 区域ID if (!empty($arrPost['photos']) && stristr($arrPost['photos'], '|')) { $arrPost['photo'] = Utility::sortImg($arrPost['photos']); // 排序 } $this->strRequestApi = empty($arrPost['id']) ? $this->arrRequestApi['SKILL_ADD'] : $this->arrRequestApi['SKILL_UPDATE']; $this->arrRequest = $arrPost; $arrResultList = $this->updateParentDetail(); // D($this->strRequestApi); // D($arrResultList); // exit(); // 成功跳转 if ($arrResultList['errorcode'] === 0 || $arrResultList['errorcode'] === 2) { Utility::location('skilllist.php'); } Utility::location(null, ACTION_ERROR); }
// 记住密码 if (@$_POST['remember'] == 'on') { Utility::setCookie($arrResult['results'], COOKIE_FIELDS); Utility::setCookie($arrResult['extrainfo']['authinfo'], EXTRA_INFO); } $_SESSION[COOKIE_FIELDS] = $arrResult['results']; $_SESSION[EXTRA_INFO] = $arrResult['extrainfo']['authinfo']; $strLocationUrl = Utility::getLocationUrl($_SESSION[COOKIE_FIELDS]); // var_dump($strLocationUrl);exit(); if ($strLocationUrl) { $strLocation = $strLocationUrl; } Utility::location($strLocation); exit; } else { Utility::location(null, '你没有权限。'); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title><?php echo HTML_PAGE_TITLE; ?> </title> <meta name="description" content="User login page" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />