急!急!急!急!急!快帮忙解决!

haichanglin 2004-09-01 11:23:30
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="select * from info order by email desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<title>邮件列表修改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<script language="Javascript">
<!--
function move(side){
var temp1 = new Array();
var temp2 = new Array();
var tempa = new Array();
var tempb = new Array();
var current1 = 0;
var current2 = 0;
var y=0;
var attribute;

//assign what select attribute treat as attribute1 and attribute2
if (side == "in") {
attribute1 = document.myform.sitem;
attribute2 = document.myform.ditem;
} else {
attribute1 = document.myform.ditem;
attribute2 = document.myform.sitem;
}

//fill an array with old values
for (var i = 0; i < attribute2.length; i++) {
y=current1++
temp1[y] = attribute2.options[i].value;
tempa[y] = attribute2.options[i].text;
}

//assign new values to arrays
for (var i = 0; i < attribute1.length; i++) {
if ( attribute1.options[i].selected ) {
y=current1++
temp1[y] = attribute1.options[i].value;
tempa[y] = attribute1.options[i].text;
} else {
y=current2++
temp2[y] = attribute1.options[i].value;
tempb[y] = attribute1.options[i].text;
}
}

//generating new options
for (var i = 0; i < temp1.length; i++) {
attribute2.options[i] = new Option();
attribute2.options[i].value = temp1[i];
attribute2.options[i].text = tempa[i];
}

//generating new options
for (var i=temp2.length; i<attribute1.lenght; i++) {
attribute1.options[i] = null;
}
attribute1.length = temp2.length;
if (temp2.length>0) {
for (var i = 0; i < temp2.length; i++) {
attribute1.options[i] = new Option();
attribute1.options[i].value = temp2[i];
attribute1.options[i].text = tempb[i];
}
}
}

function selectall(){
attribute1 = document.myform.ditem;
for (var i=0; i<attribute1.length; i++) {
attribute1.options[i].selected = true;
}
attribute2 = document.myform.sitem;
for (var i=0; i<attribute2.length; i++) {
attribute2.options[i].selected = true;
}
return 1;
}
function submitadddate(){

}
//-->
</script>

<link href="images/css.css" rel="stylesheet" type="text/css">
</head>

<body id="htmlbody" topmargin="0" leftmargin="0">
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:13;margin-top:5">
<tr>
<td>
<form method=post name="myform" onsubmit="selectall();" action="adg0.asp">
<table width="95%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#cccccc" bordercolordark="#FFFFFF" bgcolor="#FFFFFF" align="center">
<tbody>
<tr class="TB1">
<td width="100" class="zi18">列表名:</td>
<%dim grounp
grounp=trim(request("grounp"))
set rs1=server.createobject("adodb.recordset")
sql1="select * from grounp where grounp='"&grounp&"' order by email desc"
rs1.open sql1,conn,1,1
%>
<td>
<input name="grounp" type="text" id="grounp" value="<%=rs1("grounp")%>">
</td>
</tr>
<tr class="TB3">
<td class="zi18" nowrap>列表邮件编辑:</td>
<td>
<table width=100% border=0 cellpadding="2" cellspacing="0">
<tr align="center">
<td width="40%" nowrap class="zi18" >组地址本邮件</td>
<td rowspan=2 width="20%">
<input name="image" type="image" class="NormalButton" onclick="move('in'); return false;" value=" 添加 >> " src="image/an_tj.gif" border="0">
<br>
<input name="image" type="image" class="NormalButton" onclick="move('out'); return false;" value=" << 删除 " src="image/an_sc1.gif" border="0">
</td>
<td width="40%" nowrap class="zi18" >所有邮件地址</td>
</tr>
<tr align="center">
<td>
<select size="15" name="ditem" multiple ondblclick="move('out')">
</select>
</td>
<td>
<select size="15" name="sitem" multiple ondblclick="move('in')">
<%if not rs.eof then%>
<%do while not rs.eof%>
<option value="0"><%=rs("email")%></option>
<%rs.movenext%>
<%loop%>
<%end if%>
</select>
</td>
</tr>
</table></td>
</tr>
</table>
<p align=center>
<input type="submit" name="submitadd.x" value="编辑" onClick="submitadddate()">
<input name="button" type="button" onclick="javascript:history.back();" value="取消">

</p>
</form></td>
</tr>
</table>



</body>
</html>
如上代码右边的数据移动到左边后,我点击编辑就可以把数据存入数据库,这个处理的代码应该怎么样写呢!写在哪呢!
...全文
110 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
haichanglin 2004-09-02
  • 打赏
  • 举报
回复
我就是想写在submitadddate()函数里面啊.但是不知道怎么写,这个函数本来就是我写上去的啊。具体详细点哦!~—~
colee 2004-09-01
  • 打赏
  • 举报
回复
XMLHTTP
llhdf 2004-09-01
  • 打赏
  • 举报
回复
写在submitadddate()函数里面.
内容概要:本文研究了基于QLearning自适应强化学习的PID控制器在自主水下航行器(AUV)中的应用,通过Matlab代码实现了对水下机器人的动力学建模与运动控制。重点探讨了将强化学习算法QLearning与传统PID控制相结合的方法,以提升AUV在复杂、时变及非线性水下环境中的自适应控制能力。文中系统分析了AUV的运动学与动力学特性,阐述了传统PID参数整定面临的挑战,并提出采用QLearning算法在线动态优化PID控制器的比例、积分和微分参数,从而实现对系统误差、响应速度、超调量等性能指标的综合优化。通过Matlab仿真实验验证了该复合控制策略在轨迹跟踪精度、抗外部干扰能力和系统鲁棒性方面的显著优势,充分展示了强化学习在智能水下装备自主控制领域的可行性和应用潜力。; 适合人群:具备自动控制理论基础、强化学习基础知识及Matlab编程能力的研究生、科研人员和自动化、海洋工程、机器人等相关领域的技术研发人员。; 使用场景及目标:①用于水下机器人、无人潜航器等智能移动装备的高精度运动控制系统设计与开发;②开展强化学习与经典控制理论融合创新的教学案例与科学研究;③解决传统固定参数PID控制器在面对模型不确定性和环境扰动时适应性差、控制性能下降的关键问题。; 阅读建议:建议读者结合提供的Matlab代码进行仿真实践,重点关注QLearning算法中状态空间、动作空间的设计逻辑以及奖励函数的构建原则,深入理解其在参数寻优过程中的作用机制,并可通过调整环境参数和初始条件来测试算法的鲁棒性与泛化能力。

87,988

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