if($goods_seq == '' || $goods_seq == 0){ header('Location: https://monbook.co.kr/'); } include $DOCUMENT_ROOT."/include/header.html"; include $DOCUMENT_ROOT."/include/goodsInfoImg.php"; ////goods_seq 가 정상적으로 잘 넘어왔는지 확인 아닐 경우 메인으로 보내기 if(is_numeric($goods_seq)){ //숫자인지 확인 $sql = " select count(*) as gCnt from goods_tbl a where seqnum = '$goods_seq' "; $rst = mysql_query($sql); $gCntArray = mysql_fetch_array($rst); if($gCntArray['gCnt'] == 0) { echo " "; exit; } }else{ echo (""); exit(); } //////////////////////////// /* // 이전 페이지에서 cookie에 저장된 product_seq로 뒤로가기 경로 select $last_product = $_COOKIE['last_product']; $back_url = FetchOne("select list_url2 from product_tbl where seqnum = $last_product"); */ $last_cate = $_COOKIE['last_cate']; $last_size = $_COOKIE['last_size']; $sql = " select *, (select size_nm from menu_size_tbl where seqnum = a.size_seq) as size_nm, (select size_ratio from menu_size_tbl where seqnum = a.size_seq) as size_ratio, (select product_desc from product_tbl where seqnum = a.product_seq) as product_desc, (select is_icon from menu_template_tbl where seqnum = a.template_seq) as is_icon, (select icon_img from menu_template_tbl where seqnum = a.template_seq) as icon_img_src from goods_tbl a where seqnum = $goods_seq "; $goods = FetchArray($sql); $item_width = 568; //아이템 하나의 크기만 정하면 자동으로 조정됨 if($goods['product_seq'] == 35 || $goods['product_seq'] == 14){ $padding_ratio = 0.15; }else{ $padding_ratio = 0.1; } //패딩 크기 조절 $goods_img = goodsImg($goods['menu_code'], $goods['product_seq'], $goods['template_seq'], $goods['seqnum'], $goods['ps_code'], $goods['size_ratio'], $goods['frame_color'], $goods['card_type'], $item_width, $padding_ratio, '0'); $background = "background: #fcfbfb"; if ($goods['view_bg'] != '') $background = $goods['view_bg']; // 이전 페이지에서 cookie에 저장된 product_seq로 뒤로가기 경로 select if (isset($_COOKIE['last_product'])) { $last_product = $_COOKIE['last_product']; } else { $last_product = $goods['product_seq']; } $back_url = FetchOne("select list_url2 from product_tbl where seqnum = $last_product"); $product = FetchArray("select * from product_tbl where seqnum = '".$goods['product_seq']."'"); $stock_cnt = FetchOne("select sum(cnt) from stock_goods_io_tbl where stock_goods_seq = ".$goods['stock_goods_seq']); ?>