<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="inc/function.asp"-->
<%
if request("jle")="ok" then
dim reg1,ses
reg1=request.cookies("jle")("reg1")
ses=DateDiff("s",reg1,now())
if ses<120 then
response.write "<script language=JavaScript>" & chr(13) & "alert('对不起，请稍后120秒，等会再次发布！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
response.end
end if
if len(request("memo"))>100 then
response.write "<script language=JavaScript>" & chr(13) & "alert('字数超过了100，请简单填写！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
response.end
end if
if request("memo")="有什么问题可以直接在此发布！" then
response.write "<script language=JavaScript>" & chr(13) & "alert('请填写留言内容！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
response.end
end if
if len(request("memo"))<10 then
response.write "<script language=JavaScript>" & chr(13) & "alert('字数不能少于10个字！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql = "select * from feedback order by fbsj desc"
rs.open sql,conn,1,3
rs.addnew
rs("username")=request.cookies("jle")("username")
rs("lx")=HtmlEncode(trim(request("liuyan")))
rs("gbook1")=HtmlEncodes(trim(request("memo")))
rs("fbsj")=now()
rs.update
Response.cookies("jle")("reg1")=now()
rs.close
set rs=nothing
closedb
response.write "<script language=JavaScript>" & chr(13) & "alert('已成功，请等待管理员审核！')</script>"
response.write "<meta http-equiv=refresh content=""3;URL=feedback.asp"">"
response.end
else
%>

<%
dim ts
dim tj
username=request.cookies("jle")("username")
ts=trim(request("ts"))
if request("page")="" then
  ThisPage=1		
else
  ThisPage=request("page")
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=title%>-意见反馈-投诉留言</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%call top()%><div id="Fmain">


 <div id=FFTit class=F12bold><a href="/">首页</a>-<a href="#">意见反馈</a></div><div id=FFContent><div Class='FFdiv'>
<div align="center">
<table border="0" width="98%" cellspacing="0" class="userbg">
<tr>
<td height="25" class="userbg">
意见反馈、业务合作、信息投诉举报、咨询/寻找帮助均可在此提交</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>      
<td valign="top">
<table cellSpacing="0" cellPadding="3" width="600" align="center" border="0">

<form method="POST" action="?jle=ok" >
<tr>
<td align="right">
意见/问题类型</td>
<td align="left">
<select size="1" name="liuyan">
<option value="0">普通问题</option>
<option  <%if ts="1" then%> selected <%end if%> value="1">投诉留言</option>
</select></td>
</tr>
<tr>
<td align="right">
意见/问题内容</td>
<td align="left">
<font color="#FF0000">字数限制为100个</font></td>
</tr>
<tr>
<td colspan="2" width="75%">
<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>
</tr>
<tr>
<td width="361" colspan="2" align="center">
<input type="submit" value="提交" name="B2" style="font-weight:bold;font-size: 12pt;height:50"></td>
</tr>
</form>
</table>
</td>           
</tr>
<tr>
<td valign="top">
<div align="center">
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%">
<%
tj=1
set rs=server.createobject("adodb.recordset")
if ts="1" then
sql="select username,gbook1,gbook2,hfsj from feedback where lx=1 and hf=1 order by fbsj desc"
else
sql="select username,gbook1,gbook2,hfsj from feedback where lx=0 and hf=1 order by fbsj desc"
end if
rs.open sql,conn,1,1
if rs.eof then
response.write "还没有反馈信息！"
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 colspan="2" height="25" class="userbg">
<%=title%>意见反馈区</td>
</tr>
<%do while not rs.eof%>
<tr>
<td colspan="2" height="21" bgcolor="#EEEEEE" style="text-align:left;border-top: 1px solid #C0C0C0">
<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 style="text-align:left;">
<font color="#FF0000">
<strong>
&nbsp;问：</strong></font></td>
<td style="text-align:left;"><font color="#800000"><b><%=rs("gbook1")%></b></font></td>
</tr>
<tr>
<td valign="middle" style="text-align:left;">
<strong><font color="#009900">
&nbsp;答：</font></strong></td>
<td style="text-align:left;"><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">
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr> 
<td height="25" width="151">
<p align="center">
共有&nbsp;<font color="#CC5200"><%=Allrecord%></font>&nbsp;条记录</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>&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></div>
</td>           
</tr>
</table></td>
</tr>
</table>
</div>
</div>
</div>
 <br style="clear:both;" />

</div>

<%
call bottom()
%>


<%
rs.close
set rs=nothing
closedb
end if
%>
</body>
</html>