我一点思路也没有,请高手帮帮忙?
arfee 2003-08-21 11:10:40 目标:把表格中的各行可以上下调整顺序,同时数据库表中的顺序与表格中的顺序相同?
问题描述:
在我的程序中有这样的代码
<table bgcolor="#A0A0A0" border = "1" bordercolordark="#ffffff" cellspacing="0" cellpadding="2"onmouseover="mouseover()" onmouseout="mouseout()">
<tr bgcolor="#94B2C6" align="center" height="20">
<th nowrap width="50">序号</td>
<th nowrap width="100">姓名</td>
<th nowrap width="100">通迅作者</td>
<th nowrap width="150">详细信息</td>
<th nowrap width="150">删除</td>
</tr>
</table>
<table id = "m" bgcolor="#A0A0A0" border = "1" bordercolordark="#ffffff" cellspacing="0" cellpadding="2"onmouseover="mouseover()" onmouseout="mouseout()">
<% while not rs.EOF %>
<tr align="center" height="20" bgcolor="#D6EFF7" onclick = a() onselectstart="return false" onclick="trClick('<%=trim(Rs("xuhao"))%>', this)">
<td align = "center" width = "50"><%=trim(rs("xuhao"))%></td>
<td align = "center" width = "100"><%=getrealname(trim(rs("xingming")))%></td>
<td align = "center" width = "100"><input <%if trim(rs("istongxunzz"))= "是" then %> checked<%end if %> type = checkbox value =<%trim(rs("istongxunzz"))%> id=checkbox1 name=checkbox1></td>
<td align = "center" width = "150"><a href ="javascript:void(null)" onclick = "window.open('../user/zhucexx.asp?sGaoHao=<%=sGaoHAO%>&sXuHao=<%=trim(rs("xuhao"))%>&IsChild=true','article','top=80,left=40,height=400,width=500,status=yes,toolbar=no,menubar=no,location=no');">作者信息</a></td>
<td align = "center" width = "150"><a href="javascript:void(null)" onclick="Delete_Click('<%=sGaoHao%>', '<%=trim(RS("xuhao"))%>')">删除此作者</a></td>
</tr>
<%rs.MoveNext
wend
rs.close
end if
conn.Close %>
</table>它显示在页面是一个表格,我希望表格中各行可以上下调整顺序(即第一列序号不变其它的可以调整)然后再次以调整后的结果写入数据库。