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

📄 article_edituserarticle.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_CommonCls.asp"-->
<!--#include file="../Inc/Session.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 Article_EditUserArticle
KSCls.Execute()
Set KSCls = Nothing

Class Article_EditUserArticle
        Private KSCMS
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		End Sub
        Private Sub Class_Terminate()
		 Set KSCMS=Nothing
		End Sub
		Public Sub Execute()
		
		Response.Write "<html>"
		Response.Write "<head>"
		Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312"">"
		Response.Write "<title>签收文章管理</title>"
		Response.Write "<link href=""../Inc/Admin_Style.CSS"" rel=""stylesheet"" type=""text/css"">"
		Response.Write "<script language=""JavaScript"" src=""../JS/Common.js""></script>"
		Response.Write "<body scroll=no topmargin=""0"" leftmargin=""0"" onselectstart=""return false;"">"
		Response.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""sortbutton"">"
		Response.Write "  <tr>"
		Response.Write "    <td height=""23"" align=""center""><strong>"
	   	Response.Write "编辑会员投搞的文章"
		Response.Write ("</strong>   </td>")
		Response.Write ("</tr>")
		Response.Write ("</table>")
%>     <div style=" height:98%; overflow: auto; width:100%" align="center">
		<TABLE  cellSpacing=0 width=770 align=center border=0>
		<TR>
		<TD vAlign=top bgColor=#FFFFFF><table width="778" height="380" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>
				<script language = "JavaScript">
				parent.frames['BottomFrame'].location.href='../Split.asp?OpStr=文章管理 >> 签收会员文章 >> <font color=red>编辑文章</font>&ButtonSymbol=ModifyUserArticle';
				function CheckForm()
				{
				if (frames["ArticleContent"].CurrMode!='EDIT') {alert('其他模式下无法保存,请切换到设计模式');return false;}
                document.myform.Content.value=frames["ArticleContent"].KS_EditArea.document.body.innerHTML;
				if (document.myform.ClassID.value=="0") 
				  {
					alert("请选择文章栏目!");
					document.myform.ClassID.focus();
					return false;
				  }		
				if (document.myform.Title.value=="")
				  {
					alert("请输入文章标题!");
					document.myform.Title.focus();
					return false;
				  }		
				if (document.myform.Content.value=='')
					{
					alert("请输入文章内容!");
					frames["ArticleContent"].KS_EditArea.focus();
					return false;
					}
				  document.myform.submit();
				 return true;  
				}
				</script>
				<%
				IF KSCMS.G("Action")="Save" Then
				   Call ModifySave()
				Else
				 
				 Dim RSE,I
				 Dim ID:ID=KSCMS.G("ID")
				 IF ID="" or Not isnumeric(ID) Then
				   Response.Write "<script>alert('参数传递有误');history.back();</script>"
				   Exit Sub
				 End IF
				 Set RSE=Server.CreateObject("Adodb.Recordset")
				  RSE.Open "Select * From KS_UserArticle Where ID=" & ID ,CONN,1,1
				 
				 IF RSE.Eof And RSE.Bof Then
				   Response.Write "<script>alert('参数传递有误');history.back();</script>"
				   Exit Sub
				 Else
			  %>
				
				<table width="765" border="0" cellspacing="0" cellpadding="0">
 
                  <form  action="?Action=Save&ID=<%=RSE("ID")%>" method="post" name="myform" id="myform">
                    <tr>
                      <td><table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
                          <tr>
                            <td width="18">&nbsp;</td>
                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" height="35" align="center" bgcolor="F4F4EA"><span class="font4">所属栏目:</span></td>
                                        <td bgcolor="f9f9f9"> 
										<select size='1' name='ClassID' style="width:250">
										 <option value="0">-请选择文章栏目-</option>
                                          <%=KSCMS.ReturnTree(RSE("ClassID"), 1)%>
                                        </select></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                               
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" height="35" align="center" bgcolor="F4F4EA"><span class="font4">文章标题:</span></td>
                                        <td bgcolor="f9f9f9">   
                                          <input name="Title" type="text" value="<%=RSE("Title")%>" id="Title" style="width:250px; " maxlength="100" />
                                          <span style="color: #FF0000">*</span></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" height="35" align="center" bgcolor="F4F4EA"><span class="font4">关 键 字:</span></td>
                                        <td bgcolor="f9f9f9"> 
                                          <input name="KeyWords" value="<%=RSE("KeyWords")%>" type="text" id="KeyWords" style="width:250px; " /> 
                                          多个关键字请用&quot;<span style="color: #FF0000">|</span>&quot;隔开</td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" height="35" align="center" bgcolor="F4F4EA"><span class="font4">文章作者:</span></td>
                                        <td height="35" bgcolor="f9f9f9"> 
                                        <input name="Author" type="text" value="<%=RSE("Author")%>" id="Author" style="width:250px; " maxlength="30" /></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" height="40" align="center" bgcolor="F4F4EA"><span class="font4">文章来源:</span></td>
                                        <td bgcolor="f9f9f9"> 
                                        <input name="Origin" value="<%=RSE("Origin")%>" type="text" id="Origin" style="width:250px; " maxlength="100" /></td>
                                      </tr>
                                  </table>
                                   </td>
                                </tr>
                               
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                                <tr>
                                  <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="141" align="center" bgcolor="F4F4EA"><span class="font4">文章内容:<br />
                                          </span><span style="color: #FF0000">如果文章较长可以使用分页标签:[NextPage]</span></td>
                                        <td bgcolor="f9f9f9"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="12">&nbsp;</td>
                                              <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                  <tr>
                                                    <td height="310" align="center">
													<textarea name="Content" style="display:none"><%=Server.HTMLEncode(RSE("Content"))%></textarea>
                                                        <iframe id='ArticleContent' name='ArticleContent' src='../Editor.asp?ID=Content&style=0&ChannelID=9998' frameborder=0 scrolling=no width='100%' height='350'></iframe></td>
                                                  </tr>
                                                  
                                              </table></td>
                                            </tr>
                                        </table></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td height="1" bgcolor="E1E1E1"></td>
                                </tr>
                            </table></td>
                          </tr>
                      </table></td>
                    </tr>
						<input type="hidden" value="<%=KSCMS.G("Page")%>" name="page">
						<input type="hidden" value="<%=KSCMS.G("ArticleStatus")%>" name="ArticleStatus">
                  </form>
			    </table>
			  </td>
            </tr>
          </table>
		  </div>
		  
		  <%End IF
        End IF
  End Sub
		  Sub ModifySave()
				  Dim ClassID:ClassID=KSCMS.G("ClassID")
				  Dim Title:Title=Trim(KSCMS.G("Title"))
				  Dim KeyWords:KeyWords=Trim(KSCMS.G("KeyWords"))
				  Dim Author:Author=Trim(KSCMS.G("Author"))
				  Dim Origin:Origin=Trim(KSCMS.G("Origin"))
				  Dim Content:Content=KSCMS.G("Content")
				  Dim ArticleStatus:ArticleStatus=KSCMS.G("Status")
				  Dim ArticleID:ArticleID=KSCMS.G("ID")
				  Dim RSObj
				  
				  If ArticleID="" Or Not Isnumeric(ArticleID) Then ArticleID=0
				  if ClassID="" Then ClassID=0
				  If ClassID=0 Then
				    Response.Write "<script>alert('你没有选择文章栏目!');history.back();</script>"
				    Exit Sub
				  End IF
				  If Title="" Then
				    Response.Write "<script>alert('你没有输入文章标题!');history.back();</script>"
				    Exit Sub
				  End IF
				  If Content="" Then
				    Response.Write "<script>alert('你没有输入文章内容!');history.back();</script>"
				    Exit Sub
				  End IF
				Set RSObj=Server.CreateObject("Adodb.Recordset")
				RSObj.Open "Select * From KS_UserArticle Where ID=" & ArticleID,Conn,1,3
				  RSObj("Title")=Title
				  RSObj("ClassID")=ClassID
				  RSObj("KeyWords")=KeyWords
				  RSObj("Author")=Author
				  RSObj("Origin")=Origin
				  RSObj("Content")=Content
				  RSObj("AddDate")=Now   '更新时间
				RSObj.Update
				 RSObj.Close:Set RSObj=Nothing
				 Response.Write "<script>alert('文章修改成功!');parent.frames['BottomFrame'].location.href='../Split.asp?ButtonSymbol=Disabled&OpStr=文章管理 >> <font color=red>签收会员文章</font>';location.href='Article_UserArticleMain.asp?ArticleStatus=" & KSCMS.G("ArticleStatus") & "&page=" & KSCMS.G("Page") &"';</script>"
			 End Sub
End Class
%>

⌨️ 快捷键说明

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