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

admin 2024年1月19日13:55:50帝国cms技巧评论1,362 次浏览阅读模式

内容摘要

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

文章正文

实例:

[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

?>" 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

?>" 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       文字颜色    >    htmlcode      HTML广告内容    >    t                    广告模式           0为图片广告,1为文字广告,2为HTML广告,3为弹出广告>    ylink              显示原链接    >    reptext          广告过期后显示内容  

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月19日13:55:50
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0119/17605.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: