本文整理汇总了PHP中Utility::location方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::location方法的具体用法?PHP Utility::location怎么用?PHP Utility::location使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::location方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateDetail
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);
}
示例2: updateDetail
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);
}
}
示例3: updateDetail
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);
}
}
示例4: updateDetail
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);
}
示例5: updateDetail
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);
}
示例6:
// 记住密码
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" />