<%@ 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>
<script language="javascript">
function otherCheck(){
	return confirm("“清理”操作将删除您所指定的时间段内的所有打卡数据，请谨慎操作！\n\n您确认要清理数据吗？");
}
</script>
</head>

<body>
<div class="body_list">
  <s:include value="../common/body.jsp" />
  
  <s:form action="attBrushCardLogClear" id="queryForm" namespace="/att" onsubmit="return checkForm(this,otherCheck)">
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr class="form_tr">
        <td align="right" valign="top">起始日期：</td>
        <td valign="top" style="padding-top:0;">
			<s:textfield name="date1" readonly="true" onClick="showCalendar('yyyy-MM-dd',this)" cssClass="date_input" cssStyle="width:180px;">
			<s:param name="value"><s:date name="date1" format="yyyy-MM-dd"/></s:param>
      </s:textfield>
          <div class="info" style="margin:5px 0; width:180px;">起始日期为空，表示清理 <strong>“截止日期”</strong> 以及之前的所有数据。</div></td>
      </tr>
      <tr class="form_tr">
        <td width="37%" align="right"><span class="required">•</span>截止日期：</td>
        <td width="63%">
		<s:textfield name="date2" title="截止日期 为必填项。" readonly="true" onClick="showCalendar('yyyy-MM-dd',this)" cssClass="date_input" cssStyle="width:180px;">
			<s:param name="value"><s:date name="date2" format="yyyy-MM-dd"/></s:param>
      </s:textfield>
		</td>
      </tr>
      <tr class="form_tr">
        <td width="37%">&nbsp;</td>
        <td width="63%" height="50">
        <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 -->		</td>
      </tr>	  
    </table>
  </s:form>
  
</div>
</body>
</html>