📄 goldindex.asp
字号:
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="604" border="0" align="center" cellpadding="0" cellspacing="0" background="../images/sortbg.gif">
<tr>
<td width="32"><img src="../images/sortleft.gif" width="21" height="27"></td>
<td width="78" class="title"><span class="3dfont2"> </span></td>
<form method=post name="fromorder" action="list.asp" >
<td width="494" class="title"> </td>
</form>
</tr>
</table>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<%
dim sql
dim rs
sql="select * from learning where canlook=3 order by articleid desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<p align='center'> 该栏目没有任何电影</p>"
else
totalPut=rs.recordcount
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
showpage totalput,MaxPerPage,"goldindex.asp"
showContent
showpage1 totalput,MaxPerPage,"goldindex.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpage totalput,MaxPerPage,"goldindex.asp"
showContent
showpage1 totalput,MaxPerPage,"goldindex.asp"
else
currentPage=1
showpage totalput,MaxPerPage,"goldindex.asp"
showContent
showpage1 totalput,MaxPerPage,"goldindex.asp"
end if
end if
end if
sub showContent
'Split("Sun,Mon,Tue,Wed,Thu,Fri,Sat",",")
BgImg1 = "06,04,08,09"
BgImg2 = "12,11,14,15"
dim i
i=0
%>
<%i=0
do while not rs.eof
If i mod 4 = 0 Then MyBgImg = BgImg1 Else MyBgImg = BgImg2
MyBgImg = Split(MyBgImg,",")
%>
</td>
</tr>
<tr>
<td valign="top"> <table width="100%" border="0" bordercolorlight="#000000" class="y" cellpadding="0">
<tr>
<td width="121" rowspan="2" valign="top">
<TABLE width="115" height="144" border=0 cellPadding=0 cellSpacing=0 background="../images/image_bg.gif">
<TR>
<TD height=16 align=middle vAlign=center>
<img src="../images/spacer.gif" width="1" height="1"></TD>
</TR>
<TR>
<TD align="center">
<a target="_blank" href="../html/<%=rs("articleid")%>.html"><img border="0" height="119" src="<%if rs("domurl")="" then%>../tupian/nopic.gif<%else%><%=rs("domurl")%><%end if%>" width="100"></a></TD>
</TR>
<TR>
<TD height="9">
<img src="../images/spacer.gif" width="1" height="1"></TD>
</TR>
</TABLE></td>
<td>
<span class="3dfont2"><a target="_blank" href="../html/<%=rs("articleid")%>.html" class="mayi"><strong><%content=rs("title")
if len(content)>10 then content=left(content,10)&"…"
response.write content
%></strong></a>
</td>
</tr>
<tr>
<td>
<img src="../images/fang.gif" width="15" height="15">类别: <font color="#FFFFFF">
<% if rs("canlook")=1 then%>
</font> 普通电影<font color="#FFFFFF">
<%elseif rs("canlook")=3 then%>
</font>黄金电影 <font color="#FFFFFF">
<%elseif rs("canlook")=0 then%>
</font>免费电影 <font color="#FFFFFF">
<%end if%>
</font> <br>
<img src="../images/fang.gif" width="15" height="15">主演: <%content=rs("name")
if len(content)>7 then content=left(content,7)&"…"
response.write content
%> <br>
<img src="../images/fang.gif" width="15" height="15">地区: <font class="eng_S"><%=rs("where")%>地区</font><br>
<img src="../images/fang.gif" width="15" height="15">上传: <span class="eng_S"><%=rs("dateandtime")%></span><br>
<img src="../images/fang.gif" width="15" height="15">推荐: <SPAN class=xinxin><%=rs("softlevel")%></SPAN><br>
<img src="../images/fang.gif" width="15" height="15">点播: <strong><%=rs("hits")%></strong> </td>
</tr>
<tr bgcolor="#327600">
<td colspan=2></td>
</tr>
</table><%rs.movenext%></td>
<td><% If not rs.eof Then %><table width="100%" border="0" bordercolorlight="#000000" class="y" cellpadding="0">
<tr>
<td width="121" rowspan="2" valign="top">
<TABLE width="115" height="144" border=0 cellPadding=0 cellSpacing=0 background="../images/image_bg.gif">
<TR>
<TD height=16 align=middle vAlign=center>
<img src="../images/spacer.gif" width="1" height="1"></TD>
</TR>
<TR>
<TD align="center">
<a target="_blank" href="../html/<%=rs("articleid")%>.html"><img border="0" height="119" src="<%if rs("domurl")="" then%>../tupian/nopic.gif<%else%><%=rs("domurl")%><%end if%>" width="100"></a></TD>
</TR>
<TR>
<TD height="9">
<img src="../images/spacer.gif" width="1" height="1"></TD>
</TR>
</TABLE></td>
<td>
<span class="3dfont2"><a target="_blank" href="../html/<%=rs("articleid")%>.html" class="mayi"><strong><%content=rs("title")
if len(content)>10 then content=left(content,10)&"…"
response.write content
%></strong></a> </td>
</tr>
<tr>
<td>
<img src="../images/fang.gif" width="15" height="15">类别: <font color="#FFFFFF">
<% if rs("canlook")=1 then%>
</font> 普通电影<font color="#FFFFFF">
<%elseif rs("canlook")=3 then%>
</font>黄金电影 <font color="#FFFFFF">
<%elseif rs("canlook")=0 then%>
</font>免费电影 <font color="#FFFFFF">
<%end if%>
</font><br>
<img src="../images/fang.gif" width="15" height="15">主演: <%content=rs("name")
if len(content)>7 then content=left(content,7)&"…"
response.write content
%><br>
<img src="../images/fang.gif" width="15" height="15">地区: <font class="eng_S"><%=rs("where")%>地区</font><br>
<img src="../images/fang.gif" width="15" height="15">上传: <span class="eng_S"><%=rs("dateandtime")%></span> <br>
<img src="../images/fang.gif" width="15" height="15">推荐: <SPAN class=xinxin><%=rs("softlevel")%></SPAN><br>
<img src="../images/fang.gif" width="15" height="15">点播: <strong><%=rs("hits")%></strong></td>
</tr>
<tr bgcolor="#327600">
<td colspan=2></td>
</tr>
</table><%rs.movenext%>
</td>
</tr>
<tr>
<% End If %>
</tr>
<tr>
<td colspan="2">
<% i=i+2
if i>=MaxPerPage then exit do
loop
%>
</td>
</tr>
</table>
<%
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
response.write "<form method=Post action="&filename&"?typeid="&typeid&">"
Response.Write "<table border=""0"" cellspacing=""1"" width=""100%"">"
response.write "<tr><td width=""30%"">"
Response.Write "共有影片:<font face=""arial"" color=""red"">"&totalnumber&"</font>部 页次:<font face=""arial"" color=""red"">"&CurrentPage&"</font>/"&n&"页</td>"
response.write "<td width=""34%""><div align=""right"">"
if CurrentPage<2 then
response.write "<font color='CCCCCC'>首页 上一页</font> "
else
response.write "<a href="&filename&"?typeid="&typeid&"&page=1&>首页</a> "
response.write "<a href="&filename&"?typeid="&typeid&"&page="&CurrentPage-1&">上一页</a> "
end if
if n-currentpage<1 then
response.write "<font color='CCCCCC'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?typeid="&typeid&"&page="&(CurrentPage+1)
response.write ">下一页</a> <a href="&filename&"?typeid="&typeid&"&page="&n&">尾页</a>"
end if
Response.Write "</div></td></tr></table>"
' response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=2 maxlength=10 class=smallInput value="¤tpage&">"
' response.write " <input class=buttonface type='submit' value='GO' name='typeid'></form>"
end function
function showpage1(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
Response.Write "<table border=""0"" cellspacing=""1"" width=""100%"">"
response.write "<tr><td width=""26%"">"
response.write "<form method=Post action="&filename&"?typeid="&typeid&">"
response.write " 共<b><font color=#FF0000>"&totalnumber&"</font></b>部 <b><font color=#FF0000>"&maxperpage&"</font></b>部/页 "
response.write "<strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>页 </td>"
if CurrentPage>1 then
response.write "<td width='76'><a href="&filename&"?page=1&typeid="&typeid&">首页</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a></td>"
else
response.write "<td width='76'>首页 上一页</td>"
end if
pp=CurrentPage-2
if pp<1 then
pp=1
end if
for pno=pp to n
p=p+1
if pno=CurrentPage then
response.write "<td width='33'><b><font color=#FF0000>["&pno&"]</font></b> </td>"
else
response.write "<td width='33'><b><a href='class.asp?typeid="&typeid&"&page="&pno&"'>["&pno&"]</a></b> </td>"
end if
if p>=5 then exit for
next
if CurrentPage< n then
response.write "<td width='76'><a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">下一页</a> "
response.write "<a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a></td>"
else
response.write "<td width='76'>下一页 尾页</td>"
end if
response.write " <td width='36'>转到:</TD><td width='73'><input type='text' name='page' size=4 maxlength=4 class=smallInput value="¤tpage&" style='font-size:9pt;background-color:#f7f7f7;border-left: 1px solid rgb(192,192,192); border-right: 1px solid rgb(192,192,192); border-top: 1px solid rgb(192,192,192); border-bottom: 1px solid rgb(192,192,192)'>"
response.write " <input name='submit' type='image' src='../images/search.gif' width='24' height='15'>"
end function
sub gotopage
end sub
%>
</tr></table>
</TR>
</TABLE>
<TR>
<TD bgColor=#000000 height=1></TD></TR></TABLE>
</BODY></HTML><!--#include file="end.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -