<!--#include file="../checkLogin.asp"-->
<!--#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="../images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<style type="text/css">
<!--
.STYLE3 {color: #990033}
-->
</style>
<body>

<table width="100%" height="495" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="27">
	<div class="header">
	<div class="nav">
        <ul>
           
            <li><a href="shenqing.asp" target="_self">维修申报</a></li> 			
            <li><a href="main.asp" target="_self">已申报列表</a></li>			
			<li><a href="Daishenpi.asp" target="_self">维修处理</a></li>
			<li class="on">已处理维修</li>
			<li><a href="Findbaoxiu.asp" target="_self"> 维修统计</a></li>
        </ul>
    </div>	
	</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 align="center" nowrap="nowrap" class="STYLE1">报修类型</td>
       <td height="30" 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 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
%>
     <%ixuhao=(curpage-1)*8+i%>
    <tr>
      <td width="30" align="center" nowrap class="STYLE1"><%=ixuhao%></td>
	  <td width="78" align="center" nowrap class="STYLE1"><%=Rsyipi("shiwutype")%></td>
      <td width="82" height="38" align="center" nowrap class="STYLE1">	 
	   <%=Rsyipi("tname")%>	  
	  </td> 
      <td width="477" align="left" class="STYLE1">
      <div align="left"> &nbsp;<%=Rsyipi("content")%>  </div></td>
      <td width="80" align="center" nowrap class="STYLE1"><%=Rsyipi("updatetime")%></td>
      <td width="80" align="center" nowrap class="STYLE1"><%=Rsyipi("chuliriqi")%></td>
      <td  width="80"  align="center" nowrap class="STYLE1"><%=Rsyipi("chuliren")%></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>
