帝国cms是一个非常不错cms系统,用的不多。现在大不多使用织梦比较多。给大家整理帝国cms做网站常用的标签,用帝国cms做网站的朋友,可以看看!
★★★★★★★★★★ 首页 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
标题:[!--pagetitle--]关键词:[!--pagekey--]描述:[!--pagedes--]友情链接:<ul class="links_text">[e:loop={'select * from [!db.pre!]enewslink where checked=1 and lpic="" order by lid',20,24,0}]<li><a href="<?=$bqr[lurl]?>"><?=$bqr[lname]?></a></li>[/e:loop]</ul>{栏目id/专题id,显示条数,操作类型,只显示有标题图片}[e:loop={34,3,0,0}] 栏目id=34,显示3条,0显示最新信息,0所有信息模板代码内容[/e:loop]标题:<?=$bqr[title]?>、<?=esub($bqr[title],36)?>链接:<?=$bqsr[titleurl]?>图片:<?=$bqr[titlepic]?>日期:<?=date('y-m-d',$bqr[newstime])?>,其中date('格式字串',时间字段)为帝国cms6.0版本的时间格式普通调用:[e:loop={34,3,0,0}]<td width="82%" height="23">·<a href="<?=$bqsr[titleurl]?>" target="_blank"><?=esub($bqr[title],36)?></a></td><td width="18%"><div align="right">[<?=date('m-d',$bqr[newstime])?>]</div></td>[/e:loop]带图调用:[e:loop={'34,35','2,2',0,1}]<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>" target="_blank"><img src="<?=$bqr[titlepic]?>" alt="<?=$bqr[title]?>" width="135" height="90" border="0"></a>[/e:loop]标题+简介:[e:loop={2,1,0,0}]<h1><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"> <?=esub($bqr[title],36)?> </a></h1><p><?=esub($bqr[smalltext],88)?>...<a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>">详情</a></p> [/e:loop]区块列表:[e:loop={2,7,0,0}]<li><span>[<?=date('m-d',$bqr[newstime])?>]</span><a href="<?=$bqsr[titleurl]?>" target="_blank" title="<?=$bqr[title]?>"><?=esub($bqr[title],42)?></a></li>[/e:loop]首页常用变量标签:[!--news.url--]:网站地址(参数设置的站点地址)[!--class.menu--]:一级栏目导航[!--pagetitle--]:网站名称[!--pagekey--]:页面关键字[!--pagedes--]:页面描述父栏目链接:<?php$cr['classid']=$class_r[$globals[navclassid]][bclassid];$bclassurl=sys_returnbqclassname($cr,9);echo $bclassurl;?>或者/<?=$class_r[$class_r[$globals[navclassid]][bclassid]]['classpath']?>当前栏目链接:<?$r['classid']=$globals[navclassid];$classurl=sys_returnbqclassname($r,9);echo $classurl;?>★★★★★★★★★★ 封面页 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★栏目seo标题:<?=returnclassaddfield(0,'seotitle')?>栏目关键词:[!--pagekey--]栏目描述:[!--pagedes--]公用头部:[!--temp.header--]当前位置:[!--newsnav--]栏目简介、栏目缩略图:[e:loop={"select classid,classname,classimg,intro from {$dbtbpre}enewsclass where bclassid=0 order by myorder,classid asc",0,24,0}]<?=$bqr[classimg]?> //栏目缩略图<?=$bqr[intro]?> //栏目简介[/e:loop]循环子栏目:[listsonclass]'selfinfo',5,38,0,0,7,0,0[/listsonclass]</td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="title"><tr><td><strong>[!--the.classname--]</strong></td><td align="right"><a href="[!--the.classurl--]">更多>></a></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0" class="box"><tr><td><ul> [!--empirenews.listtemp--] <!--list.var5--> [!--empirenews.listtemp--]</ul></td></tr></table><li><a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span>[!--newstime--]</span></li>[!--pagetitle--]:页面标题[!--pagekey--]:页面关键字[!--pagedes--]:页面描述[!--news.url--]:网站地址(参数设置的站点地址)[!--newsnav--]:所在位置导航条[!--class.menu--]:一级栏目导航[!--self.classid--]:本栏目/专题id