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

📄 article_class.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>
<style type="text/css">
fieldset{
	background: #fffbef;
	width:auto;
}
legend{color:#105096;width:auto;}
.input{border: 1px solid  #82CCE8;}
.inputhover{border: 1px solid #0033CC;}

.inputdown{	background-color: #EEF8F9;	border: 1px solid #0033CC;}
.STYLE1 {color: #3366FF}
form{margin:0px;padding:0px;}
.STYLE2 {color: #FF0000}
</style>
<script>
	function butt(obj,state)
	{	
		if(state==1){
			obj.className="inputhover";}
		if(state==2){
			obj.className="input";}
		if(state==3){
			obj.className="inputdown";}	
	}
		function check(){
		if(document.form1.title.value=="")
		{
		window.alert("请填完吧!");
		return false;
		}
		if(document.form1.titleIntro.value=="")
		{
		window.alert("请填完吧!");
		return false;
		}
		return true;
		}
</script>
</head>
<body style="font-size:12px;">
<!--#include file="../session.asp" -->
当前位置:<span class="STYLE2">文章管理--->文章分类</span>
<fieldset>
<legend><strong>分类管理</strong></legend>
    <div align="left" style="width:auto;"> 	 
    <table width="752" border="0" cellpadding="4"  cellspacing="2" bordercolor="#9FDDEC" bgcolor="fffbef">
	 <form name="form1" action="action.asp?action=add" method="post" onsubmit="javascript:return check();"> 
	 <tr>
		 	<td colspan="4">
		 	
			分类名称: <input name="ClassName" type="text" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>
	 	    &nbsp;&nbsp;分类说明: <input name="ClassIntro" type="text" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)"/>		 	  <input name="Submit" type="submit" class="input" value="添加分类" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" />
			</td>
		 </tr>
		 </form>
		  <tr>
          <td width="189" valign="middle" bgcolor="#82CCE8"><div align="center"><strong>分类名称</strong></div></td>
		  <td width="188" valign="middle" bgcolor="#82CCE8"><div align="center"><strong>分类说明</strong></div></td>
         <td width="45" bgcolor="#82CCE8"><div align="center"><strong>排序</strong></div></td>
		  <td width="174" align="left" bgcolor="#82CCE8"><div align="center"><strong>查看</strong></div></td>
		  <td width="51" align="left" bgcolor="#82CCE8"><div align="center"><strong>删除</strong></div></td>		
		   <td width="43" align="left" bgcolor="#82CCE8"><div align="center"><strong>文章数</strong></div></td>		  
          </tr>
 <form name="form2" action="action.asp?action=update" method="post">
   <%
	'----------显示记录模块
	dim msmax,j
	j=0
	set msmax=new myclass
	set rs=msmax.viewrecord("select * from articleClass order by index desc")
	num=msmax.GetNum("articleclass")
	do while not rs.eof and not rs.bof
	j=j+1
%>       <tr>
	      <td valign="middle"><div align="right">   
	   <input name="ClassName<%=j%>" type="text" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" value="<%=rs("ClassName")%>" />
          </div></td>
		  <td><input name="ClassIntro<%=j%>" type="text" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" value="<%=rs("ClassIntro")%>" />		  </td>
		  <td><div align="center" class="input">
		    <select name="index<%=j%>">	
			<%
			for i=1 to num
			%>	
		      <option <%if i=rs("index") then response.write "selected"  end if%> value="<%=i%>"><%=i%></option>		
			  
			<%
			next%>
	        </select>
          </div></td>
          <td align="left"><div align="center" class="input"><a href="#">查看此分类下的文章</a></div></td>
          <td><div align="center" class="input"><a href="action.asp?action=delRecord&Classid=<%=rs("ArticleClassId")%>"  onclick="return window.confirm('确认要删除吗!');">删除</a></div></td>
		 <td>
		   <div align="center" class="input">104</div>
		   <input type="hidden" value="<%=rs("articleCLassID")%>" name="articleCLassID<%=j%>" /></td>
        </tr>
		 
		 <%
		 rs.movenext
		 loop
		 %>  
		 <input type="hidden" value="<%=j%>" name="total" />
		 <tr>
		 <td colspan="6"><div align="center">
		   <input name="Submit2" type="submit" class="input" value="保存更改" />
		 </div></td>
		 </tr>
		  </form>
      </table>	
    </div>	
</fieldset>

</body>
</html>

⌨️ 快捷键说明

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