📄 admin_fankui_list.asp
字号:
<!--#include file =conn.asp-->
<%if session("pass")<>"ok" then
Response.Redirect "index.asp"
Response.End
end if
%>
<html>
<head>
<title>后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<script src="../js/js_fankui.js"></script>
<body leftmargin="0" topmargin="0" >
<%
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from baoxiu order by baoxiu_id desc"
rs.open sql,conn,1,1
rs.pagesize=""&fkshu&""
'实现分页
if rs.Eof then
rs_total = 0
else
rs_total = rs.RecordCount
end if
dim pageno
maxpage=rs.pagecount
getpageno = (Request("pageno"))
if(getpageno = "")then
pageno = 1
else
pageno = getpageno
End if
if(not rs.Eof)then
rs.AbsolutePage = pageno
End if
%>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="TableBorder"0>
<tr>
<td height="30" colspan=2 align="center" class="TableTitle1"><b>管理员反馈管理</b></td>
</tr>
<tr>
<td width="100" class="TableRow2" height=25><strong>管理快捷方式:</strong></td>
<td class="TableRow2"><a href="Admin_system.asp">网站信息设置</a> | <A href="admin_baoxiu_list.asp" target="main">报修管理</A></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="72" align="center">
<tr>
<td height="20" align=center>
<tr>
<td align=center><table cellspacing="0" bordercolorlight="#FFFFFF" width="100%">
<tr align="center">
<td valign="top" colspan="3">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableBorder">
<tr>
<td width="120" height="25" align="center" class="TableTitle1" >报修编号</td>
<td width="442" height="25" align="center" class="TableTitle1" >维修反馈</td>
<td width="80" height="25" align="center" class="TableTitle1" >维修人员</td>
<td width="155" height="25" align="center" class="TableTitle1" >维修时间</td>
<td width="60" height="25" align="center" class="TableTitle1" >维修状态</td>
<td width="60" height="25" align="center" class="TableTitle1" >修改反馈</td>
</tr>
<%
If(rs.Eof)Then
%>
<tr>
<td height="120" colspan="8" align="center" class="TableRow2">没有维修记录!</td>
</tr>
<!--#include file="copyright.asp" -->
<%
Response.End()
End If
repeat_rows = 0
While(repeat_rows < rs.PageSize and Not rs.Eof)
%>
<%baoxiu_id=rs("baoxiu_id")%>
<tr>
<td width="120" height="25" align="center" class="TableRow2" ><%=rs("bx_id")%></td>
<td width="442" height="25" align="center" class="TableRow2" ><%if rs("weixiu_main")<>"" then%><font color="#FF0000"><%=rs("weixiu_main")%></font><%else%><b>×</b><%end if%></td>
<td width="80" height="25" align="center" class="TableRow2" ><%if rs("admin_name")<>"" then%><font color="#FF0000"><%=rs("admin_name")%></font><%else%><b>×</b><%end if%></td>
<td width="155" height="25" align="center" class="TableRow2" ><%if rs("weixiu_time")<>"" then%><font color="#FF0000"><%=rs("weixiu_time")%></font><%else%><b>×</b><%end if%></td>
<td width="60" height="25" align="center" class="TableRow2" ><%if rs("weixiu_zhuangtai")<>"" then%><font color="#FF0000"><%=rs("weixiu_zhuangtai")%></font><%else%><b>×</b><%end if%></td>
<td width="60" height="25" align="center" class="TableRow2" ><%if rs("weixiu_zhuangtai")<>"" then%><a href='admin_fankui_edit.asp?baoxiu_id=<%=rs("baoxiu_id")%>'><img border=0 src='images/edit.gif' alt='编辑该反馈信息'></a><%else%><a href='admin_fankui.asp?baoxiu_id=<%=rs("baoxiu_id")%>'><img border=0 src='images/reply.gif' alt='管理员维修反馈'></a><%end if%></td>
</tr>
<%
repeat_rows = repeat_rows + 1
rs.MoveNext
Wend
%>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td height="8" colspan=5></td>
</tr>
<tr>
<td><table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#799AE1" bordercolordark="#ffffff">
<tr>
<td><table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td width="31%" height="26">[<font color=red><%=pageno%></font>/<%=rs.pagecount%>] | [每页<font color=red><%=rs.PageSize%></font>条] | [共<font color=red><%=rs_total%></font>条] </td>
<td width="69%" align="right"><%
if(pageno <> 1)then
%>
<a href="?condition=<%=getcondition%>&key=<%=getkey%>">第一页</a>
<%
end if
%>
<%
if(pageno <> 1)then
%>
<a href="?condition=<%=getcondition%>&key=<%=getkey%>&pageno=<%=(pageno-1)%>">上一页</a>
<%
end if
%>
<%
'这里要判断一下pageno和rs.pagecount的值相等的情况,如果不判断,当它俩的值相等时,pageno<>cstr(rs.pagecount)还是true
if(instr(pageno,cstr(rs.pagecount)) = 0)then
%>
<a href="?condition=<%=getcondition%>&key=<%=getkey%>&pageno=<%=(pageno+1)%>">下一页</a>
<%
end if
%>
<%
if(instr(pageno,cstr(rs.pagecount)) = 0)then
%>
<a href="?condition=<%=getcondition%>&key=<%=getkey%>&pageno=<%=rs.pagecount%>">最后一页</a>
<%
end if
rs.close
set rs = nothing
%></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</table>
<!--#include file="copyright.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -