正在载入...

调用当前目录名:

[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就几个变量:

  • $bqsr[titleurl]:标题链接
  • $bqsr[classname]:栏目名称
  • $bqsr[classurl]:栏目链接
  • $bqsr[titleurl]:标题链接
  • $bqsr[classname]:栏目名称
  • $bqsr[classurl]:栏目链接
<?=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]
<div 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]

本文链接:

关键词:互联网, 代码, 函数, 帝国cms, 软件,

(全文完        )

Comments

哈哈,沙发有木有?!!!抢沙发快速评论

你需要 登录 才可以回复.