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

📄 default.asp

📁 亿众购物系统 一套设计完善、高效的web商城解决方案
💻 ASP
字号:
<!--#include file="../Session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>快讯会员列表</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
<body>
<table width="100%">
  <tr valign="middle"> 
    <td height="52" colspan="4" align="center" class="tdstyle"><strong><font color="#000000" size="3">快讯会员</font></strong></td>
  </tr>
    <%sql="select * from Member where Subscibe=True order by id DESC"
	Set rs = server.CreateObject("ADODB.Recordset")
	rs.open sql,conn,1,1
	if rs.eof then
          response.write "<tr valign=middle><td width=100% align=center class=tdstyle>暂无</tr></td>"
		  response.end
    end if%>
  <tr valign="middle"> 
    <td width="40%" height="25" align="center" class="tdstyle">E-mail</td>
    <td width="20%" align="center" class="tdstyle">IP地址</td>
    <td width="30%" align="center" class="tdstyle">申请日期</td>
    <td width="10%" align="center" class="tdstyle">删除</td>
  </tr>
  <%rs.pagesize = 8
	if request("page")="" or IsNumeric(request("page"))=False then
		page = 1
	else
		page=int(request("page"))
	end if
	if page>rs.pagecount then
		page=rs.pagecount
	end if
	if not rs.BOF then
		Rs.Move Rs.PageSize*(page-1)
	end if%>
  <%
i=1
while not rs.eof and i<=rs.pagesize
%>
  <tr valign="middle"> 
    <td height="20" align="center" class="tdstyle"><%=rs("Mail")%> <% if rs("member")<>"订阅商品快讯" then Response.Write("<font color=#666666>&nbsp;[会员]</font>")%> </td>
    <td align="center" class="tdstyle"><%=rs("Ip")%></td>
    <td align="center" class="tdstyle"><%=rs("Date")%></td>
    <td align="center" class="tdstyle"><input name="submit" type="button" class="button2" value="删 除" onClick="window.location='del.asp?id=<%=rs("Id")%>&page=<%=page%>'"></td>
  </tr>
  <%
i=i+1
 rs.MoveNext                                              
 wend 
%>
  <tr valign="middle"> 
    <td height="30" colspan="4" align="center" class="tdstyle"> <%
if rs.recordcount<>0 then
if page-1 mod 10=0 then
		p=(page-1) \ 10
	else
		p=(page-1) \ 10
	end if
	response.write "<form name=form method=post action=?>页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
					" 分页:"
	if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十页>[&lt;&lt;]</a>   "
    uming_i=1
	for ii=p*10+1 to P*10+10
		   if ii=page then
	          response.write "<font color=#ff0000>["+Cstr(ii)+"]</font> "
		   else
		      response.write "<a href='?page="&ii&"'>["+Cstr(ii)+"]</a>   "
		   end if
		if ii=rs.pagecount then exit for
		 uming_i=uming_i+1
	next
	if ii<=rs.pagecount and uming_i=11 then response.write "<a href='?page="&ii&"' title=下十页>[&gt;&gt;]</a>   "
response.write("  跳页:<input type=text name=page size=2 maxlength=3 class=input1> <input type=submit name=Submit2 value=Go class=button></form>")
end if%> </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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