<% set rs=server.CreateObject("adodb.recordset") rs.open "select top 4 id,name,pic,price1,price2,viewnum from product where recommend=1 order by adddate desc",conn,1,1 if rs.eof and rs.bof then response.write "
对不起,请您先到后台添加商品!
" else %> <% j=0 do while not rs.eof %> <% rs.movenext j=j+1 if rs.eof then exit do end if if j>=4 then exit do loop rs.close set rs= nothing %>
TARGET=_blank> images/emptybook.gif <% else %> <% = trim(rs("pic")) %> <% end if%> BORDER=0 width="<% = webimg9 %>" height="<% = webimg10 %>">
 <%=trim(rs("name"))%>
市场价: <%=trim(rs("price1"))%> 元
会员价: <%=trim(rs("price2"))%> 元
节 省: <%=rs("price1")-rs("price2")%> 元
','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"> &action=add','','width=632,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;">
<% end if %>