ReviewTF.asp
资源名称:eat.rar [点击查看]
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:3k
源码类别:
数据库编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
- <% Option Explicit %>
- <!--#include file="FS_Inc/Const.asp" -->
- <!--#include file="FS_InterFace/MF_Function.asp" -->
- <!--#include file="FS_Inc/Function.asp" -->
- <%session.CodePage="936"%>
- <%
- response.Charset="gb2312"
- ''前台页面,由JS调用得到 调用该文件必须给定一些参数.
- Dim Conn
- MF_Default_Conn
- Dim stype,Id,SpanId
- Dim Server_Name,Server_V1,Server_V2,Cookie_Domain,TmpArr,FormReview,Str_Js
- Cookie_Domain = Get_MF_Domain()
- Conn.close
- Set Conn=Nothing
- if Cookie_Domain="" then
- Cookie_Domain = "localhost"
- else
- if left(lcase(Cookie_Domain),len("http://"))="http://" then Cookie_Domain = mid(Cookie_Domain,len("http://")+1)
- if right(Cookie_Domain,1)="/" then Cookie_Domain = mid(Cookie_Domain,1,len(Cookie_Domain) - 1)
- end if
- ''防盗连
- Server_Name = Len(Request.ServerVariables("SERVER_NAME"))
- Server_V1 = Left(Replace(Cstr(Request.ServerVariables("HTTP_REFERER")),"http://",""),Server_Name)
- Server_V2 = Left(Cstr(Request.ServerVariables("SERVER_NAME")),Server_Name)
- if Server_V1 <> Server_V2 and Server_V1 <> "" and Server_V2 <> "" then
- response.Write("没有权限,请访问http://"&Cookie_Domain)
- response.End()
- end if
- stype = request.QueryString("type") 'NS
- Id = request.QueryString("Id") 'Id
- SpanId = "Review_TF_"&Id
- if stype="" then stype="NS"
- if not isnumeric(Id) then
- FormReview = "ID必须是数字。"
- else
- FormReview="<form action=""http://"&Cookie_Domain&"/ReviewUrl.asp"" name=""reviewform"" method=""post"" onsubmit=""//return checkreview();""/>"
- if session("FS_UserNumber")="" then
- FormReview=FormReview&"用户名<input name=""UserNumber"" type=""text"" id=""UserNumber"" size=""15"" />"
- FormReview=FormReview&"密码<input name=""password"" type=""password"" id=""password"" size=""12""/>"
- FormReview=FormReview&"匿名<input name=""noname"" type=""checkbox"" id=""noname"" value=""1"" onClick=""if(this.checked==true){UserNumber.disabled=true;password.disabled=true;}else{UserNumber.disabled=false;password.disabled=false;};""/><br />"
- FormReview=FormReview&"标 题<input name=""title"" type=""text"" id=""title"" size=""40""/><br />"
- else
- FormReview=FormReview&"标 题<input name=""title"" type=""text"" id=""title"" size=""36""/>"
- FormReview=FormReview&" 匿名<input name=""noname"" type=""checkbox"" id=""noname"" value=""1""/><br />"
- end if
- FormReview=FormReview&"<textarea name=""content"" cols=""50"" rows=""5"" id=""content""/></textarea><input type=""hidden"" name=""Id"" value="""&Id&"""/><input type=""hidden"" name=""type"" value="""&ucase(stype)&"""/><input type=""hidden"" name=""Action"" value=""add_save""/><br />"
- FormReview=FormReview&"<input type=""submit"" name=""Submit"" value=""发表评论""/> <input type=""reset"" name=""Submit2"" value=""重新填写""/>"
- FormReview=FormReview&"</form>"
- end if
- Response.write "if($('"&SpanId&"')!=null) {$('"&SpanId&"').innerHTML='"&FormReview&"';}"
- %>