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

📄 user_gbook.asp

📁 一套现成的分类信息网站发布系统
💻 ASP
字号:
<!--#include file=conn1.asp-->
<!--#include file="config.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%>-我要投诉</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0">
<!--#include file=top.asp-->
<div align="center">
  <center>
  <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="768" height="295">

    <tr>
      <td width="157" height="295" valign="top" rowspan="5">
      <!--#include file=userleft.asp--></td>
      <td width="10" height="295" background="images/line_01.gif" rowspan="5"> </td>
      <td valign="top" align="center" width="0" height="0" bgcolor="#EEEEEE">
      <p style="line-height: 200%; margin-top: 0; margin-bottom: 0"> <b><font size="2" color="#800080"><%=title%>投诉留言区</font></b></td>
      <td width="8" height="295" background="images/line_01.gif" rowspan="5"> </td>
    </tr>

    <tr>
      <td valign="top" align="center">
      <table cellSpacing="0" cellPadding="3" width="391" border="0">
                <!---------------------->
                <form method="POST" action="user_gbookchk.asp">
					<tr>
						<td width="385">
						<select size="1" name="gbook">
						<option value="0">《 普通问题 》</option>
						<option  <%if ts="1" then%> selected <%end if%> value="1">《 投诉留言 》
						</option></select><font color="#FF0000"> 字数限制为100个</font></td>
					</tr>
					<tr>
						<td width="385">
						<p align="left">
						<textarea rows="5" name="memo" cols="48"><%if username="" then%>有什么问题可以直接在此发布留言信息!<%end if%></textarea></td>
					</tr>
					<tr>
						<td width="385">
						<p align="center">
						<input border="0" src="images/gbooktj.gif" name="I1" type="image"></td>
					</tr>
			</form>
                <!---------------------->
              </table></td>
    </tr>
	<tr>
      <td align="center" bgcolor="#EEEEEE"><b>
            <font size="2" color="#800080">
		<p style="line-height: 200%; margin-top: 0; margin-bottom: 0">留言反馈区</font></b></td>
      </tr>
	<tr>
      <td width="603" height="95" valign="top" align="center">
      <table border="0" style="border-collapse: collapse" bordercolor="#C0C0C0" width="523" height="95" cellspacing="1">
<%
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>
            
          </tr>
          <%do while not rs.eof%>
          <tr>
            <td width="519" colspan="2" height="21" bgcolor="#FFFFFF">
            <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="35" height="22" align="right">
            <font color="#FF0000">问:</font></td>
            <td width="475" height="19"><%=rs("gbook1")%></td>
          </tr>
          <tr>
            <td width="35" valign="middle" height="19" style="border-bottom: 1px dotted #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" align="right">
			<font color="#009900">答:</font></td>
            <td width="469" height="19" style="border-bottom: 1px dotted #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"><font color="#800000"><%=rs("gbook2")%></font></td>
          </tr>
        <%
        tj=tj+1
        if tj>=Pagesize then exit do
        rs.movenext
        loop
        %>
        <tr>
        <td colspan="2" height="25" width="519">
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" bgcolor="#FFFFFF">
<tr> 
<td height="25" width="129">
<p align="center">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</td>
<td height="25" width="99">
<p align="center">共 <font color="#CC5200"><%=Allpage%></font> 页</td>
<td height="25" width="127">
<p align="center">现在是第 
                <font color="#CC5200"><%=ThisPage%></font> 页</td>
<td height="25" width="153">
<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>
  	<tr>
      <td width="603" height="26" valign="top" align="center" bgcolor="#EEEEEE">
       </td>
      </tr>
  </table>
  </center>
</div><!--#include file=end.htm-->
</body>
</html><%
rs.close
set rs=nothing
closedb
%>

⌨️ 快捷键说明

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