📄 admin_main_lsqx.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/CSYD.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="Admin_login.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
Dim rs__MMColParam
rs__MMColParam = "1"
If (Session("MM_UserAuthorization") <> "") Then
rs__MMColParam = Session("MM_UserAuthorization")
End If
Dim MyString, MyArray
MyString = Split(Session("MM_UserAuthorization"), "、", -1, 1)
%>
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_CSYD_STRING
rs.Source = "SELECT * FROM CS_SQInfo where flag=1 ORDER BY sq_date DESC"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
rs_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 100
Repeat1__index = 0
rs_numRows = rs_numRows + Repeat1__numRows
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-image: url(images/002_03.gif);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td><table width="100%" height="47" border="0" cellpadding="0" cellspacing="1">
<tr bgcolor="#efefef">
<td width="5%"><div align="center"><strong>序号</strong></div></td>
<td width="8%" height="24"><div align="center"><strong>申请部门</strong></div></td>
<td width="10%"><div align="center"><strong>申请人姓名</strong></div></td>
<td width="12%"><div align="center"><strong>专用教室名称</strong></div></td>
<td width="10%"><div align="center"><strong>申请单位</strong></div></td>
<td width="15%"><div align="center"><strong>使用时间</strong></div></td>
<td width="10%"><div align="center"><strong>活动内容</strong></div></td>
<td width="10%"><div align="center"><strong>设备要求</strong></div></td>
<td width="10%"><div align="center"><strong>申请时间</strong></div></td>
<td width="10%"><div align="center"><strong>操作</strong></div></td>
</tr>
<%
Dim i
i=1
While ((Repeat1__numRows <> 0) AND (NOT rs.EOF))
%>
<tr bgcolor="#F0F7F0">
<td><div align="center"><%=i%></div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_bumen").Value)%></div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_xingming").Value)%></div></td>
<td height="20"><div align="center"><%=(rs.Fields.Item("sq_changsuo").Value)%></div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_danwei").Value)%></div></td>
<td><div align="center"><%=(rs.Fields.Item("usetime").Value)%> 第<%=(rs.Fields.Item("sq_day").Value)%>节课</div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_neirong").Value)%></div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_yaoqiu").Value)%></div></td>
<td><div align="center"><%=(rs.Fields.Item("sq_date").Value)%></div></td>
<td><div align="center"><a href="Admin_cancel_lsqx.asp?BID=<%=rs("KBID")%>&SID=<%=rs("ID")%>&week=<%=rs("sq_week")%>">取消</a></div></td>
</tr>
<%
i=i+1
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs.MoveNext()
Wend
%>
</table></td>
</tr>
</table>
<br>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -