本文整理汇总了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');
}
示例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);
示例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 {