<? if (!defined("_GNUBOARD_")) exit; ?>
<style type="text/css">
.grplist		{ padding:8px; color:#FF8080; font-weight:bold; }
.grppoint		{ background-image:url("<?=$g4[path]?>/zm.extend/img/point.gif"); background-position:0px -209px; width:13px; height:12px; display:inline-block; }

.brdlist		{ padding:4px 4px 4px 20px; height:20px; }
.brdlist a		{ color:#6A829E; }

.crrtbrd		{ background:#6A829E; height:20px; }
.crrtbrd_a		{ color:#fff; }
</style>

<?
//-- 2012. 02. 08 ziumsoft 게시판 전체 목록 불러오기
$resgrplist		= sql_query("select gr_id, gr_subject from g4_group");
while($rdgrplist = mysql_fetch_array($resgrplist)) : ?>
	<div class='grplist'><span class="grppoint"></span><?=$rdgrplist[gr_subject]?></div>
	<div class="line"></div>
<?	//-- 그룹별 게시판 읽기
	$resbrdlist		= sql_query("select bo_table, gr_id, bo_subject from g4_board where gr_id='$rdgrplist[gr_id]'");
	while($rdbrdlist = mysql_fetch_array($resbrdlist)) :
		if($rdbrdlist[bo_table] == $bo_table) { $crrtbrd = "crrtbrd"; $crrtbrd_a = "crrtbrd_a"; } else { $crrtbrd = ""; $crrtbrd_a = ""; } ?>
		<div class='brdlist <?=$crrtbrd?>'>
			<a href='<?=$g4[path]?>/adm/board_form.php?bo_table=<?=$rdbrdlist[bo_table]?>&w=u'><span class="<?=$crrtbrd_a?>"><?=$rdbrdlist[bo_table]?></span></a>
		</div>
		<div class="line"></div>
<?	endwhile;
endwhile;
?>