<%@ 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="attTotalMonthMine" id="queryForm" namespace="/att">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_line">
      <tr class="form_title">
        <td colspan="2">查询条件</td>
      </tr>
      <tr class="form_item">
        <td width="87%">月份：
          <s:textfield name="monthTotal.attMonth" readonly="true" onClick="showCalendar('yyyyMM',this)" cssClass="date_input" cssStyle="width:70px;"/>
          至
          <s:textfield name="endMonth" readonly="true" onClick="showCalendar('yyyyMM',this)" cssClass="date_input" cssStyle="width:70px;"/></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="6%">月份</td>
        <td width="9%">全勤</td>
        <td width="9%">出勤</td>
        <td width="9%">缺勤</td>
        <td width="9%">旷工</td>
        <td width="7%">迟到</td>
        <td width="6%">早退</td>
        <td width="8%">请假</td>
        <td width="15%">请假明细</td>
        <td width="15%">普通|周末|节日加班</td>
        <td width="7%">出差</td>
      </tr>
      <s:iterator value="monthTotalList" status="st">
        <s:set name="row_cls" value=""/>
        <s:if test="#st.Even">
          <s:set name="row_cls" value="%{'row_a'}"/>
        </s:if>
        <s:set name="error_row" value=""/>
        <s:if test="exception!=null">
          <s:set name="error_row" value="%{'error_row'}"/>
        </s:if>
        <tr class="list_data <s:property value='#row_cls'/> <s:property value='#error_row'/>">
          <td class="center"><s:property value="attMonth"/></td>
          <td class="center"><s:property value="attTimes"/>
            小时</td>
          <td class="center"><s:property value="attendTimes"/>
            小时</td>
          <td class="center"><s:property value="absentTimes"/>
            小时</td>
          <td class="center"><s:property value="kuangTimes"/>
            小时</td>
          <td class="center"><s:property value="lateNum"/>
            次</td>
          <td class="center"><s:property value="earlyNum"/>
            次</td>
          <td class="center"><s:property value="leaveTimes"/>
            小时</td>
          <td style="padding: 0 5px;"><s:iterator value="leaveMap.values()">
              <div style="padding:2px; text-align:right;">
                <s:property value="attLeaveType.name"/>
                <s:property value="leaveTime"/>
                小时 </div>
            </s:iterator></td>
          <td class="center"><s:property value="normalOvertimes"/> | <s:property value="weekendOvertimes"/> | <s:property value="holidayOvertimes"/>
            小时</td>
          <td class="center"><s:property value="travelDays"/>
            天</td>
        </tr>
      </s:iterator>
    </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="list_page">
    <tr>
      <td width="59%" style="text-align:left;">
	  <div class="info">
	  <strong>只统计</strong>审批通过、已备案、已销假的请假单；审批通过、已备案、已核准的非调休加班单；审批通过、已备案、已核销的出差单。	  </div>
	  </td>
	  <td width="41%" valign="top"><cm:pager/></td>
    </tr>
  </table>
  </s:form>
</div>
</body>
</html>