<!--#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="499" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="33"><table width="100%" height="33" border="0" cellpadding="0" cellspacing="0">
      <tr>
         <td width="100" class="NemuNot"><div align="center"><a href="shenqing.asp" target="_self">维修申报</a></div></td>
		<td width="100" class="NemuNot"><div align="center"><a href="main.asp" target="_self">已申报列表</a></div></td>
        <td width="100"   class="Nemuselect"><div align="center"><a href="Daishenpi.asp" target="_self">维修处理</a></div></td>
        <td width="100" class="NemuNot"><div align="center"><a href="Yishenpi.asp?qdtype=未处理" target="_self">已处理维修</a></div></td>
        <td width="100" class="NemuNot"><div align="center"><a href="Findbaoxiu.asp" target="_self"> 维修统计</a></div></td>
        <td  class="NemuLine">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
   <td height="470" valign="top"   class="NemuMainBox">
	<br>
	  <%
   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
'检查权限结束
   
   
   
    
   
   Set RsDaipi=Server.CreateObject("Adodb.Recordset")
   sqldaipi="SELECT  *   FROM  shiwu where  shiwu='报修' and  jindu='待处理' order by id desc  "
   RsDaipi.open sqldaipi,conn,1,1
   
   
   
   if RsDaipi.eof and  RsDaipi.bof then %>
	             <br><br><br><br><br><br><br><br><br>
                 <div align="center" class="STYLETITLE" title="提示信息框">
                 <span style="BACKGROUND:#EEEEFF;COLOR:#FF6633;margin: 10px;border:1px dotted #FF6633;
				 font-weight:bold;padding:8px;width=140">
                 无未处理的报修</span>                 </div>
                 <%else %>
   
   


<%
   RsDaipi.pagesize=8 '每页记录条数
   curpage=Request.QueryString("curpage") '将URL参数curpage传给curpage变量
   RsDaipi.absolutepage=curpage '将本页设为curpage设置的页数
   if curpage=0 then
     curpage=1
   end if 
%>

  <br>
 
<table width="95%" border="1" align="center" cellpadding="3"   cellspacing="0"  bordercolor="#6D8DD8"  class="mtable">   
<tr style="background-color:#D6E4FF"  class="TableHeader">
  <td align="center" nowrap class="STYLE1">报修类型</td>
       <td height="28" align="center" nowrap class="STYLE1">报修人</td>
     
       <td align="center" nowrap class="STYLE1">报修内容</td>
       <td align="center" nowrap class="STYLE1">报修时间</td>
       <td width="129" align="center" nowrap class="STYLE1">进度</td>
    <td width="181" align="center" nowrap class="STYLE1"><div align="right" class="STYLE10">
      <div align="center">操作</div>
    </div></td>
  </tr>


<%
   for i= 1 to RsDaipi.pagesize
      if RsDaipi.eof then
         exit for
      end if
%>
    <tr>
      <td width="85" align="center" nowrap class="STYLE1"><%=RsDaipi("shiwutype")%></td>
      <td width="104" height="38" align="center" nowrap class="STYLE1"> 
	   <% if  RsDaipi("代报")<>""  then %>
	         <%=RsDaipi("代报")%>
	      (<%=RsDaipi("tname")%>代报)
	   <%else  %>
	       <%=RsDaipi("tname")%>
	      
	   <%end if  %>	  </td>
      <td width="491" align="left" class="STYLE1">&nbsp; <%=RsDaipi("content")%> </td>
      <td width="129" align="center" nowrap class="STYLE1"><div align="center" class="STYLE4"><%=RsDaipi("updatetime")%></div></td>
      <td  width="129"  align="center" nowrap class="STYLE1"><%=RsDaipi("jieguo")%></td>
      <td  width="181"  align="center" nowrap class="STYLE1">
	  <a href="modify.asp?jindu=知道了&ID=<%=RsDaipi("id")%>">知道了</a>
	  <a href="modify.asp?jindu=维修中&ID=<%=RsDaipi("id")%>">维修中</a>
	  <a href="shenpi.asp?ID=<%=RsDaipi("id")%>">完成</a>	  </td>
	</tr>
<%  RsDaipi.movenext
    next%>
</table>
  <br>
  <div>
  <div align="center"></div>
</div>
<div align="center">
  
  <span class="STYLE1">
  <%if curpage=1 then%>
首页
<%else%>
<a href="?seetype=待处理&curpage=1">首页</a>
<%end if%>

<%if curpage=1 then%>
上一页
<%else%>
<a href="?seetype=待处理&curpage=<%=curpage-1%>">上一页</a>
<%end if%>

<%if RsDaipi.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?seetype=待处理&curpage=<%=curpage+1%>">下一页</a>
<%end if%>

<%if RsDaipi.pagecount<curpage+1 then%>
尾页
<%else%>
<a href="?seetype=待处理&curpage=<%=RsDaipi.pagecount%>">尾页</a>
<%end if%>
(当前第<%=curpage%>页，共有<%=RsDaipi.pagecount%>页，共有：<%=RsDaipi.recordcount%>条记录)</span></div>


    <%end if%>    </td>
  </tr>
</table>
</body>
</html>
