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

📄 gbook.asp

📁 一套现成的分类信息网站发布系统
💻 ASP
字号:
<!--#include file="conn1.asp"-->
<!--#include file="config.asp"-->
<%
dim ts,rs,sql
dim ThisPage,Pagesize,Allrecord,Allpage,tj
username=request.cookies("cnmai")("username")
ts=trim(request("ts"))
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title><%=title%>-留言反馈区</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" >
<!--#include file="top.asp" -->
<!--#include file=bar.asp-->
<div align="center">
    <table cellSpacing="0" cellPadding="0" width="768" border="0" height="216" bgcolor="#FFFFFF">
      <tr>
        <td vAlign="top" width="188" height="216">
        <table cellSpacing="0" cellPadding="0" width="195" border="0">
          <!--buyer-->
          <tr>
            <td width="82">
             </td>
            <td width="218">
            <div align="left">
              <table class="font_10_e_blue" cellSpacing="0" cellPadding="0" width="56" border="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
              <td vAlign="top" width="173">
              <img border="0" src="images/gbook.gif"></td>
                </tr>
                <tr>
              <td vAlign="top" background="images/mail_login_r3_c1.gif" width="173">
              <table class="font_10_e_black" cellSpacing="0" cellPadding="3" width="165" align="center" border="0">
                <!---------------------->
                <form method="POST" action="gbookchk.asp">
                  <tr>
                    <td width="32">
                    <p align="left">类型</td>
                    <td width="121">
                    <select size="1" name="gbook">
                    <option value="0">《 普通问题 》</option>
                    <option  <%if ts="1" then%> selected <%end if%> value="1">《 投诉留言 》</option>
                    </select></td>
                  </tr>
                  <tr>
                    <td width="32">
                    <p align="left">内容</td>
                    <td width="121">
                    <font color="#FF0000">字数限制为100个</font></td>
                  </tr>
                  <tr>
                    <td colspan="2" width="159">
                    <p align="center">
                    <textarea rows="8" name="memo" cols="19"><%if username="" then%>有什么问题可以直接在此发布留言信息!<%end if%></textarea></td>
                  </tr>
                  <tr>
                    <td width="32"> </td>
                    <td width="121">
                    <p align="center">
                    <input border="0" src="images/gbooktj.gif" name="I1" type="image"></td>
                  </tr>
                </form>
                <!---------------------->
              </table>
              </td>
                </tr>
                <tr>
              <td vAlign="top" width="173">
              <img alt src="images/mail_login_r7_c1.gif" border="0" name="mail_login_r7_c1"></td>
                </tr>
              </table>
            </div>
            </td>
            <td width="59">
             </td>
          </tr>
          <!--buyer-->
          <!--olduser-->
        </table>
        </td>
        <td vAlign="top" width="595" height="216">
        <div align="center">
          <center>
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="554" height="95">
<%
tj=1
set rs=server.createobject("adodb.recordset")
if ts="1" then
sql="select username,gbook1,gbook2,hfsj from gbook where lx=1 and hf=1 order by fbsj desc"
else
sql="select username,gbook1,gbook2,hfsj from gbook where lx=0 and hf=1 order by fbsj desc"
end if
rs.open sql,conn,1,1
if rs.eof then
response.write "还没有留言!"
response.end
end if
rs.Pagesize=10
Pagesize=rs.Pagesize
Allrecord=rs.Recordcount
Allpage=rs.Pagecount
if ThisPage<1 then                           
ThisPage=1                           
end if
On Error Resume Next
rs.move (ThisPage-1)*Pagesize
%>
          <tr>
            <td width="532" colspan="2" height="19" background="images/004.gif" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; border-bottom-style: solid; border-bottom-width: 1">
            <p align="center" style="margin-top: 1; margin-bottom: 1"><b>
            <font size="2" color="#800080"><%=title%>留言反馈区</font></b></td>
          </tr>
          <%do while not rs.eof%>
          <tr>
            <td width="532" colspan="2" height="24" bgcolor="#EEEEEE">
            <strong style="font-weight: 400"><font color="#cc0000">
            &nbsp;管理员</font><font color="#000000">答复</font><font color="#009933"><b><%=rs("username")%></b></font>提出的问题</strong>&nbsp;&nbsp;回复时间:<font color="#666666"><%=rs("hfsj")%></font></td>
          </tr>
          <tr>
            <td width="36">
            <p style="margin-top: 0; margin-bottom: 0">
            <font color="#FF0000">
            <strong>
            &nbsp;问:</strong></font></td>
            <td width="515" height="19"><font color="#800000"><b><%=rs("gbook1")%></b></font></td>
          </tr>
          <tr>
            <td width="36" valign="middle">
            <p style="margin-top: 0; margin-bottom: 0"><strong><font color="#009900">
            &nbsp;答:</font></strong></td>
            <td width="515" height="19"><font color="#808080"><%=rs("gbook2")%></font></td>
          </tr>
        <%
        tj=tj+1
        if tj>=Pagesize then exit do
        rs.movenext
        loop
        %>
        <tr>
        <td colspan="2" height="25" width="532">
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="552">
<tr> 
<td height="25" width="151">
<p align="center">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
<td height="25" width="126">
<p align="center">共 <font color="#CC5200"><%=Allpage%></font> 页</td>
<td height="25" width="118">
<p align="center">现在是第 
                <font color="#CC5200"><%=ThisPage%></font> 页</td>
<td height="25" width="157">
<p align="center">
<%
if ThisPage<2 then     
response.write "<font color=""#808080"">首页</font>&nbsp;"
response.write "<font color=""#808080"">上一页</font>&nbsp;"     
else     
response.write "<a href=?page=1&ts="&ts&">首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&"&ts="&ts&">上一页</a>&nbsp;"     
end if
if Allpage-ThisPage<1 then     
response.write "<font color=""#808080"">下一页</font>&nbsp;"
response.write "<font color=""#808080"">尾页</font>&nbsp;"  
else     
response.write "<a href=?page="&(ThisPage+1)&"&ts="&ts&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&"&ts="&ts&">尾页</a>&nbsp;"     
end if
%></td>
</tr>
</table>
        </td>
        </tr>
        </table>
          </center>
        </div>
    </td>
  </tr>
  </table>
</div>
<!--#include file="end.htm" -->
</body>
</html>
<%
rs.close
set rs=nothing
closedb
%>

⌨️ 快捷键说明

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