<%if cate <> 0 then %>
-
<%
sql = "select * from T_SHOP_GOODS_CATE with(nolock) where SGC_PARENT=?"
if cateDepth = "1" then
call Db.makeParam3("@SGC_IDX", adInteger, adParamInput, cate, true)
else
call Db.makeParam3("@SGC_IDX", adInteger, adParamInput, parentCate, true)
end if
set rs = Db.execRs(sql, DB_CMDTYPE_TEXT, Nothing, true)
while not rs.eof
%>
- " alt="서브카테고리링크"><%=rs("SGC_NAME")%> <% rs.movenext wend %>
<%=brandName%>
<%end if %>
<%
sql = "(SELECT row_number() over (order by SG_REGDATE desc) rownum,* " &vbCrLf& _
"FROM T_SHOP_GOODS g " &vbCrLf& _
"where SG_IS_DEL=0 and SG_IS_SELL=1 " &vbCrLf& _
" and M_SHOP_CODE in (select M_SHOP_CODE from T_SHOP_SETTING where SS_PARENT_SHOP='"& SHOP_TOP_CODE &"') "
if cate <> 0 then
if cateDepth = "1" then '상위카테
sql = sql &" and SGC_IDX in (select SGC_IDX from T_SHOP_GOODS_CATE where SGC_PARENT=?)"
call Db.makeParam3("@SGC_IDX", adInteger, adParamInput, cate, true)
else '세부카테
sql = sql &" and SGC_IDX=?"
call Db.makeParam3("@SGC_IDX", adInteger, adParamInput, cate, true)
end if
elseif brand <> 0 then
sql = sql &" and SB_IDX=?"
call Db.makeParam3("@SB_IDX", adInteger, adParamInput, brand, true)
end if
sql = sql & ") s"
'call Db.makeParam3("@M_ID", adVarchar, adParamInput, user.id, true)
set rs = Db.execRs("SELECT count(1) FROM " & sql, DB_CMDTYPE_TEXT, Nothing, false)
PageSize = 10000
rsCount = rs(0)
If rsCount > 0 Then
srow = (pageno - 1) * pagesize + 1
erow = srow + pagesize - 1
seq = db.getTopSeq(pageSize, pageno, rsCount)
sql = "SELECT * FROM " & sql '& " where rownum between ? and ? order by rownum"
'call Db.makeParam3("@srow", adInteger, adParamInput, srow, true)
'call Db.makeParam3("@erow", adInteger, adParamInput, erow, true)
set rs = Db.execRs(sql, DB_CMDTYPE_TEXT, Nothing, true)
end if
%>
<%If rsCount <= 0 Then %>
<%
else
dim per, sgPrice
while not rs.eof
sgPrice = rs("SG_PRICE")
if user.shoplevel = MEM_SHOP_LEVEL_SILVER then sgPrice = rs("SG_MEMBER1_PRICE")
per = round((rs("SG_ORI_PRICE") - sgPrice) / rs("SG_ORI_PRICE") * 100)
%>
-
">
" style="width:100%;max-width:300px;max-height:300px;"/>
- "> <%=rs("SG_NAME")%>
-
정상가:<%=formatnumber(rs("SG_ORI_PRICE"),0)%>원 <%if user.id <> "" then %> 판매가:<%=formatnumber(sgPrice,0)%>원 <%else %> 판매가:회원공개 <%end if %>

산모교실