<?
$sub_menu = "350100";
include_once("./_common.php");

auth_check($auth[$sub_menu], "r");

if ($is_admin != "super")
    alert("최고관리자만 접근 가능합니다.");

$g4['title'] = "빌더설정";
include_once ("$g4[admin_path]/admin.head.php");
?>

<table width=100% cellpadding=0 cellspacing=0 border=0>
<form name=fconfigform method=post action='javascript:fconfigform_submit(document.fconfigform);'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>
<colgroup width=20% class='col1 pad1 bold right'>
<colgroup width=30% class='col2 pad2'>

<tr class='ht'>
    <td colspan=4 align=left><?=subtitle("일반 기능 설정")?></td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
    <td>검색 그룹 제외</td><td>
	<input type=text class=ed name='cf_home_ex_search' style='width:170;' value='<?=get_text($config[cf_home_ex_search])?>'>
	<input type=checkbox name=cf_home_ex_search_use value='1' <?=$config[cf_home_ex_search_use]?'checked':'';?>><b>사용</b>
        <?=help("제외할 그룹을 적으세요. <br>(예: '01','02')")?>
	</td>
	<td colspan='2'>사용체크를 하신다음에는 꼭 제외할 그룹이름을 넣으세요.<br></td>
</tr>

<tr class='ht'>
    <td>메인 그룹 제외</td><td>
	<input type=text class=ed name='cf_home_ex_main' style='width:170;' value='<?=get_text($config[cf_home_ex_main])?>'>
	<input type=checkbox name=cf_home_ex_main_use value='1' <?=$config[cf_home_ex_main_use]?'checked':'';?>><b>사용</b>
        <?=help("제외할 그룹을 적으세요. <br>(예: '01','02')")?>
	</td>
	<td colspan='2'>그렇지 않을경 우 정상적으로 출력되지 않을 수 있습니다.</td>
</tr>

<tr class='ht'>
    <td>서브 그룹 제외</td><td>
	<input type=text class=ed name='cf_home_ex_sub' style='width:170;' value='<?=get_text($config[cf_home_ex_sub])?>'>
	<input type=checkbox name=cf_home_ex_sub_use value='1' <?=$config[cf_home_ex_sub_use]?'checked':'';?>><b>사용</b>
        <?=help("제외할 그룹을 적으세요. <br>(예: '01','02')")?>
	</td>
	<td></td><td></td>
</tr>

<tr class='ht'>
    <td>게시판 그룹 제외</td><td>
	<input type=text class=ed name='cf_home_ex_board' style='width:170;' value='<?=get_text($config[cf_home_ex_board])?>'>
	<input type=checkbox name=cf_home_ex_board_use value='1' <?=$config[cf_home_ex_board_use]?'checked':'';?>><b>사용</b>
        <?=help("제외할 게시판을 적으세요. <br>(예: '01_1','02_1')")?>
	</td>
	<td></td><td></td>
</tr>

<tr><td colspan=4 class=line2></td></tr>
<tr><td colspan=4 class=ht></td></tr>

<tr class='ht'>
    <td colspan=4 align=left><?=subtitle("주요 스킨 설정")?></td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
    <td>메인 상단</td>
    <td valign=top>	
	<select id=cf_home_main_top_design name=cf_home_main_top_design>
       <? $arr = get_skin_dir("main/main_top");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_main_top_design').value="<?=$config[cf_home_main_top_design]?>";</script>
	<?=help("메인 상단 스킨을 변경합니다.")?>
	</td>
	<td></td>
    <td></td>
</tr>
<tr class='ht'>
    <td>- 중단</td>
    <td valign=top>	
	<select id=cf_home_main_middle_design name=cf_home_main_middle_design>
       <? $arr = get_skin_dir("main/main_middle");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_main_middle_design').value="<?=$config[cf_home_main_middle_design]?>";</script>
	<?=help("메인 중단 스킨을 변경합니다.")?>
	</td>
	<td></td><td></td>
