3.1-下載中的“圖片”三合一功能(2)_風(fēng)訊Cms教程
教程Tag:暫無Tag,歡迎添加,賺取U幣!
Dim PicDownListObj,PicDownListSql,i,AllClassID,PicSQL,Opentype
If CSSStyle<>"" then CSSStyle=" Class="&CSSStyle
TitleNumberStr = GetTitleNumberStr(TitleNumberStr)
OpenTypeStr = GetOpenTypeStr(OpenTypeStr)
CompatPicStr =GetCompatPicStr(CompatPicStr,"","",RowNumberStr)
If PicWidth="" then PicWidth=60
If PicHeight="" then PicHeight=60
If NewNumberStr="" then NewNumberStr=1
If RowHeightStr <> "" then RowHeightStr = " Height=""" & RowHeightStr & """"
If ClassListStr="" or ClassListStr="ThisClass" then
If RefreshType="Class" then
AllClassID = "''" & RefreshID & "''" & ChildClassIDList(RefreshID)
AllClassID = Replace(AllClassID,"''","'")
AllClassID = " and ClassID in ( "& AllClassID &" )"
Else
AllClassID = ""
End If
Else
Dim TempRsHotDownListObj
Set TempRsHotDownListObj = Conn.Execute("FS_ReFunSoonClass '" & ClassListStr & "'")
if Not TempRsHotDownListObj.Eof then
AllClassID = "''" & TempRsHotDownListObj("ClassID") & "''" & ChildClassIDList(TempRsHotDownListObj("ClassID"))
AllClassID = Replace(AllClassID,"''","'")
AllClassID = " and ClassID in ( "& AllClassID &" )"
else
LastDownList = ""
Set TempRsHotDownListObj = Nothing
Exit Function
end if
Set TempRsHotDownListObj = Nothing
End if
Select Case SelectTypeStr
Case "1" '最新
SelectTypeStr = " order by Addtime Desc"
Case "2" '推薦
SelectTypeStr = " and RecTF=1 order by Addtime Desc"
Case "3" '熱門
SelectTypeStr = " order by Clicknum Desc"
End Select
Dim RsPic
PicSQL = "Select top "& NewNumberStr &" name,Pic,DownLoadID From FS_DownLoad Where AuditTF=1 " &AllClassID & SelectTypeStr
Set RsPic=Server.CreateObject("Adodb.RecordSet")
RsPic.Open PicSQL,conn,1,1
If not RsPic.eof then
Downpic_Kimli = "<table border=""0"" cellpadding=""0"" cellspacing=""0"" width=""100%"">" & Chr(13) & Chr(10)
do while Not RsPic.Eof
Downpic_Kimli = Downpic_Kimli & "<tr>" & Chr(13) & Chr(10)
for i = 1 to RowNumberStr
Downpic_Kimli = Downpic_Kimli & "<td " & RowHeightStr & " align=center><a href="&GetOneDownLoadLinkURL(RsPic("DownLoadID")) & OpenTypeStr &"><Img Border=0 Src='" &RsPic("Pic")& "' height="&PicHeight&" Width="&PicWidth&"></a>"
If Showtitlestr="1" then
Downpic_Kimli = Downpic_Kimli & "<br><a href="&GetOneDownLoadLinkURL(RsPic("DownLoadID")) & OpenTypeStr & CSSStyle &">"& RsPic("name") &"</a></td>" & Chr(13) & Chr(10)
Else
Downpic_Kimli = Downpic_Kimli & "</td>" & Chr(13) & Chr(10)
End if
RsPic.MoveNext
If RsPic.Eof then
Exit For
End if
Next
Downpic_Kimli = Downpic_Kimli & "</tr>" & Chr(13) & Chr(10) & CompatPicStr & Chr(13) & Chr(10)
相關(guān)風(fēng)訊Cms教程:
風(fēng)訊Cms教程教程Rss訂閱Cms教程搜索
風(fēng)訊Cms教程推薦
- 風(fēng)訊CMS后臺“系統(tǒng)參數(shù),新聞系統(tǒng)”視頻教程!
- 為什么選擇風(fēng)訊內(nèi)容網(wǎng)站管理系統(tǒng)?
- v3.2 商城收藏夾中點擊購買時出現(xiàn)重定義的解決辦法
- 風(fēng)訊CMS后臺“標(biāo)簽庫”模塊介紹之視頻教程!
- 風(fēng)訊4.01012版位置導(dǎo)航處總多出新聞系統(tǒng)站點標(biāo)題的修改!
- 自定義字段的應(yīng)用方法
- 風(fēng)訊系統(tǒng)文章模塊功能簡介
- 3.0Sp1刪除下載、新聞的同時,刪除遠程存圖的圖片
- 最簡單的欄目切換方法(樣式系列之欄目切換篇2)
- 解決刪除欄目之后,欄目英文名稱無法使用的問題
- 相關(guān)鏈接:
- 教程說明:
風(fēng)訊Cms教程-3.1-下載中的“圖片”三合一功能(2)
。