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

📄 gbook.asp

📁 信息管理系统 管理页面:admin/index.asp 用户和密码都是admin
💻 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 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-留言反馈区</title>
<link rel="stylesheet" type="text/css" href="1.CSS">
</head>
<body topmargin="0">
<div align="center">
<!--#include file=top.asp-->
</div>

<div align="center">
  <center>
    <table width="760" height="360" border="0" cellPadding="0" cellSpacing="0" 

bgcolor="#FFFFFF">
      <tr>
        <td width="11" height="360" vAlign="top" background="image/bg.gif"><div 

align="center">
        <td vAlign="top" width="749" height="360"><table width="738" height="166" border="0" 

cellpadding="0" cellspacing="0" bordercolor="#C0C0C0" style="border-collapse: collapse">
            <%
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 colspan="2" height="30"><p align="center" style="margin-top: 1; margin-

bottom: 1"><b> <font color="#800080"><%=title%>留言反馈区</font></b></td>
            </tr>
            <%do while not rs.eof%>
            <tr valign="bottom" bgcolor="#F7F7F7">
              <td height="25" colspan="2"><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 bgcolor="#CCCCCC">
              <td colspan="2" height="1"></td>
            </tr>
            <tr>
              <td width="42" height="22" background="image/22.gif"><p style="margin-top: 0; 

margin-bottom: 0"> <font color="#FF0000"> <strong> &nbsp;</strong>问:</font></td>
              <td width="696" height="26" background="image/22.gif"><font 

color="#800000"><%=rs("gbook1")%></font></td>
            </tr>
            <tr>
              <td width="42" valign="top" height="19"><p style="margin-top: 0; margin-

bottom: 0"><strong><font color="#009900"> &nbsp;</font></strong><font color="#009900">答:

</font></td>
              <td height="27"><font color="#808080"><%=rs("gbook2")%></font></td>
            </tr>
            <%
        tj=tj+1
        if tj>=Pagesize then exit do
        rs.movenext
        loop
        %>
            <tr bgcolor="#CCCCCC">
              <td height="1" colspan="2"></td>
            </tr>
            <tr>
              <td colspan="2" height="6"><table width="100%" border="0" cellpadding="0" 

cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
                <tr>
                  <td height="25" width="181"><p align="center"> 共有&nbsp;<font 

color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
                  <td height="25" width="151"><p align="center">共 <font color="#CC5200"><%

=Allpage%></font> 页</td>
                  <td height="25" width="141"><p align="center">现在是第 <font 

color="#CC5200"><%=ThisPage%></font> 页</td>
                  <td height="25" width="230"><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>
            <tr bgcolor="#F7F7F7">
              <td height="27" colspan="2"><strong> 发表发馈信息:</strong></td>
            </tr>
            <tr bgcolor="#CCCCCC">
              <td height="1" colspan="2"></td>
            </tr>
        </table>
          <table cellSpacing="0" cellPadding="0" width="737" border="0">
            <!--buyer-->
            <tr>
              <td width="737" bgcolor="#FAFAFA"><div align="left">
                <table width="511" border="0" align="center" cellPadding="0" cellSpacing="0" 

bordercolor="#111111" class="font_10_e_blue" style="border-collapse: collapse">
                    <tr>
                      <td vAlign="top" width="511"><table class="font_10_e_black" 

cellSpacing="0" cellPadding="3" width="100%" align="center" border="0">
                          <!---------------------->
                          <form method="POST" action="gbookchk.asp">
                            <tr>
                              <td width="32"><p align="left">类型</td>
                              <td width="276"><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="276"><font color="#FF0000">字数限制为100个

</font></td>
                            </tr>
                            <tr>
                              <td><p align="center">
                              </td>
                              <td><textarea rows="8" name="memo" cols="70"><%if username="" then%>有什么问题可以直接在此发布留言信息!<%end if%>
                              </textarea></td>
                            </tr>
                            <tr>
                              <td width="32"> </td>
                              <td>                             

  
                                <input class="inputb" border="0" name="I1" type="submit" 

value="发表信息">
                              </td>
                            </tr>
                          </form>
                          <!---------------------->
                      </table></td>
                    </tr>
                    <tr>
                      <td vAlign="top" width="511">&nbsp;</td>
                    </tr>
                </table>
                </div>  
              </td>
            </tr>
            <!--buyer-->
            <!--olduser-->
        </table></td>
      </tr>
    </table>
  <table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" 

bgcolor="#FFFFFF" style="border-collapse: collapse">
    <tr>
     <td width="100%"><!--#include file=copywright.asp--></td>
    </tr>
  </table>
  <div align="center">
<!--#include file=time.asp-->
</div>

</body>

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

⌨️ 快捷键说明

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