织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

DEDECMS专题不能选取一级栏目的解决方案

来源:网络整理  作者:  发布时间:2020-12-20 05:23
今天一位朋友说他建立的织梦dedecms 专题不能选取一级栏目,很是烦恼!向我寻求帮助,其实我也没花什么功夫研究,...

else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .=''; 

if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."(封面频道)</option>\r\n"; 

if($row['ispart']==1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面频道)</option>\r\n"; 

$dsql->Execute(); 

$OptionArrayList = "";

function LogicGetOptionArray($id,$step,$channeltype,&$dsql) 

$dsql->SetQuery("Select id,typename,ispart,channeltype From `dede_arctype` where reid='".$id."' And ispart<>2 order by sortrank asc"); 

global $OptionArrayList,$channels; 

if($selid > 0) 

global $OptionArrayList,$channels,$dsql;

$dsql->Execute($id); 

else $OptionArrayList .= "<option value='".$row->id."' class='option3'>$step".$row->typename."</option>\r\n"; 

$row = $dsql->GetOne("Select id,typename,ispart,channeltype From `dede_arctype` where id='$selid'"); 

else 

while($row=$dsql->GetObject()) 

LogicGetOptionArray($row->id,$step."─",$channeltype,$dsql); 

if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>$step".$row->typename."(封面频道)</option>\r\n"; 

$dsql->SetQuery("Select id,typename From `dede_channeltype` "); 

$channels = Array(); 

else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>\r\n"; 

if($userCatalog>0) 

}

<?php

while($row = $dsql->GetObject()) $channels[$row->id] = $row->typename;

else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>\r\n"; 

//是否限定用户管理的栏目 

return $OptionArrayList; 

}

while($row=$dsql->GetObject($id)) 

// 

$dsql->SetQuery($query); 

else if($row->ispart==2) $OptionArrayList .=""; 

//当前选中的栏目 

function GetOptionList($selid=0,$userCatalog=0,$channeltype=0) 

else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>\r\n"; 

$dsql->Execute();

{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And id='$userCatalog' "; } 

{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And reid=0 order by sortrank asc "; }

友情提示:上面红色的dede为后台目录,请注意自己的后台是否修改了。另外,使用以下代码前,请注意备份。

else if($row->ispart==2) $OptionArrayList .=""; 

今天一位朋友说他建立的织梦dedecms 专题不能选取一级栏目,很是烦恼!向我寻求帮助,其实我也没花什么功夫研究,只是在网上搜索了一些教程,然后测试下,现在将我测试的教程发出来,供大家研究。

LogicGetOptionArray($row->id,"─",$channeltype,$dsql); 

打开\dede\inc\inc_catalog_options.php,将以下代码完全替换,即可。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/dedecms/5972.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

DEDECMS专题不能选取一级栏目的解决方案

2020-12-20 编辑:

else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .=''; 

if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."(封面频道)</option>\r\n"; 

if($row['ispart']==1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面频道)</option>\r\n"; 

$dsql->Execute(); 

$OptionArrayList = "";

function LogicGetOptionArray($id,$step,$channeltype,&$dsql) 

$dsql->SetQuery("Select id,typename,ispart,channeltype From `dede_arctype` where reid='".$id."' And ispart<>2 order by sortrank asc"); 

global $OptionArrayList,$channels; 

if($selid > 0) 

global $OptionArrayList,$channels,$dsql;

$dsql->Execute($id); 

else $OptionArrayList .= "<option value='".$row->id."' class='option3'>$step".$row->typename."</option>\r\n"; 

$row = $dsql->GetOne("Select id,typename,ispart,channeltype From `dede_arctype` where id='$selid'"); 

else 

while($row=$dsql->GetObject()) 

LogicGetOptionArray($row->id,$step."─",$channeltype,$dsql); 

if($row->ispart==1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>$step".$row->typename."(封面频道)</option>\r\n"; 

$dsql->SetQuery("Select id,typename From `dede_channeltype` "); 

$channels = Array(); 

else if($row->channeltype!=$channeltype && $channeltype!=0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>\r\n"; 

if($userCatalog>0) 

}

<?php

while($row = $dsql->GetObject()) $channels[$row->id] = $row->typename;

else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>\r\n"; 

//是否限定用户管理的栏目 

return $OptionArrayList; 

}

while($row=$dsql->GetObject($id)) 

// 

$dsql->SetQuery($query); 

else if($row->ispart==2) $OptionArrayList .=""; 

//当前选中的栏目 

function GetOptionList($selid=0,$userCatalog=0,$channeltype=0) 

else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>\r\n"; 

$dsql->Execute();

{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And id='$userCatalog' "; } 

{ $query = "Select id,typename,ispart,channeltype From `dede_arctype` where ispart<>2 And reid=0 order by sortrank asc "; }

友情提示:上面红色的dede为后台目录,请注意自己的后台是否修改了。另外,使用以下代码前,请注意备份。

else if($row->ispart==2) $OptionArrayList .=""; 

今天一位朋友说他建立的织梦dedecms 专题不能选取一级栏目,很是烦恼!向我寻求帮助,其实我也没花什么功夫研究,只是在网上搜索了一些教程,然后测试下,现在将我测试的教程发出来,供大家研究。

LogicGetOptionArray($row->id,"─",$channeltype,$dsql); 

打开\dede\inc\inc_catalog_options.php,将以下代码完全替换,即可。

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/dedecms/5972.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页