<!--#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="Nemuselect"><div align="center"><a href="main.asp" target="_self">已申报列表</a></div></td>
        <td width="100" height="28"class="NemuNot"><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>
<div align="center">
 

<%
    nowdate=now()
 
   tname=request.cookies("tname")
   Set Rsbaoxiu=Server.CreateObject("Adodb.Recordset")
   sqlbaoxiu="Select * from shiwu  where shiwu='报修' and  tname='"&tName& "'  order  by  jindu, id desc "
   Rsbaoxiu.open sqlbaoxiu,conn,1,1
%>

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

%>
</p>
    </p>
<table width="95%" height="71" 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="30" align="center" nowrap class="STYLE1"><span class="STYLE1 STYLE1">报修内容</span></td>
       <td align="center" nowrap class="STYLE1"><span class="STYLE1 STYLE1">报修时间</span></td>
       <td align="center" nowrap class="STYLE1"><span class="STYLE1">状态</span></td>
       <td   align="center" nowrap class="STYLE1"><span class="STYLE1">处理人</span></td>
       <td   align="center" nowrap class="STYLE1"><span class="STYLE1">操作</span></td>
     </tr>

<%
   for i= 1 to Rsbaoxiu.pagesize
      if Rsbaoxiu.eof then
         exit for
      end if
%>
    <tr  onmouseout="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#EFF8FF'">
      <td width="9%" align="left" class="STYLE1"><div align="center"><%=Rsbaoxiu("shiwutype")%></div></td>
      <td width="51%" height="38" align="left" class="STYLE1">&nbsp;
	  <% if  Rsbaoxiu("代报")<>""  then %>
	         
	      (代<%=Rsbaoxiu("代报")%>报):
	   
	      
	      
	   <%end if  %>
	  
	  
	  <%=Rsbaoxiu("content")%></td>
      <td width="11%" align="center" nowrap class="STYLE1"><span class="STYLE5 STYLE1"><span class="STYLE10"><%=Rsbaoxiu("updatetime")%></span></span></td>
      <td width="8%" align="center" nowrap class="STYLE1"><span class="STYLE5"><%=Rsbaoxiu("jieguo")%></span></td>
      <td width="7%"  align="center" nowrap class="STYLE1"><span class="STYLE5"><%=Rsbaoxiu("chuliren")%>&nbsp;</span></td>
      <td  width="14%"  align="center" nowrap class="STYLE1">
	  
	  
	  <%if trim(Rsbaoxiu("jindu"))="待处理" then%>
			 <a   href= "# "   onclick= "javascript:if(confirm( '您真的要删除记录？ '))href= 'delete.asp?ID=<%=Rsbaoxiu("id")%>'; "> 删除 </a>
			 
        <%else%>
            <a href="view.asp?curpage=<%=curpage%>&ID=<%=Rsbaoxiu("id")%>" target="_blank">详细</a>
      <%end if%>      </td>
	</tr>
<%  Rsbaoxiu.movenext
    next%>
</table>
  <br>

<div align="center" class="STYLE1">
<%if curpage=1 then%>
首页
<%else%>
<a href="?curpage=1">首页</a>
<%end if%>

<%if curpage=1 then%>
上一页
<%else%>
<a href="?curpage=<%=curpage-1%>">上一页</a>
<%end if%>

<%if Rsbaoxiu.pagecount<curpage+1 then%>
下一页
<%else%>
<a href="?curpage=<%=curpage+1%>">下一页</a>
<%end if%>

<%if Rsbaoxiu.pagecount<curpage+1 then%>
尾页
<%else%>
<a href="?curpage=<%=Rsbaoxiu.pagecount%>">尾页</a>
<%end if%>
(当前第<%=curpage%>页，共有<%=Rsbaoxiu.pagecount%>页，共有：<%=Rsbaoxiu.recordcount%>条记录)</div>
</div>
<% 
   Rsbaoxiu.close
   set Rsbaoxiu=nothing  
   conn.close
   set conn=nothing
%>  </tr>
</table>
</body>
</html>
