newproduct.asp
上传用户:btntkt
上传日期:2021-04-16
资源大小:5296k
文件大小:3k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  2.   <tr>
  3.     <td><img src="skin/skin<%=skinid%>/np.gif" width="100%"  border="0" usemap="#Map4"></td>
  4.   </tr>
  5.   <tr>
  6.     <td><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
  7.       <tr>
  8.         <%set rs=server.CreateObject("adodb.recordset")
  9.   rs.open "select  Top "&xinpin&"  * from products where newsbook=1 and zhuangtai=0 order by adddate desc ",conn,1,1
  10.   if rs.eof and rs.bof then
  11.   response.write "<center><br><font color=red size=2>对不起,暂无此类商品!</font></font>"
  12.   'response.End
  13.   else
  14.   %>
  15.         <%
  16. if not rs.eof then
  17. i=1
  18. do while not rs.eof%>
  19.         <td height="110" valign="top" ><table width="232" height="110" align="center"  cellpadding="0" cellspacing="0">
  20.               <tr>
  21.               <td width="110" align="center" valign="middle"><table  width="140" height="142" cellspacing="1" cellpadding="2"  border="0">
  22.                     <tbody>
  23.                       <TR> 
  24.                         <TD align=middle <% if probg=0 then %>
  25.                       background="skin/skin<%=skinid%>/136.jpg" <%end if %>
  26.                         height=140> 
  27.                           <%if rs("bookpic")="" then 
  28. response.write "<div align=center><a href=products.asp?id="&rs("bookid")&" ><img src=images/emptybook.gif width=90 height=90 border=0></a></div>"
  29. else%>
  30.                           <a href="products.asp?id=<%=rs("bookid")%>" ><img src="<%=trim(rs("bookpic"))%>" alt="点击查看商品:<%=rs("bookname")%>" width=<%=ksu%> height=<%=csu%> border="0" align="absmiddle" /></a> 
  31.                           <%end if%>
  32.                         </TD>
  33.                       </TR>
  34.                     </tbody>
  35.                   </table></td>
  36.               <td width="60%"><table width="95%" height="60" align="center" cellpadding=0 cellspacing=0>
  37.                   <tr>
  38.                     <td width="203" >
  39. <%response.write "<a class=a4 href=products.asp?id="&rs("bookid")&" ><font color=#FF0000>"
  40. if len(trim(rs("bookname")))>15 then
  41. response.write left(trim(rs("bookname")),15)&".."
  42. else
  43. response.write trim(rs("bookname"))
  44. end if
  45. response.write "</font></a>"
  46. %>
  47.                     <br></b>  </td>
  48.                   </tr>
  49.                   <tr>
  50.                     <td >市场价:<s><%=rs("shichangjia")&""%></s>元</td>
  51.                   </tr>
  52.                   <tr>
  53.                     <td >会员价:<font color="#FF0000"><%=rs("huiyuanjia")%></font>元 </td>
  54.                   </tr>
  55.                   <tr>
  56.                     <td height="1" background="images/body/lineld.gif"></td>
  57.                   </tr>
  58.                                </table></td>
  59.             </tr>
  60.         </table></td>
  61.         <%if i mod 3 = 0 then%>
  62.       </tr>
  63.       <%end if
  64.     rs.movenext
  65.          i=i+1
  66.       loop
  67. rs.close
  68. end if
  69. end if 
  70. %>
  71.     </table></td>
  72.   </tr>
  73. </table>
  74. <map name="Map4" id="Map4">
  75.   <area shape="rect" coords="68,7,80,15" href="class.asp?lx=news" />
  76. </map>