update 파일의 밑부분에 있는 alert 인데요..
alert("수정했습니다., "{$https_url}/bbs/board.php?bo_table=$bo_table&page=$page" . $qstr);
이걸...
confirm으로 바꾸어 확인을 클릭하면 일정 페이지로 이동시키고 취소하면 그냥 그 페이지로 가고..
이렇게 바꿀 수 있나요?
alert("수정했습니다., "{$https_url}/bbs/board.php?bo_table=$bo_table&page=$page" . $qstr);
이걸...
confirm으로 바꾸어 확인을 클릭하면 일정 페이지로 이동시키고 취소하면 그냥 그 페이지로 가고..
이렇게 바꿀 수 있나요?
댓글 3개
function confirm($msg='', $url='', $next_url='')
{
global $g4;
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
@header("Content-Type: text/html; charset=$g4[charset]");
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script type='text/javascript'>var result =confirm('$msg');";
echo "if(result && !!'$next_url'==true) { location.replace('$next_url'); }else {";
if (!$url)
echo "history.go(-1);";
else
echo "location.replace('$url');";
echo " } ";
echo "</script>";
exit;
}
/lib/common.lib.php 에 넣어 주시고 사용하면 될것 같네요
{
global $g4;
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
@header("Content-Type: text/html; charset=$g4[charset]");
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script type='text/javascript'>var result =confirm('$msg');";
echo "if(result && !!'$next_url'==true) { location.replace('$next_url'); }else {";
if (!$url)
echo "history.go(-1);";
else
echo "location.replace('$url');";
echo " } ";
echo "</script>";
exit;
}
/lib/common.lib.php 에 넣어 주시고 사용하면 될것 같네요
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기