";
// echo "menuName : ".$menuName."
";
getLib();
}
?>
아미코스메틱
#### 팝업관리
include( $path_popup."inc.open.php" );
$now_date = date("Y-m-d",time());
function getPopup() {
global $dbcon, $now_date, $url_popup;
$SQL = "
select
pop_seq, pop_size_wid, pop_size_hei, pop_coor_top, pop_coor_left
from
tbl_popup
where
1=1
and pop_use = 'Y'
and pop_sdate <= '".$now_date."'
and pop_edate >= '".$now_date."'
order by pop_seq desc
limit 0, 5
";
//echo $SQL."
";
$rs = $dbcon -> query($SQL);
$popnum = 1;
$pop_wid = 0;
while ( $rows = $dbcon -> fetch_array($rs) ) {
$pop_seq = $rows["pop_seq"];
$pop_size_wid = $rows["pop_size_wid"]+10;
$pop_size_hei = $rows["pop_size_hei"];
$pop_coor_top = $rows["pop_coor_top"]+10;
$pop_coor_left = $rows["pop_coor_left"];
// popup("팝업창 url", "파라미터", "가로사이즈", "세로사이즈", "left좌표", "top좌표", "팝업번호")
//$pop_flag = popup( $root_path."_board/popup/preview.php", "?seq=".$seq."&popnum=".$popnum, $size_wid, $size_hei+10, $pop_wid, "0" , $popnum);
$pop_flag = popup( $url_popup."preview.php", "?pop_seq=".$pop_seq."&popnum=".$popnum, $pop_size_wid, $pop_size_hei+10, $pop_coor_top, $pop_coor_left , $popnum);
if ( $pop_flag == true) {
$pop_wid = $pop_wid + $size_wid+10;
}
$popnum++;
}
}
//end function
getPopup();
?>
#### 메인 게시물 추출
$bc_id = "bbs_media_notice";
$SQLTEMP0 = "
select seq, subject, regdate, secret
from tbl_board_".$bc_id."
where
notice = 'N'
and seq_level = 0
and ext8='y'
order by seq_sub desc
limit 0, 4
";
$RSTEMP0 = $dbcon -> query($SQLTEMP0);
?>
include $DOCUMENT_ROOT. "/share/inc/sub_footer.php"; ?>