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


PHP Box::getBoxbyName方法代码示例

本文整理汇总了PHP中Box::getBoxbyName方法的典型用法代码示例。如果您正苦于以下问题:PHP Box::getBoxbyName方法的具体用法?PHP Box::getBoxbyName怎么用?PHP Box::getBoxbyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Box的用法示例。


在下文中一共展示了Box::getBoxbyName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

        if ($rank['F_RANK'] == 1 || $rank['F_RANK'] == 3) {
            $arrayList = array(date('Y-m-d H:i:s', time()), date('Y-m-d H:i:s', time()), $_SERVER['REMOTE_ADDR'], $_POST['userId']);
            $bRet = User::updataStatus($arrayList);
            if ($bRet == true) {
                //获取待处理的箱门
                $waitDeal = DataDetails::getNeedData();
                //获取处理完成的箱门
                $dealed = DataDetails::getDealed();
                //获取处理的历时记录
                $hisDeal = DataDetails::getHistoryDeal();
                $_SESSION['userId'] = $_POST['userId'];
                $smarty->assign("waitDeal", $waitDeal);
                $smarty->assign("dealed", $dealed);
                $smarty->assign("hisDeal", array_slice($hisDeal, 0, 25));
                $smarty->display('monitor.html');
            }
        } else {
            if ($rank['F_RANK'] == 2) {
                $record = Box::getBoxbyName($rank['F_FULLNAME']);
                //	print_r($record);
                $smarty->assign("boxBean", $record);
                $smarty->display('operator.html');
            }
        }
    } else {
        echo "<script lanugage='javascript'>alert('用户名密码错误');history.back();</script>";
        $smarty->display('login.html');
    }
} else {
    $smarty->display('login.html');
}
开发者ID:Gavinxyj,项目名称:GJXM,代码行数:31,代码来源:index.php

示例2:

            if ($arrayIndex->getType() == 2) {
                $arrayType_2[] = $arrayIndex;
            } else {
                if ($arrayIndex->getType() == 3) {
                    $arrayType_3[] = $arrayIndex;
                }
            }
        }
    }
    $smarty->assign("rankBean_1", $arrayType_1);
    $smarty->assign("rankBean_2", $arrayType_2);
    $smarty->assign("rankBean_3", $arrayType_3);
    $smarty->display('rankView.html');
} else {
    if (isset($_GET['active']) && $_GET['active'] == "setRank") {
        $beanArray = Box::getBoxbyName($_GET['id']);
        if (!empty($beanArray)) {
            $smarty->assign("boxBean", $beanArray);
            $smarty->assign("rankPerson", $_SESSION['userId']);
            $smarty->display("rank.html");
        } else {
            echo "<script>alert('该员工名下没有可管理的光交箱!');history.back();</script>";
        }
    } else {
        if (isset($_GET['active']) && $_GET['active'] == "delete") {
            $bRet = Box::deleteBoxById($_GET['code']);
            echo true;
        } else {
            if (isset($_GET['active']) && $_GET['active'] == "alterRank") {
                $rankBean = Rank::getRankById($_GET['id']);
                echo json_encode($rankBean, JSON_UNESCAPED_UNICODE);
开发者ID:Gavinxyj,项目名称:GJXM,代码行数:31,代码来源:rank.php

示例3: array

     if ($_POST['authorization'] == '区域授权') {
         $arrayBean = array($_POST['user'], $_POST['area']);
         $bRet = Box::changeAreaRank($arrayBean);
         if ($bRet == true) {
             $boxBean = Box::getBoxbyName($_POST['userName']);
             $smarty->assign("boxBean", $boxBean);
             $smarty->display('rank.html');
         } else {
             echo "<script>alert('修改失败');history.back();</script>";
         }
     } else {
         if ($_POST['authorization'] == '道路授权') {
             $arrayBean = array($_POST['user'], $_POST['area'], $_POST['selectRoad']);
             $bRet = Box::changeRoadRank($arrayBean);
             if ($bRet == true) {
                 $boxBean = Box::getBoxbyName($_POST['userName']);
                 $smarty->assign("boxBean", $boxBean);
                 $smarty->display('rank.html');
             } else {
                 echo "<script>alert('修改失败');history.back();</script>";
             }
         }
     }
 } else {
     if (isset($_POST['submit']) && $_POST['id'] == "rankMulti") {
         if ($_POST['authorization'] == '区域授权') {
             $arrayBean = array($_POST['userSegment'], $_POST['areaSegment']);
             $bRet = Box::insertBoxByAreaToOtherTable($arrayBean);
             if ($bRet == true) {
                 echo "<script>alert('授权成功');history.back();</script>";
             } else {
开发者ID:Gavinxyj,项目名称:GJXM,代码行数:31,代码来源:box.php


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