</tr>
<tr class='ht'>
    <td>- 하단</td>
    <td valign=top>	
	<select id=cf_home_main_bottom_design name=cf_home_main_bottom_design>
       <? $arr = get_skin_dir("main/main_bottom");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_main_bottom_design').value="<?=$config[cf_home_main_bottom_design]?>";</script>
	<?=help("메인 하단 스킨을 변경합니다.")?>
	</td>
	<td></td><td></td>
</tr>
<tr class='ht'>
    <td>서브 상단</td>
    <td valign=top>
	<select id=cf_home_sub_top_design name=cf_home_sub_top_design>
       <? $arr = get_skin_dir("sub/sub_top");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_sub_top_design').value="<?=$config[cf_home_sub_top_design]?>";</script>
	<?=help("서브 상단 스킨을 변경합니다.")?>
	</td>
	<td></td>
	<td valign=top></td>
</tr>
<tr class='ht'>
    <td>- 중단</td>
    <td valign=top>
	<select id=cf_home_sub_middle_design name=cf_home_sub_middle_design>
       <? $arr = get_skin_dir("sub/sub_middle");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_sub_middle_design').value="<?=$config[cf_home_sub_middle_design]?>";</script>
	<?=help("서브 중단 스킨을 변경합니다.")?>
	</td>
	<td></td><td valign=top></td>
</tr>
<tr class='ht'>
    <td>- 하단</td>
    <td valign=top>
	<select id=cf_home_sub_bottom_design name=cf_home_sub_bottom_design>
       <? $arr = get_skin_dir("sub/sub_bottom");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_home_sub_bottom_design').value="<?=$config[cf_home_sub_bottom_design]?>";</script>
	<?=help("서브 하단 스킨을 변경합니다.")?>
	</td>
	<td></td><td valign=top></td>
</tr>
<tr><td colspan=4 class=line2></td></tr>
<tr><td colspan=4 class=ht></td></tr>

<tr class='ht'>
    <td colspan=4 align=left><?=subtitle("기타 스킨 설정")?></td>
</tr>
<tr><td colspan=4 class=line1></td></tr>
<tr class='ht'>
    <td>로그인</td>
    <td valign=top>	
	<select id=cf_skin_outlogin name=cf_skin_outlogin>
       <? $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.getElementById('cf_skin_outlogin').value="<?=$config[cf_skin_outlogin]?>";</script>
	<?=help("로그인 스킨을 변경합니다.")?>
	</td>
	<td></td>
    <td valign=top>
	</td>
</tr>
<tr class='ht'>
    <td>최신글</td>
    <td valign=top>	
	<select id=cf_skin_latest name=cf_skin_latest>
       <? $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.getElementById('cf_skin_latest').value="<?=$config[cf_skin_latest]?>";</script>
	<?=help("최신글 스킨을 변경합니다.")?>
	</td>
	<td></td>
    <td valign=top>
	</td>
</tr>
<tr class='ht'>
    <td>투&nbsp;&nbsp;&nbsp;표</td>
    <td valign=top>	
	<select id=cf_skin_poll name=cf_skin_poll>
       <? $arr = get_skin_dir("poll");
        for ($i=0; $i<count($arr); $i++) {
            echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
        }
        ?>
	</select>
    <script language="JavaScript"> document.getElementById('cf_skin_poll').value="<?=$config[cf_skin_poll]?>";</script>
	<?=help("투표 스킨을 변경합니다.")?>
	</td>
	<td></td>
    <td valign=top>
	</td>
</tr>
<tr><td colspan=4 class=line2></td></tr>
<tr><td colspan=4 class=ht></td></tr>
</table>
<p align=center>
    <input type=submit class=btn1 accesskey='s' value='  확  인  '>
</form>

<script language="javascript">
function fconfigform_submit(f)
{
    f.action = "./builder_skin_form_update.php";
    f.submit();
}
</script>

<?
include_once ("$g4[admin_path]/admin.tail.php");
?>