<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HrmEx用户登录</title>
<s:include value="../common/head.jsp" />
<link href="../resources/style/login.css" rel="stylesheet" type="text/css"/>

<script language="javascript">
if(self.location.href != top.location.href){
	top.location.href=self.location.href;
}
</script>
<s:if test="#session.sessionSysUser!=null">
	<script language="javascript">
		location.href='<s:url namespace="/security" action="console"/>';
	</script>
</s:if>
</head>

<body>
<s:form action="login" namespace="/security" target="_top" onsubmit="checkForm(this)">
<div class="bg02">
  <div class="logbox fl">
    <ul>
      <li>
            <s:if test="!message.success">
                <img src="../resources/images/warning.gif" style="float:left;">
                <span style="color:#F00;">
                	&nbsp; 
    				<s:property value="message.message" escape="false"/>
                </span>                
            </s:if>
            <s:else>
                <img src="../resources/images/info.gif" style="float:left;">
                <span>
                	&nbsp;
                    <s:if test="message!=null">
                    	<s:property value="message.message" escape="false"/>
                    </s:if>
                    <s:else>
                    	请输入您的工号和密码登陆系统！
                    </s:else>
                </span>
            </s:else>
        
      </li>    
      <li>工　号：
      	<s:textfield name="loginId" cssClass="w" title="账号 为必填选项，且必须为数字！"/>
      </li>
       <li>密　码：
        <input name="loginPwd" type="password" class="w" title="密码 为必填选项！"/>
      </li>
    </ul>
  </div>
  <div class="logbox02 fl"><input type="submit" name="Submit" value="" class="btn1" /></div>
  <div class="cl logbox01">Copyright 2011 <a href="http://www.cqkey.com/">重庆虎峰信息技术有限责任公司</a></div>
</div>
</s:form>
</body>
</html>
