3.1-下載中的“圖片”三合一功能(2)_風(fēng)訊Cms教程
教程Tag:暫無(wú)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" '熱門(mén)
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教程:
- 最簡(jiǎn)單的欄目切換方法(樣式系列之欄目切換篇2)
- 我也放個(gè)欄目切換代碼,簡(jiǎn)簡(jiǎn)單單的。
- 搜狐女性頻道幻燈效果(幻燈系列之flash特效篇)
- 有效控制新聞內(nèi)容的圖片的尺寸
- 現(xiàn)提供增加<目錄生成規(guī)則>的方法!
- 風(fēng)訊里面上下篇標(biāo)簽DIV模式下浮動(dòng)的解決方法!
- 風(fēng)訊目錄路徑自由選擇的實(shí)現(xiàn)方法
- 新聞列表讀取內(nèi)容時(shí)去掉html代碼
- 添加文字廣告的解決方案!
- 發(fā)些滾動(dòng)的代碼
- 標(biāo)題下的分隔線在4.0中如何設(shè)置,還有標(biāo)題的行間距
- 隨時(shí)更換模版、廣告等,無(wú)須重新生成整站,共享出來(lái)供討論
風(fēng)訊Cms教程教程Rss訂閱Cms教程搜索
風(fēng)訊Cms教程推薦
- 風(fēng)訊CMS后臺(tái)“系統(tǒng)參數(shù),新聞系統(tǒng)”視頻教程!
- 為什么選擇風(fēng)訊內(nèi)容網(wǎng)站管理系統(tǒng)?
- v3.2 商城收藏夾中點(diǎn)擊購(gòu)買(mǎi)時(shí)出現(xiàn)重定義的解決辦法
- 風(fēng)訊CMS后臺(tái)“標(biāo)簽庫(kù)”模塊介紹之視頻教程!
- 風(fēng)訊4.01012版位置導(dǎo)航處總多出新聞系統(tǒng)站點(diǎn)標(biāo)題的修改!
- 自定義字段的應(yīng)用方法
- 風(fēng)訊系統(tǒng)文章模塊功能簡(jiǎn)介
- 3.0Sp1刪除下載、新聞的同時(shí),刪除遠(yuǎn)程存圖的圖片
- 最簡(jiǎn)單的欄目切換方法(樣式系列之欄目切換篇2)
- 解決刪除欄目之后,欄目英文名稱無(wú)法使用的問(wèn)題
- 相關(guān)鏈接:
- 教程說(shuō)明:
風(fēng)訊Cms教程-3.1-下載中的“圖片”三合一功能(2)
。