<%@ 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" />
<script language="javascript" src="../resources/js/calendar/calendar.js"></script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  <s:form action="attEmplConfMine" id="queryForm" namespace="/att">
  
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="4">查询条件</td>
      </tr>
      <tr class="form_item">
        <td>日期：
          <s:textfield name="conf.beginDate" readonly="true" onClick="showDate(this)" cssClass="date_input" cssStyle="width:85px;">
          <s:param name="value">
              <s:date name="conf.beginDate" format="yyyy-MM-dd"/>
            </s:param>
          </s:textfield>
          至
          <s:textfield name="conf.endDate" readonly="true" onClick="showDate(this)" cssClass="date_input" cssStyle="width:85px;">
          <s:param name="value">
              <s:date name="conf.endDate" format="yyyy-MM-dd"/>
            </s:param>
          </s:textfield>
          
          </td>
        <td width="13%" align="center"><input name="q" value="查 询" onclick="query()" type="button" /></td>
      </tr>
    </table>
    
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line" style="margin-top:15px;">
      <tr class="list_title">
        <td width="18%">生效日期</td>
        <td width="16%">终止日期</td>
        <td width="17%">考勤类型</td>
        <td width="35%">考勤班次</td>
        <td width="14%">是否需要打卡</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"/></td>
          <td class="center"><s:property value="worktimeType.codeName"/></td>
          <td class="center" style="padding:0;">
           <s:if test="worktimeConf!=null">
          	<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="47%"><s:property value="worktimeConf.name"/></td>
                <td width="53%" 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>
            <s:else>
                &nbsp;
            </s:else>
          </td>
          <td class="center"><s:property value="isNeedSign.codeName"/></td>
        </tr>
      </s:iterator>
    </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_page">
    <tr>
      <td><cm:pager/></td>
    </tr>
  </table>
  </s:form>
</div>
</body>
</html>