<%
If global_shop_code="giftkor" then
sql="Select distinct top 7 b.p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_md_best a,t_product b where a.p_code=b.p_code And shop_code='" & global_shop_code & "' and a.flash='" & global_shop_code & "'"
Else
sql = "select distinct top 7 p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_product where " & sql_categoryC & " and etc_product = 'Y' order by readCnt desc"
End if
'response.write sql
rs.open sql,oDBCon,1
%>
<%
p_code = ""
p_name = ""
price1 = ""
su_limit1 = ""
imgS1 = ""
readCnt = ""
showType = ""
useType = ""
priceType = ""
If Not rs.eof Then
If LenB(rs("p_name")) > 32 Then
p_name = LeftB(rs("p_name"),32) & ".."
Else
p_name = rs("p_name")
End If
p_code = rs("p_code")
su_limit1 = rs("su_limit1")
imgS1 = rs("imgS1")
readCnt = rs("readCnt")
price1 = FormatNumber(discount(rs("price1")),0)
If session("mro") <> "" Then
price1= FormatNumber(discount_mro(price1),0)
End if
If rs("showType") = "Y" And global_shop_kind <> "A" Then ''''''''독립몰만 가격노출, 다른 제휴몰은 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
If rs("priceType") = "Y" Then ''''''''상담판매 , 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
useType = rs("useType")
size = imgAutoSize("/upload/product/" & rs("imgS1"), 100,100)
rs.movenext
End If
'공정거래위원회 고시 제 2000-1호에 따른 사업자등록번호 206-05-99182 / 통신판매업허가 2008-경기구리- 0223호
'상호명 : 영일유통 / 대표자명 : 김선운 / 개인정보 관리 책임자 : 김선운
'TEL 0505-699-0987(代) / FAX 02-2179-9366 / 대표이메일 : kim961100@naver.com
'(본사) 경기 구리시 교문동 309-20 (우 471-020) 이메일무단수집거부
'Copyright (C)1995~2006 ㈜앳디드All Rights Reserved.
%>
-
class="best_list01" <%Else %>class="best_list02" <%End If %>>
<%=p_name%>
<%If useType = "P" Then %>임시품절
<%Else %>
<%=su_limit1%>개
<%End If %>
<%=price1%>원
<%
i = i + 1
rs.movenext
Loop
End If
rs.close
%>
<%
If Not rs.eof Then
i = 1
Do Until rs.eof
If LenB(rs("p_name")) > 18 Then
p_name = LeftB(rs("p_name"),18) & ".."
Else
p_name = rs("p_name")
End If
p_code = rs("p_code")
su_limit1 = rs("su_limit1")
imgS1 = rs("imgS1")
readCnt = rs("readCnt")
price1 = FormatNumber(discount(rs("price1")),0)
If session("mro") <> "" Then
'price1= price1 * session("real_halin")
price1= FormatNumber(discount_mro(price1),0)
End if
If rs("showType") = "Y" And global_shop_kind <> "A" Then ''''''''독립몰만 가격노출, 다른 제휴몰은 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
If rs("priceType") = "Y" Then ''''''''상담판매 , 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
useType = rs("useType")
size = imgAutoSize("/upload/product/" & rs("imgS1"), 100,100)
%>
<%
'sql = "select distinct top 7 p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_product where " & sql_categoryC & " and hit_product = 'Y' order by readCnt desc"
'select distinct top 7 p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_product where categoryC in (select fk_category from t_categoryC c join t_categoryC_original o on c.fk_category = o.seq where c.useType = 'Y' and shop_code = 'giftmani') and etc_product = 'Y' order by readCnt desc
'071215259 071215259
If global_shop_code="giftkor" then
'sql = "select distinct top 7 p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_product where updateshop = '" & global_shop_code & "' order by readCnt desc"
sql="Select distinct top 7 b.p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_md_best a,t_product b where a.p_code=b.p_code And shop_code='" & global_shop_code & "' and a.updateshop='" & global_shop_code & "'"
Else
sql = "select distinct top 7 p_code,p_name,price1,su_limit1,imgS1,readCnt,showType,useType,priceType from t_product where " & sql_categoryC & " and hit_product = 'Y' order by readCnt desc"
End If
'response.write sql
rs.open sql,oDBCon,1
%>
<%
p_code = ""
p_name = ""
price1 = ""
su_limit1 = ""
imgS1 = ""
readCnt = ""
showType = ""
useType = ""
priceType = ""
If Not rs.eof Then
If LenB(rs("p_name")) > 32 Then
p_name = LeftB(rs("p_name"),32) & ".."
Else
p_name = rs("p_name")
End If
p_code = rs("p_code")
su_limit1 = rs("su_limit1")
imgS1 = rs("imgS1")
readCnt = rs("readCnt")
price1 = FormatNumber(discount(rs("price1")),0)
If session("mro") <> "" Then
'price1= price1 * session("real_halin")
price1= FormatNumber(discount_mro(price1),0)
End if
If rs("showType") = "Y" And global_shop_kind <> "A" Then ''''''''독립몰만 가격노출, 다른 제휴몰은 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
If rs("priceType") = "Y" Then ''''''''상담판매 , 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
useType = rs("useType")
size = imgAutoSize("/upload/product/" & rs("imgS1"), 100,100)
rs.movenext
End If
%>
-
class="best_list01" <%Else %>class="best_list02" <%End If %>>
<%=p_name%>
<%If useType = "P" Then %>임시품절
<%Else %>
<%=su_limit1%>개
<%End If %>
<%=price1%>원
<%
i = i + 1
rs.movenext
Loop
End If
rs.close
%>
<%
If Not rs.eof Then
i = 1
Do Until rs.eof
If LenB(rs("p_name")) > 18 Then
p_name = LeftB(rs("p_name"),18) & ".."
Else
p_name = rs("p_name")
End If
p_code = rs("p_code")
su_limit1 = rs("su_limit1")
imgS1 = rs("imgS1")
readCnt = rs("readCnt")
price1 = FormatNumber(discount(rs("price1")),0)
If session("mro") <> "" Then
'price1= price1 * session("real_halin")
price1= FormatNumber(discount_mro(price1),0)
End if
If rs("showType") = "Y" And global_shop_kind <> "A" Then ''''''''독립몰만 가격노출, 다른 제휴몰은 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
If rs("priceType") = "Y" Then ''''''''상담판매 , 가격노출 안됨
su_limit1 = "***"
price1 = "***"
End If
useType = rs("useType")
size = imgAutoSize("/upload/product/" & rs("imgS1"), 100,100)
%>




















































