📄 luru.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
Session.Contents.Remove("MM_Username")
Session.Contents.Remove("MM_UserAuthorization")
MM_logoutRedirectPage = "index.asp"
' redirect with URL parameters (remove the "MM_Logoutnow" query param).
if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_newQS = "?"
For Each Item In Request.QueryString
If (Item <> "MM_Logoutnow") Then
If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
End If
Next
if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
End If
Response.Redirect(MM_logoutRedirectPage)
End If
%>
<!--#include file="Connections/conn.asp" -->
<%
if SessionN = "" Then
Response.Redirect "index.asp"
End if
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="index.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 luruRS
Dim luruRS_numRows
Set luruRS = Server.CreateObject("ADODB.Recordset")
luruRS.ActiveConnection = MM_conn_STRING
luruRS.Source = "SELECT * FROM Guest WHERE ren = '" + Replace(SessionN, "'", "''") + "'"
luruRS.CursorType = 0
luruRS.CursorLocation = 2
luruRS.LockType = 1
luruRS.Open()
luruRS_numRows = 0
%>
<%
Dim adminRs
Dim adminRs_numRows
Set adminRs = Server.CreateObject("ADODB.Recordset")
adminRs.ActiveConnection = MM_conn_STRING
adminRs.Source = "SELECT * FROM admin"
adminRs.CursorType = 0
adminRs.CursorLocation = 2
adminRs.LockType = 1
adminRs.Open()
adminRs_numRows = 0
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
Dim luruRS_total
Dim luruRS_first
Dim luruRS_last
' set the record count
luruRS_total = luruRS.RecordCount
' set the number of rows displayed on this page
If (luruRS_numRows < 0) Then
luruRS_numRows = luruRS_total
Elseif (luruRS_numRows = 0) Then
luruRS_numRows = 1
End If
' set the first and last displayed record
luruRS_first = 1
luruRS_last = luruRS_first + luruRS_numRows - 1
' if we have the correct record count, check the other stats
If (luruRS_total <> -1) Then
If (luruRS_first > luruRS_total) Then
luruRS_first = luruRS_total
End If
If (luruRS_last > luruRS_total) Then
luruRS_last = luruRS_total
End If
If (luruRS_numRows > luruRS_total) Then
luruRS_numRows = luruRS_total
End If
End If
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
' set the record count
luruRS_total = luruRS.RecordCount
' set the number of rows displayed on this page
If (luruRS_numRows < 0) Then
luruRS_numRows = luruRS_total
Elseif (luruRS_numRows = 0) Then
luruRS_numRows = 1
End If
' set the first and last displayed record
luruRS_first = 1
luruRS_last = luruRS_first + luruRS_numRows - 1
' if we have the correct record count, check the other stats
If (luruRS_total <> -1) Then
If (luruRS_first > luruRS_total) Then
luruRS_first = luruRS_total
End If
If (luruRS_last > luruRS_total) Then
luruRS_last = luruRS_total
End If
If (luruRS_numRows > luruRS_total) Then
luruRS_numRows = luruRS_total
End If
End If
%><%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
Dim Mrs_total
Dim Mrs_first
Dim Mrs_last
' set the record count
Mrs_total = Mrs.RecordCount
' set the number of rows displayed on this page
If (Mrs_numRows < 0) Then
Mrs_numRows = Mrs_total
Elseif (Mrs_numRows = 0) Then
Mrs_numRows = 1
End If
' set the first and last displayed record
Mrs_first = 1
Mrs_last = Mrs_first + Mrs_numRows - 1
' if we have the correct record count, check the other stats
If (Mrs_total <> -1) Then
If (Mrs_first > Mrs_total) Then
Mrs_first = Mrs_total
End If
If (Mrs_last > Mrs_total) Then
Mrs_last = Mrs_total
End If
If (Mrs_numRows > Mrs_total) Then
Mrs_numRows = Mrs_total
End If
End If
%><%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
Dim allqdRS_total
Dim allqdRS_first
Dim allqdRS_last
' set the record count
allqdRS_total = allqdRS.RecordCount
' set the number of rows displayed on this page
If (allqdRS_numRows < 0) Then
allqdRS_numRows = allqdRS_total
Elseif (allqdRS_numRows = 0) Then
allqdRS_numRows = 1
End If
' set the first and last displayed record
allqdRS_first = 1
allqdRS_last = allqdRS_first + allqdRS_numRows - 1
' if we have the correct record count, check the other stats
If (allqdRS_total <> -1) Then
If (allqdRS_first > allqdRS_total) Then
allqdRS_first = allqdRS_total
End If
If (allqdRS_last > allqdRS_total) Then
allqdRS_last = allqdRS_total
End If
If (allqdRS_numRows > allqdRS_total) Then
allqdRS_numRows = allqdRS_total
End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them
If (luruRS_total = -1) Then
' count the total records by iterating through the recordset
luruRS_total=0
While (Not luruRS.EOF)
luruRS_total = luruRS_total + 1
luruRS.MoveNext
Wend
' reset the cursor to the beginning
If (luruRS.CursorType > 0) Then
luruRS.MoveFirst
Else
luruRS.Requery
End If
' set the number of rows displayed on this page
If (luruRS_numRows < 0 Or luruRS_numRows > luruRS_total) Then
luruRS_numRows = luruRS_total
End If
' set the first and last displayed record
luruRS_first = 1
luruRS_last = luruRS_first + luruRS_numRows - 1
If (luruRS_first > luruRS_total) Then
luruRS_first = luruRS_total
End If
If (luruRS_last > luruRS_total) Then
luruRS_last = luruRS_total
End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them
If (allGuestRS_total = -1) Then
' count the total records by iterating through the recordset
allGuestRS_total=0
While (Not allGuestRS.EOF)
allGuestRS_total = allGuestRS_total + 1
allGuestRS.MoveNext
Wend
' reset the cursor to the beginning
If (allGuestRS.CursorType > 0) Then
allGuestRS.MoveFirst
Else
allGuestRS.Requery
End If
' set the number of rows displayed on this page
If (allGuestRS_numRows < 0 Or allGuestRS_numRows > allGuestRS_total) Then
allGuestRS_numRows = allGuestRS_total
End If
' set the first and last displayed record
allGuestRS_first = 1
allGuestRS_last = allGuestRS_first + allGuestRS_numRows - 1
If (allGuestRS_first > allGuestRS_total) Then
allGuestRS_first = allGuestRS_total
End If
If (allGuestRS_last > allGuestRS_total) Then
allGuestRS_last = allGuestRS_total
End If
End If
%><%
' *** Recordset Stats: if we don't know the record count, manually count them
If (Mrs_total = -1) Then
' count the total records by iterating through the recordset
Mrs_total=0
While (Not Mrs.EOF)
Mrs_total = Mrs_total + 1
Mrs.MoveNext
Wend
' reset the cursor to the beginning
If (Mrs.CursorType > 0) Then
Mrs.MoveFirst
Else
Mrs.Requery
End If
' set the number of rows displayed on this page
If (Mrs_numRows < 0 Or Mrs_numRows > Mrs_total) Then
Mrs_numRows = Mrs_total
End If
' set the first and last displayed record
Mrs_first = 1
Mrs_last = Mrs_first + Mrs_numRows - 1
If (Mrs_first > Mrs_total) Then
Mrs_first = Mrs_total
End If
If (Mrs_last > Mrs_total) Then
Mrs_last = Mrs_total
End If
End If
%><%
' *** Recordset Stats: if we don't know the record count, manually count them
If (allqdRS_total = -1) Then
' count the total records by iterating through the recordset
allqdRS_total=0
While (Not allqdRS.EOF)
allqdRS_total = allqdRS_total + 1
allqdRS.MoveNext
Wend
' reset the cursor to the beginning
If (allqdRS.CursorType > 0) Then
allqdRS.MoveFirst
Else
allqdRS.Requery
End If
' set the number of rows displayed on this page
If (allqdRS_numRows < 0 Or allqdRS_numRows > allqdRS_total) Then
allqdRS_numRows = allqdRS_total
End If
' set the first and last displayed record
allqdRS_first = 1
allqdRS_last = allqdRS_first + allqdRS_numRows - 1
If (allqdRS_first > allqdRS_total) Then
allqdRS_first = allqdRS_total
End If
If (allqdRS_last > allqdRS_total) Then
allqdRS_last = allqdRS_total
End If
End If
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新婚来贺名单管理系统</title>
<style type="text/css">
<!--
body,td,th {
font-size: 9pt;
color: #000000;
}
body {
background-image: url(images/bg.gif);
}
a {
font-size: 9pt;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #FFFF00;
}
a:active {
text-decoration: none;
color: #FF0000;
}
.style3 { font-size: 18pt;
font-family: "隶书";
font-weight: bold;
color: #FFFF00;
}
.style4 {color: #FFFF00}
-->
</style></head>
<body>
<div align="center" class="style1">
<p class="style3">新婚来贺名单管理系统</p>
</div>
<p align="center"><a href="index.asp"><img src="images/LOGO.gif" width="178" height="98" border="0"></a></p>
<div align="center">现在是北京时间 <%=now()%> 欢迎您:[ <strong><%=SessionN%></strong> ]! 预计客人[ <strong><%=(luruRS_total)%></strong> ]位,已到客人[ <strong><%=(allqdRS_total)%></strong> ]位!客人礼金共计[ <strong>
<%
if (luruRS_total) = "0" Then
Response.Write "¥0.00"
Else
Response.Write FormatCurrency((Mrs.Fields.Item("Expr1000").Value), -1, -1, -2, -2)
End if
%>
</strong> ]元<br>
<a href="XadminP.asp"><strong>修改管理员登陆信息</strong></a> </div>
<hr width="100%" size="1" color="#FFFF00" noshade>
<form action="luru-OK.asp" method="post" name="form1">
<table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="28"> </td>
<td><a href="allguset.asp"><strong>查看所有客人列表</strong></a></td>
<td> </td>
</tr>
</table>
<div align="center" class="style4">第一步请先输入客人姓名 -=>
</div>
<table width="318" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFF00">
<tr bgcolor="#FF0000">
<td width="100" height="25" align="right">客人姓名:</td>
<td><input name="name" type="text" id="name" size="21"></td>
</tr>
<tr>
<td height="30" align="right"> </td>
<td><input type="submit" name="Submit" value="下一步" onClick="javascript: return confirm('确认输入无误请按确定');">
</td>
</tr>
</table>
<table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="28"> </td>
<td><a href="allguset.asp"><strong>查看所有客人列表</strong></a></td>
<td> </td>
</tr>
</table>
<div align="center"><a href="<%= MM_Logout %>">退出系统</a></div>
</form>
<!--#include file="Copyright.htm" -->
</body>
</html>
<%
luruRS.Close()
Set luruRS = Nothing
%>
<%
adminRs.Close()
Set adminRs = Nothing
%>
<%
Mrs.Close()
Set Mrs = Nothing
%>
<%
allqdRS.Close()
Set allqdRS = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -