fetch1("");?>” and save it."/> fetch1("");?>” and save it.">
Home > Article > CMS Tutorial > How does Empire CMS call thumbnails?
How does Empire CMS call thumbnails?
The example in this article describes the method of using Empire CMS to call the thumbnails of other tab columns that can be nested. Share it with everyone for your reference. The specific implementation method is as follows:
Empire CMS calls the column thumbnail, and other tags can be nested
The code is as follows:
<?php $cr=$empire->fetch1("select classimg from phome_enewsclass where classid='$bqr[classid]'");?> <img src="<?=$cr[classimg]? alt="How does Empire CMS call thumbnails?" >">
Data table prefix XX_enewsclass
Empire CMS calls column thumbnails and cannot nest other tags.
The code is as follows:
[e:loop={"select classid,classname,classimg,intro from phome_enewsclass where classid=栏目id",1,24,0}] <a href="/e/public/ClassUrl?classid=<?=$bqr[classid]?>"><?=$bqr[classname]?></a> <img src="<?=$bqr[classimg]? alt="How does Empire CMS call thumbnails?" >"> <?=$bqr[intro]?>[/e:loop]
Column name:
The code is as follows:
<a href="/e/public/ClassUrl?classid=<?=$bqr[classid]?>"><?=$bqr[classname]?></a>
Column thumbnail :
The code is as follows:
<img src="<?=$bqr[classimg]? alt="How does Empire CMS call thumbnails?" >">
Column introduction:[code]=$bqr[intro]?>[/e:loop]
Results as shown below:
The above is the detailed content of How does Empire CMS call thumbnails?. For more information, please follow other related articles on the PHP Chinese website!