if($type==’son’ && $reid!=0 && $totalRow==0) |
if($type==’son’ && $reid!=0 && $totalRow==0 && $noself==’’) |
<ul> {dede:channelartlist typeid=’10’} <li class="li_biaoti"><a class="s" href="{dede:field name=’typeurl’/}" >{dede:field name=’typename’/}</a></li> {dede:channel type=’son’ noself=’yes’} <li><a class="t" href="[field:typelink/]">[field:typename/]</a></li> {/dede:channel} {/dede:channelartlist} </ul> |
//如果用子栏目模式,当没有子栏目时显示同级栏目 if($type=='son' && $reid!=0 && $totalRow==0) { $sql = "SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,keywords,description,arcpic,sitepath FROM `dede_arctype` WHERE reid='$reid' And ishidden<>1 order by sortrank asc limit 0, $line "; $dsql->SetQuery($sql); $dsql->Execute(); } |