팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ) > 그누4 질문답변

그누4 질문답변

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

팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ) 정보

팝업창 주소 안보이게 하는 방법 좀 (급합니다. ㅜ.ㅜ)

본문

아래는 현재 소스입니다....




<?
ob_start();
///팝업테이블명
include_once("$g4[path]/popup_setup.php");




if(!$member[mb_level] || $member[mb_level]=="1"){///회원이 아닌경우[손님]


$sql="select * from {$popup_table} where check_use='Y' and (level=0 or level=1)";

$result=@mysql_query($sql,$connect_db);

echo "<script language=\"javascript\">";

for($i=0;$row=mysql_fetch_array($result);$i++)
{
$no=$row[no];

if($row[menubar]=="Y"){ $menubar="yes";}else{ $menubar="no";}
if($row[toolbar]=="Y"){ $toolbar="yes";}else{ $toolbar="no";}
if($row[scrollbars]=="Y"){ $scrollbars="yes";}else{ $scrollbars="no";}
if($row[resizable]=="Y"){ $resizable="yes";}else{ $resizable="no";}
if($row[status]=="Y"){ $status="yes";}else{ $status="no";}


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

$size=GetImageSize($_zb_path."popup_images/".$row[back_ground]);
$width=$size[0];
$height=$size[1] + 30;
}else if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($_zb_path."popup_images/".$row[img_file]);
$width=$size[0];
$height=$size[1] + 30;
}else{
$width=$row[width];
$height=$row[height]+30;

}



$center=$row[center];

if($center!="Y"){
$popup_left=$row[popup_left];
$popup_top=$row[popup_top];

$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left=$popup_left,top=$popup_top";

}else{?>

var left_pos,top_pos;

left_pos=(screen.width-<?=$width?>)/2;
top_pos=(screen.height-<?=$height?>)/2;


<?
$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left='+left_pos+',top='+top_pos+'";
}//중앙정렬인경우의 끝


if(!$cookie[$no])
{echo "window.open('".$g4[url]."/popup_view.php?no=$no','new_win$i','$option');"; }

}

echo "</script>";
}else{//회원인경우--------------


$sql="select * from {$popup_table} where check_use='Y' and (level=0 or level={$member[mb_level]})";

$result=mysql_query($sql,$connect_db);


echo "<script language=\"javascript\">";

for($i=0;$row=mysql_fetch_array($result);$i++)
{


$no=$row[no];

if($row[menubar]=="Y"){ $menubar="yes";}else{ $menubar="no";}
if($row[toolbar]=="Y"){ $toolbar="yes";}else{ $toolbar="no";}
if($row[scrollbars]=="Y"){ $scrollbars="yes";}else{ $scrollbars="no";}
if($row[resizable]=="Y"){ $resizable="yes";}else{ $resizable="no";}
if($row[status]=="Y"){ $status="yes";}else{ $status="no";}



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

$size=GetImageSize($_zb_path."popup_images/".$row[back_ground]);
$width=$size[0];
$height=$size[1] + 30;
}else if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($_zb_path."popup_images/".$row[img_file]);
$width=$size[0];
$height=$size[1] + 30;
}else{
$width=$row[width];
$height=$row[height]+30;

}

$center=$row[center];

if($center!="Y"){
$popup_left=$row[popup_left];
$popup_top=$row[popup_top];

$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left=$popup_left,top=$popup_top";

}else{?>

var left_pos,top_pos;

left_pos=(screen.width-<?=$width?>)/2;
top_pos=(screen.height-<?=$height?>)/2;
<?
$option="menubar=$menubar,scrollbars=$scrollbars,status=$status,toolbar=$toolbar,resizable=$resizable,width=$width,height=$height,left='+left_pos+',top='+top_pos+'";
}


if(!$cookie[$no])
{echo "window.open('".$g4[url]."/popup_view.php?no=$no','new_win$i','$option');"; }


}

echo "</script>";

}
?>

댓글 전체

전체 29 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT