<%@ 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" />
<title>员工考勤历史配置</title>
<link href="../resources/style/base.css" rel="stylesheet" type="text/css"/>
<s:include value="../common/head.jsp" />
</head>

<body>
<div class="body_list">
    <table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="list_title">
        <td width="13%">生效日期</td>
        <td width="13%">终止日期</td>
        <td width="15%">考勤类型</td>
        <td width="42%">考勤班次</td>
        <td width="17%">是否需要打卡</td>
      </tr>
      <s:iterator value="mineEmplConfList" status="st">
        <s:set name="row_cls" value=""/>
        <s:if test="#st.Even">
          <s:set name="row_cls" value="%{'row_a'}"/>
        </s:if>
        <tr class="list_data <s:property value='#row_cls'/>">
          <td class="center"><s:date name="beginDate" format="yyyy-MM-dd"/></td>
          <td class="center"><s:date name="endDate" format="yyyy-MM-dd"/>&nbsp;</td>
          <td class="center"><s:property value="worktimeType.codeName"/></td>
          <td class="center" style="padding:0;">
		  	<s:if test="worktimeConf.periodSet!=null && worktimeConf.periodSet.size()>0">
          	<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="43%"><s:property value="worktimeConf.name"/></td>
                <td width="57%" style="padding:0;">
                <s:iterator value="worktimeConf.periodSet">
          			<div style="border-bottom:#CCC solid 1px; padding:2px 5px;">
                    	<s:property value="beginTime"/>
                        &nbsp;至&nbsp;
                        <s:property value="dateType.codeName"/>
                        <s:property value="endTime"/>
                    </div>
                </s:iterator>
                </td>
              </tr>
            </table>
           </s:if>
		  </td>
          <td class="center"><s:property value="isNeedSign.codeName"/></td>
        </tr>
      </s:iterator>
    </table>
</div>
</body>
</html>