AvocadoAmber/AvocadoEdition_Light/adm/board_copy.php

83 lines
2.6 KiB
PHP
Raw Normal View History

2024-09-19 20:57:39 +09:00
<?php
$sub_menu = "300100";
2024-09-23 11:07:19 +09:00
include_once "./_common.php";
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
auth_check($auth[$sub_menu], 'w');
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
$g5['title'] = '게시판 복사';
include_once G5_PATH . "/head.sub.php";
2024-09-19 20:57:39 +09:00
?>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<script src="<?php echo G5_ADMIN_URL ?>/js/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<div class="new_win">
<h1><?php echo $g5['title']; ?></h1>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<div class="new_win_desc">
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
</div>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<form name="fboardcopy" id="fboardcopy" action="./board_copy_update.php" onsubmit="return fboardcopy_check(this);"
method="post">
<input type="hidden" name="bo_table" value="<?php echo $bo_table ?>" id="bo_table">
<input type="hidden" name="token" value="">
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<div class="tbl_frm01 tbl_wrap">
<table>
<caption><?php echo $g5['title']; ?></caption>
<tbody>
<tr>
<th scope="col" style="width:100px;">원본 테이블명</th>
<td><?php echo $bo_table ?></td>
</tr>
<tr>
<th scope="col"><label for="target_table">복사 테이블명<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('영문자, 숫자, _ 만 가능 (공백없이)'); ?>
<input type="text" name="target_table" id="target_table" required class="required alnum_ frm_input"
maxlength="20">
</td>
</tr>
<tr>
<th scope="col"><label for="target_subject">게시판 제목<strong class="sound_only">필수</strong></label></th>
<td><input type="text" name="target_subject" value="[복사본] <?php echo $board['bo_subject'] ?>"
id="target_subject" required class="required frm_input full" maxlength="120"></td>
</tr>
<tr>
<th scope="col">복사 유형</th>
<td>
<input type="radio" name="copy_case" value="schema_only" id="copy_case" checked>
<label for="copy_case">구조만</label>
<input type="radio" name="copy_case" value="schema_data_both" id="copy_case2">
<label for="copy_case2">구조와 데이터</label>
</td>
</tr>
</tbody>
</table>
</div>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<div class="btn_win02 btn_win">
<input type="submit" class="btn_submit" value="복사">
<input type="button" class="btn_cancel" value="창닫기" onclick="window.close();">
</div>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
</form>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
</div>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<script>
function fboardcopy_check(f) {
if (f.bo_table.value == f.target_table.value) {
alert("원본 테이블명과 복사할 테이블명이 달라야 합니다.");
return false;
}
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
return true;
}
</script>
2022-09-17 20:50:50 +09:00
2024-09-19 20:57:39 +09:00
<?php
include_once G5_PATH . "/tail.sub.php";
2024-09-19 20:57:39 +09:00
?>