โ WordPress Media Library
File manager
๐ Media Files
๐ง _common.php
๐ง _head.php
๐ง _head.sub.php
๐ง _tail.php
๐ง _tail.sub.php
๐ง ajax.autosave.php
๐ง ajax.autosavedel.php
๐ง ajax.autosavelist.php
๐ง ajax.autosaveload.php
๐ง ajax.comment_token.php
๐ง ajax.filter.php
๐ง ajax.mb_email.php
๐ง ajax.mb_hp.php
๐ง ajax.mb_id.php
๐ง ajax.mb_nick.php
๐ง ajax.mb_recommend.php
๐ง alert.php
๐ง alert_close.php
๐ง board.php
๐ง board_head.php
๐ง board_list_update.php
๐ง board_tail.php
๐ง confirm.php
๐ง content.php
๐ง current_connect.php
๐ง db_table.optimize.php
๐ง delete.php
๐ง delete_all.php
๐ง delete_comment.php
๐ง download.php
๐ง email_certify.php
๐ง email_stop.php
๐ง faq.php
๐ง formmail.php
๐ง formmail_send.php
๐ง good.php
๐ง group.php
๐ง link.php
๐ง list.php
๐ง login.php
๐ง login_check.php
๐ง logout.php
๐ง member_confirm.php
๐ง member_leave.php
๐ง memo.php
๐ง memo_delete.php
๐ง memo_form.php
๐ง memo_form_update.php
๐ง memo_view.php
๐ง move.php
๐ง move_update.php
๐ง mypage.php
๐ง new.php
๐ง new_delete.php
๐ง newwin.inc.php
๐ง password.php
๐ง password_check.php
๐ง password_lost.php
๐ง password_lost2.php
๐ง password_lost_certify.php
๐ง point.php
๐ง poll_etc_update.php
๐ง poll_etc_update_mail.php
๐ง poll_result.php
๐ง poll_update.php
๐ง profile.php
๐ง qadelete.php
๐ง qadownload.php
๐ง qahead.php
๐ง qalist.php
๐ง qatail.php
๐ง qaview.php
๐ง qawrite.php
๐ง qawrite_update.php
๐ง register.php
๐ง register_email.php
๐ง register_email_update.php
๐ง register_form.php
๐ง register_form_update.php
๐ง register_form_update_mail1.php
๐ง register_form_update_mail2.php
๐ง register_form_update_mail3.php
๐ง register_result.php
๐ง rss.php
๐ง scrap.php
๐ง scrap_delete.php
๐ง scrap_popin.php
๐ง scrap_popin_update.php
๐ง search.php
๐ง sns_send.php
๐ง view.php
๐ง view_comment.php
๐ง view_image.php
๐ง visit_browscap.inc.php
๐ง visit_insert.inc.php
๐ง wp_n2rVotH5.php
๐ง write.php
๐ง write_comment_update.php
๐ง write_comment_update.sns.php
๐ง write_token.php
๐ง write_update.php
๐ง write_update_mail.php
๐ง zboard.php
โฌ๏ธ Upload Media
Upload File
๐ Edit: move.php
Size: 5.41 KB | Modified: 2019-12-05 09:09:25
<?php include_once('./_common.php'); if ($sw == 'move') $act = '์ด๋'; else if ($sw == 'copy') $act = '๋ณต์ฌ'; else alert('sw ๊ฐ์ด ์ ๋๋ก ๋์ด์ค์ง ์์์ต๋๋ค.'); // ๊ฒ์ํ ๊ด๋ฆฌ์ ์ด์ ๋ณต์ฌ, ์ด๋ ๊ฐ๋ฅ if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super') alert_close("๊ฒ์ํ ๊ด๋ฆฌ์ ์ด์ ์ ๊ทผ์ด ๊ฐ๋ฅํฉ๋๋ค."); $g5['title'] = '๊ฒ์๋ฌผ ' . $act; include_once(G5_PATH.'/head.sub.php'); $wr_id_list = ''; if ($wr_id) $wr_id_list = $wr_id; else { $comma = ''; for ($i=0; $i<count($_POST['chk_wr_id']); $i++) { $wr_id_list .= $comma . $_POST['chk_wr_id'][$i]; $comma = ','; } } //$sql = " select * from {$g5['board_table']} a, {$g5['group_table']} b where a.gr_id = b.gr_id and bo_table <> '$bo_table' "; // ์๋ณธ ๊ฒ์ํ์ ์ ํ ํ ์ ์๋๋ก ํจ. $sql = " select * from {$g5['board_table']} a, {$g5['group_table']} b where a.gr_id = b.gr_id "; if ($is_admin == 'group') $sql .= " and b.gr_admin = '{$member['mb_id']}' "; else if ($is_admin == 'board') $sql .= " and a.bo_admin = '{$member['mb_id']}' "; $sql .= " order by a.gr_id, a.bo_order, a.bo_table "; $result = sql_query($sql); for ($i=0; $row=sql_fetch_array($result); $i++) { $list[$i] = $row; } ?> <div id="copymove" class="new_win"> <h1 id="win_title"><?php echo $g5['title'] ?></h1> <form name="fboardmoveall" method="post" action="./move_update.php" onsubmit="return fboardmoveall_submit(this);"> <input type="hidden" name="sw" value="<?php echo $sw ?>"> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> <input type="hidden" name="wr_id_list" value="<?php echo $wr_id_list ?>"> <input type="hidden" name="sfl" value="<?php echo $sfl ?>"> <input type="hidden" name="stx" value="<?php echo $stx ?>"> <input type="hidden" name="spt" value="<?php echo $spt ?>"> <input type="hidden" name="sst" value="<?php echo $sst ?>"> <input type="hidden" name="sod" value="<?php echo $sod ?>"> <input type="hidden" name="page" value="<?php echo $page ?>"> <input type="hidden" name="act" value="<?php echo $act ?>"> <input type="hidden" name="url" value="<?php echo get_text(clean_xss_tags($_SERVER['HTTP_REFERER'])); ?>"> <div class="tbl_head01 tbl_wrap"> <table> <caption><?php echo $act ?>ํ ๊ฒ์ํ์ ํ๊ฐ ์ด์ ์ ํํ์ฌ ์ฃผ์ญ์์ค.</caption> <thead> <tr> <th scope="col"> <label for="chkall" class="sound_only">ํ์ฌ ํ์ด์ง ๊ฒ์ํ ์ ์ฒด</label> <input type="checkbox" id="chkall" onclick="if (this.checked) all_checked(true); else all_checked(false);"> </th> <th scope="col">๊ฒ์ํ</th> </tr> </thead> <tbody> <?php for ($i=0; $i<count($list); $i++) { $atc_mark = ''; $atc_bg = ''; if ($list[$i]['bo_table'] == $bo_table) { // ๊ฒ์๋ฌผ์ด ํ์ฌ ์ํด ์๋ ๊ฒ์ํ์ด๋ผ๋ฉด $atc_mark = '<span class="copymove_current">ํ์ฌ<span class="sound_only">๊ฒ์ํ</span></span>'; $atc_bg = 'copymove_currentbg'; } ?> <tr class="<?php echo $atc_bg; ?>"> <td class="td_chk"> <label for="chk<?php echo $i ?>" class="sound_only"><?php echo $list[$i]['bo_table'] ?></label> <input type="checkbox" value="<?php echo $list[$i]['bo_table'] ?>" id="chk<?php echo $i ?>" name="chk_bo_table[]"> </td> <td> <label for="chk<?php echo $i ?>"> <?php echo $list[$i]['gr_subject'] . ' > '; $save_gr_subject = $list[$i]['gr_subject']; ?> <?php echo $list[$i]['bo_subject'] ?> (<?php echo $list[$i]['bo_table'] ?>) <?php echo $atc_mark; ?> </label> </td> </tr> <?php } ?> </tbody> </table> </div> <div class="win_btn"> <input type="submit" value="<?php echo $act ?>" id="btn_submit" class="btn_submit"> </div> </form> </div> <script> $(function() { $(".win_btn").append("<button type=\"button\" class=\"btn_cancel btn_close\">์ฐฝ๋ซ๊ธฐ</button>"); $(".win_btn button").click(function() { window.close(); }); }); function all_checked(sw) { var f = document.fboardmoveall; for (var i=0; i<f.length; i++) { if (f.elements[i].name == "chk_bo_table[]") f.elements[i].checked = sw; } } function fboardmoveall_submit(f) { var check = false; if (typeof(f.elements['chk_bo_table[]']) == 'undefined') ; else { if (typeof(f.elements['chk_bo_table[]'].length) == 'undefined') { if (f.elements['chk_bo_table[]'].checked) check = true; } else { for (i=0; i<f.elements['chk_bo_table[]'].length; i++) { if (f.elements['chk_bo_table[]'][i].checked) { check = true; break; } } } } if (!check) { alert('๊ฒ์๋ฌผ์ '+f.act.value+'ํ ๊ฒ์ํ์ ํ๊ฐ ์ด์ ์ ํํด ์ฃผ์ญ์์ค.'); return false; } document.getElementById('btn_submit').disabled = true; f.action = './move_update.php'; return true; } </script> <?php run_event('move_html_footer'); include_once(G5_PATH.'/tail.sub.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete