📄 dguest.asp
字号:
End If
If (allGuestRS_last > allGuestRS_total) Then
allGuestRS_last = allGuestRS_total
End If
If (allGuestRS_numRows > allGuestRS_total) Then
allGuestRS_numRows = allGuestRS_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 (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 (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><%=(allGuestRS_total)%></strong> ]位,已到客人[ <strong><%=(allqdRS_total)%></strong> ]位!客人礼金共计[ <strong>
<%
if (allGuestRS_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>
<% If Not luruRS.EOF Or Not luruRS.BOF Then %>
<form ACTION="<%=MM_editAction%>" METHOD="POST" name="form1">
<table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="28"><a href="luru.asp">录入客人信息</a></td>
<td><a href="allguset.asp">查看所有客人列表</a></td>
<td><a href="Xguest.asp?id=<%=(luruRS.Fields.Item("id").Value)%>">修改客人信息</a></td>
</tr>
</table>
<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> <%=(luruRS.Fields.Item("Chname").Value)%></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">客人性别:</td>
<td> <%=(luruRS.Fields.Item("sex").Value)%></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">客人与新人关系:</td>
<td> <%=(luruRS.Fields.Item("Relation").Value)%></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">更新时间:</td>
<td> <%=(luruRS.Fields.Item("Ltime").Value)%> </td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">客人礼金:</td>
<td> <%=(luruRS.Fields.Item("M").Value)%> 元整</td>
</tr>
<tr bgcolor="#FF0000">
<td height="50" align="right">备注:</td>
<td> <%=(luruRS.Fields.Item("TXT").Value)%></td>
</tr>
<tr>
<td height="30" align="right"> </td>
<td><input type="submit" name="Submit" value="删除?" onClick="javascript: return confirm('确定删除 <%=(luruRS.Fields.Item("Chname").Value)%> 的记录吗?');"></td>
</tr>
</table>
<table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td height="28"><a href="luru.asp">录入客人信息</a></td>
<td><a href="allguset.asp">查看所有客人列表</a></td>
<td><a href="Xguest.asp?id=<%=(luruRS.Fields.Item("id").Value)%>">修改客人信息</a></td>
</tr>
</table>
<input type="hidden" name="MM_delete" value="form1">
<input type="hidden" name="MM_recordId" value="<%= luruRS.Fields.Item("id").Value %>">
</form>
<% End If ' end Not luruRS.EOF Or NOT luruRS.BOF %>
<% If luruRS.EOF And luruRS.BOF Then %>
<meta http-equiv=refresh content=3;url=<%
if Request.ServerVariables("HTTP_REFERER")="" Then
Response.Write "/allguset.asp"
Else
Response.Write Request.ServerVariables("HTTP_REFERER")
End if
%>>
<p> </p>
<p align="center" class="style4">很抱歉!查无满足条件记录!</p>
<p align="center"><a href="allguset.asp">点这里返回</a></p>
<% End If ' end luruRS.EOF And luruRS.BOF %>
<!--#include file="Copyright.htm" -->
</body>
</html>
<%
luruRS.Close()
Set luruRS = Nothing
%>
<%
adminRs.Close()
Set adminRs = Nothing
%>
<%
allGuestRS.Close()
Set allGuestRS = Nothing
%>
<%
Mrs.Close()
Set Mrs = Nothing
%>
<%
allqdRS.Close()
Set allqdRS = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -