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

📄 user_gbook.asp

📁 信息类网站的不错选择
💻 ASP
字号:
<!--#include file=conn1.asp-->
<!--#include file="config.asp"-->
<!--#include file="usercookies.asp"-->
<%

function HTMLEncode(fString)
if not isnull(fString) then
fString = replace(fString, ">", "&gt;")
fString = replace(fString, "<", "&lt;")
fString = Replace(fString, CHR(32), "&nbsp;")
fString = Replace(fString, CHR(9), "&nbsp;")
fString = Replace(fString, CHR(34), "&quot;")
fString = Replace(fString, CHR(39), "&#39;")
fString = Replace(fString, CHR(13), "")
fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ")
fString = Replace(fString, CHR(10), "<BR> ")
HTMLEncode = fString
end if
end function

dim username,rs,sql
dim ThisPage,Pagesize,Allrecord,Allpage,tj
username=request.cookies("cnmai")("username")
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=usertop.asp-->
<div align="center">
  <center>
  <table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="760" 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><font color="#FF0000"><span lang="en-us">(</span>为商家留言请到<span lang="en-us">请到商铺留言板)</span></font></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="512" border="0">
                <!---------------------->
                <form method="POST" action="user_gbookchk.asp">
					<tr>
						<td width="506">
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<select size="1" name="gbook">
						<option value="0">《 普通问题 》</option>
						<option  selected  value="1">《 投诉留言 》
						</option></select><font color="#FF0000"> 字数限制为100个</font></td>
					</tr>
					<tr>
						<td width="506">
						<p align="center">
						<textarea rows="5" name="memo" cols="48"><%if username="" then%>有什么问题可以直接在此发布留言信息!<%end if%></textarea></td>
					</tr>
					<tr>
						<td width="506">
						<p align="center">
						<input border="0" src="images/gbooktj.gif" name="I1" type="image"></td>
					</tr>
					<input type="hidden" name="namelx" value="1">
			</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")
sql="select * from gbook where  hf=1 and  username='"&username&"'  order by fbsj desc"
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="#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="35" height="22" align="right">
            <font color="#FF0000">问:</font></td>
            <td width="475" height="19"><%=HTMLEncode(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" bgcolor="#FFFFFF">
			<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" bgcolor="#FFFFFF"><font color="#800000"><%=HTMLEncode(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>首页</a>&nbsp;"
response.write "<a href=?page="&ThisPage-1&">上一页</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)&">下一页</a>&nbsp;"   
response.write "<a href=?page="&Allpage&">尾页</a>&nbsp;"     
end if
%></td>
</tr>
</table>
</td>
</tr>
 </table>
 
 
 
 
      </td>
      </tr>
  	</table>
  </center>
</div><!--#include file=end.htm-->
</body>
</html><%
rs2.close
set rs2=nothing

rs.close
set rs=nothing
closedb
%>

⌨️ 快捷键说明

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