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

📄 article_add.asp

📁 功能介绍: 文章管理
💻 ASP
字号:
<!--#include file="../function/tablefunction.asp" -->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>发布文章</title>
<script type="text/javascript" src="../function/comm.js"></script>
<link href="article_add.css" rel="stylesheet" type="text/css">
<script language = "JavaScript">
function CheckForm()
{
  if (document.form1.title.value=="")
  {
    alert("请填写文章标题!");
	document.form1.title.focus();
	return false;
  }
  if (document.form1.ClassName.value=="num")
  {
    alert("请选择文章分类!");
	document.form1.ClassName.focus();
	return false;
  }
      if (document.form1.Summary.value=="")
  {
    alert("请填写摘要!");
	form1.Summary.focus();
	return false;
  }
  if (document.form1.Content.value=="")
  {
    alert("请填写文章内容!");
	form1.Content.focus();
	return false;
  }

  return true;  
}
</script>
</head>
<body>
<!--#include file="../session.asp" -->
<%
	action=request.QueryString("action")
	articleid=request.QueryString("articleid")
	
	if action="edit" then
	  	dim msmax2
		set msmax2=new myclass
		set rs2=msmax2.viewRecord("select * from article where articleid="&articleid)
		session("filepath")=rs2("filepath")
		
	%>
<div class="tag_box" id="tag_menu">
<ul class="menulist" id="menulist">
	<li><a href="#" onClick="fivetag(this,1)" onFocus="this.blur()" class="curMenu">简单编辑器</a></li>
	<li><a href="#" onClick="fivetag(this,2)" onFocus="this.blur()" title="暂不支持FF">所见所得编辑</a></li>
</ul>
<!--
-->
	<div id="tag_content_1" class="tag_content">
  <div align="left" style="width:auto;">
  
  	<form name="form1" action="action.asp?action=articleEdit&articleid=<%=articleid%>" method="post" onSubmit="return CheckForm();">
		<p>&nbsp;&nbsp;<strong>标题:</strong>
		  <input name="title" type="text" class="input" size="40" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" value="<%=rs2("title")%>" />
	      <strong>所属分类</strong>:
	<select name="ClassName" class="input">
	  <%
	  	dim msmax
		set msmax=new myclass
		set rs=msmax.viewRecord("select * from articleClass")
		do while not rs.eof and not rs.bof
	  %>
	  <option value="<%=rs("ClassName")%>"><%=rs("ClassName")%></option>
	  <%
	  rs.movenext
	  loop
	  rs.close
	  set rs=nothing
	  %>
	  </select>
  	</p>
	<P>
	
	&nbsp;&nbsp;<b>摘要:</b><br/>
	<textarea name="Summary" cols="88" rows="3" class="input" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"><%=rs2("summary")%></textarea>
	</P>
	<P>
	  <label><strong>关键字:</strong>
	  <input name="KeyWord" type="text" class="input" id="KeyWord" size="40"  value="<%=rs2("keyword")%>"/>
	  </label>
</P>
	<p>
		  <input name="Submit" type="button" class="input" value="图片" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"  onclick="image();" />
          <input name="Submit2" type="button" class="input" value="视频[wmv]" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="Cwmv()" />
		  <input name="Submit2" type="button" class="input" value="视频[rm]" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="Crm();" />
	      <input name="Submit3" type="button" class="input" value="链接" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="hyperlink();" />
	      <input name="Submit4" type="button" class="input" value="FLASH" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="flash();" />
		  <input name="Submit5" type="button" class="input" value="插入代码" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick=" quote();" />
	      
	      <iframe src="../../up_form.asp"width="720px" height="35px" frameborder="0" scrolling="no"></iframe>	<br/>
		 &nbsp;&nbsp; 图片地址:&nbsp;
		 <input type="text" name="index_pic"  size="50" class="input" value="<%=rs2("index_pic")%>"/>
	  </p>
		<p>
		  <textarea name="Content" cols="88" rows="16" class="input" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"><%=rs2("content")%></textarea>
		</p>
		<input name="Submit5" type="submit" class="input" value="发表文章" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"/>
<input name="Submit6" type="reset" class="input" value="重新填写" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"/>
	 </form>
	 </div>	
