include $DOCUMENT_ROOT."/include/header.html"; include $DOCUMENT_ROOT."/include/goodsInfoImg.php"; importCss('/css/goods.css?vs=0323'); if($mcode == ''){ $mcode = 'book'; } ////값들이 정상적으로 잘 넘어왔는지 확인 아닐 경우 메인으로 보내기 $sqls = ""; if($product != '') $sqls .= " and product_seq = '$product' "; if($size != '') $sqls .= " and size_seq = '$size' "; //if($cate != '' && $cate <> 18) $sqls .= " and ( cate = $cate || cate2_seq = $cate || cate3_seq = $cate ) "; //if($cate == 18) $sqls .= " and (select count(*) from menu_template_tbl where seqnum = a.template_seq and is_group = '1' ) > 0 "; if($cate != '') $sqls .= " and ( cate_seq = $cate || cate2_seq = $cate || cate3_seq = $cate ) "; if($bind != '') $sqls .= " and bind_type = '$bind' "; if($cover != '') $sqls .= " and cover_type = '$cover' "; if($card != '') $sqls .= " and card_type = '$card' "; if($product == 9) { $sqls .= " and page_type = 'W' "; } if($product == 19) { $sqls .= " and frame_color = 'B' "; } if($product == 49) { $sqls .= " and page_type = 'line' "; } $sql = " select count(*) as gCnt from goods_tbl a where is_use = '1' and menu_code = '$mcode' ".$sqls." order by (case when template_seq = 0 then sort when (menu_code = 'calendar' && product_seq <> 13) then sort else (select sort from menu_template_tbl where seqnum = a.template_seq) end ), goods_nm "; $rst = mysql_query($sql); $gCntArray = mysql_fetch_array($rst); if($gCntArray['gCnt'] == 0) { /*echo " "; echo (""); exit; */ } //////////////////////////// $productAdrr = FetchArray("select * from product_tbl where seqnum = '$product'"); ?>
