예제 #1
0
파일: box.php 프로젝트: Gavinxyj/GJXM
     $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');