</div>
<%
rs2.close
set rs2=nothing
else%>

<div class="tag_box" id="tag_menu">
<ul class="menulist" id="menulist">
	<li><a href="#" onClick="fivetag(this,1)" onFocus="this.blur()" class="curMenu">简单编辑器</a></li>
	<li><a href="#" onClick="fivetag(this,2)" onFocus="this.blur()" title="暂不支持FF">所见所得编辑</a></li>
</ul>
<!--
-->
	<div id="tag_content_1" class="tag_content">
  <div align="left" style="width:auto;">
  
  	<form name="form1" action="action.asp?action=articleAdd" method="post" onSubmit="return CheckForm();">
		<p>&nbsp;&nbsp;<strong>标题:</strong>
		  <input name="title" type="text" class="input" size="40" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" />
	      <strong>所属分类</strong>:
	<select name="ClassName" class="input">
	  <option value="num">请选择所属分类</option>
	  <%
	  	dim msmax1
		set msmax1=new myclass
		set rs=msmax1.viewRecord("select * from articleClass")
		do while not rs.eof and not rs.bof
	  %>
	  <option value="<%=rs("ClassName")%>"><%=rs("ClassName")%></option>
	  <%
	  rs.movenext
	  loop
	  %>
	  </select>
  	</p>
	<P>
	
	&nbsp;&nbsp;<b>摘要:</b><br/>
	<textarea name="Summary" cols="88" rows="3" class="input" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"></textarea>
	</P>
	<P>
	  <label><strong>关键字:</strong>
	  <input name="KeyWord" type="text" class="input" id="KeyWord" size="40" />
	  </label>
</P>
	<p>
		  <input name="Submit" type="button" class="input" value="图片" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"  onclick="image();" />
          <input name="Submit2" type="button" class="input" value="视频[wmv]" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="Cwmv()" />
		  <input name="Submit2" type="button" class="input" value="视频[rm]" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="Crm();" />
	      <input name="Submit3" type="button" class="input" value="链接" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="hyperlink();" />
	      <input name="Submit4" type="button" class="input" value="FLASH" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick="flash();" />
		  <input name="Submit5" type="button" class="input" value="插入代码" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" onClick=" quote();" />
	      
	      <iframe src="../../up_form.asp"width="720px" height="35px" frameborder="0" scrolling="no"></iframe>	<br/>
		 &nbsp;&nbsp; 图片地址:&nbsp;
		 <input type="text" name="index_pic"  size="50" class="input"/>
	  </p>
		<p>
		  <textarea name="Content" cols="88" rows="16" class="input" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"></textarea>
		</p>
		<input name="Submit5" type="submit" class="input" value="发表文章" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"/>
<input name="Submit6" type="reset" class="input" value="重新填写" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"/>
	 </form>
	 </div>	
</div>

<!--	<div id="tag_content_2" class="tag_content">
	<form name="form2">
		<p>&nbsp;&nbsp;<strong>标题</strong>:
		  <input name="title" type="text" class="input" size="40" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" />
	      <strong>所属分类</strong>:
	<select name="select" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)">
	  <option>请选择所属分类</option>
	  <option>随笔日记</option>
	  </select>
  	</p>
	<P>&nbsp;&nbsp;<b>摘要:</b><br/>
	<textarea name="Summary" cols="88" rows="4" class="input" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"></textarea><br/>
		      <strong>首页图片:</strong>
	      <input name="file" type="file" class="input" />
	      <input name="Submit7" type="submit" class="input" value="上传" />
	</P>
<input type="hidden" id="Message" name="Message" value="" /><input type="hidden" id="Message___Config" value="AutoDetectLanguage=False&amp;DefaultLanguage=zh-cn" />
<iframe id="Message___Frame" src="../../edit.html" height="340" frameborder="no" scrolling="no"></iframe><br/>
		<input name="ds" type="submit" class="input" value="发表文章" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)" />
		<input name="e" type="reset"  class="input" value="重新填写" onMouseDown="butt(this,3)" onMouseOver="butt(this,1)" onMouseOut="butt(this,2)"/>
	</div>

			
</form>-->
<%end if%>
</body>
</html>

⌨️ 快捷键说明

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