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

📄 newsclassedit2.asp

📁 zheng fu wang zhan gong neng qi quan
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="ConnUser.asp"-->
<!--#include file="config.asp" -->
<!--#include file="chkuser.asp" -->
<!--#include file="char.inc"-->
<!--#include file="ChkURL.asp"-->
<%dim jingyong
set rs=server.createobject("adodb.recordset")
sql="select * from "& db_User_Table &" where  "& db_User_Name &"='"&request.cookies(eChuang)("username")&"'"
rs.open sql,ConnUser,1,3
jingyong=rs("jingyong")
rs.close
set rs=nothing

if request.cookies(eChuang)("key")="super" or request.cookies(eChuang)("key")="check" or (request.cookies(eChuang)("key")="selfreg" and jingyong=0) or request.cookies(eChuang)("key")="typemaster" then%>
<%
NewsID=Request.QueryString("NewsID")
typeid=ChkRequest(Request.Form("typeid"),1)	'防注入

set rs2=server.CreateObject ("ADODB.RecordSet")
rs2.Source="select * from "& db_BigClass_Table &" where typeid="&typeid
rs2.Open rs2.source,conn,1,1

%>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from "& db_SmallClass_Table &" order by smallclassorder"
rs.open sql,conn,1,1
%>
<script language="JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("E_smallclassname"))%>","<%= trim(rs("bigclassid"))%>","<%= trim(rs("smallclassid"))%>");

<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.form1.smallclassid.length = 0;
document.form1.smallclassid.options[document.form1.smallclassid.length] = new Option("请选择小类(不选为无小类文章)", "");

var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.form1.smallclassid.options[document.form1.smallclassid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}

}
</script>
<script language="JavaScript">
<!--
function na_select_form (fname, type_name) 
{
  document.forms[fname].elements[type_name].select()
  document.forms[fname].elements[type_name].focus()
}


// -->
</script>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%>&nbsp;<%=ver%> - 修改文章类别_建站铺修正版_bbs.jzpu.com</title>
</head>
<body topmargin="0">
<!--#include file=Admin_Top.asp-->
<table border="1" width="100%" align=center cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="<%=border%>">
<form name=form1 method="POST" action="NewsClassEdit3.asp?NewsID=<%=NewsID%>">
<tr align="center">
<td colspan="1" height="25" width="100%"  class="TDtop">
	<div align="center">┊ <B>修改文章类别(修改NewsID为<%=NewsID%>的文章的类别)</B> ┊</div>
</td>
</tr>
<input type=hidden name="typeid" value=<%=typeid%>>
<tr bgcolor="#FFFFFF">
<td align="center">
<p><br><br>
所属大类:
<select name="bigclassid" onChange="changelocation(document.form1.bigclassid.options[document.form1.bigclassid.selectedIndex].value)" size="1">
<option selected value="">请选择大类(不选为无大类文章)</option>
<%dim bigclassid
do while not rs2.eof
	bigclassid=rs2("bigclassid")
%>
<option value="<%=trim(rs2("bigclassid"))%>"><%=trim(rs2("E_BigClassName"))%></option>
<%
	rs2.movenext
loop
rs2.close
%>
</select>
所属小类:
<select name="smallclassid" size="1">
<option selected value="">请选择小类(不选为无小类文章)</option>
</select>
</p>
<p> </p>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center" height="25" class="TDtop">
<input type="button" value="  返回  " name="B1" onclick=javascript:history.go(-1)  style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
<input type="submit" value="  修改  " name="B1"  style="font-size: 9pt;  color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">

</td>
</tr>
</form>
</table>
</body>
</html>
<%end if%>
<!--#include file=Admin_Bottom.asp-->

⌨️ 快捷键说明

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