?? adminaddadmin.asp
字號:
<!--#include file="conn.asp"--> <%
if session("adminname")="" then
response.redirect "relogin.asp"
end if
username=trim(request("username1"))
tname=trim(request("tname1"))
email=trim(request("email1"))
sql="select * from tbkc order by kcid"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>系統管理 | 綜合管理 | 管理員管理 | 添加管理員</title>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body>
<div align="center">
<center>
<table cellspacing="1" style="border-collapse: collapse" bordercolor="#336699" width="400" id="AutoNumber2" border="1">
<!--webbot BOT="GeneratedScript" PREVIEW=" " startspan --><script Language="JavaScript" Type="text/javascript"><!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.username.value == "")
{
alert("請在 準考證號 域中輸入值。");
theForm.username.focus();
return (false);
}
if (theForm.username.value.length > 12)
{
alert("在 準考證號 域中,請最多輸入 12 個字符。");
theForm.username.focus();
return (false);
}
if (theForm.pwd.value == "")
{
alert("請在 密碼 域中輸入值。");
theForm.pwd.focus();
return (false);
}
if (theForm.pwd.value.length > 12)
{
alert("在 密碼 域中,請最多輸入 12 個字符。");
theForm.pwd.focus();
return (false);
}
if (theForm.pwd1.value == "")
{
alert("請在 確認密碼 域中輸入值。");
theForm.pwd1.focus();
return (false);
}
if (theForm.pwd1.value.length > 12)
{
alert("在 確認密碼 域中,請最多輸入 12 個字符。");
theForm.pwd1.focus();
return (false);
}
if (theForm.tname.value == "")
{
alert("請在 姓名 域中輸入值。");
theForm.tname.focus();
return (false);
}
if (theForm.tname.value.length > 12)
{
alert("在 姓名 域中,請最多輸入 12 個字符。");
theForm.tname.focus();
return (false);
}
return (true);
}
//--></script><!--webbot BOT="GeneratedScript" endspan --><form method="POST" action="adminaddadminsave.asp" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<tr class="trh">
<td width="100%" height="25" bgcolor="#6699CC">
<p align="center"><b> <font color="#FFFFFF">添加管理員</font></b></td>
</tr>
<tr>
<td width="100%" height="207" bgcolor="#FFFDE8" bordercolor="#799AE1">
<p align="center"> </p>
<p align="center">用<span lang="en-us"> </span>戶<span lang="en-us">
</span>名:<!--webbot bot="Validation" s-display-name="準考證號" b-value-required="TRUE" i-maximum-length="12" --><input type="text" name="username" size="20" maxlength="12" value="<%=username%>"></p>
<p align="center">密 碼:<!--webbot bot="Validation" s-display-name="密碼" b-value-required="TRUE" i-maximum-length="12" --><input type="password" name="pwd" size="20" maxlength="12"></p>
<p align="center">確認密碼:<!--webbot bot="Validation" s-display-name="確認密碼" b-value-required="TRUE" i-maximum-length="12" --><input type="password" name="pwd1" size="20" maxlength="12"></p>
<p align="center">姓 名:<!--webbot bot="Validation" s-display-name="姓名" b-value-required="TRUE" i-maximum-length="12" --><input type="text" name="tname" size="20" maxlength="12" value="<%=tname%>"></p>
<p align="center">電子郵箱:<input type="text" name="email" size="20" value="<%=email%>"></p>
<p align="center"> </p>
</td>
</tr>
<tr>
<td width="100%" height="49" bgcolor="#FFFDE8" bordercolor="#799AE1">
<center>
<input type="checkbox" name="power" value="-1">最高管理員
<input type="checkbox" name="power" value="0">一般管理員<hr color="#336699" size="1">
老師權限:<%
do while not rs.eof %><input type="checkbox" name="power" value="<%=rs("kcid")%>"><%=rs("kcm")%>
<% rs.movenext
loop %>
</center>
</td>
</tr>
<tr>
<td width="100%" height="25" bgcolor="#FFFDE8" bordercolor="#799AE1">
<p align="center">
<input type="submit" value="提 交" name="B3" class="s02" >
<input type="button" value="返 回" name="B3" class="s02" onclick="window.location='adminadmin.asp'"></td>
</tr></form>
</table>
</center>
</div>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -