<!--#include file="../SQLconn.asp"-->

<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/style.css" />

<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
<body>
<table width="99%" height="500" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td height="33"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="70" class="NemuNot" ><div align="center"><a href="main.asp" target="_self">我的考勤</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="QingJiaList.asp" target="_self">我的请假</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="QingJiaJiLu.asp" target="_self">请假记录</a></div></td>
         <td width="70" class="NemuNot" ><div align="center"><a href="Alljilu.asp" target="_self">考勤记录</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="shenbianchuli.asp?qdtype=未处理" target="_self">申辩处理</a></div></td>
       <td width="70" class="Nemuselect" ><div align="center"><a href="Rentongji.asp" target="_self">按人统计</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="Datetongji.asp" target="_self">按时统计</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="list.asp" target="_self">分类查看</a></div></td>
        <td width="70" class="NemuNot" ><div align="center"><a href="showimg.asp" target="_self">考勤图片</a></div></td>
        <td    class="NemuLine">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
   <td height="470" valign="top"   class="NemuMainBox">
       <%   
 '检查权限
          tname=request.cookies("tname") 
       Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
           if MyOAASPObj.QuanXian(tname,"员工档案")=0 then 
		    response.redirect  "../NoPower.asp"
		      end if 
		   set MyOAASPObj=nothing
'检查权限结束 %>
<%    
  
       checkbox1=Request("checkbox1")
	   checkbox2=Request("checkbox2")
	   checkbox3=Request("checkbox3")
	   checkbox4=Request("checkbox4")
	   checkbox5=Request("checkbox5")
	   checkbox6=Request("checkbox6")
	   
	    strqdtype="('"&checkbox1&"','"&checkbox2&"','"&checkbox3&"','"&checkbox4&"','"&checkbox5&"','"&checkbox6&"')"
 
		begindate=Request("begindate")
		if begindate="" then 
		begindate=date()-30
		end if 	
		enddate=Request("enddate")
		if enddate="" then 
		enddate=date()
		end if
	   
	   %>
	   <br>
       <FORM ACTION="Rentongji.asp" METHOD="GET" enctype="multipart/form-data" NAME="ftype">
       <div align="center" class="STYLE1">
         <table width="764" border="0" cellpadding="0" cellspacing="0" class="mtable">
           <tr>
             <td width="673" height="32"><div align="center" class="STYLE1"> 开始日期
               <input name="begindate" type="text" class="input" id="begindate" value=<%=begindate%> size="10">
               &nbsp;结束日期
               <input name="enddate" type="text" class="input" id="enddate" value=<%=enddate%> size="10">
               &nbsp;&nbsp; </div></td>
             <td width="139" rowspan="2"><div align="center">
                 <input name="Submit" type="submit" class="topanniu" value="统计">
             </div></td>
           </tr>
           <tr>
             <td height="29"><label></label>
                 <label></label>
                 <div align="center">
                   <label>
                   <span class="STYLE1">
                   <input name="checkbox1" type="checkbox" id="checkbox1" value="上午上班" checked  <%if checkbox1="上午上班"  then%>checked<%end if%>>
                     上午上班 </span></label>
                   <span class="STYLE1">&nbsp;
                   <label>
                     <input name="checkbox2" type="checkbox" id="checkbox2" value="上午下班" checked  <%if checkbox2="上午下班"  then%>checked<%end if%>>
                     上午下班 </label>
                   &nbsp;
                   <label>
                     <input name="checkbox3" type="checkbox" value="下午上班" checked  <%if checkbox3="下午上班"  then%>checked<%end if%>>
                     下午上班&nbsp;&nbsp;</label>
                   <label>
                     <input name="checkbox4" type="checkbox" value="下午下班" checked  <%if checkbox4="下午下班"  then%>checked<%end if%>>
                     下午下班 </label>
&nbsp;&nbsp;
                   <label>
                     <input name="checkbox5" type="checkbox" value="晚上上班" checked <%if checkbox5="晚上上班"  then%>checked<%end if%>>
                     晚上上班 </label>
                   &nbsp;
                   <label>
                     <input name="checkbox6" type="checkbox" value="晚上下班" checked <%if checkbox6="晚上下班"  then%>checked<%end if%>>
                     晚上下班</label>
                   <label></label>
                   <label></label>
                   </span></div></td>
           </tr>
         </table>
       </div>
       
	 
	 <%
	
	
	  
	   Set MyOAASPObj = Server.CreateObject("YFSchoolOApro2.YFSchoolDll2")
       call  MyOAASPObj.KaoqinTongji(begindate,enddate,strqdtype)
       set MyOAASPObj=nothing	 
	   
	   
	   
	   %>
</FORM>	  </td>
  </tr>
</table>
</body>
</html>
