0)
{
$admin_catalog = join(',', $admin_catalogs);
$dsql->SetQuery(" SELECT channeltype FROM `#@__arctype` WHERE id IN({$admin_catalog}) GROUP BY channeltype ");
}
else
{
$dsql->SetQuery(" SELECT channeltype FROM `#@__arctype` GROUP BY channeltype ");
}
$dsql->Execute();
$candoChannel = '';
while($row = $dsql->GetObject())
{
$candoChannel .= ($candoChannel=='' ? $row->channeltype : ','.$row->channeltype);
}
if(empty($candoChannel)) $candoChannel = 1;
$dsql->SetQuery("SELECT id,typename,addcon,mancon FROM `#@__channeltype` WHERE id IN({$candoChannel}) AND id<>-1 AND isshow=1 ORDER BY id ASC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$addset .="
SetQuery("SELECT * FROM `#@__sys_module` ORDER BY id DESC");
$dsql->Execute();
while($row = $dsql->GetObject())
{
$moduleset = $row->menustring;
if(empty($moduleset)){
continue;
}
$t_menu_title=truanceliink($moduleset,$error);
if($t_menu_title===false){
echo $error;
}else{
echo $t_menu_title;
}
}
function truanceliink($trancelink,&$error){
$p1="/'.$m1[1].'';
$p2="/'.$m2[$i][1].'';
}
$str2='
'. $str2 . '
';
$str=$str1.$str2;
return $str;
}else{
$error='itemg1 is not be found';
return FALSE;
}
}else{
$error='item is not be found';
return FALSE;
}
}else{
$error='topg1 is not be found';
return FALSE;
}
}else{
$error='top is not be found';
return FALSE;
}
}
?>