最新公告
  • 欢迎您光临 我爱模板网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境! 立即加入钻石VIP
  • 帝国cms7.5列表页列表内容模板专题模板

    正文概述 管理员   2025-09-05   5
    帝国cms7.5列表页列表内容模板专题模板

    帝国cms专题模板
    列表内容模板(list.var) (*)
    一定要勾选使用程序代码
    代码如下:
    $zhuanti=$empire->fetch1("select ztid,classid from {$dbtbpre}enewsztinfo where id = {$r['id']}");
    if($zhuanti)
    {
    //专题名称
    $ztname=$class_zr[$zhuanti['ztid']]['ztname'];
    //专题链接
    $ztlink=sys_ReturnBqZtname($zhuanti);
    }
    $listtemp='
         <li class="show-pic"><a href="[!--titleurl--]"><img src="[!--titlepic--]" />
            <h2>[!--title--]</h2>
            </a><span><a href="'.$ztlink.'" target="_blank">'.$ztname.'</a></li>';
    列表页获得专题名称和专题链接(列表内容模板(list.var) (*)中使用)
    $zhuanti=$empire->fetch1("select ztid,classid from {$dbtbpre}enewsztinfo where id = {$r['id']}");
    if($zhuanti)
    {$ztname=$class_zr[$zhuanti['ztid']]['ztname'];
    $ztlink=sys_ReturnBqZtname($zhuanti);}
    $listtemp='<a href="'.$ztlink.'">'.$ztname.'</a>';
    内容页获得专题名称和专题链接
    [e:loop={'select ztid from phome_enewsztinfo where id='.$navinfor[id].'',1,24,0}]
    <a href="https://www.lovezheteng.com/<?=$class_zr[$bqr[ztid]][ztpath]?>"><?=$class_zr[$bqr[ztid]][ztname]?></a>
    [/e:loop]
    内容页获得文章所属专题的最新文章列表
    [e:loop={'select ztid from phome_enewsztinfo where id='.$navinfor[id].'',1,24,0}]
    <?php $ztid1=$bqr['ztid']; ?>
    [/e:loop]
    [e:indexloop={$ztid1,5,1}]
    <a href="<?=$bqsr['titleurl']?>"><?=$bqr[title]?></a>
    [/e:indexloop]
    专题信息数统计
    <?$num=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsztinfo where ztid=专题ID");echo $num;?>
    内容页获得文章所属标题分类的最新文章列表
    [e:loop={$navinfor[ttid],4,25,0}]
    <a href="<?=$bqsr['titleurl']?>"><?=$bqr[title]?></a>
    [/e:loop]
    标题分类信息数统计
    <?$num=$empire->gettotal("select count(*) as total from {$dbtbpre}ecms_news where ttid=标题分类ID");echo $num;?>


    我爱模板网 » 帝国cms7.5列表页列表内容模板专题模板

    发表评论

    如需帝国cms功能定制以及二次开发请联系我们

    联系作者
    script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?587cc1e5c052b5b0ce99533beff13c96"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();

    请选择支付方式

    ×
    支付宝支付
    余额支付
    ×
    微信扫码支付 0 元