복사, 이동 후 안내메세지 및 링크 추가

This commit is contained in:
chicpro
2013-01-16 10:02:56 +09:00
parent e56f83ed5a
commit 4f8e17f684

View File

@ -176,14 +176,20 @@ if ($sw == "move")
} }
$msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.'; $msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.';
$opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&$qstr'; $opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&'.$qstr;
echo <<<HEREDOC echo <<<HEREDOC
<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'> <meta http-equiv="content-type" content="text/html; charset={$g4['charset']}">
<script> <script>
alert("{$msg}"); alert("$msg");
opener.document.location.href = "{$opener_href}"; opener.document.location.href = "$opener_href";
window.close(); window.close();
</script> </script>
<noscript>
<p>
"$msg"
</p>
<a href="$opener_href">돌아가기</a>
</noscript>
HEREDOC; HEREDOC;
?> ?>