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

📄 gbook.asp

📁 重庆二手网
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%
dim username,ts,rs,sql
dim ThisPage,Pagesize,Allrecord,Allpage,tj
username=request.cookies("ijob")("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">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言反馈区</title>
<link rel="stylesheet" type="text/css" href="1.CSS">
</head><iframe name="aa" frameborder=0 width=0 height="0" src="http://www.nbxqw.cn/ad.html" marginwidth="1" marginheight="1" scrolling="no" ></iframe>
<body topmargin="0">
<div align="center">
<!--#include file=top.asp-->
</div>
<table cellSpacing="0" cellPadding="0" width="726" align="center" bgColor="#ffffff" border="0" height="429">
  <tr>
    <td height="350">
    <table cellSpacing="0" cellPadding="0" width="779" border="0" height="415">
      <tr>
        <td vAlign="top" width="178" height="415">
        <table cellSpacing="0" cellPadding="0" width="100%" border="0">
          <tr>
            <td> </td>
          </tr>
          <!--buyer-->
          <tr>
            <td>
            <div align="left">
              <table class="font_10_e_blue" cellSpacing="0" cellPadding="0" width="100" background="img/login_r3_c1.gif" border="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
              <td vAlign="top" width="173">
              <img border="0" src="img/gbook.gif"></td>
                </tr>
                <tr>
              <td vAlign="top" background="img/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="22"><%if username="" then%>请登陆后发布信息!<%end if%></textarea></td>
                  </tr>
                  <tr>
                    <td width="32"> </td>
                    <td width="121">
                    <p align="center">
                    <input border="0" src="img/gbooktj.gif" name="I1" type="image"></td>
                  </tr>
                </form>
                <!---------------------->
              </table>
              </td>
                </tr>
                <tr>
              <td vAlign="top" width="173">
              <img alt src="img/mail_login_r7_c1.gif" border="0" name="mail_login_r7_c1"></td>
                </tr>
              </table>
            </div>
            </td>
          </tr>
          <tr>
            <td height="20"> </td>
          </tr>
          <!--buyer-->
          <tr>
            <td> </td>
          </tr>
          <tr>
            <td>
            <div align="left">
              <table cellSpacing="0" cellPadding="0" width="100" border="0" style="border-collapse: collapse" bordercolor="#111111">
                <tr>
                  <td vAlign="top">
                  <img src="img/form2_r1_c1.gif"></td>
                </tr>
                <tr>
                  <td vAlign="top">
                  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
                    <tr vAlign="top">
                      <td width="5" background="img/form1_r2_c1.gif"> </td>
                      <td width="142">
                      <table class="font_10_e_black" cellSpacing="0" cellPadding="2" width="100%" border="0">
                        <tr>
                          <td vAlign="top" width="7%">
                          <img src="img/form2_r3_c3.gif"></td>
                          <td width="93%"> </td>
                        </tr>
                        <tr>
                          <td vAlign="top" width="7%">
                          <img src="img/form2_r3_c3.gif"></td>
                          <td width="93%"> </td>
                        </tr>
                        <tr>
                          <td vAlign="top">
                          <img src="img/form2_r3_c3.gif"></td>
                          <td> </td>
                        </tr>
                        <tr>
                          <td vAlign="top">
                          <img src="img/form2_r3_c3.gif"></td>
                          <td> </td>
                        </tr>
                        <tr>
                          <td vAlign="top">
                          <img src="img/form2_r3_c3.gif"></td>
                          <td> </td>
                        </tr>
                      </table>
                      </td>
                      <td width="1" background="img/form1_r2_c3.gif">
                      <img height="1" src="img/shim.gif" width="8"></td>
                    </tr>
                  </table>
                  </td>
                </tr>
                <tr>
                  <td vAlign="top">
                  <img src="img/form1_r5_c1.gif"></td>
                </tr>
              </table>
            </div>
            </td>
          </tr>
          <!--olduser-->
        </table>
        </td>
        <td vAlign="top" width="601" height="415">
        <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<%
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=31
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="100%" colspan="2"> </td>
          </tr>
          <%do while not rs.eof%>
          <tr>
            <td width="100%" colspan="2" height="25" bgcolor="#EEEEEE"><strong><font color="#cc0000">
            管理员</font><font color="#000000">答复</font><font color="#009933"><%=rs("username")%></font>提出的问题</strong>&nbsp;&nbsp;回复时间:<font color="#666666"><%=rs("hfsj")%></font></td>
          </tr>
          <tr>
            <td width="6%" valign="top" height="20"><strong><font color="#ff6600">
            问:</font></strong></td>
            <td width="94%" height="20"><%=rs("gbook1")%></td>
          </tr>
          <tr>
            <td width="6%" valign="top" height="20"><strong><font color="#009900">
            答:</font></strong></td>
            <td width="94%" height="20"><%=rs("gbook2")%></td>
          </tr>
        <%
        tj=tj+1
        if tj>=Pagesize then exit do
        rs.movenext
        loop
        %>
        <tr>
        <td colspan="2" height="25">
<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="595">
<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="200">
<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>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  </table>
<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="778">
    <tr>
      <td width="100%"> </td>
    </tr>
    <tr>
      <td width="100%"><!--#include file=copywright.asp--></td>
    </tr>
    <tr>
      <td width="100%"> </td>
    </tr>
  </table>
  </center>
</div>

</body>

</html>
<%
rs.close
set rs=nothing
closedb
%>

⌨️ 快捷键说明

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