⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user_editcomment.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../Conn.asp"-->
<!--#include file="../SysCls/KS_UserCommonCls.asp"-->
<!--#include file="../SysCls/KS_RefreshFunctionCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2005-2006 Kesion.Com  All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407 
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail  :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com  
'演示站点:http://test.kesion.com 
'郑重声明:
'    ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New Admin_Index
KSCls.Execute()
Set KSCls = Nothing

Class Admin_Index
        Private KSCMS,KSUser
		Private ChannelID
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		  Set KSUser = New UserCls
		End Sub
        Private Sub Class_Terminate()
		 Set KSCMS=Nothing
		 Set KSUser=Nothing
		End Sub
		Public Sub Execute()
		
		IF Cbool(KSUser.UserLoginChecked)=false Then
		  Response.Write "<script>location.href='Login.asp';</script>"
		  Exit Sub
		End If
		
		ChannelID=KSCMS.G("ChannelID")
		KSUser.LoadHead()
		%>

		<TABLE height="380" cellSpacing=0 width=770 align=center border=0>
		<TR>
		<TD vAlign=top bgColor=#FFFFFF>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="32">&nbsp;当前位置 >> <a href="<%=KSCMS.GetConfig("WebUrl")%>"><%=KSCMS.GetConfig("WebName")%></a> >> <a href="index.asp">会员中心</a> &gt;&gt; 修改我发表的评论 </td>
          </tr>
          <tr>
            <td>
			<%
			KSUser.LoadMenu()
			%>
			</td>
          </tr>
        </table>
		  <table width="770" height="460" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td valign="top">
		<br>
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="50" align="center"><img src="Images/comment.gif" /></td>
            <td>修改我发表的评论</td>
          </tr>
        </table>
		<br>
		<br><br>
		        <%Dim ID:ID=KSCMS.ChkClng(KSCMS.G("ID"))
				
				  IF ID="" Or Not IsNumeric(ID) Then  ID=0
				  Dim Page:Page=KSCMS.G("Page")
				  Dim RSE
		         If KSCMS.G("Action")="Save" Then
				   Dim AnounName:AnounName=KSCMS.G("AnounName")
				   Dim Email:Email=KSCMS.G("Email")
				   Dim Content:Content=KSCMS.G("Content")
				   Dim Anonymous:Anonymous=KSCMS.G("Anonymous")
				   Dim Point:point=KSCMS.G("point")
				
					IF point="" Or Not IsNumeric(point) Then point=0
					if AnounName="" Then 
					 Response.Write("<script>alert('请填写你的昵称!');history.back();</script>")
					 Response.End
					End if
					if KSCMS.IsValidEmail(Email)=false then
					 Response.Write("<script>alert('请输入正确的电子邮箱!');history.back();</script>")
					 Response.End
					end if
					
					
					if Content="" Then 
					 Response.Write("<script>alert('请填写评论内容!');history.back();</script>")
					 Response.End
					End if

				    IF ID="" Then Response.Write "<script>alert('参数传递出错!');history.back();</script>"
					Set RSE=Server.CreateObject("Adodb.Recordset")
					RSE.Open "Select * From KS_Comment Where ID=" & ID,Conn,1,3
					IF RSE.EOF AND RSE.Bof Then
					 Response.Write "<script>alert('参数传递出错!');history.back();</script>"
					 Response.End()
					Else
					  RSE("AnounName")=AnounName
					  RSE("Email")=Email
					  RSE("Content")=Content
					  RSE("point")=point
                      RSE.Update
					End if
					Dim ChannelID:ChannelID=RSE("ChannelID")
					RSE.Close
					Set RSE=Nothing
					Response.Write "<script>alert('你的评论修改成功!');location.href='User_MyComment.asp?ChannelID=" & ChannelID & "&Page=" & Page& "';</script>"
				 Else
				  Response.Write GetWriteComment(ID,Page)
				 End IF
				%>
			  </td>
           </tr>
     
          </table>
		  </TD>
		 </TR>
	</TABLE> 
		  
		  <%
       KSUser.LoadFoot()
  End Sub
  
  Function GetWriteComment(ID,Page)
         Dim RS
		 Set RS=Conn.Execute("Select * From KS_Comment Where ID=" &ID)
		 IF RS.EOF AND RS.BOF Then
		   Response.Write "<script>alert('参数传递出错!');history.back();</script>"
		   exit function
		 End IF
		 
		 GetWriteComment = "<table width=""80%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" class=""comment_write_table"">"
		 GetWriteComment = GetWriteComment & "<form name=""form1"" action=""User_EditComment.asp?Action=Save&ID=" & ID & "&Page=" & Page & """ method=""post"">"
		GetWriteComment = GetWriteComment & "<tr>"
		GetWriteComment = GetWriteComment & "  <td height=""30"" colspan=""2"" align=""center"">评论人的昵称:"
		GetWriteComment = GetWriteComment & "   <input name=""AnounName"" type=""text"" id=""AnounName"" value=""" & RS("AnounName") & """ style=""width:25%""/>"
		GetWriteComment = GetWriteComment & "&nbsp;邮件:"
		GetWriteComment = GetWriteComment & "    <input name=""Email"" value=""" & RS("Email") & """ type=""text"" id=""Email"" style=""width:25%"" /></td>"
		GetWriteComment = GetWriteComment & "  </tr>"
		
		GetWriteComment = GetWriteComment & "  <tr>"
		GetWriteComment = GetWriteComment & "    <td width=""80"" align=""center""></td>"
		GetWriteComment = GetWriteComment & "    <td height=""25"" align=""center"" width=""90%"">评定分值:<input type=""radio"" value=""0"" name=""point"""
		IF RS("Point")=0 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">0分<input type=""radio"" value=""10"" name=""point"""
		IF RS("Point")=10 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">10分<input type=""radio"" value=""25"" name=""point"""
		IF RS("Point")=25 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">25分<input type=""radio"" value=""40"" name=""point"""
		IF RS("Point")=40 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">40分<input type=""radio"" value=""55"" name=""point"""
		IF RS("Point")=55 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">55分<input type=""radio"" value=""70"" name=""point"""
		IF RS("Point")=70 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">70分<input type=""radio"" value=""85"" name=""point"""
		IF RS("Point")=85 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">85分<input type=""radio"" value=""100"" name=""point"""
		IF RS("Point")=100 Then GetWriteComment = GetWriteComment & " Checked"
		GetWriteComment = GetWriteComment & ">100分</td>"
		GetWriteComment = GetWriteComment & "  </tr>"
		
		GetWriteComment = GetWriteComment & "  <tr>"
		GetWriteComment = GetWriteComment & "    <td width=""80"" align=""center""><div align=""right"">评论内容:</div></td>"
		GetWriteComment = GetWriteComment & "    <td height=""25"" align=""center""><textarea name=""Content"" rows=""6"" id=""Content"" style=""width:98%"">" & RS("Content") & "</textarea></td>"
		GetWriteComment = GetWriteComment & "  </tr>"
		GetWriteComment = GetWriteComment & "  <tr>"
		
		GetWriteComment = GetWriteComment & "    <td height=""25"" colspan=""2"" align=""center""><input type=""submit"" name=""SubmitComment"" value=""提交修改""/>"
		
		GetWriteComment = GetWriteComment & "   </td>"
		GetWriteComment = GetWriteComment & "  </tr>"
		GetWriteComment = GetWriteComment & "  </form>"
		GetWriteComment = GetWriteComment & "</table>"
		RS.Close
		Set RS=Nothing
		
		End Function  
End Class
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -