📄 nword.asp
字号:
<!--#include file="config.asp" -->
<!--#include file="conn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>『秦直道』多用户博客系统关键字广告</TITLE>
<META http-equiv=content-type content="text/html; charset=GB2312">
<LINK href="user.css" type=text/css rel=stylesheet>
<BODY style="MARGIN-TOP: 66px">
<TABLE cellSpacing=0 cellPadding=0 width=650 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top>
<TABLE style="MARGIN-BOTTOM: 2px" cellSpacing=0 cellPadding=0 width="100%"
border=0>
<TBODY>
<TR>
<TD class=BGL align=left width="80%" height=24><B
class=p14>『秦直道』多用户博客系统关键字广告</B></TD>
<TD class="BGL p14" align=right width="20%"><a href="index.asp">用户查询</a> </TD></TR></TBODY></TABLE></TD>
</TR></TBODY></TABLE><BR>
<%
dim totalPut
dim CurrentPage
dim TotalPages
dim i,j
const MaxPerPage=12
if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
dim rs
dim sql
set rs=server.createobject("adodb.recordset")
sql="select * from kheu_nWord where title like '%"&request("txtitle")&"%' order by ID desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'>对不起,没有您要查询的信息</p>"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
else
currentPage=1
showContent totalput,MaxPerPage
showpage totalput,MaxPerPage,""
end if
end if
rs.close
end if
set rs=nothing
sub showContent (totalput,MaxPerPage)
%>
<CENTER>
<Form name="search" method="POST" action="nWord.asp">
<TABLE width="620" border=0 align="center" cellPadding=3 cellSpacing=1>
<TBODY>
<TR>
<TD height=30>
<font color="#ff0000"> <a href="nWord_Add.asp">添加</a> </font>
<font color="#FF0000">支持缴费自助开通</font>
</td>
<TD>
<td> </td>
<TD> 搜索关键字:<input type="text" name="txtitle" size="25">
<INPUT align=absMiddle border=1 value="搜索" type=submit>
</TD>
</TR>
</TBODY>
</TABLE>
<table width="620" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#999999" bgcolor="#f7fcfc" style="border-collapse: collapse">
<tr align="center" bgcolor="#d9f0f0">
<td height="25" colspan="6">ADWord关键字广告列表</td>
</tr>
<tr align="center">
<TD width="8%" align="center">ID号</TD>
<TD align="center">广告标题</TD>
<TD width="15%" align="center">起始时间</TD>
<TD width="15%" align="center">结束时间</TD>
<TD width="8%" align="center">显示</TD>
<TD width="20%" align="center"><font color="#FF0000">缴费自助开通</font></TD>
</TR>
<%do while not rs.eof%>
<tr>
<td align="center"><font face="Arial"><b><%=rs("id")%></b></font></td>
<td><a href="<%=rs("url")%>"><%=rs("title")%></a></td>
<td align="center"><%=year(rs("Begindate"))%>/<%=month(rs("Begindate"))%>/<%=day(rs("Begindate"))%></td>
<td align="center"><%=year(rs("Enddate"))%>/<%=month(rs("Enddate"))%>/<%=day(rs("Enddate"))%></td>
<td align="center">
<%if rs("show_flag")=true then%>
<font color=#000000>正常</font>
<%else%>
关闭
<%end if%>
</td>
<td align="center">
<a href="nWord_Pay.asp?id=<%=rs("id")%>"><font color=#008000>缴费/续费</font></a>
</td>
</tr>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
</table>
</form>
<br>
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
if CurrentPage<2 then
response.write "<table border=0 width=620 cellspacing=0 cellpadding=0 bordercolor=#999999 bgcolor=#f7fcfc >"
response.write "<tr height=30>"
response.write "<td align=left>"
response.write "共<b>"&n&"</b>页 第<b>"&CurrentPage&"</b>页 共检索到<b>"&totalnumber&"</b>条相关信息</td>"
response.write "<td align=right>"
response.write "【最前页】【上一页】"
else
response.write "<table border=0 width=620 cellspacing=0 cellpadding=0 bordercolor=#999999 bgcolor=#f7fcfc>"
response.write "<tr height=30>"
response.write "<td align=left>"
response.write "共<b>"&n&"</b>页 第<b>"&CurrentPage&"</b>页 共检索到<b>"&totalnumber&"</b>条相关信息</td>"
response.write "<td align=right>"
response.write "【<a href="&filename&"?page=1&typeid="&typeid&"&txtitle="&request("txtitle")&">最前页</a>】"
response.write "【<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&"&txtitle="&request("txtitle")&">上一页</a>】 "
end if
if n-currentpage<1 then
response.write "【下一页】【最后页】"
else
response.write "【<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&"&txtitle="&request("txtitle")&">"
response.write "下一页</a>】【<a href="&filename&"?page="&n&"&typeid="&typeid&"&txtitle="&request("txtitle")&">最后页</a>】"
end if
response.write "</td>"
response.write "</tr>"
response.write "</table>"
response.write "</form>"
end function
%>
</center>
<br>
<DIV style="FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 0px auto; WIDTH: 650px; COLOR: black; LINE-HEIGHT: 20px; FONT-FAMILY: arial; HEIGHT: 20px; BACKGROUND-COLOR: #d9f0f0;TEXT-ALIGN: center">
<script src='http://s96.cnzz.com/stat.php?id=369478&web_id=369478&online=1&show=line' language='JavaScript' charset='gb2312'></script>©2008 <A href="http://www.qinzd.com">北京秦直道网络搜索技术</A></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -