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

</script>
</head>

<body>
<s:include value="../common/body.jsp" />
<s:form action="attTotalMonthEdit" namespace="/att" onsubmit="return checkForm(this)" >
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="form_tr">
      <td width="22%" align="right">月份：</td>
      <td width="26%" align="left"><s:property value="monthTotal.attMonth"/><s:hidden name="monthTotal.attMonth" /></td>
      <td width="22%" align="right">全勤：</td>
      <td width="30%" valign="top"><s:textfield name="monthTotal.attTimes" title="全勤 为必填项。" cssStyle="width:50px;"/>
        小时</td>
    </tr>
    <tr class="form_tr">
      <td align="right">工号：</td>
      <td align="left"><s:property value="monthTotal.emplInfo.emplNo"/><s:hidden name="monthTotal.emplInfo.id" /></td>
      <td align="right">缺勤：</td>
      <td valign="top"><s:textfield name="monthTotal.absentTimes" title="缺勤 为必填项。" cssStyle="width:50px;"/>
        小时</td>
    </tr>
    <tr class="form_tr">
      <td align="right">姓名：</td>
      <td align="left"><s:property value="monthTotal.emplInfo.name"/></td>
      <td align="right">出差：</td>
      <td valign="top"><s:textfield name="monthTotal.travelDays" title="出差 为必填项。" cssStyle="width:50px;"/>天</td>
    </tr>
    <tr class="form_tr">
      <td align="right">迟到：</td>
      <td align="left"><s:textfield name="monthTotal.lateNum" title="迟到 为必填项。" cssStyle="width:50px;"/>
        次</td>
      <td align="right" valign="top">普通加班：</td>
      <td align="left" valign="top"><s:textfield name="monthTotal.normalOvertimes" title="普通加班 为必填项。" cssStyle="width:50px;"/>
        小时</td>
    </tr>
    <tr class="form_tr">
      <td align="right" valign="top">早退：</td>
      <td align="left" valign="top"><s:textfield name="monthTotal.earlyNum" title="早退 为必填项。" cssStyle="width:50px;"/>
        次</td>
      <td align="right" valign="top">周末加班：</td>
      <td align="left" valign="top"><s:textfield name="monthTotal.weekendOvertimes" title="周末加班 为必填项。" cssStyle="width:50px;"/>
        小时</td>
    </tr>
    <tr class="form_tr">
      <td align="right" valign="top">旷工：</td>
      <td align="left" valign="top"><s:textfield name="monthTotal.kuangTimes" title="旷工 为必填项。" cssStyle="width:50px;"/>
        小时</td>
      <td align="right">节日加班：</td>
      <td align="left"><s:textfield name="monthTotal.holidayOvertimes" title="节日加班 为必填项。" cssStyle="width:50px;"/>
        小时</td>
    </tr>
    <tr class="form_tr">
      <td align="right" valign="top"  style="padding-top:13px;">请假：</td>
      <td colspan="3" align="left" valign="top" style="">
   		<s:iterator value="leaveTypeList" status="st">
          <div style=" padding-top:5px;">
              <s:property value="name"/>
              <s:textfield name="leaveData['%{id}']" value="%{monthTotal.leaveMap.get(id).leaveTime}" cssStyle="width:50px;"/>
              小时
          </div>
        </s:iterator>
      </td>
    </tr>
    <tr class="form_tr">
      <td height="40" colspan="4" align="center"><input type="submit" name="button" id="button" value="修 改" />
        &nbsp; 
        <!-- back begin -->
        
        <input name="winID" type="hidden" value="${param.winID}" />
        <input type="button" onclick="iframeWindowClose('${param.winID}')" name="button" id="button" value="返 回" />
        
        <!-- back end -->
        
        <s:hidden name="monthTotal.id" /></td>
    </tr>
  </table>
</s:form>
</body>
</html>