彩票平台

  • <tr id='fPORCS'><strong id='fPORCS'></strong><small id='fPORCS'></small><button id='fPORCS'></button><li id='fPORCS'><noscript id='fPORCS'><big id='fPORCS'></big><dt id='fPORCS'></dt></noscript></li></tr><ol id='fPORCS'><option id='fPORCS'><table id='fPORCS'><blockquote id='fPORCS'><tbody id='fPORCS'></tbody></blockquote></table></option></ol><u id='fPORCS'></u><kbd id='fPORCS'><kbd id='fPORCS'></kbd></kbd>

    <code id='fPORCS'><strong id='fPORCS'></strong></code>

    <fieldset id='fPORCS'></fieldset>
          <span id='fPORCS'></span>

              <ins id='fPORCS'></ins>
              <acronym id='fPORCS'><em id='fPORCS'></em><td id='fPORCS'><div id='fPORCS'></div></td></acronym><address id='fPORCS'><big id='fPORCS'><big id='fPORCS'></big><legend id='fPORCS'></legend></big></address>

              <i id='fPORCS'><div id='fPORCS'><ins id='fPORCS'></ins></div></i>
              <i id='fPORCS'></i>
            1. <dl id='fPORCS'></dl>
              1. <blockquote id='fPORCS'><q id='fPORCS'><noscript id='fPORCS'></noscript><dt id='fPORCS'></dt></q></blockquote><noframes id='fPORCS'><i id='fPORCS'></i>
                加入vip [签到送金币]
                注册 登录 QQ登录
                织梦无忧,用心做好々源码!7年品牌,值得信赖! 织梦无忧,个个精品,宁缺毋滥!每月购买不少于3000元精品源◤码免费分享,早开通,早享受!终身会员■临时大促,只需要498元!新会员开通,直接进入会员中心--购买会员--直接开通即可。

                织梦中{dede:channel}无法调ζ用隐藏栏目解决方法

                摘要: dede如何控制隐藏栏目的显示与调用 许多时候有些栏目想在某些页面隐藏,在另外一些页面显示,怎么办? 貌似,织梦的channel标签不能获取隐藏的栏目,于是我自己动手修改channel标签 首先找到include/taglib/channel.lib.php 1. $attlist = typeid|0,reid|0,r

                dede如何控制隐藏栏目的显示与调用

                许多时候有些栏目想在某些页面隐藏,在另外一些页面显示,怎么办?

                貌似,织梦的channel标签不能获取隐藏的栏目,于是我自己动手修改channel标签

                首先找到include/taglib/channel.lib.php

                1.

                $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|";

                修改为:

                $attlist = "typeid|0,reid|0,row|100,col|1,type|son,currentstyle|,cacheid|,showhide|no";

                2.

                在这两句下 

                    $innertext = $ctag->GetInnerText();

                    $line = empty($row) ? 100 : $row;

                增加:

                    $showhideArr = array(
                
                        'yes' => 0,
                
                        'no' => 1,
                
                        'both'=> -1,
                
                    );
                
                    $hideflag = $showhideArr[$showhide];

                 

                3.

                  if($type=='top')
                
                    {
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
                
                          From `dede_arctype` WHERE reid=0 And ishidden<>1 order by sortrank asc limit 0, $line ";
                
                    }
                
                    else if($type=='son')
                
                    {
                
                        if($typeid==0) return '';
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
                
                          From `dede_arctype` WHERE reid='$typeid' And ishidden<>1 order by sortrank asc limit 0, $line ";
                
                    }
                
                    else if($type=='self')
                
                    {
                
                        if($reid==0) return '';
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
                
                            FROM `dede_arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line ";
                
                    }

                 

                修改为:

                   if($type=='top')
                
                    {
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
                
                          From `dede_arctype` WHERE reid=0 And ishidden<>$hideflag order by sortrank asc limit 0, $line ";
                
                    }
                
                    else if($type=='son')
                
                    {
                
                        if($typeid==0) return '';
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
                
                          From `dede_arctype` WHERE reid='$typeid' And ishidden<>$hideflag order by sortrank asc limit 0, $line ";
                
                    }
                
                    else if($type=='self')
                
                    {
                
                        if($reid==0) return '';
                
                        $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname
                
                

                本文链接:/g61cg2/dedejiaocheng/guzha/152129.html

                版权声明:本站资源均来自互联网或会员发◥布,如果侵犯了您的权益请与我们※联系,我们将在24小时内删除!谢谢!

                公众号二维码

                微信公众号

                //自动推送