97在线看视频道福利免费,日本道色综合久久影院,97人妻少妇偷人精品无码,无码Av在线A√AV在线,亚洲国产精品久久久天堂麻豆,日韩精品熟女一区二区,亚洲中文无码日韩aⅴ,亚洲欧美中文字幕在线一区91 http://www.vanhostingweb.com 分享技術(shù),共同進(jìn)步 Sun, 19 Apr 2020 12:40:35 +0000 zh-Hans hourly 1 織夢多級欄目菜單調(diào)用代碼 http://www.vanhostingweb.com/3880.html Sun, 19 Apr 2020 12:33:52 +0000 http://www.vanhostingweb.com/?p=3880 織夢多級欄目菜單調(diào)用代碼

一級 / 二級 / 三級 欄目調(diào)用

<!-- 一級欄目 -->
{dede:channelartlist row=7 typeid=top currentstyle=current}
<li>
    <a href="{dede:field.typeurl/}">{dede:field.typename/}</a>
    <ul class="class2">
        <!-- 二級欄目 -->
        {dede:channel type=son noself=yes}
        <li>
            <a href="[field:typelink/]">[field:typename/]</a>
            <ul class="class3">
                <!-- 三級欄目 -->
                [field:id runphp=yes]
                global $dsql;
                $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 ORDER BY sortrank ASC LIMIT 0,10";
                $dsql->SetQuery($sql);
                $dsql->Execute('t');
                $result = '';
                while($row = $dsql->GetArray('t'))
                {
                    $typename = $row['typename'];
                    $typeurl = GetOneTypeUrlA($row);
                    $result .= "<li><a href='{$typeurl}'>{$typename}</a></li>";
                }
                @me = $result;
                [/field:id]
            </ul>
        </li>
        {/dede:channel}
    </ul>
</li>
{/dede:channelartlist}

一級 / 二級 / 二級欄目下的文章+自定義字段調(diào)用

<!-- 一級欄目 -->
{dede:channelartlist row=7 typeid=top currentstyle=current}
<li>
    <a href="{dede:field.typeurl/}">{dede:field.typename/}</a>
    <ul class="class2">
        <!-- 二級欄目 -->
        {dede:channel type=son noself=yes}
        <li>
            <a href="[field:typelink/]">[field:typename/]</a>
            <ul class="class3">
                <!-- 二級欄目下的文章+普通文章自定義字段body -->
                [field:id runphp=yes]
                global $dsql;
                $sql = "SELECT arc.*,addf.* FROM `#@__archives` arc LEFT JOIN `#@__addonarticle` addf ON arc.id=addf.aid WHERE arc.arcrank>-1 AND arc.typeid=@me ORDER BY arc.id DESC limit 0,10";
                $dsql->SetQuery($sql);
                $dsql->Execute('t');
                $result = '';
                while($row = $dsql->GetArray('t'))
                {
                    $arcrow = GetOneArchive($row['id']);
                    $row['arcurl'] = $arcrow['arcurl'];
                    $row['pubdate'] = MyDate('Y-m-d',$row['pubdate']);
                    $result .= "<li><span class=\"time\">時間:{$row['pubdate']}</span><a href=\"{$row['arcurl']}\">{$row['title']}<img src=\"{$row['litpic']}\"></a><span>文章內(nèi)容:{$row['body']}</span></li>";
                }
                @me = $result;
                [/field:id]
            </ul>
        </li>
        {/dede:channel}
    </ul>
</li>
{/dede:channelartlist}

 

]]>
織夢DEDECMS三級欄目調(diào)用 http://www.vanhostingweb.com/1935.html http://www.vanhostingweb.com/1935.html#respond Wed, 24 Oct 2018 01:49:09 +0000 http://www.vanhostingweb.com/?p=1935 后臺欄目

bst20181024094547

效果

bst20181023121623

調(diào)用代碼

 {dede:channelartlist typeid=24}
                <li class="a1">
                    <div class="tx"><a href="{dede:field.typeurl/}">{dede:field name='typename'/}</a> </div>
                    <dl>
                    {dede:channel type='son'}
                    <dd> <a href="#">[field:typename/]</a><span>/</span> </dd>
                    {/dede:channel}
                  </dl>
                    <div class="pop"> {dede:channel type=son noself=yes}
                    <dl>
                        <dt><a href="[field:typeurl/]"  title="[field:typename/]">[field:typename/] ></a></dt>
                        <dd> [field:id runphp=yes]
                        global $dsql;
                        $sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10";
                        $dsql->SetQuery($sql);
                        $dsql->Execute('t');
                        $result = '';
                        while($row = $dsql->GetArray('t'))
                        {
                        $typename = $row['typename'];
                        $typeurl = GetOneTypeUrlA($row);
                        $result .= "<a href='{$typeurl}' class='ui-link'>{$typename} |</a>";
                        }
                        @me = $result;
                        [/field:id] </dd>
                      </dl>
                    <div class="clr"></div>
                    {/dede:channel}</div>
                  </li>
                {/dede:channelartlist} 

以上代碼是根據(jù)下面代碼修改的。你根據(jù)實(shí)際情況修改

一級、二級、三級、四級標(biāo)簽嵌套法

<ul>
	{dede:channelartlist row=7 typeid=top}
	<!-- 頂級 -->
	<li class="top">
		<a href="{dede:field.typeurl/}" >{dede:field name='typename'/}</a>
		<ul class="sub">
		{dede:channel type=son noself=yes}
		<!-- 二級 -->
		<li>
			<a href="[field:typeurl/]"  title="[field:typename/]">[field:typename/]</a>
			<ul>
				<!-- 三級 -->
				[field:id runphp=yes]
				global $dsql;
				$sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10";
				$dsql->SetQuery($sql);
				$dsql->Execute('t');
				$result = '';
				while($row = $dsql->GetArray('t'))
				{
					$typename = $row['typename'];
					$typeurl = GetOneTypeUrlA($row);
					$result .= "<li><a href='{$typeurl}'>{$typename}</a></li>";
				}
				@me = $result;
				[/field:id]
			</ul>
		</li>
		{/dede:channel}
		</ul>
	</li>    
	{/dede:channelartlist}
</ul>

上面的是輸出到三級欄目,如果需要四級欄目可以這樣修改三級四級

<!-- 三級/四級 -->
[field:id runphp=yes]
global $dsql;
$sql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=@me And ishidden<>1 order by sortrank asc limit 0,10";
$dsql->SetQuery($sql);
$dsql->Execute('t');
$result = '';
while($row = $dsql->GetArray('t'))
{
    $row['typeurl'] = GetOneTypeUrlA($row);
	$result .= "<a href='{$row[typeurl]}'>{$row[typename]}</a>";
	//四級
	$nsql = "Select id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM `#@__arctype` WHERE reid=$row[id] And ishidden<>1 order by sortrank asc limit 0,10";
	$dsql->SetQuery($nsql);
	$dsql->Execute('n');
	while($nrow = $dsql->GetArray('n'))
	{
		$nrow['typeurl'] = GetOneTypeUrlA($nrow);
		$result .= "<a href='{$nrow[typeurl]}'>{$nrow[typename]}</a>";
	}
}
@me = $result;
[/field:id]

 

]]>
http://www.vanhostingweb.com/1935.html/feed 0
亚洲中文色欧另类欧美,久久久久久久激情,亚洲 日韩 欧美 另类 国产,中文字幕高清无码男人的天堂 www.sucaiwu.net