三级联动菜单问题,高手帮帮忙
<table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#E8E8E8" class="t1">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="25" bgcolor="#E8E8E8"> </td>
<td width="10" height="25" bgcolor="#F0F0F0"> </td>
<td bgcolor="#F7F7F7" class="font14pxB">添加教材信息</td>
</tr>
<tr>
<td height="5" colspan="3"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="30" height="20"> </td>
<td height="20" class="linkText"><span class="linkText"><strong>S:</strong></span>选择标识 <strong>注</strong>:前台页面将显示最新添加的一条信息</td>
</tr>
</table></td>
</tr>
</table>
<br>
<script language="javascript">
function check()
{
var f1=document.form1;
if(f1.atype.value=="")
{
window.alert("系统提示:教材类别不能为空!");
return false;
}
if(f1.title.value=="")
{
window.alert("系统提示:教材标题不能为空!");
f1.title.focus();
return false;
}
if(f1.content.value=="")
{
window.alert("系统提示:信息详细内容不能为空!");
return false;
}
}
</script>
<%
dim rs,sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from jcdg_type_b order by bid asc"
rs.open sql,conn,1,1
%>
<script language="javascript">
var onecount;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("btype"))%>","<%= trim(rs("aid"))%>","<%= trim(rs("btype"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.form1.bbid.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.form1.bbid.options[document.form1.bbid.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</script>
<table width="100%" border="1" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC" class="t1">
<form name="form1" method="POST" action="save_news.asp" onSubmit="return check();" enctype="multipart/form-data">
<tr>
<td width="20%" height="30" align="right" bgcolor="#F4F4F4">
<div align="right"> 教材类别:</div></td>
<td width="80%" height="30" colspan="2">
<%
sql = "select * from jcdg_type_a"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
else
%>
<select name="aaid" onChange="changelocation(document.form1.aaid.options[document.form1.aaid.selectedIndex].value)" size="1">
<option selected value="<%=trim(rs("aid"))%>"><%=trim(rs("atype"))%></option>
<%
dim aidlj
aidlj=rs("aid")
rs.movenext
do while not rs.eof
%>
<option value="<%=trim(rs("aid"))%>"><%=trim(rs("atype"))%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<select name="bbid" >
<option value="" selected>不指定小类</option>
<%
sql="select * from jcdg_type_b where aid='" & aidlj & "'"
rs.open sql,conn,1,1
if not(rs.eof and rs.bof) then
%>
<option value="<%=rs("bid")%>"><%=rs("btype")%></option>
<%
dim bidlj
bidlj=rs("bid")
rs.movenext
do while not rs.eof%>
<option value="<%=rs("bid")%>"><%=rs("btype")%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<select name="ccid">
<option value="" selected>不指定小类</option>
<%
sql="select * from jcdg_type_c where aid='"&aidlj&"' and bid='"&bidlj&"' "
rs.open sql,conn,1,1
if not(rs.eof and rs.bof) then
%>
<option value="<%=rs("cid")%>"><%=rs("ctype")%></option>
<% rs.movenext
do while not rs.eof%>
<option value="<%=rs("cid")%>"><%=rs("ctype")%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
<strong><span class="font4"><font color="#FF0000"> * </font></span></strong>
<div align="right"></div></td>
</tr>
<tr >
<td height="28" align="right" bgcolor="#F4F4F4"><div align="right"> 标题:</div></td>
<td height="28" align="left" colspan="2"><input type="text" name="title" size="60"> <strong><font color="#FF0000">* </font></strong>
</td>
</tr>
<tr >
<td height="28" align="right" bgcolor="#F4F4F4"><div align="right"> 详细内容:</div></td>
<td height="28" align="left" colspan="2">[<a href="#" onClick="to_edit('form1','title','content');return false;"><font color="#FF0000">编辑内容</font></a>] <strong><span class="font4"><font color="#FF0000"> * </font></span></strong>
</td>
</tr>
<tr style="display:none">
<td height="28" align="right" bgcolor="#F4F4F4"> </td>
<td height="28" align="left" colspan="2"><input type="file" name="mpic"><textarea rows="1" cols="50" name="content" ></textarea></td>
</tr>
<tr>
<td height="30" colspan="3">
<input name="save1" type="submit" class="b-input" value="保 存" style="width:100px">
<input name="reset1" type="reset" class="b-input" value="清 除" style="width:100px"> </td>
</tr>
</form>
</table>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function to_edit(f,t,c){
MM_openBrWindow('../editer_mkj/editer.asp?f='+f+'&t='+t+'&c='+c,'to_edit','scrollbars=yes,resizable=yes,status=yes,width=565,height=480');
}
//-->
</script>
注:1、2级能好用,3级老是错误
相关推荐
fengmian123
fengmian123
QYR-18900-2026-2032全球与中国智能旋转导向钻井系统市场现状及未来发展趋势 Sample-shijunzhong.docx
QYR-18900-2026-2032全球与中国智能旋转导向钻井系统市场现状及未来发展趋势 Sample-shijunzhong.docx
XERJ 是一款受到社区信赖的本地 AI 搜索引擎
XERJ 是一款受到社区信赖的本地 AI 搜索引擎,能自动为任意文件夹建立索引,让编程智能体直接检索所需代码,省去逐个读取文件消耗的 token。它的主要用途是参考现有实现来写代码(reference coding):接到任务后,智能体下载与任务相关的开源仓库,建立索引,再查阅这些项目的解决方法。 在一项对照研究中,这种做法让智能体的输出 token 用量降至原来的约 1/2.7,同时保持 16/16 的任务完成率(案例研究)。用户在日常开发中报告的用量约为原来的 1/5(使用反馈)。有了可检索的参考实现,较小、较便宜的模型也可能胜过只凭记忆工作的昂贵模型,减少反复修改的次数。把下面这段提示词交给智能体即可开始
DocRes.Vulkan.WinForms.VS2022-Source-r1.1-20261016-102846-206.zip
DocRes.Vulkan.WinForms.VS2022-Source-r1.1-20261016-102846-206.zip 博客地址:https://blog.csdn.net/lw112190/article/details/168119884
电力系统连锁故障一种用于识别引发连锁故障的多重故障集合的“随机化学”算法研究(Matlab代码实现)
内容概要:本文研究了一种基于“随机化学”算法的多重故障集合识别方法,旨在准确识别电力系统中可能引发连锁故障的关键故障组合。该方法结合ADMM(交替方向乘子法)优化框架,建立了考虑连锁故障传播路径的N-k多阶段双层优化模型,并设计了高效的故障场景筛选机制,以应对大规模电网中连锁故障风险分析的高复杂性挑战。通过Matlab代码实现了算法的全流程仿真验证,结果表明该方法在识别高风险故障集方面具有较高的有效性与计算效率,为电力系统的安全评估、脆弱性分析及预防控制策略制定提供了先进的技术支撑。; 适合人群:具备电力系统分析、优化理论基础及Matlab编程能力,从事电力系统安全稳定、连锁故障防御、风险评估等相关研究的科研人员与工程技术人员。; 使用场景及目标:①应用于大规模电力系统中高风险N-k故障场景的快速识别与排序;②支撑基于N-k安全准则的电网脆弱环节分析与主动防御策略设计;③为运行调度、规划检修及应急管理提供科学的故障预案筛选工具。; 阅读建议:建议读者结合Matlab代码与论文中的模型推导,深入理解随机化学算法在双层优化框架中的实现逻辑,重点关注ADMM的分解协调机制与故障传播路径的建模方法,并通过复现仿真案例掌握其在实际电网中的应用流程与参数设置技巧。


