欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來(lái)到入門教程網(wǎng)!

dedecms

當(dāng)前位置:主頁(yè) > CMS教程 > dedecms >

DEDECMS專題不能選取一級(jí)欄目的解決方案

來(lái)源:本站原創(chuàng)|時(shí)間:2021-08-05|欄目:dedecms|點(diǎn)擊: 次

今天一位朋友說(shuō)他建立的織夢(mèng)dedecms 專題不能選取一級(jí)欄目,很是煩惱!向我尋求幫助,其實(shí)我也沒(méi)花什么功夫研究,只是在網(wǎng)上搜索了一些教程,然后測(cè)試下,現(xiàn)在將我測(cè)試的教程發(fā)出來(lái),供大家研究。
打開(kāi)\dede\inc\inc_catalog_options.php,將以下代碼完全替換,即可。
友情提示:上面紅色的dede為后臺(tái)目錄,請(qǐng)注意自己的后臺(tái)是否修改了。另外,使用以下代碼前,請(qǐng)注意備份。
<?php
function GetOptionList($selid=0,$userCatalog=0,$channeltype=0) 
global $OptionArrayList,$channels,$dsql;
$dsql->SetQuery("Select id,typename From `dede_channeltype` "); 
$dsql->Execute(); 
$channels = Array(); 
while($row = $dsql->GetObject()) $channels[$row->id] = $row->typename;
$OptionArrayList = "";
//當(dāng)前選中的欄目 
if($selid > 0) 
$row = $dsql->GetOne("Select id,typename,ispart,channeltype From `dede_arctype` where id='$selid'"); 
if($row['ispart']==1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面頻道)</option>\r\n"; 
else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>\r\n"; 
}
//是否限定用戶管理的欄目 
if($userCatalog>0) 
{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And id='$userCatalog' "; } 
else 
{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And reid=0 order by sortrank asc "; }
$dsql->SetQuery($query); 
$dsql->Execute();
while($row=$dsql->GetObject()) 
if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."(封面頻道)</option>\r\n"; 
else if($row->ispart==2) $OptionArrayList .=""; 
else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>\r\n"; 
else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>\r\n"; 
LogicGetOptionArray($row->id,"─",$channeltype,$dsql); 
}
// 
return $OptionArrayList; 
function LogicGetOptionArray($id,$step,$channeltype,&$dsql) 
global $OptionArrayList,$channels; 
$dsql->SetQuery("Select id,typename,ispart,channeltype From `dede_arctype` where reid='".$id."' And ispart<>2 order by sortrank asc"); 
$dsql->Execute($id); 
while($row=$dsql->GetObject($id)) 
if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>$step".$row->typename."(封面頻道)</option>\r\n"; 
else if($row->ispart==2) $OptionArrayList .=""; 
else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .=''; 
else $OptionArrayList .= "<option value='".$row->id."' class='option3'>$step".$row->typename."</option>\r\n"; 
LogicGetOptionArray($row->id,$step."─",$channeltype,$dsql); 
?>
 

上一篇:dedecms織夢(mèng)手機(jī)站m目錄啟用二級(jí)域名方法

欄    目:dedecms

下一篇:DedeCMS系統(tǒng)參數(shù)設(shè)置手冊(cè)之互動(dòng)設(shè)置

本文標(biāo)題:DEDECMS專題不能選取一級(jí)欄目的解決方案

本文地址:http://mengdiqiu.com.cn/a1/dedecms/15449.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機(jī)閱讀

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有