因为自己最近研究DT7.0,把7.0改为一个资讯门户站点,抛弃了之前的产品展示。所以增加了很多模块,增加了许多新分类。可以参考这个网站:365信息网
在api/extend.func.php
//新分类排列
function current_catid($catid, $moduleid, $level = -1) {
global $db;
$condition = $catid ? "parentid in($catid)" : "moduleid=$moduleid AND parentid=0";
if($level >= 0) $condition .= " AND level=$level";
$cat = array();
$result = $db->query("selec catid,catname,child,style,linkurl,item from {$db->pre}category wher $condition ORDER BY listorder,catid ASC", 'CACHE');
while($r = $db->fetch_array($result)) {
$cat[] = $r;
}
return $cat;
}
这样就好了