include_once "./_common.php"; if (!$cb[cb_id]) { error_msg("{$cb_id} Ŭ·´ÀÌ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù."); } $g4[title] = "$cb[cb_name]:Ŭ·´¸Þ´º±ÇÇѰü¸® - $nc[nf_title]"; include_once "$g4[path]/head.sub.php"; include_once "./include/cb_style.inc.php"; $list = Array(); $sql = " select * from $nc[tbl_mb_level] where cb_id = '$cb[cb_id]' order by cm_level asc "; $result = mysql_query($sql); for ($i=0; $row=mysql_fetch_array($result); $i++) { $list[$i] = $row; } $sql = " select a.*, count(b.wr_id) as total from $nc[tbl_menu] as a left join $g4[write_prefix]{$cb_id} as b on a.cn_name = b.ca_name where cb_id = '$cb[cb_id]' and cn_type <> 'G' and cn_type <> 'U' and cn_type <> 'L' group by cn_name order by cn_idx asc "; $result = mysql_query($sql); ?>