Pic.asp
资源名称:7.rar [点击查看]
上传用户:lfyh0123
上传日期:2020-11-04
资源大小:200k
文件大小:23k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <!--#include file="wapls_up.asp"-->
- <%
- '==================================
- '=文 件 名:pic.asp
- '=适用版本:蓝色世纪WAP网站管理系统(CMS)V1.1
- '=官方版权:http://www.songfr.cn
- '=文件功能:网站图像前台
- '=文件作者:蓝色阳光
- '=发行时间:2007-02-01
- '==================================
- IF Request.QueryString("Action")="view" Then
- call view
- elseIF Request.QueryString("Action")="cat" Then
- call cat
- elseIF Request.QueryString("Action")="cla" Then
- call cla
- elseIF Request.QueryString("Action")="er" Then
- call er
- elseIF Request.QueryString("Action")="fl" Then
- call fl
- elseIF Request.QueryString("Action")="gs" Then
- call gs
- elseIF Request.QueryString("Action")="d" Then
- call d
- elseIF Request.QueryString("Action")="remarklist" Then
- call remarklist
- else
- call main
- End IF
- '========图像主页列表=======
- Function main
- dim sql
- %>
- <card id="index" title="图像频道">
- <p align="<%=const1%>">
- <%
- if len(mb_pic)>1 then
- response.write ""&outHTM(mb_pic)&"<br/>"
- end if
- set rsc=server.createobject("ADODB.Recordset")
- Sqlc="select top "&pagenum&" * from wapls_pic order by istop=1,pic_date desc"
- rsc.open Sqlc,conn,1,1
- if not (rsc.bof and rsc.eof) then
- For i=1 to rsc.RecordCount
- If Rsc.Eof Then
- exit For
- End If
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/biao.gif' alt='.'/>"
- end if
- if rsc("pic_good")=2 then%>[精]<%end if%><%if rsc("pic_good")=1 then%>[荐]<%end if%><%if rsc("istop")=1 then%>[顶]<%end if%><a href="?Action=view&id=<%=rsc("pic_id")%>"><%=utf8(rsc("pic_title"))%></a><%
- if DateDiff("d",rsc("pic_date"),now())<1 then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/new.gif' alt='NEW'/>"
- else
- response.write " NEW "
- end if
- end if%><br/><%Rsc.MoveNext
- Next
- end if
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>
- ----------<br/>
- <%end if
- set rs=server.createobject("ADODB.Recordset")
- Sql="select * from wapls_pic_cat order by cat_num asc"
- rs.open Sql,conn,1,1
- if not (rs.bof and rs.eof) then
- For i=1 to rs.RecordCount
- If Rs.Eof Then
- exit For
- End If
- if rs("cat_br")="1" then
- br="<br/>"
- else
- br=""
- end if%>
- <a href="?Action=cat&id=<%=rs("cat_id")%>"><%=utf8(rs("cat_name"))%></a><%=br%>
- <%
- Rs.MoveNext
- Next
- end if
- Rsc.close
- set rsc=nothing
- Rs.close
- set rs=nothing
- end Function
- '========图像分类列表=======
- Function cat
- catid=TRim(Request("id"))
- set rs=server.createobject("ADODB.Recordset")
- Sql="select * from wapls_pic_cat WHERE cat_id="&catid
- rs.open Sql,conn,1,1
- if not (rs.bof and rs.eof) then
- title=rs("cat_name")
- cattitle=rs("cat_title")
- %>
- <card id="index" title="<%=title%>分类">
- <p align="<%=const1%>">
- <%
- if len(cattitle)>1 then
- %>
- <%=outHTM(rs("cat_title"))%><br/>
- <%
- end if
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic_class WHERE cat_id="&catid&" order by class_num asc"
- rsv.open Sqlv,conn,1,1
- if not (rsv.bof and rsv.eof) then
- page = Request("Page")
- rsv.PageSize = pagenum '一页显示记录
- IF Not IsEmpty(Page) Then
- IF Not IsNumeric(Page) Then '判断Page是否为数字
- Page=1
- Else
- Page=Cint(Page) '转换成短整形Integer
- End IF
- IF Page > rsv.PageCount Then
- rsv.AbsolutePage = rsv.PageCount '设置当前显示页等于最后一页
- ElseIF Page <= 0 Then
- rsv.AbsolutePage = 1 '设置当前页等于第一页
- Else
- rsv.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
- End IF
- Else
- rsv.AbsolutePage = 1
- End IF
- Page = rsv.AbsolutePage
- For i=1 to rsv.PageSize
- If rsv.Eof Then
- Exit For
- End If
- if rsv("class_br")="1" then
- br="<br/>"
- else
- br=""
- end if
- %>
- <a href="?Action=cla&id=<%=rsv("class_id")%>"><%=utf8(rsv("class_name"))%></a><%=br%>
- <%
- rsv.MoveNext
- Next
- if page>=rsv.PageCount then
- 'Response.Write ("[下-页]")
- else
- Response.Write("[<a href='?Action=cat&id="&catid&"&Page=" & (Page+1) & "'>下-页</a>]<br/>")
- end if
- if page<=1 then
- 'Response.Write ("[上-页] ")
- else
- Response.Write("[<a href='?Action=cat&id="&catid&"&Page=" & (Page-1) & "'>上-页</a>]<br/>")
- end if
- if rsv.PageCount>2 then
- %><input name="Page<%=minute(now)%><%=second(now)%>" format="*N" maxlength="50" size="2" value="<%=page+1%>"/>
- <anchor>GO>><go href="?Action=cat&id=<%=catid%>" method="post">
- <postfield name="Page" value="$(Page<%=minute(now)%><%=second(now)%>)"/></go></anchor><br/>
- 共(<%=utf8(page)%>/<%=rsv.pageCount%>)页<br/><%end if%>
- <%
- else
- response.write "暂无分类!<br/>"
- end if
- Rsv.close
- set rsv=nothing
- else
- response.redirect "wapls_404.asp?id=2"
- end if
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>
- ----------<br/>
- <%end if%>
- <a href="pic.asp">[图像频道]</a>
- <%
- end Function
- '========图像子分类列表=======
- Function cla
- classid=TRim(Request("id"))
- set rs=server.createobject("ADODB.Recordset")
- Sql="select * from wapls_pic_class WHERE class_id="&classid
- rs.open Sql,conn,1,1
- catid=rs("cat_id")
- if not (rs.bof and rs.eof) then
- title=rs("class_name")
- classtitle=rs("class_title")
- %>
- <card id="index" title="<%=title%>">
- <p align="<%=const1%>">
- <%
- if len(classtitle)>1 then
- %>
- <%=outHTM(rs("class_title"))%><br/>
- <%
- end if
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE class_id="&classid&" order by pic_date desc"
- rsv.open Sqlv,conn,1,1
- if not (rsv.bof and rsv.eof) then
- page = Request("Page")
- rsv.PageSize = pagenum '一页显示记录
- IF Not IsEmpty(Page) Then
- IF Not IsNumeric(Page) Then '判断Page是否为数字
- Page=1
- Else
- Page=Cint(Page) '转换成短整形Integer
- End IF
- IF Page > rsv.PageCount Then
- rsv.AbsolutePage = rsv.PageCount '设置当前显示页等于最后一页
- ElseIF Page <= 0 Then
- rsv.AbsolutePage = 1 '设置当前页等于第一页
- Else
- rsv.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
- End IF
- Else
- rsv.AbsolutePage = 1
- End IF
- Page = rsv.AbsolutePage
- For i=1 to rsv.PageSize
- If rsv.Eof Then
- Exit For
- End If
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/biao.gif' alt='.'/>"
- end if
- if rsv("pic_good")=2 then%>[精]<%end if%><%if rsv("pic_good")=1 then%>[荐]<%end if%><%if rsv("istop")=1 then%>[顶]<%end if%><a href="?Action=view&id=<%=rsv("pic_id")%>"><%=utf8(rsv("pic_title"))%></a><%
- if DateDiff("d",rsv("pic_date"),now())<1 then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/new.gif' alt='NEW'/>"
- else
- response.write " NEW "
- end if
- end if
- %><br/><%rsv.MoveNext
- Next
- if page>=rsv.PageCount then
- 'Response.Write ("[下-页]")
- else
- Response.Write("[<a href='?Action=cat&id="&classid&"&Page=" & (Page+1) & "'>下-页</a>]<br/>")
- end if
- if page<=1 then
- 'Response.Write ("[上-页] ")
- else
- Response.Write("[<a href='?Action=cat&id="&classid&"&Page=" & (Page-1) & "'>上-页</a>]<br/>")
- end if
- if rsv.PageCount>2 then
- %><input name="Page<%=minute(now)%><%=second(now)%>" format="*N" maxlength="50" size="2" value="<%=page+1%>"/>
- <anchor>GO>><go href="?Action=cat&id=<%=classid%>" method="post">
- <postfield name="Page" value="$(Page<%=minute(now)%><%=second(now)%>)"/></go></anchor><br/>
- 共(<%=utf8(page)%>/<%=rsv.pageCount%>)页<br/><%end if%>
- <%
- else
- response.write "暂无图像!<br/>"
- end if
- Rsv.close
- set rsv=nothing
- else
- response.redirect "wapls_404.asp?id=2"
- end if
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>
- ----------<br/>
- <%end if%>
- <a href="?Action=cat&id=<%=catid%>">[返回分类]</a><br/>
- <a href="pic.asp">[图像频道]</a>
- <%
- end Function
- '========图像内容=======
- Function view
- picid=TRim(Request("id"))
- session("wapls_sessiondown")=wapls_sessiondown
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE pic_id="&picid
- rsv.open Sqlv,conn,1,3
- pic_content=rsv("pic_content")
- pic_showpic=rsv("pic_showpic")
- Set Rs0 = Server.CreateObject("Adodb.Recordset")
- Sql0 = "SELECT remark_id FROM wapls_remark WHERE class_id=2 and list_id="&rsv("pic_id")&" order by remark_id desc"
- Rs0.Open Sql0,conn,1,1
- remark=rs0.RecordCount
- Rs0.close
- set rs0=nothing
- %>
- <card id="index" title="图像描述">
- <p align="<%=const1%>">
- <b><%=utf8(rsv("pic_title"))%></b><br/>
- 位置:<a href="pic.asp">图像</a>>><a href="?Action=cat&id=<%=rsv("cat_id")%>"><%=utf8(rsv("cat_name"))%></a>>><a href="?Action=cla&id=<%=rsv("class_id")%>"><%=utf8(rsv("class_name"))%></a><br/>
- <%
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>
- ----------<br/>
- <%
- end if
- if len(pic_showpic)>1 then
- response.write "<img src='"&pic_showpic&"' alt='截图'/><br/>"
- end if%><a href="?Action=remarklist&id=<%=rsv("pic_id")%>">相关评论(<%=remark%>)</a><br/>
- 图像格式:<a href="?Action=gs&gs=<%=rsv("pic_gs")%>"><%=rsv("pic_gs")%></a><br/>
- 图像大小:<%=rsv("pic_size")%><br/>
- <%
- if len(mb_logo)>1 then
- response.write "推荐程度:"
- response.write "<img src='"&mb_logo&"/"&rsv("pic_commend")&"star.gif' alt='"&rsv("pic_commend")&"'/><br/>"
- else
- response.write "推荐程度:"
- if rsv("pic_commend")=2 then
- response.write "**"
- elseif rsv("pic_commend")=3 then
- response.write "***"
- elseif rsv("pic_commend")=4 then
- response.write "****"
- elseif rsv("pic_commend")=5 then
- response.write "*****"
- else
- response.write "*"
- end if
- response.write "<br/>"
- end if
- set rsfl=server.createobject("ADODB.Recordset")
- Sqlfl="select * from wapls_fl WHERE fl_id="&rsv("pic_fl")
- rsfl.open Sqlfl,conn,1,1
- %>
- 所属分类:<a href="?Action=fl&id=<%=rsv("pic_fl")%>"><%=rsfl("fl_title")%></a><br/>
- 浏览<%=rsv("pic_rcount")%>次/下载<%=rsv("pic_dcount")%>次<br/>
- 添加日期:<%=Year(rsv("pic_date"))%>-<%=Month(rsv("pic_date"))%>-<%=day(rsv("pic_date"))%>/<%=Hour(rsv("pic_date"))%>:<%=Minute(rsv("pic_date"))%><br/>
- ==图像下载==<br/>
- <%if rsv("user_view")<>"0" then
- response.write "下载权限:"
- if rsv("user_view")="1" then
- response.write "会员"
- end if
- if rsv("user_view")="2" then
- response.write "VIP"
- end if
- response.write "<br/>需要金额:<b>"&rsv("moneypay")&"</b>金币<br/>"
- end if
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/down.gif' alt='>>'/>"
- end if%><a href="?Action=d&id=<%=rsv("pic_id")%>&url=1"><%=rsv("pic_url1_name")%></a><br/>
- <%if rsv("pic_url2")<>"" then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/down.gif' alt='>>'/>"
- end if%><a href="?Action=d&id=<%=rsv("pic_id")%>&url=2"><%=rsv("pic_url2_name")%></a><br/><%end if%>
- <%if rsv("pic_url3")<>"" then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/down.gif' alt='>>'/>"
- end if%><a href="?Action=d&id=<%=rsv("pic_id")%>&url=3"><%=rsv("pic_url3_name")%></a><br/><%end if%>
- <%if rsv("pic_url4")<>"" then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/down.gif' alt='>>'/>"
- end if%><a href="?Action=d&id=<%=rsv("pic_id")%>&url=4"><%=rsv("pic_url4_name")%></a><br/><%end if%>
- <a href="?Action=er&id=<%=rsv("pic_id")%>">这里投诉无法下载</a><br/>
- <%
- if len(pic_content)>1 then
- response.write ""&pic_content&"<br/>"
- end if
- Rsfl.close
- set rsfl=nothing
- Set Rs1 = Server.CreateObject("Adodb.Recordset")
- Sql1="SELECT * FROM wapls_pic WHERE cat_id="&rsv("cat_id")&" and pic_id>"&rsv("pic_id")&" order by pic_id asc"
- Rs1.Open Sql1,conn,1,1
- if not (rs1.bof and rs1.eof) then
- Response.Write("<br/>下一个:<a href='?Action=view&id="&rs1("pic_id")&"'>"&rs1("pic_title")&"</a>")
- end if
- Rs1.close
- set rs1=nothing
- Set Rs1 = Server.CreateObject("Adodb.Recordset")
- Sql1="SELECT * FROM wapls_pic WHERE cat_id="&rsv("cat_id")&" and pic_id<"&rsv("pic_id")&" order by pic_id desc"
- Rs1.Open Sql1,conn,1,1
- if not (rs1.bof and rs1.eof) then
- Response.Write("<br/>上一个:<a href='?Action=view&id="&rs1("pic_id")&"'>"&rs1("pic_title")&"</a>")
- end if
- Rs1.close
- set rs1=nothing
- %>
- <br/><a href="?Action=cla&id=<%=rsv("class_id")%>">[返回上级]</a>
- <br/><a href="?Action=cat&id=<%=rsv("cat_id")%>">[返回分类]</a>
- <%
- rsv("pic_rcount")=rsv("pic_rcount")+1
- rsv.update()
- Rsv.close
- set rsv=nothing
- end Function
- '========图像下载=======
- Function d
- if session("wapls_sessiondown")<>wapls_sessiondown then
- response.redirect "wapls_404.asp?id=3"
- end if
- picid=TRim(Request("id"))
- url=TRim(Request("url"))
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE pic_id="&picid
- rsv.open Sqlv,conn,1,3
- if not (rsv.bof and rsv.eof) then
- rsv("pic_dcount")=rsv("pic_dcount")+1
- rsv.update()
- %>
- <!--#include file="Wapls_moneypay.asp"-->
- <%
- if url=2 then
- response.redirect rsv("pic_url2")
- elseif url=3 then
- response.redirect rsv("pic_url3")
- elseif url=4 then
- response.redirect rsv("pic_url4")
- else
- response.redirect rsv("pic_url1")
- end if
- else
- response.redirect "wapls_404.asp?id=27"
- end if
- else
- if url=2 then
- response.redirect rsv("pic_url2")
- elseif url=3 then
- response.redirect rsv("pic_url3")
- elseif url=4 then
- response.redirect rsv("pic_url4")
- else
- response.redirect rsv("pic_url1")
- end if
- end if
- Rsv.close
- set rsv=nothing
- else
- response.redirect "wapls_404.asp?id=2"
- end if
- end Function
- '========图像报错=======
- Function er
- picid=TRim(Request("id"))
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE pic_id="&picid
- rsv.open Sqlv,conn,1,3
- rsv("pic_err")="1"
- rsv.update()
- Rsv.close
- set rsv=nothing
- %>
- <card id="index" title="图像报错">
- <p align="<%=const1%>">
- 谢谢您的投诉,我们会尽快的解决此类的错误的!<br/>
- <%if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else%>
- ----------<br/>
- <%end if%>
- <a href="?Action=view&id=<%=picid%>">[返回内容]</a><br/>
- <a href="pic.asp">[图像频道]</a>
- <%
- end Function
- '========图像评论=======
- Function remarklist
- if request.form("addremark")="true" then
- listid=TRim(Request("id"))
- yz=Request("yz")
- yz1=Request("yz1")
- if yz<>yz1 then
- response.redirect "wapls_404.asp?id=9"
- else
- remark=utf8(Request("remark"))
- remarker=utf8(Request("remarker"))
- if remarker<>"" then
- else
- remarker="游客"
- end if
- if remark="" then response.redirect "wapls_404.asp?id=12"
- if Session("remark")=remark and remark<>"" then response.redirect "wapls_404.asp?id=13"
- Session("remark")=remark
- Session.Timeout=60
- sql="select * from wapls_remark"
- set rs=server.createobject("adodb.recordset")
- rs.open sql,conn,1,3
- rs.addnew
- rs("class_id")="2"
- rs("remark")=remark
- rs("list_id")=listid
- rs("remarker")=remarker
- rs("remarker_ip")=userip
- rs.update
- rs.close
- set rs=nothing
- response.redirect "?Action=view&id="&listid
- end if
- end if
- listid=TRim(Request("id"))
- %>
- <card id="index" title="图像评论">
- <p align="<%=const1%>">
- <%
- set rs=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_remark WHERE class_id=2 and list_id="&listid&" order by remark_id desc"
- rs.open Sqlv,conn,1,1
- if not (rs.bof and rs.eof) then
- page = Request("Page")
- rs.PageSize = pageremark '一页显示记录
- IF Not IsEmpty(Page) Then
- IF Not IsNumeric(Page) Then '判断Page是否为数字
- Page=1
- Else
- Page=Cint(Page) '转换成短整形Integer
- End IF
- IF Page > rs.PageCount Then
- rs.AbsolutePage = rs.PageCount '设置当前显示页等于最后一页
- ElseIF Page <= 0 Then
- rs.AbsolutePage = 1 '设置当前页等于第一页
- Else
- rs.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
- End IF
- Else
- rs.AbsolutePage = 1
- End IF
- Page = rs.AbsolutePage
- For i=1 to rs.PageSize
- If rs.Eof Then
- Exit For
- End If
- %>
- <%=utf8(i+(page-1)*rs.PageSize)%>.<%=utf8(rs("remarker"))%>(<%=Month(rs("remark_date"))%>-<%=day(rs("remark_date"))%>/<%=Hour(rs("remark_date"))%>:<%=Minute(rs("remark_date"))%>)<br/><%=utf8(rs("remark"))%><br/>
- <%
- rs.MoveNext
- Next
- if page>=rs.PageCount then
- 'Response.Write ("[下-页]")
- else
- Response.Write("[<a href='?Action=remarklist&id="&listid&"&Page=" & (Page+1) & "'>下-页</a>]<br/>")
- end if
- if page<=1 then
- 'Response.Write ("[上-页] ")
- else
- Response.Write("[<a href='?Action=remarklist&id="&listid&"&Page=" & (Page-1) & "'>上-页</a>]<br/>")
- end if
- if rs.PageCount>2 then
- %><input name="Page<%=minute(now)%><%=second(now)%>" format="*N" maxlength="50" size="2" value="<%=page+1%>"/>
- <anchor>GO>><go href="?Action=remarklist&id=<%=listid%>" method="post">
- <postfield name="Page" value="$(Page<%=minute(now)%><%=second(now)%>)"/></go></anchor><br/>
- 共(<%=utf8(page)%>/<%=rs.pageCount%>)页<br/><%end if%>
- <%
- else
- response.write "暂无评论!<br/>"
- end if
- rs.close
- set rs=nothing
- %>
- <br/>
- <%if softremark_ok=0 then%>
- 系统暂停开放发表评论<br/>
- <%else%>
- <%if softremark_ok=2 and session("name")="" then%>
- 目前只对会员开放评论功能<br/>
- <%else%>
- 发表评论:<br/>
- <input name="remark<%=minute(now)%><%=second(now)%>" maxlength="25" value="不错!支持!"/><br/>
- 验证:<input name="yz<%=minute(now)%><%=second(now)%>" format="*N" maxlength="4" size="7"/> <%=s%><br/><br/>
- <anchor>[确认提交]<go href="?Action=remarklist&id=<%=listid%>" method='post'>
- <postfield name="remark" value="$(remark<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="addremark" value="true"/>
- <postfield name="remarker" value="<%=session("name")%>"/>
- <postfield name="yz" value="$(yz<%=minute(now)%><%=second(now)%>)"/>
- <postfield name="yz1" value="<%=s%>"/>
- </go>
- </anchor><br/>
- <%
- end if
- end if
- %>
- <a href="?Action=view&id=<%=listid%>">[返回内容]</a><br/>
- <a href="pic.asp">[图像频道]</a>
- <%end Function
- '========分类下载列表=======
- Function fl
- flid=TRim(Request("id"))
- set rs=server.createobject("ADODB.Recordset")
- Sql="select * from wapls_fl WHERE fl_id="&flid
- rs.open Sql,conn,1,1
- if not (rs.bof and rs.eof) then
- title=rs("fl_title")
- %>
- <card id="index" title="<%=title%>">
- <p align="<%=const1%>">
- <%
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE pic_fl="&flid&" order by pic_date asc"
- rsv.open Sqlv,conn,1,1
- if not (rsv.bof and rsv.eof) then
- page = Request("Page")
- rsv.PageSize = pagenum '一页显示记录
- IF Not IsEmpty(Page) Then
- IF Not IsNumeric(Page) Then '判断Page是否为数字
- Page=1
- Else
- Page=Cint(Page) '转换成短整形Integer
- End IF
- IF Page > rsv.PageCount Then
- rsv.AbsolutePage = rsv.PageCount '设置当前显示页等于最后一页
- ElseIF Page <= 0 Then
- rsv.AbsolutePage = 1 '设置当前页等于第一页
- Else
- rsv.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
- End IF
- Else
- rsv.AbsolutePage = 1
- End IF
- Page = rsv.AbsolutePage
- For i=1 to rsv.PageSize
- If rsv.Eof Then
- Exit For
- End If
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/biao.gif' alt='.'/>"
- end if
- if rsv("pic_good")=2 then%>[精]<%end if%><%if rsv("pic_good")=1 then%>[荐]<%end if%><%if rsv("istop")=1 then%>[顶]<%end if%><a href="?Action=view&id=<%=rsv("pic_id")%>"><%=utf8(rsv("pic_title"))%></a><%
- if DateDiff("d",rsv("pic_date"),now())<1 then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/new.gif' alt='NEW'/>"
- else
- response.write " NEW "
- end if
- end if
- %><br/><%
- rsv.MoveNext
- Next
- if page>=rsv.PageCount then
- 'Response.Write ("[下-页]")
- else
- Response.Write("[<a href='?Action=fl&id="&flid&"&Page=" & (Page+1) & "'>下-页</a>]<br/>")
- end if
- if page<=1 then
- 'Response.Write ("[上-页] ")
- else
- Response.Write("[<a href='?Action=fl&id="&flid&"&Page=" & (Page-1) & "'>上-页</a>]<br/>")
- end if
- if rsv.PageCount>2 then
- %><input name="Page<%=minute(now)%><%=second(now)%>" format="*N" maxlength="50" size="2" value="<%=page+1%>"/>
- <anchor>GO>><go href="?Action=fl&id=<%=flid%>" method="post">
- <postfield name="Page" value="$(Page<%=minute(now)%><%=second(now)%>)"/></go></anchor><br/>
- 共(<%=utf8(page)%>/<%=rsv.pageCount%>)页<br/><%end if%>
- <%
- else
- response.write "暂无内容!<br/>"
- end if
- Rsv.close
- set rsv=nothing
- else
- response.redirect "wapls_404.asp?id=2"
- end if
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>----------<br/>
- <%
- end if
- %>
- <a href="pic.asp">[图像频道]</a>
- <%
- end Function
- '========格式下载列表=======
- Function gs
- gs=TRim(Request("gs"))
- %>
- <card id="index" title="<%=gs%>格式下载">
- <p align="<%=const1%>">
- <%
- set rsv=server.createobject("ADODB.Recordset")
- Sqlv="select * from wapls_pic WHERE pic_gs='"&gs&"' order by pic_date asc"
- rsv.open Sqlv,conn,1,1
- if not (rsv.bof and rsv.eof) then
- page = Request("Page")
- rsv.PageSize = pagenum '一页显示记录
- IF Not IsEmpty(Page) Then
- IF Not IsNumeric(Page) Then '判断Page是否为数字
- Page=1
- Else
- Page=Cint(Page) '转换成短整形Integer
- End IF
- IF Page > rsv.PageCount Then
- rsv.AbsolutePage = rsv.PageCount '设置当前显示页等于最后一页
- ElseIF Page <= 0 Then
- rsv.AbsolutePage = 1 '设置当前页等于第一页
- Else
- rsv.AbsolutePage = Page '如果大于零,显示当前页等于接收的页数
- End IF
- Else
- rsv.AbsolutePage = 1
- End IF
- Page = rsv.AbsolutePage
- For i=1 to rsv.PageSize
- If rsv.Eof Then
- Exit For
- End If
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/biao.gif' alt='.'/>"
- end if
- if rsv("pic_good")=2 then%>[精]<%end if%><%if rsv("pic_good")=1 then%>[荐]<%end if%><%if rsv("istop")=1 then%>[顶]<%end if%><a href="?Action=view&id=<%=rsv("pic_id")%>"><%=utf8(rsv("pic_title"))%></a><%
- if DateDiff("d",rsv("pic_date"),now())<1 then
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/new.gif' alt='NEW'/>"
- else
- response.write " NEW "
- end if
- end if
- %><br/><%
- rsv.MoveNext
- Next
- if page>=rsv.PageCount then
- 'Response.Write ("[下-页]")
- else
- Response.Write("[<a href='?Action=gs&id="&gs&"&Page=" & (Page+1) & "'>下-页</a>]<br/>")
- end if
- if page<=1 then
- 'Response.Write ("[上-页] ")
- else
- Response.Write("[<a href='?Action=gs&id="&gs&"&Page=" & (Page-1) & "'>上-页</a>]<br/>")
- end if
- if rsv.PageCount>2 then
- %><input name="Page<%=minute(now)%><%=second(now)%>" format="*N" maxlength="50" size="2" value="<%=page+1%>"/>
- <anchor>GO>><go href="?Action=gs&id=<%=gs%>" method="post">
- <postfield name="Page" value="$(Page<%=minute(now)%><%=second(now)%>)"/></go></anchor><br/>
- 共(<%=utf8(page)%>/<%=rsv.pageCount%>)页<br/><%end if%>
- <%
- else
- response.write "暂无内容!<br/>"
- end if
- Rsv.close
- set rsv=nothing
- if len(mb_logo)>1 then
- response.write "<img src='"&mb_logo&"/fgx.gif' alt='.'/><br/>"
- else
- %>----------<br/>
- <%
- end if
- %>
- <a href="pic.asp">[图像频道]</a>
- <%end Function%>
- <br/><a href='index.asp'>[返回首页]</a>
- <!--#include file="wapls_down.asp"-->