% dim mainsql,strurl,rsmain,bstr1,isbest,show_list,classid,strPlayerUrl strurl="photo.asp" isbest=cint(request.QueryString("isbest")) classid=request.QueryString("classid") call sysshow() if isbest=1 then mainsql=mainsql&" and user_isbest=1" if strurl="photo.asp" then strurl=strurl&"?isbest=1" else strurl=strurl&"&isbest=1" end if bstr1="→推薦相片" end if If IsNumeric(classid) Then classid=CLNG(classid) If classid>0 Then mainsql= mainsql & " and sysClassid=" & classid & " " elseif classid=-1 then mainsql= mainsql & " and isBigHead=1 " end if if strurl="photo.asp" then strurl=strurl&"?classid=" & classid end if End If strPlayerUrl= Replace(strurl,"photo.asp","photoplayer.asp") call sub_showuserlist(mainsql,strurl) G_P_Show=replace(G_P_Show,"$show_list$",show_list) response.Write G_P_Show&oblog.site_bottom sub sub_showuserlist(sql,strurl) dim topn,msql G_P_PerMax=int(oblog.CacheConfig(38)) G_P_FileName=strurl if request("page")<>"" then G_P_This=cint(request("page")) else G_P_This=1 end if msql="select top "&clng(oblog.CacheConfig(39))&" file_path,file_readme,oblog_upfile.userid,user_dir,username,nickname,user_folder,logid from [oblog_user],oblog_upfile where oblog_user.userid=oblog_upfile.userid and isphoto=1 "&sql&" And isPower=0 order by fileid desc" if not IsObject(conn) then link_database Set rsmain=Server.CreateObject("Adodb.RecordSet") 'response.Write(msql) rsmain.Open msql,Conn,1,1 if rsmain.eof and rsmain.bof then show_list="
" show_list=show_list&"當(dāng)前位置:首頁→2008年拓展訓(xùn)練團(tuán)隊(duì)相冊(cè)(共調(diào)用" & G_P_AllRecords & " 個(gè)相片)" 'bstr=trim(Request.ServerVariables("query_string")) 'if bstr<>"" then bstr="photo.asp?"&replace(replace(bstr,"&isbest=1",""),"isbest=1","")&"&isbest=1" else bstr="photo.asp?isbest=1" show_list=show_list&bstr1&" |
" show_list=show_list& GetSysClasses & " |
"& vbcrlf else 'title="簡(jiǎn)介:"&oblog.filt_html(rsmain(1)) 'userurl="" userurl="" imgsrc=rsmain(0) imgsrc=replace(imgsrc,right(imgsrc,3),"jpg") imgsrc=replace(imgsrc,right(imgsrc,len(imgsrc)-InstrRev(imgsrc,"/")),"pre"&right(imgsrc,len(imgsrc)-InstrRev(imgsrc,"/"))) if not fso.FileExists(Server.MapPath(imgsrc)) then imgsrc=rsmain(0) end if if rsmain(5)<>"" then userurl=userurl&oblog.filt_html(rsmain(5))&"" else userurl=userurl&oblog.filt_html(rsmain(4))&"" end if show_list=show_list&" | 來自:"&userurl&" | "& vbcrlf
i=i+1
if not rsmain.eof then rsmain.movenext
end if
next
show_list=show_list&"