- =get_group_name($gr_id);?> Category
$sql = " select bo_subject, bo_table, bo_count_write from {$g4['board_table']} where gr_id = '$gr_id' and bo_use in ('both', 'mobile') order by bo_order_search ";
$result = sql_query($sql);
for ($k=0; $row=sql_fetch_array($result); $k++) {
$active = "";
if ($row[bo_table] == get_cookie("ck_bo_table"))
$active = ' class="active"';
$li_count = "";
if ($row[bo_count_write])
$li_count = "$row[bo_count_write]";
echo "\n- $row[bo_subject]$li_count
";
}
?>
- Category List
$sql = " select gr_id, gr_subject from {$g4['group_table']} where gr_use in ('both', 'mobile') order by gr_order ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$row2 = sql_fetch(" select count(*) as cnt from $g4[board_table] where gr_id = '$row[gr_id]' and bo_use in ('both', 'mobile') ");
$li_count = "";
if ($row2[cnt])
$li_count = "$row2[cnt]";
echo "\n- $row[gr_subject]$li_count
";
}
?>
include_once($g4['path'].'/tail.sub.php');
?>