帝國CMS靈動標簽調用當前欄目縮略圖
發布時間:2019-10-29 來源:未知 瀏覽: 關鍵詞:
通過本教程實現帝國CMS欄目頁使用靈動標簽調用當前欄目 縮略圖
[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<img src="<?=$bqr[classimg]?>" 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]
責任編輯:實速科技