📄 xguest.asp
字号:
%>
<%
' *** 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="Dguest.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><input name="name" type="text" id="name" value="<%=(luruRS.Fields.Item("Chname").Value)%>" size="21"></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">客人性别:</td>
<td><select name="sex" id="sex">
<option value="男" <%If (Not isNull((luruRS.Fields.Item("sex").Value))) Then If ("男" = CStr((luruRS.Fields.Item("sex").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男</option>
<option value="女" <%If (Not isNull((luruRS.Fields.Item("sex").Value))) Then If ("女" = CStr((luruRS.Fields.Item("sex").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女</option>
<%
While (NOT luruRS.EOF)
%>
<%
luruRS.MoveNext()
Wend
If (luruRS.CursorType > 0) Then
luruRS.MoveFirst
Else
luruRS.Requery
End If
%>
</select></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">与新人关系:</td>
<td><select name="R" id="R">
<option value="男方长辈" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("男方长辈" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男方长辈</option>
<option value="男方亲戚" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("男方亲戚" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男方亲戚</option>
<option value="男方同事" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("男方同事" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男方同事</option>
<option value="男方同学" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("男方同学" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男方同学</option>
<option value="男方朋友" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("男方朋友" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>男方朋友</option>
<option value="女方长辈" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("女方长辈" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女方长辈</option>
<option value="女方亲戚" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("女方亲戚" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女方亲戚</option>
<option value="女方同事" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("女方同事" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女方同事</option>
<option value="女方同学" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("女方同学" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女方同学</option>
<option value="女方朋友" <%If (Not isNull((luruRS.Fields.Item("Relation").Value))) Then If ("女方朋友" = CStr((luruRS.Fields.Item("Relation").Value))) Then Response.Write("SELECTED") : Response.Write("")%>>女方朋友</option>
</select></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">更新时间:</td>
<td> <input name="luruT" type="hidden" id="luruT" value="<%=now()%>">
<%=now()%>
<input name="admren" type="hidden" id="admren" value="<%=Session("MM_Username")%>"></td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">来贺礼金:</td>
<td><input name="lijin" type="text" id="lijin" value="<%=(luruRS.Fields.Item("M").Value)%>" size="21">
元整</td>
</tr>
<tr bgcolor="#FF0000">
<td height="25" align="right">联系电话:</td>
<td><input name="Gtel" type="text" id="Gtel" value="<%=(luruRS.Fields.Item("tel").Value)%>" size="21"></td>
</tr>
<tr bgcolor="#FF0000">
<td align="right">备注:</td>
<td><textarea name="beizhu" cols="20" rows="5" id="textarea"><%=(luruRS.Fields.Item("TXT").Value)%></textarea></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)%> 的记录吗?');">
<input type="reset" name="Submit" value="重置">
<input <%If (CStr((luruRS.Fields.Item("Y").Value)) = CStr("True")) Then Response.Write("checked") : Response.Write("")%> name="qiandaoY" type="checkbox" id="qiandaoY" value="1">
已签到?</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="Dguest.asp?id=<%=(luruRS.Fields.Item("id").Value)%>">删除客人信息</a></td>
</tr>
</table>
<input type="hidden" name="MM_update" 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
%>
<%
Mrs.Close()
Set Mrs = Nothing
%>
<%
allGuestRS.Close()
Set allGuestRS = Nothing
%>
<%
allqdRS.Close()
Set allqdRS = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -