📄 edit_config.asp
字号:
<!--#include file="conn.asp"-->
<%if session("adminadminadmin")<>true then response.redirect("list.asp") end if%>
<%'新增加部门
bumeng=rtrim(request.form("bumeng"))
if bumeng<>"" then
str="insert into bumeng (部门) values ('"&bumeng&"')"
conn.execute(str)
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>编辑机构</title>
<!--#include file="css.css"-->
</head>
<body topmargin="1">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="top.asp"--></td></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="140" valign="top" bgcolor="#98a5d0">
<table width="140" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="left.asp"--></td>
</tr>
</table></td>
<td width="560" align="center" valign="top" bgcolor="#98a5d0">
<table width="300" height="30" border="0" cellpadding="0" cellspacing="0">
<tr class="unnamed10">
<td class="unnamed12"> </td>
<td> </td>
<td> </td>
</tr>
</table>
<table width="550" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" valign="top">
<form name="form1" method="post" action="edit_config.asp">
<table width="550" height="20" border="0" align="center" cellspacing="1" class="unnamed12">
<tr bgcolor="#FF9966" class="unnamed14">
<td height="20"> <div align="center">部门</div></td>
<td height="20"> <div align="center">删除</div></td>
</tr>
<% str="select * from bumeng"
set rs=conn.execute(str)
if not rs.eof then
j=0
do while not rs.eof%>
<tr class="unnamed14" bgcolor="<%if j mod 2=0 then %>#ffcc99<%else%>#ffffff<%end if%>">
<td height="20"> <div align="center"><%=rs("部门")%></div></td>
<td height="20"> <div align="center"><a href="dele_bumeng.asp?del_id=<%=rs("id")%>" class="unnamed14wu"><img src="images/delete.gif" width="11" height="14" border="0"></a></div></td>
</tr>
<%rs.movenext
j=j+1
loop%>
<%else%>
<tr bgcolor="#FFFFFF" class="unnamed14">
<td height="20"><div align="center">无任何部门</div></td>
<td> </td>
</tr>
<%end if%>
<tr bgcolor="#FF9966" class="unnamed14">
<td height="20"><div align="center">
<input name="bumeng" type="text" id="bumeng" size="10">
</div></td>
<td><div align="center">
<input type="submit" name="Submit" value="增加">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="bottom.asp"--></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -