<%
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.
%>
- <%=p_name%> <%If useType = "P" Then %>
ÀϽÃǰÀý
<%Else %>
<%=su_limit1%>°³
<%End If %>
<%=price1%>¿ø
-
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
%>
-
<%=p_name%> <%If useType = "P" Then %>
ÀϽÃǰÀý
<%Else %>
<%=su_limit1%>°³
<%End If %>
<%=price1%>¿ø
-
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)
%>




















































