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

  
///////////////빌더 data 를 불러온다///////////////////////////

 $g4_table[g4_site_bill]   =  "g4_site_bill"; 
  //수정인경우
 if($w == 'u'){

  $mct                      =  "  po_poll1      = '$bo_table' "; 
  $mct                     .=  " and  po_poll9  = 'bo_table' "; 
  $site_bill                = sql_fetch("select * from $g4_table[g4_site_bill] where  $mct");
 }

  // 생성
 if($w == ''){
  $gr_cf = sql_fetch("select * from $g4_table[g4_site_bill] where  po_poll1 = '$board[gr_id]' and po_poll9 = 'gr_id' ");

//로그인스킨
 $site_bill[po_poll2]  = "basic";

//좌측사이즈
 $site_bill[po_cnt5]   = 180;

//상단메뉴스킨
 $site_bill[po_poll4]  = "basic";
//좌측메뉴스킨
 $site_bill[po_poll5]  = "basic";

//1차 노출스킨
  $site_bill[po_poll6] = "basic";

//2차 노출스킨
  $site_bill[mb_ids]   = "basic";



 }




?>

      <table width=100% cellpadding=0 cellspacing=0 border=0 bordercolor="#CCCCCC" bordercolordark="white" bordercolorlight="#CCCCCC">
      <!-------------빌더 환경 시작------->
<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 메뉴 상단(1차) 이미지</td>
</tr>  
<tr><td colspan=4 class='line2'></td></tr>
<tr class='ht'>
    <td>메뉴상단이미지[1차](mouse out)</td>
    <td colspan="3">
        <input type=file name=po_poll19 class=ed size=60>
        <?
        if ($site_bill[po_poll19])
            echo "<br><a href='$g4[path]/data/file/$bo_table/$site_bill[po_poll19]' target='_blank'>$site_bill[po_poll19]</a> <input type=checkbox name='board_menu_del' value='$site_bill[po_poll19]'> 삭제";
        ?>
    </td>
</tr>

<tr class='ht'>
    <td>메뉴상단이미지[1차](mouse over)</td>
    <td colspan="3">
        <input type=file name=po_poll18 class=ed size=60>
        <?
        if ($site_bill[po_poll18])
            echo "<br><a href='$g4[path]/data/file/$bo_table/$site_bill[po_poll18]' target='_blank'>$site_bill[po_poll18]</a> <input type=checkbox name='board_menu_del2' value='$site_bill[po_poll18]'> 삭제";
        ?>
    </td>
</tr>
<tr class='ht'>
    <td>메뉴 링크 연결사용</td>
    <td colspan="3">
        <input type=text name=po_poll17 value='<?=$site_bill[po_poll17]?>' class=ed size='100%'>
    </td>
    <td></td>
</tr>
<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 메뉴 서브(2차) 이미지</td>
</tr>  
<tr><td colspan=4 class='line2'></td></tr>
<tr class='ht'>
    <td>메뉴서브이미지[2차](mouse out)</td>
    <td colspan="3">
        <input type=file name=po_poll16 class=ed size=60>
        <?
        if ($site_bill[po_poll16])
            echo "<br><a href='$g4[path]/data/file/$bo_table/$site_bill[po_poll16]' target='_blank'>$site_bill[po_poll16]</a> <input type=checkbox name='board_menu2_del' value='$site_bill[po_poll16]'> 삭제";
        ?>
    </td>
</tr>

<tr class='ht'>
    <td>메뉴서브이미지[2차](mouse over)</td>
    <td colspan="3">
        <input type=file name=po_poll15 class=ed size=60>
        <?
        if ($site_bill[po_poll15])
            echo "<br><a href='$g4[path]/data/file/$bo_table/$site_bill[po_poll15]' target='_blank'>$site_bill[po_poll15]</a> <input type=checkbox name='board_menu2_del2' value='$site_bill[po_poll15]'> 삭제";
        ?>
    </td>
</tr>
<tr class='ht'>
    <td>메뉴 링크 연결사용</td>
    <td colspan="3">
        <input type=text name=po_poll14 value='<?=$site_bill[po_poll14]?>' class=ed size='100%'>
    </td>
    <td></td>
</tr>

<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'>여분필드</td>
</tr>  
<tr><td colspan=4 class='line2'></td></tr>
<tr class='ht'>
    <td>게시판 타이틀</td>
    <td colspan="3">
        <input type=file name=po_poll14 class=ed size=60>
        <?
        if ($site_bill[po_poll14])
            echo "<br><a href='$g4[path]/data/file/$bo_table/$site_bill[po_poll14]' target='_blank'>$site_bill[po_poll14]</a> <input type=checkbox name='board_sub_bg_del' value='$site_bill[po_poll14]'> 삭제";
        ?>
    </td>
