'.zen_get_category_name($cate_array[$i], (int)$_SESSION['languages_id']).'
';
$index_cate_tree_sql="select c.categories_id, cd.categories_name,cd.categories_description, c.parent_id
from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
where c.categories_id = cd.categories_id
and c.categories_status=1 " .
" and c.parent_id='".$cate_array[$i]."' and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " ." order by c.parent_id, c.sort_order, cd.categories_name limit 6";
$categories = $db->Execute($index_cate_tree_sql);
$cid='';
while (!$categories->EOF) {
$cid.=$categories->fields['categories_id'].' ';
$cpath='cPath='.$cate_array[$i].'_'.$categories->fields['categories_id'];
$content.='
';
$categories->MoveNext();
}
// categories_description
$cid=ereg_replace(' ',',',trim($cid));
$content.='
';
$content.='