⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comment.asp

📁 网络商城系统
💻 ASP
字号:
<!--#include file="session.asp"-->
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="img/admin_style.css">
</head>
<body>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainmiddle">
  <tr> 
    <td width="29" height="32"> <div align="left"> 
        <p class="maindaohang">&nbsp;</p>
      </div></td>
    <td width="709"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="5"></td>
        </tr>
      </table>
      <b><font color="#000000"><b> <span class="bigNavi">商品评论管理</span>              </b></font></b></td>
    <td width="8" class="mainrights"></td>
  </tr>
</table>
<br>
<table width="95%" height="22" border="0" align="center" cellpadding="3" cellspacing="1" class="tabbgcolor">
  <tr class="tabbgcolorli"> 
    <td width="9%"><div align="center">客户</div></td>
    <td width="20%"><div align="center">评论内容</div></td>
    <td width="18%"><div align="center">提交时间</div></td>
    <td width="8%"><div align="center">相关商品</div></td>
    <td width="27%"><div align="center">回复内容</div></td>
    <td width="6%"><div align="center">操作</div></td>
    <td width="5%"><div align="center">操作</div></td>
    <td width="7%"><div align="center">操作</div></td>
  </tr>
  <%
page=request.querystring("page")
if page="" then page=1
if not(isnumeric(page)) then page=1
if page<1 then page=1
page=int(page)

set rs=server.createobject("adodb.recordset")
sql="select * from pl order by id desc"
rs.open sql,conn,3,3
if rs.eof then
    response.write "暂且没有任何商品评论"
    response.end
else
    rs.pagesize=10
    totalrec=rs.recordcount
    totalpage=rs.pagecount
    if page>totalpage then page=totalpage
    rs.absolutepage=page
    i=0
    dim id(),code(),content(),adddate(),sp_id(),reply(),check()
    do while not rs.eof and (i<rs.pagesize)
        i=i+1
        redim preserve id(i),code(i),content(i),adddate(i),sp_id(i),reply(i),check(i)
        id(i)=rs("id")
        code(i)=rs("code")
        content(i)=rs("content")
        adddate(i)=rs("date")
		sp_id(i)=rs("sp_id")
		reply(i)=rs("reply")
		check(i)=rs("check")
        rs.movenext
    loop
	end if
    rs.close
    %>
  <%for i = 1 to ubound(id)%>
  <tr class="tabbgcolorli"> 
    <td width="9%"><div align="center"><%=code(i)%></div></td>
    <td width="20%"><div align="center"><%=content(i)%></div></td>
    <td width="18%"><div align="center"><%=adddate(i)%></div></td>
    <td width="8%"><div align="center"><a href="../goods.asp?id=<%=sp_id(i)%>" target="blank">查看商品</a></div></td>
    <td width="27%"><div align="center"><%=reply(i)%></div></td>
    <td width="6%"><div align="center"><a href="reply.asp?id=<%=id(i)%>">回复</a></div></td>
    <td width="5%"><div align="center"><a href="commentact.asp?action=del&id=<%=id(i)%>">删除</a></div></td>
    <td width="7%"><div align="center"><%if check(i)=false then%><a href="commentact.asp?action=confirm&id=<%=id(i)%>">审核</a><%else%><a href="commentact.asp?action=cancel&id=<%=id(i)%>">已审核</a><%end if%></div></td>
  </tr>
  <%next%>
</table>
<br>
<table border="0" width="507" cellspacing="0" height="10" align="center">
  <tr> 
    <td> 
      <p align="center">共<font color=red><%=totalpage%></font>页  第<%=page%>页 <font color=666666> 
          
        <%if page-1>0 then%>
        <a href="comment.asp?page=<%=page-1%>">上一页</a> 
        <%else%>
        <font color=666666>上一页</font> 
        <%end if%>
          
        <%if page+1<=totalpage then%>
        <a href="comment.asp?page=<%=page+1%>">下一页</a> 
        <%else%>
        <font color=666666>下一页</font> 
        <%end if%>
         共<font color=red><%=totalrec%></font>条记录 </font></p>
    </td>
  </tr>
  <tr> 
    <td></td>
  </tr>
</table>
<%
set rs=nothing
conn.close
set conn=nothing
%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -