当前位置: 首页>>代码示例>>PHP>>正文


PHP Utility::location方法代码示例

本文整理汇总了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);
 }
开发者ID:alonexy,项目名称:lea,代码行数:30,代码来源:WalletController.php

示例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);
     }
 }
开发者ID:alonexy,项目名称:lea,代码行数:12,代码来源:SchoolController.php

示例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);
     }
 }
开发者ID:alonexy,项目名称:lea,代码行数:12,代码来源:StudentController.php

示例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);
 }
开发者ID:alonexy,项目名称:lea,代码行数:15,代码来源:ActivitymessageController.php

示例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);
 }
开发者ID:alonexy,项目名称:lea,代码行数:19,代码来源:SkillController.php

示例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" />
开发者ID:alonexy,项目名称:lea,代码行数:30,代码来源:index.php


注:本文中的Utility::location方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。