<script language=Javascript> function checkall(all)//用于判断全选记录的函数 { var a = document.getElementsByName("answer"); for (var i=0; i<a.length; i++) a[i].checked = all.checked; } </script> <% set rs=server.createobject("adodb.recordset") sql="select * from news order by addtime desc" rs.open sql,conn,1,3 %> <% if rs.eof then %> <table width="50%" border="0" align="center" ID="Table2"> <tr> <td align="center"> 没有新闻! </tr> </table> <% else %> <form method="POST" id=form1 name=form1> <table width="90%" border="0" align="center" class="tabDocborder" ID="Table3"> <tr> <td> <table width="80%" align="center" id=TabDocMain border='1' cellspacing='0' cellpadding='0' bordercolorlight='#82b4dd' bordercolor='#b6d3eb' class="TabDocMain"> <thead> <tr> <td colspan="7" align="center"> 新闻管理中心 </td> </tr> </thead> <tbody> <tr> <td align=center> 删除框 </td> <td align=center> 新闻标题 </td> <td align=center> 发布时间 </td> <td align=center> 管理 </td> </tr> <% do while not rs.eof |
正在阅读:巧用in关键字实现数据的批量删除巧用in关键字实现数据的批量删除
2004-04-01 13:27
出处:PConline
责任编辑:huangpeidan
键盘也能翻页,试试“← →”键