<!--#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="NemuNot" ><div align="center"><a href="Daishenpi.asp" target="_self">维修处理</a></div></td>
        <td width="100" class="Nemuselect" ><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 Rsyipi=Server.CreateObject("Adodb.Recordset")
   sqlsended="Select * from shiwu  where  shiwu='报修' and   jindu='已处理'  order by updatetime  desc"
   Rsyipi.open sqlsended,conn,1,1
%>

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

%>

<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="nowrap" class="STYLE1">报修类型</td>
       <td height="38" align="center" nowrap="nowrap" class="STYLE1">报修人</td>
       <td align="center" nowrap="nowrap" class="STYLE1">报修内容</td>
       <td align="center" nowrap="nowrap" class="STYLE1">报修时间</td>
       <td align="center" nowrap class="STYLE1">完成时间</td>
      <td align="center" nowrap class="STYLE1">维修结果</td>
    <td width="119" align="center" nowrap class="STYLE1"><div align="center">操作</div></td>
  </tr>

<%
   for i= 1 to Rsyipi.pagesize
      if Rsyipi.eof then
         exit for
      end if
%>
    <tr>
      <td width="78" align="center" nowrap class="STYLE1"><%=Rsyipi("shiwutype")%></td>
      <td width="82" height="38" align="center" nowrap class="STYLE1">
	  <% if  Rsyipi("代报")<>""  then %>
	      <%=Rsyipi("代报")%>
	      (<%=Rsyipi("tname")%>代报)
	    <%else  %>
	   <%=Rsyipi("tname")%>
	  
	  <%end if  %>	  </td> 
      <td width="477" align="left" class="STYLE1">
      <div align="left"> &nbsp;<%=Rsyipi("content")%>  </div></td>
      <td width="118" align="center" nowrap class="STYLE1"><%=Rsyipi("updatetime")%></td>
      <td width="118" align="center" nowrap class="STYLE1"><%=Rsyipi("chuliriqi")%></td>
      <td width="119" align="center" nowrap class="STYLE1"><%=Rsyipi("jieguo")%></td>
      <td  width="119" align="center" nowrap class="STYLE1"><a href="shenpiview.asp?curpage=<%=curpage%>&ID=<%=Rsyipi("id")%>" target="_blank">&nbsp;详细&nbsp;</a></td>
	</tr>
<%  Rsyipi.movenext
    next%>
</table>
  <br>

<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 Rsyipi.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?seetype=已处理&curpage=<%=curpage+1%>">下一页</a>
<%end if%>

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

<p></p>	</td>
  </tr>
</table>
</body>
</html>
