首页 > CMS > 帝国Empire > 正文

帝国CMS多表调用最新信息

2024-08-28 12:21:56
字体:
来源:转载
供稿:网友
  1. [e:loop={'select * from ( 
  2. select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_news where newstime union 
  3. select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_photo where newstime union 
  4. select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_flash where newstime union 
  5. select id,classid,titleurl,filename,title,newstime,titlepic from phome_ecms_article where newstime) a order by newstime desc limit 10',10,24,1}] 
  6. [/e:loop] 

帝国CMS多表调用最新信息,演示代码为默认数据表下全站最新10条图片信息,自己根据需求可以附加条件,实现全站点击,全站头条,全站推荐等等.

帝国CMS灵动标签首页调用下载地址方法

帝国CMS灵动标签首页调用下载地址方法

  1. [e:loop={'download',10,23,0,'isgood=1'}] 
  2. <li><a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <span><a href="/e/DownSys/DownSoft/?classid=<?=$bqr[classid]?>&id=<?=$bqr[id]?>&pathid=0" target="_blank">点击下载</a></span></li> 
  3. [/e:loop]//开源软件:Vevb.com 

说明:A标代码为调用下载地址.

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表