?? gbook.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">
管理員</font><font color="#000000">答復</font><font color="#009933"><b><%=rs("username")%></b></font>提出的問題</strong> 回復時間:<font color="#666666"><%=rs("hfsj")%></font></td>
</tr>
<tr>
<td width="36">
<p style="margin-top: 0; margin-bottom: 0">
<font color="#FF0000">
<strong>
問:</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">
答:</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">
共有 <font color="#CC5200"><%=Allrecord%></font> 條記錄</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> "
response.write "<font color=""#808080"">上一頁</font> "
else
response.write "<a href=?page=1&ts="&ts&">首頁</a> "
response.write "<a href=?page="&ThisPage-1&"&ts="&ts&">上一頁</a> "
end if
if Allpage-ThisPage<1 then
response.write "<font color=""#808080"">下一頁</font> "
response.write "<font color=""#808080"">尾頁</font> "
else
response.write "<a href=?page="&(ThisPage+1)&"&ts="&ts&">下一頁</a> "
response.write "<a href=?page="&Allpage&"&ts="&ts&">尾頁</a> "
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 + -