<?
$sub_menu = "999300";
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");

$outlogin_skin_path = "$g4[path]/skin/outlogin";
$poll_skin_path = "$g4[path]/skin/poll";
$visit_skin_path = "$g4[path]/skin/visit";
$connect_skin_path = "$g4[path]/skin/connect";
?>

<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><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 bgcolor="#FFFFFF" align="center">
                    <td>
                        <img src='<?=$outlogin_skin_path?>/<?=$config[cf_skin_outlogin]?>/img/preview.gif' width=200 height=160 border=0>
                    </td>
		<td>
<br><b><font size="5">외부로그인스킨</font></b>
<br>
<br><b>설명</b>&nbsp;&nbsp;&nbsp;외부로그인(outlogin) 스킨을 선택합니다.
<br>
<br><b>경로</b>&nbsp;&nbsp;&nbsp;../skin/outlogin/
<br></td><td><select id=cf_skin_outlogin name=cf_skin_outlogin required itemname="외부로그인">
		<option value=''>선택하세요</option>
		<?
		$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("외부로그인(outlogin) 스킨을 선택합니다.")?></td>
	</tr>
	<tr><td colspan=4 class=line1></td></tr>
	<tr bgcolor="#FFFFFF" align="center">
                    <td>
                        <img src='<?=$poll_skin_path?>/<?=$config[cf_skin_poll]?>/img/preview.gif' width=200 height=160 border=0>
                    </td>
		<td>
<br><b><font size="5">설문조사스킨</font></b>
<br>
<br><b>설명</b>&nbsp;&nbsp;&nbsp;설문조사(poll) 스킨을 선택합니다.
<br>
<br><b>경로</b>&nbsp;&nbsp;&nbsp;../skin/poll/
<br></td><td><select id=cf_skin_poll name=cf_skin_poll required itemname="설문조사">
		<option value=''>선택하세요</option>
		<?
		$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("설문조사(poll) 스킨을 선택합니다.")?></td>
	</tr>
	<tr><td colspan=4 class=line1></td></tr>
	<tr bgcolor="#FFFFFF" align="center">
                    <td>
                        <img src='<?=$visit_skin_path?>/<?=$config[cf_skin_visit]?>/img/preview.gif' width=200 height=160 border=0>
                    </td>
		<td>
<br><b><font size="5">방문자스킨</font></b>
<br>
<br><b>설명</b>&nbsp;&nbsp;&nbsp;방문자(visit) 스킨을 선택합니다.
<br>
<br><b>경로</b>&nbsp;&nbsp;&nbsp;../skin/visit/
<br></td><td><select id=cf_skin_visit name=cf_skin_visit required itemname="방문자">
		<option value=''>선택하세요</option>
		<?
		$arr = get_skin_dir("visit");
		for ($i=0; $i<count($arr); $i++) {
			echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
		}
		?>
		</select>
		<script language="JavaScript"> document.getElementById('cf_skin_visit').value="<?=$config[cf_skin_visit]?>";</script>
		<?=help("방문자(visit) 스킨을 선택합니다.")?></td>
	</tr>
	<tr><td colspan=4 class=line1></td></tr>
	<tr bgcolor="#FFFFFF" align="center">
                    <td>
                        <img src='<?=$connect_skin_path?>/<?=$config[cf_skin_connect]?>/img/preview.gif' width=200 height=160 border=0>
                    </td>
		<td>
<br><b><font size="5">현재접속자스킨</font></b>
<br>
<br><b>설명</b>&nbsp;&nbsp;&nbsp;현재접속자(connect) 스킨을 선택합니다.
<br>
<br><b>경로</b>&nbsp;&nbsp;&nbsp;../skin/connect/
<br></td><td><select id=cf_skin_connect name=cf_skin_connect required itemname="현재접속자">
		<option value=''>선택하세요</option>
		<?
		$arr = get_skin_dir("connect");
		for ($i=0; $i<count($arr); $i++) {
			echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
		}
		?>
		</select>
		<script language="JavaScript"> document.getElementById('cf_skin_connect').value="<?=$config[cf_skin_connect]?>";</script>
		<?=help("현재접속자(connect) 스킨을 선택합니다.")?></td>
	</tr>

	<tr><td colspan=4 class=line1></td></tr>
</table>

<p align=center>
    <input type=submit class=btn1 accesskey='s' value='  확  인  '>
</form>

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

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