팝업창 창닫기 버튼이 안됩니다.

1.gif
그누보드 스킨 http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=82589&sca=&sfl=wr_subject&stx=%ED%8C%9D%EC%97%85&sop=and&spt=-3118&page=1
을 쓰고 있습니다.

팝업창 아래 닫기 체크박스를 누르면 닫기가 안됩니다.

어디가 문제인지 가르쳐 주세요

popup_view.php 가 아래와 같습니다.

<?
header('P3P: CP="NOI CURa ADMa DEVa TAIa OUR DELa BUS IND PHY ONL UNI COM NAV INT DEM PRE"');
if(isset($_POST["mode"]) && $_POST["mode"]=="check")
{

$gigan_time=time() + $gigan*86400;

setcookie("cookie_$no","Y",$gigan_time,"/");

echo "<script>
self.close();
</script>";
exit;

}


include_once("./_common.php");
///팝업테이블명



$sql="select * from {$g4[site_popup_table]} where no=$no ";

$result=mysql_query($sql);
$row=mysql_fetch_array($result);

$title=stripslashes($row[title]);
$check_input=$row[check_input];

$content=stripslashes($row[content]);




$img_file=$row[img_file];
$img_url=$row[img_url];
$gigan=$row[gigan];

switch($gigan)
{
case '1':
$gigan_text="하루동안 보이지 않습니다";
break;
case '2':
$gigan_text="이틀동안 보이지 않습니다";
break;

case '3':
$gigan_text="사흘동안 보이지 않습니다";
break;

case '7':
$gigan_text="일주일동안 보이지 않습니다";
break;

case '15':
$gigan_text="보름동안 보이지 않습니다";
break;

case '0':
$gigan_text="다음에 보이지 않습니다.";
break;

default:
$gigan_text="하루동안 보이지 않습니다";
break;
}


//----이미지파일을 너비/높이로.변경....
if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($g4[path]."/popup_img/".$row[img_file]);
$width=$size[0];
$height=$size[1];
}else{
$width=$row[width];
$height=$row[height];

}

if($img_url){
$a_img_start="<a href='{$img_url}' target=_blank>";
$a_img_end="</a>";
}else{
$a_img_start="";
$a_img_end="";
}



?>
<html>
<head>
<title><?=$title?></title>
<style type='text/css'>
TABLE {font-size:12px;}
.font_11{font-size:11px;font-family:돋움}
</style>

</head>
<body topmargin=0 leftmargin=0>

<input type=hidden name='mode' value='check'>
<input type=hidden name='no' value='<?=$no?>'>
<?if($check_input=="TEXT") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=100% >
<tr>
<td valign=top height=100%><?=$content?></td>
</tr>
<? }//컨텐츠 끝?>
<?if($check_input=="IMG") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=100% >
<tr>
<td align=center valign=top height=100%><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
<? }//이미지 끝?>

<tr>
<td height=30 bgcolor=#000000 valign=middle>
<font color=#FFFFFF class='font_11'>&nbsp;&nbsp;<?=$gigan_text?></font>&nbsp;
<input type=checkbox name="gigan" value="<?=$gigan?>"
onclick="javascript:form1.submit()">
</td>
</tr>
</form>
</table>
</body>
</html>

첨부파일

1.gif (37.8 KB)
0회 2011-05-29 21:28
|

댓글 2개

닫기 버튼이 없는거네용 만들어야할듯.
어떻게 만들어야 하나여?
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
14년 전 조회 958
14년 전 조회 977
14년 전 조회 1,623
14년 전 조회 1,693
14년 전 조회 1,518
14년 전 조회 1,434
14년 전 조회 1,512
14년 전 조회 1,546
14년 전 조회 1,602
14년 전 조회 2,235
14년 전 조회 933
14년 전 조회 955
14년 전 조회 914
14년 전 조회 948
14년 전 조회 994
14년 전 조회 1,030
14년 전 조회 490
14년 전 조회 691
14년 전 조회 792
14년 전 조회 1,551
🐛 버그신고