<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

//$site_bill_cf = "$g4[path]/shop/cf";

if($gr_id && !$bo_table){
  $title_subject = "그릅페이지 환경설정 : 그릅에 전체폭, 좌측폭, 좌측과 메인사이폭, 메인폭, 우측폭";
	}
else if($bo_table){
  $title_subject = "게시판 환경설정 : 게시판 환경설정 모든것.";
}
else{
  $title_subject = "첫페이지 환경설정 : 상단메뉴관리";
}
    //빌더정보 호출[메인상단]
    $mct          =  "po_cnt6  = '1'"; // 1 설정 메뉴[상단메뉴]
    $sql          = " select * from $g4[site_bill] where $mct order by po_cnt7 , po_poll1"; 
    $result      = sql_query($sql); 
	$total_count  = mysql_num_rows($result);



?>

<table width="100%"  border="0" cellspacing="0" cellpadding="0" >
<tr><td valign="top">
  <table width="100%"  border="0" cellspacing="0" cellpadding="0" >
  <tr class='ht'>
    <td colspan=2 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> <?=$title_subject?></td>
  </tr>
  <tr><td colspan=2 ></td></tr>
  <tr><td colspan=2 >

  <form action="<?=$site_bill_cf?>/menu_update.php" method=post enctype="multipart/form-data">
  <input type=hidden name=gr_id   value="<?=$gr_id?>">
  <input type=hidden name=bo_table   value="<?=$bo_table?>">
  <input type=hidden name=wr_id   value="<?=$wr_id?>">
  <!----스킨 세팅정보---->
  <input type=hidden name=act   value="<?=$act?>">
  
  <table   border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td style='padding-left:5px; height:30px; width:100px;' align="center">메뉴명(순서)<br>사용체크</td>
    <td style='padding-left:10px;'>
	<table   border="0" cellspacing="0" cellpadding="0" >
	<tr>
      <?
	  $cn= 7;
    for($k=0;$k<count($list = sql_fetch_array($result));$k++) 
    {
	    if($k >0 && $k%$cn == 0)
		  echo "</tr><td height=5></td><tr>";

		  ?>
		<input type=hidden name=po_poll1_<?=$k?>   value="<?=$list[po_poll1]?>">
        <td style='padding-left:10px;'>
		<table   border="0" cellspacing="0" cellpadding="0" >
		<tr><td>
		<input  maxlength=20 size=15 name=m_<?=$k?> itemname="<?=$list[po_subject]?>"  value="<?=$list[po_subject]?>">
		<td>
        <input  maxlength=2 size=1 name=s_<?=$k?>   value="<?=$list[po_cnt7]?>">
		</td></tr>
        <tr><td colspan=2 align="center">
		<!---
		<input type=checkbox name="k_<?=$k?>" id="k_<?=$k?>"  name="k_<?=$k?>" value="1" checked>
		--->
		</td></tr></table>
		</td>
	     <?
  }?>
   <? if ($total_count == 0) { echo "<td>분류가 존재하지 않습니다.</td>"; } ?>
   </tr></table>

  </td>
  </tr>
  </table>
	<table   border="0" cellspacing="0" cellpadding="0" >
	<tr>
    <td style='padding-left:5px; height:30px; width:100px;' align="center">신규(이름)</td>
    <td style='padding-left:10px;'>
	<table   border="0" cellspacing="0" cellpadding="0" >
	<tr><td>
	&nbsp;<a href='<?=$g4[path]?>/adm/boardgroup_form.php?act=<?=$act?>'>그릅추가</a>
	&nbsp;<a href='<?=$g4[path]?>/adm/boardgroup_list.php'>게시판그릅관리</a>
	<?if($sub_menu == '300200'){?>
	&nbsp;:&nbsp; ** 주위: 그릅 추가시 <strong>1차메뉴의 노출등급</strong>을 <b> " 1 " </b> 로 설정하셔야 메뉴상단에 노출됩니다.<br>
	(" 1 "). 상단메뉴, (" 10 ") 메인 퀵메뉴, (" 9 ") 메인 하단 노출,  그 이외의 번호는 자신의 사이트 특징에 맞게 환경설정하세요. 

	<?}?>

	</td></tr>
	</table>
	</td>
	</tr>
	</table>
  <table  border="0" cellpadding=0 cellspacing=0>
  <tr><td height="5"></td></tr>
  <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="formbutton1" value="환경설정저장"></td></tr>
  </table> 
  </form>
  </td></tr>
  </table>

</td></tr></table>