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

📄 link_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}
.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><br/>
    <legend><strong>分类管理</strong></legend>
    <div align="left" style="width:auto;"> 	 
    <table width="752" border="0" cellpadding="4"  cellspacing="2" bordercolor="#9FDDEC" bgcolor="fffbef">
         <tbody>	
		 <tr>		
		 	<td colspan="4">
			 <form name="form1" action="action.asp?action=add" method="post" onsubmit="javascript:return check();">
		 	 分类名称: <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)" />
			</form>			</td>
		   </tr>
		 </tbody>
		  <tr>
          <td width="182" valign="middle" bgcolor="#82CCE8"><div align="center"><strong>分类名称</strong></div></td>
		  <td width="181" valign="middle" bgcolor="#82CCE8"><div align="center"><strong>分类说明</strong></div></td>
         <td width="43" bgcolor="#82CCE8"><div align="center"><strong>排序</strong></div></td>
		  <td align="left" bgcolor="#82CCE8"><div align="center"><strong>查看</strong></div></td>
		  <td width="50" align="left" bgcolor="#82CCE8"><div align="center"><strong>删除</strong></div></td>		
		   <td width="44" align="left" bgcolor="#82CCE8"><div align="center"><strong>文章数</strong></div></td>		  
          </tr>
<form name="form1" method="post" action="action.asp?action=update" />
<%
	set msmax=new myclass
	set rs=msmax.viewrecord("select * from LinkClass order by index desc")
	num=msmax.GetNum("LInkClass")
	j=0
	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%>><%=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("linkClassId")%>"  onclick="return window.confirm('确认要删除吗!');">删除</a></div></td>
		 <td>
		   <div align="center" class="input">104
		   <input type="hidden" name="linkClassID<%=j%>" value="<%=rs("linkClassID")%>" />
		   </div></td>
        </tr>
 <%
		 rs.movenext
		 loop
		 %>
		 		<tr>
		<td colspan="6">
			<div align="center">
			<input type="hidden" value="<%=j%>" name="total"  />
			  <input type="submit" class="input"  value="保存更改"/>
			  
		      </div></td>
		</tr>
		</form>
		 </form>
      </table>
    </div>	
</fieldset>
</body>
</html>

⌨️ 快捷键说明

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