= 0) { if(!$orname && !$orsun) $order = " order by updatetime desc"; else $order = " order by $orname $orsun"; if($menu=="index") { $result = $dalib->selectSQLAll("select * from $Table[Product] where $kind = '1' $order"); $rnumPN = $result[rnum]; }elseif($menu=="search") { $result = $dalib->selectSQLAll("select * from $Table[Product] where pname like '%$search%' or pcompany like '%$search%' $order"); $rnumPN = $result[rnum]; }else { $result = $dalib->selectSQLAll("select * from $Table[Product] where bigcate ='$bigcate' and smcate = '$smcate' $order"); $rnumPN = $result[rnum]; } if($mode=="prev") { @mysql_data_seek($result[result],$state); $r_prev = mysql_fetch_array($result[result]); $pcode = $r_prev[pcode]; }elseif($mode=="next") { @mysql_data_seek($result[result],$state); $r_next = @mysql_fetch_array($result[result]); $pcode = $r_next[pcode]; } $prev_state = $state - 1; $next_state = $state + 1; } $r = $dalib->selectSQLField("select bigcatename from $Table[Bigcategory] where bigcate ='$bigcate'"); $r2 = $dalib->selectSQLField("select smcatename from $Table[Smcategory] where smcate ='$smcate'"); $bigcatename = $r[bigcatename]; $smcatename = $r2[smcatename]; if($smcatename=="") $smcatenameTitle = $r2[smcatename]; else $smcatenameTitle = $smcatename; $r = $dalib->selectSQLField("select * from $Table[Product] where pcode = '$_GET[pcode]'"); $pname = stripslashes($r[pname]); $pcompany = stripslashes($r[pcompany]); $pinfo = $r[pinfo]; $pbuylimit = stripslashes($r[pbuylimit]); $selfStock = $r[selfStock]; $self_sale = $r[sale]; switch ($pcompany){ case SHIMANO : $affiPerSale = $RMANAGE[shimanoaffiPerSale]; break; case DAIWA : $affiPerSale = $RMANAGE[daiwaaffiPerSale]; break; default : $affiPerSale = $RMANAGE[etcaffiPerSale]; } /* if($r[persale]>0){ $psellprice = round($r[pprice]*$affiSale*(1-($r[persale]/100)),-3); }else{ $psellprice = round($r[pprice]*$affiSale*(1-($r[persale]/100)),-3); } */ $pcode = ereg_replace("[^0-9]","",$r[pcode]); //숫자 이외의 문자열은 널값으로 만들면 숫자값들만 표시 $_Table = "fishingas2008.Barcode"; $pummokName = $dalib->selectSQLField("select pummok from fishingas2008.Barcode where barcode='$pcode'"); if($pummokName[pummok]=="다이와 부품" || $pummokName[pummok]=="시마노 부품"){ $_field = "barcode"; }else{ $_field = "pcode"; } $result = $dalib->selectSQLAll("select * from $Table[ProductStockSetting] where pcode = '$pcode'"); if($result[rnum]>0) { $row = @mysql_fetch_array($result[result]); for($loop=1;$loop<=48;$loop++) { if($row["k_".$loop]=="" || $row["k_".$loop]=="0") continue; $cWhere .= $_field."='".$row["k_".$loop]."' or "; } $cWhere = substr($cWhere, 0, -3); if($cWhere=="0") { $cWhere = ""; }else{ $cWhere = "where (".$cWhere.") and"; } $rPs = $dalib->selectSQLField("select MIN(mallSellprice*1) as MinPsellprice, pummok from fishingas2008.Barcode $cWhere mallSellprice > '0' and company='$pcompany'"); $psellprice = $rPs[MinPsellprice]; $cWhere = substr($cWhere, 0, -4); $resultStock = $dalib->selectSQLAll("select amount from $_Table $cWhere"); while($rs = mysql_fetch_array($resultStock[result])){ $totalStock += $rs[amount]; } /* if($self_sale>0){ $rowSale = $dalib->selectSQLField("select sale from $Table[Product] where jancode='$r[jancode]'"); }else{ $rowSale = $dalib->selectSQLField("select sale from $_Table where jancode='$r[jancode]'"); } */ }else{ $rPs = $dalib->selectSQLField("select mallSellprice from $_Table where $_field='$pcode'"); $psellprice = $rPs[mallSellprice]; $totalStock = $rPs[amount]; /* if($self_sale>0){ $rowSale = $dalib->selectSQLField("select sale from $Table[Product] where pcode='$r[pcode]'"); }else{ $rowSale = $dalib->selectSQLField("select sale from $_Table where pcode='$r[pcode]'"); } */ } $pprice = $psellprice*1.1; # 상품코드가 잘못되었거나 상품이 디비내용에 없을경우 //if($r[srlno]=="") $fulib->alertBack("잘못된 상품코드이거나 현재 서비스하지 않는 상품입니다."); if($r[srlno]=="") $fulib->alertTour("잘못된 상품코드이거나 현재 서비스하지 않는 상품입니다.", "/index.php"); if($totalStock < 1) $STOCK_IMG = ""; if($r[html] == "0") { $pcontents = str_replace(" "," ",$r[pcontents]) ; $pcontents = nl2br(stripslashes($pcontents)) ; }elseif($r[html] =="1") { $pcontents = stripslashes($r[pcontents]); } $rstock = $dalib->selectSQLField("select * from $Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '1'"); $rstock2 = $dalib->selectSQLField("select * from $Table[ProductStockItemDetail] where pcode = '$_GET[pcode]' and kind = '2'"); $rstock3 = $dalib->selectSQLField("select * from $Table[ProductStockSetting] where pcode = '$_GET[pcode]'"); # 배송정보 $r_send = $dalib->selectSQLField("select sendkind, sendcontent from $Table[ManageInfo]"); if($r_send[sendkind] == "0") { $sendcontent = str_replace(" "," ",$r_send[sendcontent]) ; $sendcontent = nl2br(stripslashes($sendcontent)) ; }elseif($r_send[sendkind] =="1") { $sendcontent = stripslashes($r_send[sendcontent]); } # 상품별 통계 if($r[srlno] != "" and $now != "ad") { $basedate = date("Ym"); $r_stat_total = $dalib->selectSQLField("select srlno from $Table[ProductStat] where pcode = '$pcode' and basedate = 'total'"); if($r_stat_total[0]=="") { $insertsql = "insert into $Table[ProductStat] set pcode = '$pcode', pname = '$pname', basedate = 'total', view = '1'"; $dalib->directQuery($insertsql); }else { $dalib->directQuery("update $Table[ProductStat] set view = view + 1 where pcode = '$pcode' and basedate = 'total'"); } $r_stat_view = $dalib->selectSQLField("select srlno from $Table[ProductStat] where pcode = '$pcode' and basedate = '$basedate'"); if($r_stat_view[0]=="") { $insertsql = "insert into $Table[ProductStat] set pcode = '$pcode', pname = '$pname', basedate = '$basedate', view = '1'"; $dalib->directQuery($insertsql); }else { $dalib->directQuery("update $Table[ProductStat] set view = view + 1 where pcode = '$pcode' and basedate = '$basedate'"); } } if($mode=="recom") { if($find=="precom") $PreTitle .= "추천상품 > "; if($find=="pnew") $PreTitle .= "신상품 > "; if($find=="pbest") $PreTitle .= "베스트 상품 > "; if($find=="ppopu") $PreTitle .= "인기상품 > "; }elseif($menu=="search") { $PreTitle .= "'$search' 검색 > "; }elseif($menu=="symp") { $PreTitle = "$SYMP_TITLE > "; }else { if($bigcatename != "") $PreTitle .= "$bigcatename > "; if($smcatenameTitle !="") $PreTitle .= "$smcatenameTitle > "; } $p_sale = "pcode_sale_".$pcode; ?>
1){ ?>
  ".$pname."");?>

5){ ?> <?echo($pname);?> <?echo($pname);?>
', 100, 0, 700, 600, 0, 0, 0, 0, 0);" onFocus="this.blur()">크게보기
15){?>
소비자 가격 :  
판매가격 :  
상품코드 :  
JAN 코드 :  
제조원 :  
주문수량 :    개 (필요하신 수량을 적으세요.) selectSQLField("select pummok from fishingas2008.Barcode where barcode='$r[pcode]'"); if($pummokName[pummok]=="다이와 부품" || $pummokName[pummok]=="시마노 부품"){ $_field = "barcode"; }else{ $_field = "pcode"; } $pcodeNum = ereg_replace("[^0-9]", "", $r[pcode]); //숫자 이외의 문자열은 널값으로 만들면 숫자값들만 표시 $dstock = $dalib->selectSQLField("select amount from fishingas2008.Barcode where $_field = '$pcodeNum'"); echo "
    총 재고수량 : ".$dstock[amount]."EA"; } } ?>
아래의 재고사항을 확인후 주문수량을 선택해 주세요.
주문정보
 
$r[daiwaHoWhanName]
"; if($r[shimanoHoWhanName]!="") echo "$r[shimanoHoWhanName]
"; if($r[daiwaAssemblingName]!="") echo "$r[daiwaAssemblingName]
"; if($r[shimanoAssemblingName]!="") echo "$r[shimanoAssemblingName]
"; ?>
 
 
리브레 호환표
 

selectSQLField("select amount, mallSellprice from $_Table where pcode='$pcodes' and company='$pcompany'"); $totalAmount = $bcode[amount]; if(eregi("#",$jancode)){ $optionPrice = explode("#",$pcodes); $bcode[mallSellprice] = $optionPrice[1]; } $psellprice = $bcode[mallSellprice]; $item = $item01."#".$item02."#".$value."#".$pcodes."#".$psellprice; if($_COOKIE[CookieGroup]=="9"){ if($result[rnum]>"0") { switch($pcompany){ case "livre": $_field = "pcode"; break; case "daiwa": $_field = "barcode"; break; case "shimano": $_field = "barcode"; break; } $dstock = $dalib->selectSQLField("select amount from fishingas2008.Barcode where $_field = '$pcodes'"); $amountBarcode = "
".$dstock[amount]."EA"; } } if($totalAmount>0 and strlen($pcode)>0 ){ $STATE = "priceBelow(number_format($psellprice)),'$value','$pcodes') name='item' value='$item'>$amountBarcode"; }else{ $STATE = "priceBelow(number_format($psellprice)),'$value','$pcodes') name='item' value='$item'>정기주문 $amountBarcode"; } /* if($rstock3["k_".$Count]>0) $STATE = "
-