精華 當(dāng)?shù)蹏?guó)PHP系統(tǒng)CMS欄目沒有設(shè)置封面圖片,怎樣顯示指定圖片?
<p>靈動(dòng)標(biāo)簽調(diào)用的標(biāo)簽內(nèi)的模版顯示了欄目縮放圖</p>
當(dāng)欄目沒有欄目縮放圖時(shí),則顯示指定圖片:
[e:loop={"select classid, classname,classimg,classpath from '[!db.pre!]enewsclass' where bclassid='$bclassid' order by 'classid' desc ",7,24,0}]
<a href="http://m.viagraonlinego.com/<?=$public_r[newsurl]?><?=$bqr[classpath]?>"> <img src="http://m.viagraonlinego.com/<?=$bqr[classimg]?$bqr[classimg]:'/e/data/images/notimg.gif'?>" ></a>
<a href="http://m.viagraonlinego.com/<?=$public_r[newsurl]?><?=$bqr[classpath]?>"><?=$bqr[classname]?></a>
[/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]
[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]<img src="http://m.viagraonlinego.com/<?=$bqr[classimg]?>" alt="[!---class.name--]">[/e:loop]