echo "<script>alert('授权成功');history.back();</script>"; } else { echo "<script>alert('修改失败');history.back();</script>"; } } else { if ($_POST['authorization'] == '道路授权') { $arrayBean = array($_POST['userSegment'], $_POST['areaSegment'], $_POST['selectRoad']); $bRet = Box::insertBoxByRoadToOtherTable($arrayBean); if ($bRet == true) { echo "<script>alert('授权成功');history.back();</script>"; } else { echo "<script>alert('修改失败');history.back();</script>"; } } } } else { if (isset($_GET['active']) && $_GET['active'] == "map") { $box = Box::getBoxPos(); $rs['map'] = $box; echo json_encode($rs, JSON_UNESCAPED_UNICODE); } } } } } } } } } } }