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

$templete_path = "$g4[path]/skin/22cafe";
?>

<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=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='<?=$templete_path?>/<?=$config[cf_templete]?>/img/preview.gif' width=500 height=380 border=0>
                    </td>
		<td valign="top"><br>
		<font color="#d79d80"><b>템플릿레이아웃 선택</b></font><br><br>
		템플릿 경로 : ../skin/22cafe/<br><br>
		<select id=cf_templete name=cf_templete required itemname="템플릿관리">
		<option value=''>선택하세요</option>
		<?
		$arr = get_skin_dir("22cafe");
		for ($i=0; $i<count($arr); $i++) {
			echo "<option value='$arr[$i]'>$arr[$i]</option>\n";
		}
		?>
		</select>
		<script language="JavaScript"> document.getElementById('cf_templete').value="<?=$config[cf_templete]?>";</script>
		<?=help("원하시는 템플릿을 선택하세요")?>


	<br>
</td>
	</tr>

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

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

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

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