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

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

$token = get_token();

$g4[title] = "게시판 복사";
include_once("$g4[path]/head.sub.php");
?>

<link rel="stylesheet" href="./admin.style.css" type="text/css">
<style>
table tr td	{ color:#414141; }
table tr td input	{ color:#3C3D3E; font-family:Dotum; padding:3px; }
table tr td textarea	{ color:#3C3D3E; font-family:Dotum; padding:3px; line-height:160%; }
table tr td.col1	{ padding:3px; color:#71777F; font-weight:bold; }
table tr td.col2	{ padding:5px; color:#868687; }
div.msg		{ font:normal 11px Dotum; padding:4px; }
</style>

<?=subtitle($g4[title])?>
<div class="subtitle_msg">원본 게시판을 다른 이름으로 복사합니다.</div>

<form name="fboardcopy" method='post' onsubmit="return fboardcopy_check(this);" autocomplete="off">
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
<input type="hidden" name="token"    value="<?=$token?>">
<table width=100% cellpadding=4 cellspacing=0 class="tbl_box">
<colgroup width=30%>
<colgroup width=70%>
<tr>
	<td class="col1">원본 테이블</td>
	<td class="col2"><?=$bo_table?></td>
</tr>
<tr>
	<td class="col1">복사할 TABLE</td>
	<td class="col2"><input type=text class=ed name="target_table" size="20" maxlength="20" required alphanumericunderline itemname="TABLE"> 영문자, 숫자, _ 만 가능 (공백없이)</td>
</tr>
<tr>
	<td class="col1">게시판 제목</td>
	<td class="col2"><input type=text class=ed name='target_subject' size=60 maxlength=120 required itemname='게시판 제목' value='[복사본] <?=$board[bo_subject]?>'></td>
</tr>
<tr>
	<td class="col1">복사 유형</td>
	<td class="col2">
        <input type="radio" name="copy_case" value="schema_only" checked>구조만
        <input type="radio" name="copy_case" value="schema_data_both">구조와 데이터
    </td>
</tr>
<tr height=40>
	<td align="center" colspan="2">
        <input type="submit" value=" 복 사 " class=bttn_blue>&nbsp;
        <input type="button" value="창닫기" onclick="window.close();" class=bttn_common>
    </td>
</tr>
</table>

</form>

<script type='text/javascript'>
function fboardcopy_check(f)
{
    f.action = "./board_copy_update.php";
    return true;
}
</script>

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