注意,这个代码无须放在灵动标签中,直接写入模板相应的位置就行了。 1、调用栏目名称: <?=$class_r[栏目ID]['classname']?> 示例:<?=$class_r[1]['clas
eadminecmseditorinfoeditoreditordialog/fck_link.html 查找 input id="txtTargetFrame" style="width:100%"
<?$info=$empire->fetch1("select * from phome_enewsinfovote where classid='$navinfor[classid]' and id=
<?$info=$empire->fetch1("select * from phome_enewsinfovote where classid='$navinfor[classid]' and id=
评论验证码: <input name="key" type="text" id="key" size="6" /><img src="
因为[!–onlinepath–]字段在副表所以先得调用出来,即下面第一行 $fr=$empire->fetch1("select onlinepath from {$dbtbpre}ecm
$fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r[stb]} where id='$r[id]'");$l
首页我们在后台 管理评论 添加一个自定义字段,比如 [!–kwpf–]字段,那么怎么在前台页面调用到帝国评论的自定义字段了。下面就是调用方法: 修改/e/class/t_functions.php 1、搜索
1、插件-信息反馈管理-复制其信息反馈代码 2、后台-栏目-自定页面-增加自定义页面 注意: 1、在自定义页面,加bid反馈分类ID变量,表单加:<input type=hidden name=bid value=1> 2、想让
在tags列表页获取当前tag的ID方法一: 在动态页面中使用 <?=intval($_GET['tagid'])?> 在tags列表页获取当前tag的ID方法二: 1、编辑etagsindex.php,找到 $
内容模板加 <a href="[!–news.url–]e/public/report/?classid=[!–classid–]&id=
<?php $randnum=10; //随机数量 $randids=''; $randdh=''; for($i=1;$i<=$randnum;$i++) { $randids.=$randdh
解决方法:调用当前栏目信息,栏目ID用:'selfinfo',排除当前信息标签附加sql条件参数用:"id<>'$navinfor[id]'" 举例: [e:loop={
当前栏目ID $GLOBALS['navclassid']当前父栏目ID $class_r[$cid]['bclassid']栏目路径 $class_r[栏目ID]['classpath']当
首先我们要用到灵动标签从数据库取出对应的栏目名称:一、若要取出所有的最顶级的栏目名称选择:bclassid=0,其中 id="cid<?=$bqr[classid]?> 就是要拿到当前页面的ID值 [e:loop={&