多项删除
来源:互联网 发布:网络和信息安全责任书 编辑:程序博客网 时间:2024/05/16 13:41
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from class order by date desc"
rs.open sql,conn,1,1
if rs.eof then
response.Write("没有班级")
response.end
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/fe.css" rel="stylesheet" type="text/css">
</head>
<script >
function yesno()
{
return confirm("将会把所有成员及留言信息删除,您确定要删除该班级吗?");
}
</script>
<body leftmargin="0" topmargin="0">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="20" align="center">I D</td>
<td height="20" align="center">班 级 名 称</td>
<td width="100" height="20" align="center">注 册 日 期</td>
<td height="20" align="center">人 数</td>
<td align="center">删 除?</td>
</tr>
<%
while not rs.eof
%>
<form name="form2" method="post" action="dec.asp"><tr>
<td width="50" height="20" align="center">
<input type="checkbox" name="id" value="<%=rs("classid")%>">
</td>
<td width="250" height="20" align="center"><%=rs("classname")%></td>
<td width="100" align="center"><%=rs("date")%></td>
<td width="50" height="20" align="center"><%=rs("num")%></td>
<td width="50" height="20" align="center"></td>
</tr><%rs.movenext
wend
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<tr>
<td height="20" align="center"> </td>
<td height="20" align="center"> </td>
<td align="center"> </td>
<td height="20" align="center"> </td>
<td height="20" align="center">
<input type="submit" name="Submit" value="删除"></form>
</td>
</tr>
</table>
</body>
</html>
dec.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
sql= "DELETE FROM class WHERE classid IN (" & Request.Form("id") & ")"
conn.execute (sql)%>
</body>
</html>
<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from class order by date desc"
rs.open sql,conn,1,1
if rs.eof then
response.Write("没有班级")
response.end
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/fe.css" rel="stylesheet" type="text/css">
</head>
<script >
function yesno()
{
return confirm("将会把所有成员及留言信息删除,您确定要删除该班级吗?");
}
</script>
<body leftmargin="0" topmargin="0">
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50" height="20" align="center">I D</td>
<td height="20" align="center">班 级 名 称</td>
<td width="100" height="20" align="center">注 册 日 期</td>
<td height="20" align="center">人 数</td>
<td align="center">删 除?</td>
</tr>
<%
while not rs.eof
%>
<form name="form2" method="post" action="dec.asp"><tr>
<td width="50" height="20" align="center">
<input type="checkbox" name="id" value="<%=rs("classid")%>">
</td>
<td width="250" height="20" align="center"><%=rs("classname")%></td>
<td width="100" align="center"><%=rs("date")%></td>
<td width="50" height="20" align="center"><%=rs("num")%></td>
<td width="50" height="20" align="center"></td>
</tr><%rs.movenext
wend
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<tr>
<td height="20" align="center"> </td>
<td height="20" align="center"> </td>
<td align="center"> </td>
<td height="20" align="center"> </td>
<td height="20" align="center">
<input type="submit" name="Submit" value="删除"></form>
</td>
</tr>
</table>
</body>
</html>
dec.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<%
sql= "DELETE FROM class WHERE classid IN (" & Request.Form("id") & ")"
conn.execute (sql)%>
</body>
</html>
- 多项删除
- Ext Multiselect 多项删除
- 关于listview 多项删除
- DataList同时选定删除多项
- 包含分页/删除多项 代码
- ListBox删除多项选择项
- 关于listbox多项删除的疑惑
- listView的多项删除功能实现
- php批量删除数据,php删除多项数据
- [原创]今天开发日志管理系统,全选,多项删除功能。
- c# ListBox删除选择项(支持多项)
- js操作ListBox实现多项的添加和删除
- 怎样删除C++中listcontrol中的一项或多项
- CheckedListBox控件如何删除用户选择的多项Item?
- iOS开发系列 ---- UI (TableView的编辑和多项删除操作)
- js 简单实现表单数据的增添,单项删改,多项删除,修改以及全选功能
- 多项选择
- 多项打包
- dojo学习笔记(一)-dojo.io.IO & dojo.io.BrowserIO)
- 松下传真机清零与维修
- 日期格式转换
- 涙そうそう
- TStringList的一些高级用法
- 多项删除
- Web服务器中文URL研究心得(学习所得,跟大家分享)
- linux 内核进程与用户进程的通信 方法一 使用sockopt与内核交换数据
- 用代码修改Web.Config里的键值
- 软件项目管理之四:高效的管理优先权
- osworkflow配置说明
- 在Asp.net中利用OWC11画统计图(柱状图,饼状图及线状图等)及补充
- webservice 提示远程连接已经关闭的解决方法
- 一封来自大学老师的信——给所有还在大学中徘徊的人