帝国CMS灵动标签SQL调用插件广告系统里的广告数据

2023-12-01 0 394

实例:

[e:loop={"select * from phome_enewsad where adid in (1,2,3) and t=0 order by adid desc limit 20",0,24}]<a href="<?=$bqr[url]?>" target="_blank" title="<?=$bqr[title]?>"><img src="<?=$bqr[picurl]?>" alt="<?=$bqr[title]?>" /><?=$bqr[title]?></a>[/e:loop]

and t=0可不用加一般用的比较多的还是根据分类调取广告(组),更加方便

[e:loop={"select * from phome_enewsad where classid=1 order by adid desc limit 20",0,24}]<a href="<?=$bqr[url]?>" target="_blank" title="<?=$bqr[title]?>"><img src="<?=$bqr[picurl]?>" alt="<?=$bqr[title]?>" /><?=$bqr[title]?></a>[/e:loop]

>phome_enewsad 数据表字段解释(广告表)————————————————————> 字段名解释 附加说明> adid广告ID> picurl文字内容或图片地址> url链接地址> pic_width图片宽度> pic_height图片高度> onclick点击数> classid分类ID> adtype广告类型> title广告名称> target新窗口打开> alt提示文字> starttime广告开始时间> endtime广告过期时间> adsay广告注释> titlefont文字加粗> titlecolor文字颜色> htmlcodeHTML广告内容> t广告模式0为图片广告,1为文字广告,2为HTML广告,3为弹出广告> ylink显示原链接> reptext广告过期后显示内容

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 帝国CMS教程 帝国CMS灵动标签SQL调用插件广告系统里的广告数据 https://www.u-9.cn/jiaocheng/empirecms/13990.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务