欢迎来到元素模板ys720.com,本站提供专业的织梦模板PBOOTCMS模板网站模板网站修改/网站仿站
当前位置:主页 > 程序教程 > 帝国cms教程 >
帝国cms教程

帝国cms常用标签整理

(元素模板) / 2018-01-31 18:53

帝国cms常用标签整
调用当前目录名:

[e:loop={"select * from [!db.pre!]enewsclass where classid='$GLOBALS[navclassid]'",0,24,0}]<?=$bqr[classpath]?>[/e:loop]

 

调用上一级目录名:

[e:loop={"select * from [!db.pre!]enewsclass where classid='".$class_r[$GLOBALS[navclassid]][bclassid]."'",0,24,0}]<?=$bqr[classpath]?>[/e:loop]

 

[e:loop={"select * from [!db.pre!]enewsclass where classid='$GLOBALS[navclassid]'",0,24,0}]<?=$bqsr[classurl]?>[/e:loop]

 

<?php

$bclassid=$class_r[$GLOBALS[navclassid]][bclassid];    //获取当前父栏目ID

?>

 

 $nclassid =$GLOBALS[navclassid];//获取当前栏目ID        
 

 

显示字段用<?=$bqr[字段]?>,$bqsr就几个变量:

 

<?=esub($bqr[title],15)?>

 

[e:loop={"select * from phome_ecms_news n inner join phome_enewsclass c on n.classid=c.classid where classpath='$classpath/yyjj' limit 1",1,24,0}]

     <a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>"  rel="nofollow"><img src="<?=$bqr[titlepic]?>" width="235" height="137" alt="<?=$bqr[title]?>" /></a>

      <p><?=esub($bqr[smalltext],90,'…')?><a href="<?=$bqsr[titleurl]?>" rel="nofollow">[详细]</a></p>

     [/e:loop]

 

<p class="bottom_right">

[e:loop={"select * from phome_ecms_news n inner join phome_enewsclass c on n.classid=c.classid where classpath='$classpath/xbbdf' order by id limit 1",1,24,0}]

 <h4><span><a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>"><?=DoTitleFont($bqr[titlefont],esub($bqr[title],36))?></a></span>

<p><?=esub($bqr[smalltext],170,'…')?><a href="<?=$bqsr[titleurl]?>" title="<?=$bqr[title]?>">[详细]</a></p>

</h4>

[/e:loop] 

description

 

<title>[!--pagekey--]</title>     // 标题

<meta content="<?=ReturnClassAddField(0,'fkeyword')?>" name="description" />   //关键字

<meta content="<?=ReturnClassAddField(0,'fintro')?>" name="keywords" />   //描述

 

 

<script language="javascript" src="[!--class.intro--]"></script>

cursor:pointer;" onClick="openZoosUrl('chatwin'); return false;" rel="nofollow"

 

 

调用栏目 二级栏目 

[e:loop={"select * from phome_enewsclass where bclassid  in (2) order by classid asc",0,24,0}]

<a href="/<?=$bqr[classpath]?>"><?=$bqr[classname]?></a>

[/e:loop] 

 

调用栏目 当前栏目     

[e:loop={"select * from phome_enewsclass where bclassid  in ($GLOBALS[navclassid]) order by classid asc",0,24,0}]

<a href="/<?=$bqr[classpath]?>"><?=$bqr[classname]?></a>

[/e:loop] 

 

 

Copyright @ 2013-2021 元素模板 www.ys720.com All Rights Reserved. 版权所有 元素模板 www.ys720.com