亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

靈動標簽調用欄目縮略圖的方法

  發(fā)布時間:2020-02-02 15:24:11   作者:佚名   我要評論
這篇文章主要介紹了靈動標簽調用欄目縮略圖的方法,需要的朋友可以參考下

頻道封面頁面部分代碼,使用靈動標簽調用的標簽內的模版顯示了欄目縮放圖,但是部分欄目沒有欄目縮放圖的時候,想讓它顯示一個指定的圖片,應該怎么辦?

[e:loop={"select classid, classname,classimg,classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",7,24,0}]
<DIV class=ibuscont2>
<DIV class=ibuscont>
<H1><A href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>"><IMG height=95 src="<?=$bqr[classimg]?$bqr[classimg]:'/e/data/images/notimg.gif'?>" width=182 ></A> </H1>
<H2><A href="<?=$public_r[newsurl]?><?=$bqr[classpath]?>"><?=$bqr[classname]?></A></H2>
[/e:loop]

帝國CMS靈動標簽調用當前欄目縮略圖

通過本教程實現帝國CMS欄目頁使用靈動標簽調用當前欄目 縮略圖

[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<img src="<?=$bqr[classimg]?>" alt="[!---class.name--]" width="950" height="300" >[/e:loop]

以下代碼實現,如果沒有上傳欄目縮略圖就顯示一張默認圖片:

[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<?=$bqr[classimg]?$bqr[classimg]:'/e/data/images/notimg.gif'?>[/e:loop]

好了這篇文章就介紹到這了

相關文章

最新評論