</tr>
<tr class='ht'>
    <td><input type=text name=po_poll10 value='<?=$site_bill[po_poll10]?>'  title='여분필드 po_poll10 제목' class=ed size='30'></td>
    <td colspan="3">
        <input type=text name=po_poll11 value='<?=$site_bill[po_poll11]?>'  title='여분필드 po_poll11 내용' class=ed size='100%'>
    </td>
</tr>
<tr class='ht'>
    <td><input type=text name=po_poll12 value='<?=$site_bill[po_poll12]?>'  title='여분필드 po_poll12 제목' class=ed size='30'></td>
    <td colspan="3">
        <input type=text name=po_poll13 value='<?=$site_bill[po_poll13]?>'  title='여분필드 po_poll13 내용' class=ed size='100%'>
    </td>
</tr>

<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 게시판 개별스킨설정</td>
</tr>
<tr><td colspan=4 class='line2'></td></tr>
<tr class='ht'>
    <td>게시판 외부로그인스킨</td>
    <td>
<select name=po_poll2 required itemname="외부로그인">
   <option value='1'>사용안함
        <?
        $arr = get_skin_dir("outlogin");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.po_poll2.value="<?=$site_bill[po_poll2]?>";</script>

    </td>
    <td>게시판 외부로그인사이즈</td>
    <td>
        <?
            echo "<input type='text' class=ed name='po_cnt5' value='$site_bill[po_cnt5]' maxlength=20>";
        ?>
    </td>
</tr>

<tr class='ht'>
    <td>게시판 메인구조스킨</td>
    <td>** 사용안함 **
    <!----------
<select name=po_poll3 required itemname="메인구조스킨">
        <?
        $arr = get_skin_dir("main");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.po_poll3.value="<?=$site_bill[po_poll3]?>";</script>

      --------->
    </td>
    <td>게시판 상단메뉴스킨</td>
    <td>
<select name=po_poll4 required itemname="상단메뉴스킨">
        <?
        $arr = get_skin_dir("head_menu");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.po_poll4.value="<?=$site_bill[po_poll4]?>";</script>
    </td>
</tr>


<tr class='ht'>
    <td>게시판 좌측메뉴스킨</td>
    <td>
<select name=po_poll5 required itemname="좌측메뉴스킨">
<option value='1'>사용안함
        <?
        $arr = get_skin_dir("sub_menu");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.po_poll5.value="<?=$site_bill[po_poll5]?>";</script>

    </td>
    <td>그릅 2단계분류</td>
    <td> ***미사용**  
    <!----
<select name=gr_8_subj required itemname="좌측메뉴">
        <?
        $arr = get_skin_dir("sub_menu");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardgroup.gr_8_subj.value="<?=$gr[gr_8_subj]?>";</script>
        
        --->

    </td>
</tr>

<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 메뉴=>노출등급/순서설정</td>
</tr>
<tr><td colspan=4 class='line2'></td></tr>

<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 메뉴=>노출등급/순서설정</td>
</tr>
<tr><td colspan=4 class='line2'></td></tr>

