You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
3.6 KiB
98 lines
3.6 KiB
<%@ page language="java" pageEncoding="utf-8" import="com.cjy.util.SystemPropertyManager" %>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
<%@ page import="com.cjy.sysuser.entity.SysUser" %>
|
|
<%@ page import="com.cjy.sysdept.entity.SysDept" %>
|
|
<%@ page import="java.util.Set" %>
|
|
<%@ page import="java.util.TreeSet" %>
|
|
<%@ page import="com.cjy.core.facade.UserAttrFacade" %>
|
|
<%@ page import="com.cjy.core.SystemProperties" %>
|
|
<%@ page import="com.cjy.core.auth.AuthInfo" %>
|
|
<%@ taglib uri="/cjytaglib" prefix="cjy" %>
|
|
<% final String ctx = request.getContextPath();
|
|
request.setAttribute("ctx", ctx);
|
|
String sysname = SystemPropertyManager.getProperty("platform.name");
|
|
String loginlogo = SystemPropertyManager.getProperty("platform.loginlogo");
|
|
String registerlogo = SystemPropertyManager.getProperty("platform.registerlogo");
|
|
String mainlogo = SystemPropertyManager.getProperty("platform.mainlogo");
|
|
loginlogo = ctx + loginlogo;
|
|
registerlogo = ctx + registerlogo;
|
|
mainlogo = ctx + mainlogo;
|
|
|
|
String[] anonymous = {
|
|
"/hbcyjc/secondValidate.jsp",
|
|
"/hbcyjc/login.jsp",
|
|
// 手机端 应急指挥页面
|
|
"/hbcyjc/yjglddxt/yjzh/video/mindex.jsp",
|
|
"/hbcyjc/yjglddxt/yjzh/video/mvideo.jsp",
|
|
"/hbcyjc/yjglddxt/mobile/taskinfo.jsp",
|
|
"/hbcyjc/yjglddxt/mobile/task_history.jsp",
|
|
// 地区 登录页,不拦截--
|
|
"/hbcyjc/loginpage/common-login.jsp",
|
|
"/hbcyjc/xiongan.jsp",
|
|
"/hbcyjc/loginpage/hengshui.jsp",
|
|
"/hbcyjc/region/131401/daily/index.jsp",
|
|
"/hbcyjc/region/131401/daily/404/index.jsp",
|
|
"/hbcyjc/loginpage/hebei.jsp",
|
|
"/hbcyjc/region/130000/pages/login.jsp",
|
|
};
|
|
|
|
SysUser sysUser = (SysUser) request.getSession().getAttribute("admin");
|
|
if (sysUser == null) {
|
|
String uri = request.getRequestURI();
|
|
boolean access = false;
|
|
for (String s : anonymous) {
|
|
if (s.contains(uri)) {
|
|
access = true;
|
|
break;
|
|
}
|
|
}
|
|
if (!access) {
|
|
response.sendRedirect("/hbcyjclogin/logout.do");
|
|
return;
|
|
}
|
|
}
|
|
request.setAttribute("sysUser", sysUser);
|
|
SysDept ctx_sysDept = (SysDept) request.getSession().getAttribute("region");
|
|
request.setAttribute("ctx_sysDept", ctx_sysDept);
|
|
String ctx_regioncname = "";
|
|
String ctx_delregion = "";
|
|
String ctx_gdlnglat = "";
|
|
if (ctx_sysDept != null) {
|
|
ctx_regioncname = ctx_sysDept.getDname();
|
|
ctx_delregion = ctx_sysDept.getDremark();
|
|
ctx_gdlnglat = ctx_sysDept.getGdlnglat();
|
|
request.setAttribute("ctx_regioncname", ctx_regioncname);
|
|
request.setAttribute("ctx_delregion", ctx_delregion);
|
|
request.setAttribute("ctx_gdlnglat", ctx_gdlnglat);
|
|
}
|
|
// 备案号
|
|
request.setAttribute("sysPropertiesBeian", SystemProperties.BEIAN);
|
|
|
|
request.setAttribute("Auth", AuthInfo.createAuth(request));
|
|
%>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var _CTX = '${ctx}';
|
|
var _CTX_regioncname = '${ctx_regioncname}';
|
|
var _CTX_delregion = '${ctx_delregion}';
|
|
var _CTX_gdlnglat = '${ctx_gdlnglat}';
|
|
|
|
//使用备用图片
|
|
function beiyongimg() {
|
|
var img = event.srcElement;
|
|
img.src = "https://cjycyjc.mimk.cn/common/img/no_img.png";
|
|
img.οnerrοr = null; //控制不要一直跳动
|
|
}
|
|
|
|
|
|
</script>
|
|
<style>
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" src="/js/z_util.js"></script>
|
|
|
|
<%-- 自定义 css --%>
|
|
<%--<%@include file="theme_css.jsp" %>--%>
|
|
|