1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php include_once("./_common.php"); include_once($j3_shopm_path."/shop_header.php");
$sql = "select idx, ev_type, ev_subject from shop_event where ev_use = '1' order by reg_date"; // 이벤트 리스트를 가져온다. $res = mysql_query($sql,$connect_j3); while($info = mysql_fetch_array($res)){ $ev_list[] = $info; } $ev_info = event_code_info($idx);
$qstr = $_SERVER['QUERY_STRING'];
if($ev_info['ev_use']!='1'){ alert('진행중인 이벤트가 아닙니다.'); } if(substr($ev_info['ev_sdate'],0,10)=='0000-00-00' || substr($ev_info['ev_edate'],0,10)=='0000-00-00'){
} else if(table_field_ck("shop_event", "ev_sdate")){ // 해당 필드가 패치됐을때만 동작 $cur_date = date("Y-m-d H:i:s"); if($ev_info['ev_sdate']>$cur_date || $ev_info['ev_edate']<$cur_date){
alert('이벤트 시작일자가 아니거나 마감된 이벤트 입니다.'); } }
?> <div id="wrap"> <div id="container" class="" style='<?php if($_COOKIE['hd_height']!='' && $header_fixed=='1'){ echo "margin-top:{$_COOKIE['hd_height']}px !important;"; }?>'> <?php skin_module_show("event",$sample_idx); // 이벤트 리스트 스킨을 불러온다. ?> </div><!-- #container --> </div><!-- #wrap --> <?php include_once($j3_shopm_path."/shop_footer.php"); ?>
|