?? user_gbook.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">
管理員</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="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">
共有 <font color="#CC5200"><%=Allrecord%></font> 條記錄</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> "
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></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 + -