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

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

$token = get_token();

$g4['title'] = "게시판 복사";
include_once "{$g4['g4m_path']}/head.sub.php";
?>
<link rel="stylesheet" href="./admin.style.css" type="text/css">

<style type='text/css'>
    body{padding: 0}
</style>
<div class='row'>
    <div class="col-sm-12">
        <?php echo subtitle($g4['title']) ?>


        <form name="fboardcopy" method='post' onsubmit="return fboardcopy_check(this);" autocomplete="off" class='form-horizontal' role='form'>
            <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>">
            <input type="hidden" name="token"    value="<?php echo $token ?>">
            <div class='form-group'>
                <label class='control-label col-sm-2'>
                    원본 테이블
                </label>
                <div class='col-sm-10'>
                    <?php echo $bo_table ?>
                </div>
            </div>
            <div class='form-group'>
                <label class='control-label col-sm-2'>
                    복사할 TABLE
                </label>
                <div class='col-sm-10'>
                    <input type=text class='' name="target_table" size="20" maxlength="20" required alphanumericunderline itemname="TABLE"> 영문자, 숫자, _ 만 가능 (공백없이)
                </div>
            </div>
            <div class='form-group'>
                <label class='control-label col-sm-2'>
                    게시판 제목
                </label>
                <div class='col-sm-10'>
                    <input type=text class='' name='target_subject' size=60 maxlength=120 required itemname='게시판 제목' value='[복사본] <?php echo $board[bo_subject] ?>'>
                </div>
            </div>
            <div class='form-group'>
                <label class='control-label col-sm-2'>
                    복사 유형
                </label>
                <div class='col-sm-10'>
                    <input type="radio" name="copy_case" value="schema_only" checked>구조만
                    <input type="radio" name="copy_case" value="schema_data_both">구조와 데이터
                </div>
            </div>
            <div class='form-action col-sm-12'>
                <button type='submit' class='btn btn-primary'>복사</button>
                <input type="button" value="창닫기" onclick="window.close();" class='btn btn-default'>
            </div>



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

<?
include_once "{$g4['path']}/tail.sub.php";
?>
