📄 ck_set.asp
字号:
<!--#include file = "Startup.asp"-->
<!-- #include file="Function.asp" -->
<%
call adminer()
Call ComeUrl()
Call adminck()
%>
<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>
<%if session("userclass")=2 then%>
<td align="left"><strong><font color="#FF0000">操作</font></strong></td>
<%end if %>
</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>"
if session("userclass")=2 then
response.write"<td bgcolor=#ffffff><a href=add_ck.asp?ckname="&s&">入库</a></td>"
end if
response.write "</form></tr>"
rs.movenext
loop
end if
%>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -