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

📄 display.asp.bak

📁 酒店管理
💻 BAK
字号:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td {  font-size: 9pt}
body {  font-size: 9pt}
-->
</style>
</head>

<body bgcolor="#FFFFFF">
<table bgcolor=#aaaaaa cellpadding=2 cellspacing=1 height=33 
            width="99%">
  <tbody> 
  <tr bgcolor=#f3f3dd> 
    <td>
      <div align="center"><font style="FONT-SIZE: 14px"> <a href="display.asp">查看会员信息</a> 
        | <a href="t_ding.asp">操作会员预定</a>| <a href="f_ding.asp">操作非会员预定</a>| </font></div>
    </td>
  </tr>
  </tbody>
</table>

            
<%list=Trim(request.querystring("list"))
Submit1=Trim(request.form("Submit1"))
if Submit1="删除" then
Set Conn = Server.CreateObject("ADODB.Connection")
conn.open Application("file_jingan1")
set rs1=server.createobject("ADODB.Recordset")
sql1="delete from t_member where list=" &list
rs1.open sql1,conn,1,1
response.redirect "first.asp"
end if
%>
<%Submit2=Trim(request.form("Submit2"))
if Submit2="成为正式会员" then
Set Conn = Server.CreateObject("ADODB.Connection")
conn.open Application("file_jingan1")
set rs2=server.createobject("ADODB.Recordset")
sql2="update t_member set huiyuan='会员' where list=" &list
rs2.open sql2,conn,1,1
response.redirect "display.asp"
end if
%>

<%Set Conn = Server.CreateObject("ADODB.Connection")
conn.open Application("file_jingan1")
set rs=server.createobject("ADODB.Recordset")



 If Request.ServerVariables("CONTENT_LENGTH") = 0 Then

	Page = 1          
Else
    
   page= CInt(Request.Form("PressPageNum"))
   If Request.Form("Submit") = "上一页" Then
		Page = Page - 1
    ElseIf Request.Form("Submit") = "下一页" Then
       Page = Page + 1
    End If
    End If
    
    sqlstr="select * from t_member order by list"
rs.open sqlstr,conn,1,1

if page <= 0 Then
    page = 1
    end if
if page > rs.pagecount Then
    page = rs.pagecount + 1
    end if

if not rs.eof then
rs.PageSize=4
rs.AbsolutePage=page
End if


TotalPages = rs.PageCount%>
共有<%=rs.recordcount%>条匹配记录&nbsp;&nbsp;&nbsp; 
                  &nbsp;当前页码是(<%=page%>/<%=rs.pagecount%>页)
<Form Action = "<%= Request.ServerVariables("SCRIPT_NAME") %>" Method="Post">
  <div align="center">
    
    <%
If Page > 1 Then  %> 
    <Input Type="Submit" Name="Submit" Value="上一页">
    <% End If
If Page <> TotalPages Then%> 
    <Input Type="Submit" Name="Submit" Value="下一页">
    <% End If %> <Input Type="text" name="presspagenum"   Value="<%=Page%>" size="5">
     <input type="submit" value="GO" id=submit3 name=submit3></div>
</Form>

<%For absRecordNum = 1 to rs.PageSize
%>

<table width="80%" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF">
  <tr> 
    <td width="25%" height="2" bgcolor="#F5F5F5">编号</td>
    <td width="25%" height="2"><%=rs("list")%>&nbsp;</td>
    <td height="2" width="25%" bgcolor="#F5F5F5">真实姓名</td>
    <td height="2" width="25%"><%=rs("name1")%>&nbsp;</td>
  </tr>
  <tr> 
    <td width="25%" bgcolor="#F5F5F5">用户名</td>
    <td width="25%"><%=rs("username")%></td>
    <td height="23" width="25%" bgcolor="#F5F5F5">身份证号码</td>
    <td height="23" width="25%"><%=rs("cardid")%>&nbsp;</td>
  </tr>
  <tr> 
    <td width="25%" height="2" bgcolor="#F5F5F5">电子邮件地址</td>
    <td width="25%" height="2"><%=rs("email")%>&nbsp;</td>
    <td  width="25%" height="2" bgcolor="#F5F5F5">详细住址</td>
    <td  width="25%" height="2"><%=rs("address")%>&nbsp;</td>
  </tr>
  <tr> 
    <td width="25%" bgcolor="#F5F5F5">电话</td>
    <td width="25%"><%=rs("tel")%>&nbsp;</td>
    <td width="25%" bgcolor="#F5F5F5">邮政编码</td>
    <td width="25%"><%=rs("postcard")%>&nbsp;</td>
  </tr>
  <tr> 
    <td width="25%" bgcolor="#F5F5F5">城市</td>
    <td width="25%"><%=rs("city")%>&nbsp;</td>
    <td width="25%" bgcolor="#F5F5F5">性别</td>
    <td width="25%"><%=rs("sex")%>&nbsp;</td>
  </tr>
  <tr> 
    <td height="23" width="25%" bgcolor="#F5F5F5">国籍</td>
    <td height="23" width="25%"><%=rs("nation")%>&nbsp;</td>
    <td  width="25%" bgcolor="#F5F5F5">是否有会员资格</td>
    <td  width="25%"><%if trim(rs("huiyuan"))="会员" then Response.Write"会员" else Response.Write"非会员" %>&nbsp;</td>
  </tr>
</table>
<form method="post" action="display.asp?list=<%=rs("list")%>">
  <input type="submit" name="Submit1" value="删除">
  <input type="submit" name="Submit2" value="成为正式会员">
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr bgcolor="#333333"> 
    <td height="1"></td>
  </tr>
</table>
<p><%
    rs.MoveNext
    If rs.EOF Then
		Exit For        
	End If
Next

rs.Close : Conn.Close
Set rs = Nothing : Set Conn = Nothing
%> </p>
<Form Action = "<%= Request.ServerVariables("SCRIPT_NAME") %>" Method="Post">
  <div align="center">
   
    <%
If Page > 1 Then  %> 
    <Input Type="Submit" Name="Submit" Value="上一页">
    <% End If
If Page <> TotalPages Then%> 
    <Input Type="Submit" Name="Submit" Value="下一页">
    <% End If %> <Input Type="text" name="presspagenum" Value="<%=Page%>" size="5">
     <input type="submit"  value="GO" id=submit4 name=submit4> </div>
</Form>

</BODY></HTML>

⌨️ 快捷键说明

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