<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.xuanyuan.bpaf.common.config.URMSConfig"%>
<%@ page import="com.xuanyuan.bpaf.security.yale.Login"%>
<%@ page import="com.xuanyuan.bpaf.common.helper.CookieHelper"%>
<%@ page import="com.xuanyuan.bpaf.common.helper.Base64Helper"%>
<%@ page import="com.xuanyuan.bpaf.common.helper.StringHelper"%>
<%@ page import="com.xuanyuan.bpaf.common.consts.UrmsConst"%>
<%@ page import="com.xuanyuan.bpaf.common.taglib.CssTool"%>
<%@ page import="java.util.List"%>
<%@ page isELIgnored="false"%>
<%@page import="com.xuanyuan.urms.core.model.UmConfig"%>
<%@ include file="/portal/itsm/common/header.jsp"%>
<%
//下面是设置respons一些属性,不缓存之类
response.addHeader("P3P", "CP=\"IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA\"");
response.setHeader("Cache-Control", "no-store,no-cache,must-revalidate");
// 设置 IE 扩展 HTTP/1.1 no-cache headers, 用户自己添加
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
// 设置标准 HTTP/1.0 no-cache header.
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);
String err = (String) request.getAttribute("err");
if (err == null)
err = "";
UmConfig u = new UmConfig();
String pic2 = URMSConfig.getConfigValue("LOGIN_COMPANY_PIC");
String pic1 = URMSConfig.getConfigValue("LOGIN_LOGO");
%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=URMSConfig.getConfigValue("SYS_TITLE")%></title>
<link href="<%=path%>/style/css/login.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/style/css/bootstrapValidator.min.css" rel="stylesheet" type="text/css" />
</head>
<body >
<div class="row" >
<div style="text-align:center">
<div class="nav-login" >
<div class="img1"><img src="<%=baseURL %><%=pic1 %>" onerror="this.src='<%=baseURL %>/portal/itsm/style/img/logo.png'" width="100" height="100" border="0" /></div>
<div class="img2"><img src="<%=baseURL %><%=pic2 %>" onerror="this.src='<%=baseURL %>/portal/itsm/style/img/daxue.png'" height="100" border="0" /></div>
<div class="top-font"><%=URMSConfig.getConfigValue("SYS_TITLE")%></div>
<!--
<div class="img1"><img src="<%=path%>/style/img/logo.png" width="100" height="100" border="0" /></div>
<div class="img2"><img src="<%=path%>/style/img/daxue.png" height="100" border="0" /></div>
<div class="top-font"><%=URMSConfig.getConfigValue("SYS_TITLE")%></div>
-->
</div>
</div>
</div>
<%
response.setHeader("edu-addr","gw");
%>
<div class="row">
<div style="text-align:center">
<div class="content-login" >
<div class="img3 ">
<img src="<%=path%>/style/img/login1.png" height=336px border="0" />
</div>
<div class="form-login" >
<%if(!"".equals(err)){ %>
<div class="alert alert-danger alert-dismissable" >
<strong><%=err %></strong>
</div>
<%}else{ %>
<!-- <div class="alert alert-info alert-dismissable" >
<strong>请输入用户名和密码!</strong>
</div>-->
<div style="height:72px;" >
<strong> </strong>
</div>
<%} %>
<div id="loading" style="text-align:center;display:none">
<p> </p>
正在验证用户信息,请稍候。。。
</div>
<form id="loginForm" class="form-horizontal" method="post" action="<%=baseURL%>/edulogin">
<div class="form-group">
<div class="col-lg-12">
<div class="input-icon">
<i class="fa fa-user"></i>
<input type="text" id=username name="username" placeholder="请输入您的用户名" autocomplete="off" class="form-control placeholder-no-fix">
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-12" >
<div class="input-icon" >
<i class="fa fa-lock"></i>
<input type="password" id=password name="password" placeholder="请输入您的密码" autocomplete="off" class="form-control placeholder-no-fix" >
</div>
</div>
</div>
<div class="form-group ">
<div class="col-md-4">
<div class="rember" name="login_remenber"><input type="checkbox" value="1" name="remenber" id="remenber"></div><div class="txt" >记住密码</div>
<input type="hidden" id=safe name="safe" value="0">
</div>
<div class="col-md-4" style="float:right">
<a href="register.jsp">注册</a>
</div>
</div>
<div class="form-group">
<input type="button" id="login" hidefocus="true" style="width:90%" id="maSubBtn" value="登 录" class="btn btn-success">
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row footer-login" >
<h5><a href="<%=URMSConfig.getConfigValue("SYS_URL")%>" target="_blank"><%=URMSConfig.getConfigValue("SYS_COPYRIGHT")%></a> 版权所有</h5>
</div>
</body>
<script src="<%=path%>/style/js/bootstrapValidator.min.js" type="text/javascript"></script>
<script src="<%=path%>/style/js/md5-min.js" type="text/javascript"></script>
<script src="<%=path%>/style/js/jquery.cookie.min.js" type="text/javascript"></script>
<script src="<%=path%>/style/js/jquery.base64.js" type="text/javascript"></script>
<script src="<%=path%>/style/js/login-edu.js" type="text/javascript"></script>
</html>
转载于:https://my.oschina.net/u/2441574/blog/499027