網路編程中點擊不同記錄進行修改,刪除不同記錄的另一編程思想ASP與資料庫的應用
來源:互聯網
上載者:User
如何通過 點擊list控制項中的某一列使它傳遞給 一個修改的對話方塊
QQ: 283989349 E-mail: mjf150080@tom.com 有問題時,
我們可以通過http://www.hustc.mpc.cn 這個論壇,
我的另一個blog http://blog.111cn.net/ma88fa/
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.redirect "admin.asp"
else
if session("flag")>1 then
response.write "<br><p align=center>您沒有操作的許可權</p>"
response.end
end if
end if
dim rs, sql
%>
<html>
<head>
<title>使用者管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<%
Set rs=Server.CreateObject("Adodb.RecordSet")
sql="select * from admin where flag>="&Session("flag")&" order by id"
rs.Open sql,conn,1,1
%>
<body>
<center>
<p>修改管理員資訊 | <a href=adduser.asp>增加管理員</a></p>
<table width="500" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
<tr align="center" class="title">
<td width="120">使用者名稱</td> <td width="120">密碼</td> <td width="100">許可權</td> <td width="130">操作</td>
</tr>
</table>
<table width="600" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td></td>
</tr>