<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="cm" uri="/commons-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" />
<meta http-equiv="refresh" content="600" />
<title>首页</title>
<s:include value="../common/head.jsp" />
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<style>
html{
	height:100%;	
}
body{
	background:url(../resources/images/home.jpg) no-repeat center center #E8EAEF;
	height:100%;
	padding:0;
	margin:0;
}
.tab{
	margin-bottom:10px;
}
</style>
<script language="javascript">
function refreshHome(){
	$("#homeForm").get(0).submit();	
}
</script>
</head>

<body>
<div style="padding:10px;">
<s:form id="homeForm" action="home">

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" style="width:48%">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_line tab">
          <tr class="form_title">
            <td width="95%">考勤提醒</td>
            <td width="5%"><img src="../resources/images/refresh.gif" class="pointer" title="每隔10分钟自动刷新一次，点击立即刷新。" onclick="refreshHome()"/></td>
          </tr>
          <s:iterator value="attNotifyList" status="st">
          <tr class="form_tr">
            <td colspan="2">
                <span class="item">&nbsp;</span>
                <a href="javascript:openUrl('<s:property value='contextPath'/>/<s:url action='%{action}' namespace='%{namespace}'/><s:property value='params'/>','<s:property value='title' escapeHtml='false'/>')">
                    <s:property value='info'/></a>
            </td>
          </tr>
          </s:iterator>
        </table>
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_line tab">
          <tr class="form_title">
            <td width="95%">薪资提醒</td>
            <td width="5%"><img src="../resources/images/refresh.gif" class="pointer" title="每隔10分钟自动刷新一次，点击立即刷新。" onclick="refreshHome()"/></td>
          </tr>
          <s:iterator value="salaryNotifyList" status="st">
          <tr class="form_tr">
            <td colspan="2">
                <span class="item">&nbsp;</span>
                <a href="javascript:openUrl('<s:property value='contextPath'/>/<s:url action='%{action}' namespace='%{namespace}'/><s:property value='params'/>','<s:property value='title' escapeHtml='false'/>')">
                    <s:property value='info'/></a>
            </td>
          </tr>
          </s:iterator>
        </table>
		
    </td>  
    <td style="width:2%;">&nbsp;</td>
   <td valign="top" style="width:48%">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_line tab">
          <tr class="form_title">
            <td width="95%">人事提醒</td>
            <td width="5%"><img src="../resources/images/refresh.gif" class="pointer" title="每隔10分钟自动刷新一次，点击立即刷新。" onclick="refreshHome()"/></td>
          </tr>          
          <s:iterator value="emplNotifyList" status="st">
          <tr class="form_tr">
            <td>
                <span class="item">&nbsp;</span>
                <a href="javascript:openUrl('<s:property value='contextPath'/>/<s:url action='%{action}' namespace='%{namespace}'/><s:property value='params'/>','<s:property value='title' escapeHtml='false'/>')">
                    <s:property value='info'/></a>
            </td>
          </tr>
          </s:iterator>
        </table>    
    </td>
  </tr>
</table>

</s:form>
</div>
</body>
</html>
