?? qxgl.asp
字號:
<% Response.Buffer=true %>
<!--#include file="../inc/dbconn1.inc"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<% uid=request("uid")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from users where id="&uid&""
rs.open sql,conn,1,1 %>
<html>
<head>
<meta content="Microsoft FrontPage 4.0" name="GENERATOR">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>個人權限管理</title>
<style type="text/css">
.sbtxt { color: #000000; font-family: 宋體; font-size: 12px; text-decoration: none }
.sblue { color: #0000cc; font-family: 宋體; font-size: 12px; text-decoration: none }
.sorenge { color: #ff6600; font-family: 宋體; font-size: 12px; text-decoration: none }
a:hover { color: #0000ff; font-family: 宋體; font-size: 12px; text-decoration: none }
.swtxt { color: #ffffff; font-family: 宋體; font-size: 12px; text-decoration: none }
.shtxt { color: #666666; font-family: 宋體; font-size: 12px; text-decoration: none }
.bftxt { color: #FFFFFF; font-family: 宋體; font-size: 12px; text-decoration: none }
<!--
.cc { font-family: 宋體; font-size: 12px; color: #FFFFFF; text-decoration: none }
-->
</style>
</head>
<body topmargin="0" leftmargin="5">
<SCRIPT language=JavaScript src="../inc/qxgl1.js"></SCRIPT>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="770" height="0" align="center">
<tr>
<td width="770" height="13" valign="top" colspan="5" bgcolor="#ffffff">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="65%">
<tbody>
<tr>
<td width="100%" height="10"></td>
</tr>
<tr>
<td width="100%" height="25"><font size="3"><b><font color="#FF3333">用戶權限修改:</font></b></font></td>
</tr>
</tbody>
</table>
</center>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<center><FORM name="qxgl" action="qxgl.asp" method="post">
<input type="hidden" name="uid" value="<%=uid%>">
<table cellpadding="0" width="65%" style="border-style: solid; border-color: #FFFFFF" cellspacing="1" align="center">
<tr align="center">
<td width="100%">
<table border="0" cellpadding="3" cellspacing="1" width="500" bgcolor="#FF9900">
<tr bgcolor="#FFFFFF">
<td colspan="2" height="25" valign="bottom"><font size="2">用戶基本資料:</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" height="22" valign="bottom"><font size="2">用戶名:</font></td>
<td align="lift" height="22" valign="bottom"><font size="2"><%=rs("name")%></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" width="184" height="22" valign="bottom"><font size="2">真實姓名:</font></td>
<td width="385" height="22" valign="bottom"><font size="2">
<%=rs("xm")%> </font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" height="22">
<p align="right"><font size="2">性別:</font>
</td>
<td width="385" height="22"><font size="2"> <%=rs("xb")%></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" height="22">
<p align="right"><font size="2">出生年月:</font></p>
</td>
<td width="385" height="22"><font size="2"> <%=rs("csrq")%></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" height="22">
<p align="right"><font size="2">所在單位:</font></p>
</td>
<td width="385" height="22"><font size="2"> <%=rs("szdw")%></font> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" height="22">
<p align="right"><font size="2">部門:</font></p>
</td>
<td width="385" height="22"><font size="2"> <%=rs("bm")%></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" align="right" height="22"><font size="2">職務</font><font size="2">:</font></td>
<td width="385" height="22"><font size="2"> <%=rs("zw")%></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" align="right" height="22"><font size="2">E-mail:</font></td>
<td width="385" height="22"><font size="2"> <%=rs("email")%>
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2" height="25"><font size="2"><font color="#000000">修改項目:</font></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="184" align="right" height="22"><font size="2">用戶權限</font><font size="2">:</font></td>
<td width="385" height="22"><font size="2">
<input type="radio" <%if rs("state") ="1" then response.write "checked"%> value="1" name="state">
普通用戶
<input type="radio" <%if rs("state") ="10" then response.write "checked"%> name="state" value="10">
論壇管理員</font></td>
</tr>
<tr>
<td valign="top" colspan="2" height="35" bgcolor="#FFFFFF">
<p align="center"><font size="2">
<input type="button" value="更 新" onclick="checkmod()">
<br>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</center>
</div>
<center>
</center>
</tr>
<tr>
<td width="770" height="1" valign="top" colspan="5">
<p align="center">
<p align="center"><font size="2">[<a href="javascript:window.close()" class="sbtxt">關閉窗口</a>]</font></p>
</td>
</tr>
<tr>
<td width="770" height="10" valign="top" colspan="5"> </td>
</tr>
<tr>
<td width="770" height="1" valign="top" colspan="5"> </td>
</tr>
</table>
</center>
</div>
</BODY>
</html>
<% state=request("state")
if state="" then Response.End
rs.close
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from users where id="&uid&""
rs.open sql,conn,3,3
rs("state")=state
rs.update
rs.close
response.write"<SCRIPT language=JavaScript>alert('數據已經提交,按確認返回后請刷新瀏覽');"
response.write"javascript:window.close();</SCRIPT>"
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -