导航首页 » 网站优化

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

2023/03/11 12:23    魔司收录网    已浏览148次

织梦判断栏目是否有下级菜单方法:
01 {dede:field name=typeid runphp='yes'}
02  
03 global $dsql;
04  
05 $sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
06  
07 $row = $dsql->GetOne($sql);
08  
09 @me=is_array($row)?'有下级':'无下级';
10  
11 {/dede:field}