帝国cms仿站常用标签

首页TDK
<meta name="keywords" content="[!--pagekey--]" />
<meta name="description" content="[!--pagedes--]" />

[e:loop={"select intro from phome_enewsclass whe

首页TDKsxSECMSPLUS
<meta name="keywords" content="[!--pagekey--]" />sxSECMSPLUS
<meta name="description" content="[!--pagedes--]" />sxSECMSPLUS
sxSECMSPLUS
[e:loop={"select intro from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]sxSECMSPLUS
<?=esub($bqr[intro],截取字数)?>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
栏目页TDKsxSECMSPLUS
<meta name="keywords" content="[!--class.keywords--]" />sxSECMSPLUS
<meta name="description" content="[!--class.intro--]" />sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
网站标题sxSECMSPLUS
<?=$public_r[sitename]?>sxSECMSPLUS
[!--pagetitle--]sxSECMSPLUS
sxSECMSPLUS
网站别名sxSECMSPLUS
<?=$class_r[$GLOBALS[navclassid]]['bname']?>sxSECMSPLUS
sxSECMSPLUS
<?php $cr=$empire->fetch1("select bname from px_enewsclass where classid='".$GLOBALS[navclassid]."' limit 1");sxSECMSPLUS
echo $cr['bname'];sxSECMSPLUS
?>sxSECMSPLUS
sxSECMSPLUS
网站地址sxSECMSPLUS
<?=$public_r[newsurl]?>sxSECMSPLUS
[!--news.url--]sxSECMSPLUS
sxSECMSPLUS
动态名称sxSECMSPLUS
<?=$public_r['sitename']?>sxSECMSPLUS
<?=$thispagetitle?>sxSECMSPLUS
sxSECMSPLUS
动态地址sxSECMSPLUS
<?=$public_r['newsurl']?>sxSECMSPLUS
$public_r[newsurl]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
扩展变量(写入缓存)sxSECMSPLUS
<?=$public_r['add_变量名']?>sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
当前的位置sxSECMSPLUS
[!--newsnav--]sxSECMSPLUS
sxSECMSPLUS
分页导航(下拉式)sxSECMSPLUS
[!--show.page--]sxSECMSPLUS
sxSECMSPLUS
分页导航(列表式)sxSECMSPLUS
[!--show.listpage--]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
0最新 1点击 2推荐sxSECMSPLUS
sxSECMSPLUS
当前栏目:'selfinfo'sxSECMSPLUS
sxSECMSPLUS
[e:loop={栏目ID,调用数量,调用类型,是否调用图片}]sxSECMSPLUS
sxSECMSPLUS
[e:loop={2,2,0,0}]sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
sxSECMSPLUS
灵动标签调用段落sxSECMSPLUS
[e:loop={2,2,0,0}]sxSECMSPLUS
<a href="<?=$bqsr[titleurl]?>"><?=$bqr['title']?></a>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
灵动标签调用图片sxSECMSPLUS
sxSECMSPLUS
[e:loop={2,2,0,1}]sxSECMSPLUS
<a href="<?=$bqsr[titleurl]?>" title="<?=$bqr['title']?>">sxSECMSPLUS
<img src="<?=$bqr[titlepic]?>" alt="<?=$bqr['title']?>" title="<?=$bqr['title']?>" />sxSECMSPLUS
</a>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
sxSECMSPLUS
语法标签调用sxSECMSPLUS
<a href="[!--titleurl--]">[!--title--]</a>sxSECMSPLUS
<img src="[!--titlepic--]" alt="[!--title--]" title="[!--title--]" />sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
灵动标签按条件调用sxSECMSPLUS
[e:loop={"select * from px_ecms_img where classid='1' and fl='综合门户'",1,24,0}]sxSECMSPLUS
sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
灵动标签按ID调用sxSECMSPLUS
[e:loop={'select * from [!db.pre!]ecms_news where id=12 or id=13',1,24,0}]sxSECMSPLUS
sxSECMSPLUS
[e:loop={'select * from [!db.pre!]ecms_news where id in(12,13,15,17)',1,24,0}]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
调用ID信息内容sxSECMSPLUS
[e:loop={1,10,0,0}]sxSECMSPLUS
<?phpsxSECMSPLUS
$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$bqr[stb]} where id='$bqr[1]'");sxSECMSPLUS
?>sxSECMSPLUS
<p><?=$fr[newstext]?></p>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
调用某条件信息sxSECMSPLUS
[e:loop={6,10,0,0,"cp5='串联谐振装置'",''}]sxSECMSPLUS
<a href="<?=$bqsr[titleurl]?>"><?=$bqr[title]?></a> <br>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
[e:loop={'download',10,18,0,"title='$navinfor[title]'"}]sxSECMSPLUS
<a href="<?=$bqsr[titleurl]?>"><?=$bqr[title]?></a> <br>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
灵动标签调用时间sxSECMSPLUS
[!--newstime--]sxSECMSPLUS
<?=date('Y-m-d',$bqr[newstime])?>sxSECMSPLUS
<?=format_datetime($bqr[newstime],'Y-m-d H:i:s')?>sxSECMSPLUS
sxSECMSPLUS
$year=date('Y',$r[newstime]);sxSECMSPLUS
$yue=date('m',$r[newstime]);sxSECMSPLUS
$day=date('d',$r[newstime]);sxSECMSPLUS
$listtemp='<span class=\"day\">'.$day.'</span><span class=\"date\">'.$year.'-'.$yue.'</span>';sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
加省略号sxSECMSPLUS
sxSECMSPLUS
栏目简介sxSECMSPLUS
<?=esub($bqr[intro],40,'...')?>sxSECMSPLUS
sxSECMSPLUS
栏目名sxSECMSPLUS
<?=esub($bqsr[classname],8)?>sxSECMSPLUS
sxSECMSPLUS
内容sxSECMSPLUS
<?=esub(htmlspecialchars(strip_tags($navinfor[newstext])),160)?>sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
标题sxSECMSPLUS
<?=esub($bqr[title],32,'...')?>sxSECMSPLUS
sxSECMSPLUS
标题加颜色sxSECMSPLUS
<?=DoTitleFont($bqr[titlefont],esub($bqr['title'],150))?>sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
灵动标签调用文章简介且控制字数sxSECMSPLUS
[!--smalltext--]sxSECMSPLUS
<?=esub($bqr[smalltext],150,'...')?>sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
标签点击数sxSECMSPLUS
<?=$bqr[onclick]?>sxSECMSPLUS
[!--onclick--]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
信息个数sxSECMSPLUS
[!--no.num--]sxSECMSPLUS
sxSECMSPLUS
指定数字开始sxSECMSPLUS
<?=$bqno+5?>sxSECMSPLUS
sxSECMSPLUS
灵动标签为sxSECMSPLUS
<?=$bqno?>sxSECMSPLUS
输出效果 1 2 3 4 5 6 7 8 9 10 11 12sxSECMSPLUS
sxSECMSPLUS
补零后写法sxSECMSPLUS
<?=sprintf("%02d", $bqno)?>sxSECMSPLUS
输出效果 01 02 03 04 05 06 07 08 09 10 11 12sxSECMSPLUS
sxSECMSPLUS
补俩个零写法sxSECMSPLUS
<?=sprintf("%03d", $bqno)?>sxSECMSPLUS
输出效果 001 002 003 004 005 006 007 008 009 010 011 012sxSECMSPLUS
sxSECMSPLUS
随机数字1-10sxSECMSPLUS
<?php echo rand(1,10);?>sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
调用当前栏目缩略图,可嵌套其他标签sxSECMSPLUS
[e:loop={'selfinfo',1,0,0}]sxSECMSPLUS
<?php $cr=$empire->fetch1("select classimg from [!db.pre!]enewsclass where classid='$bqr[classid]'");?>sxSECMSPLUS
<img src="<?=$cr[classimg]?>">sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
帝国cms内容页调用当前页面所在栏目的缩略图sxSECMSPLUS
[e:loop={"select classimg from 表前缀_enewsclass where classid='$GLOBAL[navclassid]'",1,24,0}]sxSECMSPLUS
<?=$bqr[classimg]?>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
帝国cms封面页调用指定栏目缩略图sxSECMSPLUS
[e:loop={"select classid,classname,classimg,intro from 表前缀_enewsclass where classid=栏目id",1,24,0}]sxSECMSPLUS
<img src="<?=$bqr[classimg]?>" alt="<?=$bqr[classname]?>">sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
sxSECMSPLUS
封面缩略图调用sxSECMSPLUS
<img src="[!--class.classimg--]" width="100%">sxSECMSPLUS
sxSECMSPLUS
调用当前父栏目缩略图sxSECMSPLUS
[e:loop={"select classimg from [!db.pre!]enewsclass where classid='".$class_r[$GLOBALS[navclassid]][bclassid]."'",1,24,0}]sxSECMSPLUS
<img src="<?=$bqr[classimg]?>" width="100%">sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
内容页调用当前栏目缩略图sxSECMSPLUS
[e:loop={"select classimg from phome_enewsclass where classid='$GLOBALS[navclassid]'",1,24,0}]sxSECMSPLUS
<img src="<?=$bqr[classimg]?>" width="100%">sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
-----------------------------------sxSECMSPLUS
sxSECMSPLUS
灵动标签调用友情链接sxSECMSPLUS
sxSECMSPLUS
文字友情链接sxSECMSPLUS
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid',20,24,0}]sxSECMSPLUS
<a href="<?=$bqr[lurl]?>" title="<?=$bqr[lname]?>" target="_blank"><?=$bqr[lname]?></a>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
图片友情链接sxSECMSPLUS
[e:loop={'select * from [!db.pre!]enewslink where checked=1 and classid=1 order by lid',20,24,0}]sxSECMSPLUS
<li>sxSECMSPLUS
    <a href="<?=$bqr[lurl]?>" title="<?=$bqr[lname]?>" target="_blank">sxSECMSPLUS
            <img src="<?=$bqr[lpic]?>" alt="<?=$bqr[lname]?>" title="<?=$bqr[lname]?>" border="0" />sxSECMSPLUS
        </a>sxSECMSPLUS
</li>sxSECMSPLUS
[/e:loop]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]sxSECMSPLUS
sxSECMSPLUS
循环栏目名sxSECMSPLUS
[showclasstemp]'selfinfo',11,0,0[/showclasstemp]sxSECMSPLUS
sxSECMSPLUS
封面栏目sxSECMSPLUS
<li class="[!--the.classid--]"><a href="[!--the.classurl--]">[!--the.classname--]</a></li>sxSECMSPLUS
sxSECMSPLUS
本栏目一级栏目sxSECMSPLUS
<li class="[!--bclass.id--]"><a href="[!--bclass.url--]">[!--bclass.name--]</a></li>sxSECMSPLUS
sxSECMSPLUS
栏目页sxSECMSPLUS
<li class="[!--classid--]"><a href="[!--classurl--]">[!--classname--]</a></li>sxSECMSPLUS
sxSECMSPLUS
本栏目sxSECMSPLUS
<li class="[!--class.id--]"><a href="[!--class.url--]">[!--class.name--]</a></li>sxSECMSPLUS
sxSECMSPLUS
当前栏目IDsxSECMSPLUS
[!--self.classid--]sxSECMSPLUS
sxSECMSPLUS
信息IDsxSECMSPLUS
[!--sonclass.id--]sxSECMSPLUS
sxSECMSPLUS
信息标题sxSECMSPLUS
[!--sonclass.title--]sxSECMSPLUS
sxSECMSPLUS
信息标题(不截取字数)sxSECMSPLUS
[!--sonclass.oldtitle--]sxSECMSPLUS
sxSECMSPLUS
标题图片sxSECMSPLUS
[!--sonclass.titlepic--]sxSECMSPLUS
sxSECMSPLUS
信息链接sxSECMSPLUS
[!--sonclass.titleurl--]sxSECMSPLUS
sxSECMSPLUS
信息简介sxSECMSPLUS
[!--sonclass.text--]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
循环子栏目sxSECMSPLUS
sxSECMSPLUS
页面模板内容:sxSECMSPLUS
<li><a href="[!--bclassurl--]">[!--bclassname--]</a>sxSECMSPLUS
    <ul>sxSECMSPLUS
    [!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]sxSECMSPLUS
    </ul>sxSECMSPLUS
</li>sxSECMSPLUS
sxSECMSPLUS
内容模板:sxSECMSPLUS
<li><a href="[!--classurl--]">[!--classname--]</a></li>sxSECMSPLUS
sxSECMSPLUS
[listshowclass]'0',12,0,6[/listshowclass]sxSECMSPLUS
sxSECMSPLUS
=======================================================================================sxSECMSPLUS
sxSECMSPLUS
网站地图sxSECMSPLUS
sxSECMSPLUS
页面模板内容:sxSECMSPLUS
<li class="curr_[!--bclassid--]"><a href="[!--bclassurl--]">[!--bclassname--]</a>sxSECMSPLUS
    <ul>sxSECMSPLUS
        [!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]sxSECMSPLUS
    </ul>sxSECMSPLUS
</li>sxSECMSPLUS
sxSECMSPLUS
列表内容模板:sxSECMSPLUS
<a href="[!--classurl--]">[!--classname--]</a>

分享到 :
相关推荐

发表评论

登录... 后才能评论

评论(3)

加入本站VIP会员订阅计划,海量资源免费下载查看

目前为止共有3位优秀的VIP会员加入!

立即加入VIP会员