首页 > 其他 > 详细

当位于顶级栏目显示下级栏目,当位于二级栏目显示同级栏目,当位于三级目录,显示上级栏目

时间:2018-06-29 22:17:36      阅读:249      评论:0      收藏:0      [点我收藏+]
        $row2 = $dsql->GetOne("SELECT * FROM `#@__arctype` WHERE id=‘$typeid‘ ");
        $typeid = $row2[‘id‘];
        $reid = $row2[‘reid‘];
        $topid = $row2[‘topid‘];
        $issetInfos = true;
    }
    
    if($type==‘‘ || $type==‘sun‘) $type=‘son‘;
    if($type==‘reid‘ && $topid == ‘0‘  ) $type=‘son‘;
    if($innertext==‘‘) $innertext = GetSysTemplets("channel_list.htm");

include\taglib\channel.lib.php 

 

        {dede:channel type=‘reid‘ noself=‘yes‘ currentstyle=‘
        <li class="thisclass"><a href="~typelink~">~typename~</a></li>
        ‘}
        <li><a href="[field:typeurl/]">[field:typename/]</a></li>{/dede:channel}

 

当位于顶级栏目显示下级栏目,当位于二级栏目显示同级栏目,当位于三级目录,显示上级栏目

原文:https://www.cnblogs.com/jizl/p/9245538.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!