📄 7.asp
字号:
<!--#include file="../login/0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center"> <a href="mail.asp">>>发送提示EMAIL给快期网站</a><br><br>
</div>
<table width="650" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr valign="middle" bgcolor="#f1f1f1">
<td width="50" height="25" align="center">ID号</td>
<td width="250" height="25" align="center">网店名称</td>
<td width="75" height="25" align="center">负责人</td>
<td width="75" height="25" align="center">使用期限</td>
<td width="130" height="25" align="center">网店开通日期</td>
<td width="130" align="center">网店到期日</td>
</tr>
<%
s=now()
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from user_name where zt=2 and (rq-datediff(d,sj,getdate()))<7 order by id desc"
rs.open sql,conn,3,1
rs.pagesize = 12
if request("page")="" or isempty(request("page")) 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
do while not rs.eof and i<=rs.pagesize
%>
<tr valign="middle" bgcolor="#FFFFFF">
<td width="50" height="25" align="center"><%=rs("id")%></td>
<td width="250" height="25"><a href="xiu.asp?id=<%=rs("id")%>&page=<%=page%>"><%=rs("name")%></a></td>
<td width="75" height="25" align="center"><%=rs("name2")%></td>
<td width="75" height="25" align="center"><%=rs("rq")%>天</td>
<td width="130" height="25" align="center"><%=rs("sj2")%></td>
<td width="130" align="center"><%
sj3=dateadd("d",rs("rq"),rs("sj2"))
Response.Write sj3 %></td>
</tr>
<%
i=i+1
rs.MoveNext
loop
%>
<tr valign="middle" bgcolor="#FFFFFF">
<form name=form method=post action=?>
<td height="25" colspan="7" align="center" bgcolor="#f1f1f1"> <%
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 "页次:"& page &"/"& rs.pagecount &"页 每页"& rs.pagesize &" 共"& rs.recordcount &"条记录"&_
" <br>分页:"
if rs.pagecount>1 and page<>1 then response.write "<a href=?page=1 title='首页'>[|<]</a> "
if p*10>0 then response.write "<a href='?page="&p*10&"' title=上十页>[<<]</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=下十页>[>>]</a> "
if rs.pagecount>1 and page<>rs.pagecount then response.write "<a href=?page="& rs.pagecount &" title='尾页'>[>|]</a>"
response.write(" 跳页:<input type=text name=page size=2 maxlength=3 class=wenbenkuang> <input type=submit name=Submit value=Go class=go-wenbenkuang>")
end if
rs.close%> </td>
</form>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -