织梦判断栏目是否有下级菜单

织梦判断栏目是否有下级菜单方法:

{dede:field name=typeid runphp='yes'} global $dsql; 
$sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 "; 
$row = $dsql->GetOne($sql); 
@me=is_array($row)?'有下级':'无下级'; {/dede:field}

原创文章,作者:技术大师,如若转载,请注明出处:https://www.xingkongweb.com/1898.html