$rs['area'] = $area; echo json_encode($rs, JSON_UNESCAPED_UNICODE); } else { if (isset($_POST['submit']) && $_POST['id'] == "sigle") { $arrayBean = array($_POST['user'], $_POST['codeValue']); $bRet = Box::changeSigleRank($arrayBean); if ($bRet) { $boxBean = Box::getBoxbyName($_POST['userName']); $smarty->assign("boxBean", $boxBean); $smarty->display('rank.html'); } } else { if (isset($_POST['submit']) && $_POST['id'] == "more") { 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');