<tr class='ht'>
    <td>1차메뉴 노출등급</td>
    <td>
	<?
	if($w == ''){
    $site_bill["po_cnt6"] = '0';
	$selected  = $site_bill["po_cnt6"];
    }
	else{
	$selected  = $site_bill["po_cnt6"];
	}


    $num_op = array('사용안함'=>'0',
	            '상단메뉴노출'=>'1',
				   '상단출력2'=>'2', 
				   '상단출력3'=>'3', 
				   '상단출력4'=>'4', 
				   '상단출력5'=>'5', 
				   '상단출력6'=>'6', 
				   '상단출력7'=>'7', 
				   '상단출력8'=>'8', 
				    '하단노출'=>'9', 
		   '메인좌측바로가기'=>'10' 

						);
	$num_c  = count($num_op);
	$name   = "po_cnt6";
	$event  = "";

    $str = "<select name='$name' $event>";
	foreach ( $num_op as $key => $value ){
        $str .= "<option value='$value'";
        if ($value == $selected) 
            $str .= " selected";
            $str .= ">$key</option>";
	}
    $str .= "</select>";
    echo  $str;

	/***
    $str = "<select name='$name' $event>";
    for ($i=0; $i<=$num_c; $i++)
    {
        $str .= "<option value='$i'";
        if ($i == $selected) 
            $str .= " selected";
            $str .= ">$i</option>";
    }
    $str .= "</select>";
    echo  $str;
	***/


	?>

        <?//=get_member_level_select('po_cnt6', 1, 10, $site_bill["po_cnt6"]) ?>
        <?=help("1 ==> 메인상단 노출, 9 ==> 메인 하단노출.\n나머지는 자신의 사이트환경에 맞게 사용하세요..", 50)?>
    </td>
    <td>1차메뉴 정렬순서</td>
    <td >
        <?=get_member_level_select('po_cnt7', 1, 10, $site_bill["po_cnt7"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>

<tr class='ht'>
    <td>2차메뉴 노출등급</td>
    <td>
	<?
	if($w == ''){
    $site_bill["po_cnt8"] = '1';
	$selected  = $site_bill["po_cnt8"];
    }
	else{
	$selected  = $site_bill["po_cnt8"];
	}

    $num_op = array('그릅서브좌측노출'=>'1',
						  '노출안함'=>'10'
						  );
	$num_c  = count($num_op);
	$name   = "po_cnt8";
	$event  = "";

    $str = "<select name='$name' $event>";
	foreach ( $num_op as $key => $value ){
        $str .= "<option value='$value'";
        if ($value == $selected) 
            $str .= " selected";
            $str .= ">$key</option>";
	}
    $str .= "</select>";
    echo  $str;
	?>
        <?//=get_member_level_select('po_cnt8', 1, 10, $site_bill["po_cnt8"]) ?>
        <?=help("1 ==> 1차메뉴에 노출.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
    <td>2차메뉴 노출순서</td>
    <td >
        <?=get_member_level_select('po_cnt9', 1, 10, $site_bill["po_cnt9"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>


<tr class='ht'>
    <td colspan=4 class=title align=left><img src='<?=$g4[admin_path]?>/img/icon_title.gif'> 최신게시물설정</td>
</tr>
<tr><td colspan=4 class='line2'></td></tr>
<tr class='ht'>
    <td>메인페이지노출 최신게시물스킨</td>
    <td>
<select name=po_poll6 required itemname="최신게시물스킨">
        <?
        $arr = get_skin_dir("latest");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.po_poll6.value="<?=$site_bill[po_poll6]?>";</script>

    </td>
    <td>메인페이지노출 위치설정 </td>
    <td >
        <?=get_member_level_select('po_poll7', 1, 20, $site_bill["po_poll7"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>
<tr class='ht'>
    <td>메인페이지노출 수량설정</td>
    <td>
        <?=get_member_level_select('po_cnt4', 1, 30, $site_bill["po_cnt4"]) ?>
        <?=help("1 ==> 1차메뉴에 노출.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
    <td>메인페이지노출 제목길이 </td>
    <td >
    

        <?
            echo "<input type='text' class=ed name='po_cnt2' value='$site_bill[po_cnt2]' maxlength=20>";
        ?>

        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>

<tr class='ht'>
    <td>메인페이지노출 순서설정</td>
    <td>
        <?=get_member_level_select('po_poll8', 1, 30, $site_bill["po_poll8"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
    <td>메인페이지노출 가로출력</td>
    <td >
        <?=get_member_level_select('po_cnt11', 1, 10, $site_bill["po_cnt11"]) ?>
        <?=help(" 갤러리스킨의 경우 가로출력수량.\n자신에게 맞게 설정하세요.", 50)?>  
    </td>
</tr>



<tr class='ht'>
    <td>그릅페이지노출 최신게시물스킨</td>
    <td>
<select name=mb_ids required itemname="최신게시물스킨">
        <?
        $arr = get_skin_dir("latest");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?></select>
        <script language="JavaScript">document.fboardform.mb_ids.value="<?=$site_bill[mb_ids]?>";</script>

    </td>
    <td>그릅페이지노출 위치설정 </td>
    <td >
        <?=get_member_level_select('po_point', 1, 20, $site_bill["po_point"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>
<tr class='ht'>
    <td>그릅페이지노출 수량설정</td>
    <td>
        <?=get_member_level_select('po_ips', 1, 30, $site_bill["po_ips"]) ?>
        <?=help("1 ==> 1차메뉴에 노출.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
    <td>그릅페이지노출 제목길이 </td>
    <td >

        <?
            echo "<input type='text' class=ed name='po_cnt1' value='$site_bill[po_cnt1]' maxlength=20>";
        ?>

        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
</tr>
<tr class='ht'>
    <td>그릅페이지노출 순서설정</td>
    <td>
        <?=get_member_level_select('po_cnt3', 1, 30, $site_bill["po_cnt3"]) ?>
        <?=help(" 노출순서.\n자신에게 맞게 설정하세요.", 50)?>
    </td>
    <td>그릅페이지노출 가로출력</td>
    <td >
        <?=get_member_level_select('po_cnt12', 1, 10, $site_bill["po_cnt12"]) ?>
        <?=help(" 갤러리스킨의 경우 가로출력수량.\n자신에게 맞게 설정하세요.", 50)?>  
    </td>
</tr>



      </table>
