{@ if ($mi->category_count == ''): if ($grant->manager): $category_count = true; else: $category_count = false; endif; elseif ($mi->category_count == 'y'): $category_count = true; else: $category_count = false; endif; }

- {$lang->total}
- {@ $cate_list_tl = array(); $current_key = null; $category_list = getModel('document')->getCategoryList($val->module_srl); foreach ($category_list as $k=>$v) : if (!$v->depth): $cate_list_tl[$k] = $v; $cate_list_tl[$k]->children = array(); $current_key = $k; elseif ($current_key): $cate_list_tl[$current_key]->children[] = $v; endif; endforeach; } {$val->browser_title}
  - {$v->title}

- {$lang->category}: {$lang->total} {$article_count->total}
- {$val->title} {$val->document_count}
  - {$item->title} {$item->document_count}