?? danweimanage.asp
字號:
<!--#include file="conn.asp"-->
<%if session("bjxadmin")="" then
response.Write "<script language='javascript'>alert('網絡超時或您還沒有登陸!');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<p align=center><font color=red>您沒有此項目管理權限!</font></p>"
response.End
end if
end if
%>
<html><head><title>單位管理</title>
<script>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<form method="post" action="danweiset.asp?action=update">
<tr>
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">單位設置</font></b></td>
</tr>
<tr align=center bgcolor=#E8F1FF>
<td width="20%">序 號</td>
<td width="30%">單位名稱</td>
<td width="30%">排 序(必填項數字)</td>
<td width="20%">操 作</td>
</tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT * from BJX_danwei order by danweiorder",conn,1,1
if rs.recordcount=0 then
%>
<tr>
<td colspan="8" height=25 align="center" width="100%" bgcolor=#E8F1FF> 還沒有添加單位 </td>
</tr>
<%
else
do while not rs.eof
%>
<tr bgcolor=#E8F1FF>
<td align=center><%=rs("ID")%></td>
<td align=center>
<input type="hidden" name="danweiid" value="<%=rs("id")%>">
<input class=text type="text" name="danweiname" size="10" value="<%=trim(rs("danweiname"))%>">
</td>
<td align=center>
<input class=text type="text" name="danweiorder" size="10" value="<%=rs("danweiorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
</td>
<td align=center>
<a href="danweikill.asp?danweiid=<%=rs("id")%>">刪除</a>
</td>
</tr>
<%
rs.MoveNext
Loop
%>
<tr>
<td colspan="4" bgcolor=#E8F1FF align="center" width="100%">
<input type="submit" name="Submit2" value="保存修改" style="font-family: 宋體; font-size: 9pt">
<input type="reset" value="重新設定" style="font-family: 宋體; font-size: 9pt" name="重置" >
</td>
</tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</form>
</table><br>
<table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<form method="post" action="danweiset.asp?action=add">
<tr>
<td colspan="4" align="center" background="../images/admin_bg_1.gif"><b><font color="#ffffff">添加單位</font></b></td>
</tr>
<tr height=40 bgcolor=#E8F1FF>
<td width=20% align=center>添加單位</td>
<td width=30% align=center>
<input class=text type="text" name="danweiname" size="10">
</td>
<td width=30% align=center>
<input class=text type="text" name="danweiorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
</td>
<td width=20% align=center>
<input type="submit" name="Submit2" value="添加" style="font-family: 宋體; font-size: 9pt">
</td>
</tr>
</form>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -