📄 ck_set2.asp
字号:
<!--#include file = "Startup.asp"-->
<!-- #include file="Function.asp" -->
<%
call adminer()
Call ComeUrl()
Call adminqx()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="common.css" type="text/css" rel="stylesheet">
<title>无标题文档</title>
</head>
<body>
<table width="100%" height="100%" border="0">
<tr>
<td align="center" valign="top">
<table width="500" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC" >
<tr align="center" bgcolor="#E0E0E0">
<td height="20" align="left"><strong><font color="#FF0000">仓库名称</font>
</strong></td>
<td align="left"><strong><font color="#FF0000">所属校区</font></strong></td>
<td height="20" align="left"><strong> <font color="#FF0000">仓库负责人</font></strong></td>
<td align="left"><strong><font color="#FF0000">操作</font></strong></td>
</tr>
<%
if session("userclass")=2 then
set rs2=server.CreateObject("adodb.recordset")
sql2="select * from shcool_class where 物资管理员='"&session("username")&"'"
rs2.open sql2,oConn,1,1
sql="select * from ck where 所属校区='"&rs2("校区名称")&"'"
rs2.close
else
sql="select * from ck"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,oconn,1,2
if rs.eof then
response.Write("暂无仓库!")
else
do while not rs.eof
id=rs("id")
s=rs("仓库名称")
n=rs("所属校区")
response.write "<tr align=left bgcolor=#ffffff><form name=form2 method=post action=ck_edit.asp>"
response.write"<td bgcolor=#ffffff><a href='ck_wuzi_magic.asp?ckname="&s&"' title='点击可查看该仓库所有物资' target='_self'>"& rs("仓库名称")&"</a></td>"
response.write "<td bgcolor=#ffffff>"& n &"</td>"
response.write"<td bgcolor=#ffffff>"& rs("负责人")&"</td>"
response.write"<td bgcolor=#ffffff><a href=delck.asp?id="&id&">删除</a></td>"
response.write "</form></tr>"
rs.movenext
loop
end if
%>
</table>
<br>
<table width="80%" border="0">
<tr>
<td align="center">
<form name="form1" method="post" action="ck_add.asp">
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr align="center" bgcolor="#FFFFFF">
<td>
<input name="ckname" type="text" id="ckadmin3" value="输入仓库名称" size="15">
</td>
<td>
<select name="ssxq">
<option>所属校区</option>
<%
set xqrs=server.createobject("adodb.recordset")
xqsql="select 校区名称 from shcool_class"
xqrs.open xqsql,oConn,1,1
do while not xqrs.eof
response.write "<option value="&xqrs("校区名称")&">"&xqrs("校区名称")&"</option>"
xqrs.movenext
loop
xqrs.close
%>
</select>
</td>
<td>
<input name="ckadmin" type="text" id="ckadmin2" value="输入仓库负责人" size="15">
</td>
<td>
<input type="submit" name="Submit" value="添加仓库"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -