프리샵 추가

This commit is contained in:
gnuboard
2013-01-25 11:48:46 +09:00
parent 52da376f32
commit 26088ece3b
583 changed files with 44699 additions and 0 deletions

18
shop/newwin.inc.php Normal file
View File

@ -0,0 +1,18 @@
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$sql = " select * from $g4[yc4_new_win_table]
where '$g4[time_ymdhis]' between nw_begin_time and nw_end_time
order by nw_id asc ";
$result = sql_query($sql);
for ($i=0; $row_nw=sql_fetch_array($result); $i++)
{
// 이미 체크 되었다면 Continue
if ($_COOKIE["ck_notice_{$row_nw[nw_id]}"])
continue;
?>
<script language="JavaScript">
var opt = "scrollbars=yes,width=<?=$row_nw[nw_width]+20?>,height=<?=($row_nw[nw_height]+5)?>,top=<?=$row_nw[nw_top]?>,left=<?=$row_nw[nw_left]?>";
popup_window("<?=$g4[shop_path]?>/newwinpop.php?nw_id=<?=$row_nw[nw_id]?>", "WINDOW_<?=$row_nw[nw_id]?>", opt);
</script>
<? } ?>