⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 luru-ok.asp

📁 新婚来贺名单管理系统(单用户版)新婚举办婚宴需要登记来宾名单以及来宾给新人包的红包的礼金数 使用流程: 1.先将宴请宾客名单全部录入 2.婚宴当日为来宾签到 签到的同时记录来贺礼金(就是记录每位
💻 ASP
📖 第 1 页 / 共 2 页
字号:

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 (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 (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">现在是北京时间&nbsp;<%=now()%>&nbsp;欢迎您:[&nbsp;<strong><%=SessionN%></strong>&nbsp;]! 预计客人[&nbsp;<strong><%=(luruRS_total)%></strong>&nbsp;]位,已到客人[&nbsp;<strong><%=(allqdRS_total)%></strong>&nbsp;]位!客人礼金共计[&nbsp;<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>&nbsp;]元<br>
<a href="XadminP.asp"><strong>修改管理员登陆信息</strong></a> </div>
<hr width="100%" size="1" color="#FFFF00" noshade>
<div align="center">
  <% If nameokRS.EOF And nameokRS.BOF Then %>
</div>
<form name="form1" method="POST" action="<%=MM_editAction%>">
  <div align="center">
    <table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr align="center">
        <td height="28">&nbsp;</td>
        <td><a href="allguset.asp"><strong>查看所有客人列表</strong></a></td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </div>
  <div align="center" class="style4">
    <div align="center">第二步请输入客人详细信息 -=&gt;
    </div>
  </div>
  <div align="center">
    <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 align="left">&nbsp;
        <input name="name" type="hidden" id="name" value="<%=Session("name")%>"><%=Session("name")%></td>
      </tr>
      <tr bgcolor="#FF0000">
        <td height="25" align="right">客人性别:</td>
        <td align="left"><select name="sex" id="sex">
          <option selected>请选择</option>
          <option value="男">男</option>
          <option value="女">女</option>
        </select></td>
      </tr>
      <tr bgcolor="#FF0000">
        <td height="25" align="right">客人与新人关系:</td>
        <td align="left"><select name="R" id="R">
          <option selected>请选择</option>
          <option value="男方长辈">男方长辈</option>
          <option value="男方亲戚">男方亲戚</option>
          <option value="男方同事">男方同事</option>
          <option value="男方同学">男方同学</option>
          <option value="男方朋友">男方朋友</option>
          <option value="女方长辈">女方长辈</option>
          <option value="女方亲戚">女方亲戚</option>
          <option value="女方同事">女方同事</option>
          <option value="女方同学">女方同学</option>
          <option value="女方朋友">女方朋友</option>
        </select></td>
      </tr>
      <tr bgcolor="#FF0000">
        <td height="25" align="right">更新时间:</td>
        <td align="left">&nbsp;
        <input name="luruT" type="hidden" id="luruT" value="<%=now()%>"><%=now()%><input name="admren" type="hidden" id="admren" value="<%=SessionN%>"></td>
      </tr>
      <tr bgcolor="#FF0000">
        <td height="25" align="right">客人联系电话:</td>
        <td align="left"><input name="T" type="text" id="T" size="21"></td>
      </tr>
      <tr bgcolor="#FF0000">
        <td align="right">备注:</td>
        <td align="left"><textarea name="beizhu" cols="20" rows="5" id="beizhu">无备注</textarea></td>
      </tr>
      <tr>
        <td height="30" align="right">&nbsp;</td>
        <td align="left"><input type="submit" name="Submit" value="提交" onClick="javascript: return confirm('确认输入无误');">
    &nbsp;&nbsp;<input type="reset" name="Submit" value="重置"></td>
      </tr>
    </table>
    <table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr align="center">
        <td height="28">&nbsp;</td>
        <td><a href="allguset.asp"><strong>查看所有客人列表</strong></a></td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </div>
  <p align="center">
    <input type="hidden" name="MM_insert" value="form1">
  </p>
  <div align="center"><a href="<%= MM_Logout %>">退出系统</a></div>
</form>
<div align="center">
  <p>
    <% End If ' end nameokRS.EOF And nameokRS.BOF %>
    <br>
  </p>
  <p>
    <% If Not nameokRS.EOF Or Not nameokRS.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
%>>
    <span class="style4">很抱歉!您所输入的客人姓名已经存在!</span><br>
    <a href="luru.asp">请返回重新输入……</a><% End If ' end Not nameokRS.EOF Or NOT nameokRS.BOF %>

  </p>
  <p>&nbsp;  </p>
  <!--#include file="Copyright.htm" -->
</div>
</body>
</html>
<%
luruRS.Close()
Set luruRS = Nothing
%>
<%
adminRs.Close()
Set adminRs = Nothing
%>
<%
nameRS.Close()
Set nameRS = Nothing
%>
<%
nameokRS.Close()
Set nameokRS = Nothing
%>
<%
Mrs.Close()
Set Mrs = Nothing
%>
<%
allqdRS.Close()
Set allqdRS = Nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -