'15',
'status' => '1',
);$result=M("cat")->where($mwhere)->order("sort asc,catid asc")->select();
$no=1;
foreach($result as $key=>$v){
if($v[id]&&$v[catid]){
$v[titleurl]=titleurl($v);
}
if($v[catid]){
$cat=M("cat")->find($v[catid]);
$v[caturl]=caturl($cat[catid]);
}
?>
$v[catid],
);$result=M("cat")->where($mwhere)->order("sort asc")->field("name,catid")->select();
$no=1;
foreach($result as $key=>$v){
if($v[id]&&$v[catid]){
$v[titleurl]=titleurl($v);
}
if($v[catid]){
$cat=M("cat")->find($v[catid]);
$v[caturl]=caturl($cat[catid]);
}
?>
{$v.name}