示例#1
0
文件: box.php 项目: Gavinxyj/GJXM
             echo "<script>alert('修改失败');history.back();</script>";
         }
     }
 } else {
     if (isset($_GET['active']) && $_GET['active'] == "loadInfo") {
         $area = Area::getAreaInfo();
         $road = Area::getRoadInfo();
         $user = User::getUserInfo();
         $rs['road'] = $road;
         $rs['user'] = $user;
         $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 {