<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>登录</title>
	<meta name="decorator" content="default"/>
	<%@include file="/WEB-INF/views/include/head.jsp" %>
    <link rel="stylesheet" href="${ctxStatic}/common/login.css">
	<script type="text/javascript">
		$(document).ready(function() {
			$("#showType").hide();
			$("#adminLogin").click(function() {
				$("#adminLogin").addClass("on");
				$("#markLogin").removeClass("on");
				$("#showType").attr("value","admin-login");
			});
			$("#markLogin").click(function() {
				$("#markLogin").addClass("on");
				$("#adminLogin").removeClass("on");
				$("#showType").attr("value","mark-login");
			});
			if(self.frameElement && self.frameElement.tagName=="IFRAME"){
				parent.location.reload();
			}
		});
	</script>
</head>
<body>
<div class="container">
  <div class="middle cl">
   <div class="left">
    <div class="logo"><img src="${ctxStatic}/images/<c:if test="${indexLogo ==null||indexLogo =='' }">logo@2x.png</c:if><c:if test="${indexLogo !=null }">${indexLogo }</c:if>"/></div>
    <p>Copyright &#169武汉启明软件 2012-2014</p>
   </div>
   <div class="right">
     <div class="title">
       <h1>高校考试管理平台</h1>
       <c:if test="${loginType == 'admin-login' }"><p>管理员登录</p></c:if>
       <c:if test="${loginType == 'mark-login' }"><p>评卷员登录</p></c:if>
       <c:if test="${loginType == null || loginType == '' }">
       <p><span><a href="#" class="<c:if test="${showType == 'admin-login' ||showType==null}">on</c:if>" id="adminLogin">管理员登录</a></span>
       	<span><a href="#" class="<c:if test="${showType == 'mark-login' }">on</c:if>" id="markLogin">评卷员登录</a></span></p>
       </c:if>
     </div>
     <div class="loginbox">
      <form action="${ctx}/login" method="post" role="form" id="loginForm">
      	<input id ="showType" name ="showType" value="${showType}" />
        <div class="input-group">
        	<input type="text" class="form-control required" id="loginName" name="loginName" placeholder="请输入用户名" autocomplete="off" value="${loginName }"/>
        </div>
        <div class="input-group">
        	<input type="password" class="form-control required" id="password" name="password" placeholder="请输入密码" autocomplete="off"/>
        </div>
        <div class="point <c:if test="${message != null }"></c:if><c:if test="${message == null }">hide</c:if>">
        <em class="error">${message }</em>
        </div>
        <div class="login-btn"><input class="opacity" type="submit" value="登 录"/></div>
      </form>
     </div>
   </div>
  </div>
</div>
</body>
</html>