本文整理匯總了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 {