?? manageunit.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="session2.asp"-->
<html>
<head>
<title>單位管理</title>
<script>
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
<meta http-equiv="目錄類型" content="文本/html; 字符集=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table cellpadding="3" cellspacing="1" border="0" width="100%" class="tableBorder" align=center>
<form method="post" action="SaveUnit.asp?action=update">
<tr height=25>
<th class="tableHeaderText" colspan=6 height=25>單位設置與修改</th>
</tr>
<tr align=center height=25>
<td class="forumRowHighlight" >序號</td>
<td class="forumRowHighlight" >單位名稱</td>
<td class="forumRowHighlight">排序(必填項,數字)</td>
<td class="forumRowHighlight">刪除</td>
</tr>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open "SELECT * from sh_danwei order by danweiorder",conn,1,1
if rs.recordcount=0 then
%>
<tr>
<td colspan="8" height=25 align="center" width="100%" class="forumRowHighlight"> 還沒有添加單位 </td>
</tr>
<%
else
do while not rs.eof
%>
<tr height=25>
<td align=center class="forumRowHighlight"><%=rs("ID")%></td>
<td align=center class="forumRowHighlight">
<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 class="forumRowHighlight">
<input class=text type="text" name="danweiorder" size="10" value="<%=rs("danweiorder")%>" ONKEYPRESS="event.returnValue=IsDigit();" >
</td>
<td align=center class="forumRowHighlight">
<a href="DelUnit.asp?danweiid=<%=rs("id")%>">刪除</a>
</td>
</tr>
<%
rs.MoveNext
Loop
%>
<tr>
<td colspan="8" height=25 align="center" width="100%" class="forumRowHighlight">
<input class="button" type="submit" name="Submit2" value="保存修改" >
<input class="button" type="reset" value="重新設定" name="重置" >
</td>
</tr>
<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
</form>
<form method="post" action="SaveUnit.asp?action=add">
<tr height=25>
<td align=center class="forumRowHighlight">添加單位
</td>
<td align=center class="forumRowHighlight">
<input class=text type="text" name="danweiname" size="10">
</td>
<td align=center class="forumRowHighlight">
<input class=text type="text" name="danweiorder" size="10" ONKEYPRESS="event.returnValue=IsDigit();">
</td>
<td align=center colspan="2" class="forumRowHighlight">
<input class="button" type="submit" name="Submit2" value="添 加">
</td>
</tr>
</form>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -