<%@ Language=VBScript %> <% If session("agentusername")="" Then ef=True ec="授权非法,有可能是超时造成的。" ElseIf Request("id")<>"" and not IsNumeric(Request("id")) Then ef=True ec="编号必须是数字" end if if not ef then%> <%session("FreeHostCom").FreeHost_WR("html5")%>  客服问答 <%session("FreeHostCom").FreeHost_WR("html6")%>

<% Set conn=Server.CreateObject("ADODB.Connection") conn.Open Application("FreeHostDBlink") Set dsnewsone = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_online_aws where id='"&Request("id")&"' and agent1='"&session ("agentusername")&"'" dsnewsone.Open Sql,conn,1,1 if not dsnewsone.eof then username=dsnewsone("username") posttime=dsnewsone("posttime") title=dsnewsone("title") scon=dsnewsone("con") typeid=dsnewsone("type1") ip=dsnewsone("ip") admuser=dsnewsone("admuser") admpass=dsnewsone("admpass") ftpname=dsnewsone("ftpname") url=dsnewsone("url") Curtime=dsnewsone("firstposttime") If IsNull(dsnewsone("url")) Then url="" 'aboutimg=dsnewsone("aboutimg") end if dsnewsone.close Set dsnews = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_online_aws where agent1='"&session ("agentusername")&"' order by id desc" if Request("op")="notfinish" then Sql="Select * from FreeHost.FreeHost_online_aws where agent1='"&session ("agentusername")&"' and status='待回复' order by id desc" if Request("op")="haveaws" then Sql="Select * from FreeHost.FreeHost_online_aws where agent1='"&session ("agentusername")&"' and status='已回复' order by id desc" if Request("op")="finish" then Sql="Select * from FreeHost.FreeHost_online_aws where agent1='"&session ("agentusername")&"' and status='已结束' order by id desc" if Request("op")="new" then Sql="Select * from FreeHost.FreeHost_online_aws where agent1='"&session ("agentusername")&"' and status='新问题' order by id desc" if Request("type1")<>"" and Request("type1")<>"0" And IsNumeric(Request("type1")) Then sql=replace(sql,"order by id desc"," and type1='"&Request("type1")&"' order by id desc") dsnews.PageSize = 15 dsnews.Open Sql,conn,1,1 if dsnews.Eof then %>
数据库中不存在相关的记录。 <% else if Request.ServerVariables("QUERY_STRING")<>"" then ask=Split(Request.ServerVariables("QUERY_STRING"), chr(38)&"pn") else ask=Split("freehost=1", "") ask(0)="freehost=lsoft" end if pn=1 if Request.QueryString ("pn")<>"" then pn=Request.QueryString ("pn") If dsnews.RecordCount <> 0 Then dsnews.AbsolutePage = CLng(pn) if clng(pn)<=10 then begini=1 if dsnews.PageCount<=10 then endini=dsnews.PageCount else endini=10 end if end if type1=Request("type1") %>
分 类:   全部问题  新问题  待回复  已回复  已结束
<%if clng(pn)<=10 then%>最新 <%for i=begini to endini if clng(pn)=i then%>[<%=i%>]<%else%>[<%=i%>]<%end if%> <%next%> <%else%> 最新[1]--[10]  现在是第[<%=pn%>]页  共<%=dsnews.PageCount%>页 <%end if%><%If Clng(pn)>1 Then%>上一页 <%End If%>|<%If Clng(pn)下一页 <%End If%> <% For N=1 To dsnews.PageSize If dsnews.RecordCount=0 Then Exit For %> <% If clng(pn)=dsnews.PageCount Then I = dsnews.RecordCount - (dsnews.PageCount-1) * dsnews.PageSize If N=I Then Exit For End If dsnews.movenext Next%>
编号 标题 用户 时间 状态 操作
<%=dsnews("id")%> "><%=Server.HTMLEncode(dsnews("title"))%> " target="_blank"><%=dsnews("username")%> <%=dsnews("posttime")%>
<%=dsnews("status")%> "> &op=close&Submit=again"> &op=close&op2=del&Submit=again">
<%end if dsnews.close set dsnews=nothing%>
 提问/回复:(代理自己发出的提问会提交给管理员)

 标题: ">
<%if scon<>"" then type1= typeid %><%end if%>  分 类:

 服务器IP: (如果有端口也请写上)
 服务器管理帐号:
 服务器管理密码:
 FTP用户名:
 相关网址:
<%if scon<>"" then %>  原内容: <%sconary=Split(scon,vbcrlf&"-------")%> <%For i=0 To UBound(sconary) leftsconary=Split(sconary(i)," 回复(") if isnull(Curtime) then curtime="首次提问" If UBound(leftsconary)>0 Then curtime=Replace(Replace(Replace(Left(leftsconary(1),20),")--",""),")-",""),")","") End if leftsconary2=Split(leftsconary(0),"-------") curusername=leftsconary2(UBound(leftsconary2)) If leftsconary2(UBound(leftsconary2))=sconary(i) Then curusername=username Rsconary=Split(sconary(i),")-------") If UBound(Rsconary)>0 Then endscon=Rsconary(1) Else endscon=Rsconary(0) End if %> <%next%>
<%If InStr(curusername,"人员")>1 then%><%=curusername%><%else%><%=curusername%><%End if%>
<%=curtime%>
<%=Replace(endscon,vbcrlf,"
")%>


<%end if%>
<% If request("id")<>"" And IsNumeric(Request("id")) Then set dsnewsone = Server.CreateObject("ADODB.Recordset") Sql="Select * from FreeHost.FreeHost_online_aws where id='"&Request("id")&"'" dsnewsone.Open Sql,conn,1,1 For i=1 To 10 If Not IsNull(dsnewsone("aboutimg"&i)) and request("id")<>"" Then %>  相关图片<%=i%>: &imgid=<%=i%>" name="idimg" id="idimg">
<% End If Next End if%>



 回复新内容:
 
   Design  UBB模式  VIEW  HTML 自动修正
  提交<%else%>继续发表<%end if%>">
<%For i=6 To 10%> 上传问题的相关图片<%=i%>: (JPG格式,大小必须在100K以内,会代替原图片)
<%next%>         
 问题处理:  

  checked<%end if%>> 自己回答所有名下用户的问题   checked<%end if%>> 将所有名下用户的问题自动提交给主站管理员处理 

<%session("FreeHostCom").FreeHost_WR("html7")%> <%end if if ef then Response.Redirect "e.asp?e="&ec end if%>