⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index_goodtejia.asp

📁 asp的网上卖东西的..看看还可以的吧
💻 ASP
字号:
<TABLE cellSpacing=0 cellPadding=0 width=230 border=0>
        <TBODY>
          <TR>
            <TD>
              <TABLE cellSpacing=0 cellPadding=0 width=230 
                              border=0>
                <TBODY>
                  <TR>
                    <TD><IMG height=6 
                                src="images/mydata_right_top.gif" 
                                width=230></TD>
                  </TR>
                  <TR>
                    <TD align=middle 
                                background=images/mydata_right_bg.gif>
                      <TABLE cellSpacing=0 cellPadding=0 width=212 
                                border=0>
                        <TBODY>
                          <TR>
                            <TD align=middle>
                              <TABLE class=sub_basic cellSpacing=0 
                                cellPadding=0 width=206 border=0>
                                <TBODY>
                                  <TR>
                                    <TD height=24 style="font-size: 10pt;	font-weight: bold;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px"><IMG height=16 
                                src="images/shop_icon.gif" width=18 
                                align=absMiddle>特价商品</TD>
                                    <TD vAlign=bottom width=19><A 
                                href="fenleiview.asp?lx=tejia" 
                                ><IMG height=10 ALT="更多的特价商品!" 
                                src="images/more02_icon.gif" width=19 
                                border=0></A></TD>
                                  </TR>
                                </TBODY>
                            </TABLE></TD>
                          </TR>
                          <TR>
                            <TD><IMG height=2 
                                src="images/downrank_sun.gif" 
                                width=212></TD>
                          </TR>
                          <TR>
                            <TD height=5></TD>
                          </TR>
                          <TR>
                            <TD align=middle><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="center"><%set rs=server.CreateObject("adodb.recordset")
		rs.open "select Top 4 * from BJX_goods where tejiabook=1 order by bookid desc",conn,1,1
		if rs.eof and rs.bof then
		response.write "<center><br><font color=red size=2>对不起,暂无新品!</font></font>"
		'response.End
		else
		%>
                                    <table cellspacing=0 cellpadding=0 border=0 width="100%">
                                      <%
		
		i_1=int((rs.recordcount+1)/2)
		if i_1>3 then 
		i_1=3
		end if
		'response.write i_1
		for i_count=1 to i_1%>
                                      <tr>
                                        <td width="33%" valign=top><table cellspacing=0 cellpadding=0 width="100%">
                                            <tr>
                                              <td width="50%" height="113" align="center"><TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
                                                  <TBODY>
                                                    <TR>
                                                      <TD width=90 height=90 bgColor=#ffffff align=center><%if rs("bookpic")="" then 
	response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=90 height=90 border=0></a></div>"
	else%>
                                                          <a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=70 height=70 border=0 align=absmiddle></a>
                                                          <%end if%>
                                                      </TD>
                                                    </TR>
                                                  </TBODY>
                                                </TABLE>
                                                  <table width="95%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                      <td><div align="center">
                                                        <%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" >"
			if len(trim(rs("bookname")))>7 then
			response.write left(trim(rs("bookname")),6)&".."
			else
			response.write trim(rs("bookname"))
			end if
			response.write "</a>"
			%>
                                                      </div></td>
                                                    </tr>
                                                    <tr>
                                                      <td><div align="center"><FONT color=#ff6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font></div></td>
                                                    </tr>
                                                </table></td>
                                              <%rs.movenext%>
                                            </tr>
                                        </table></td>
                                        <td width="33%" valign="top" ><%if rs.eof then%>
                                            <%else%>
                                            <table cellspacing=0 cellpadding=0 width="100%">
              <td height="113" align="center"><TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
                    <TBODY>
                      <TR>
                        <TD width=90 height=90 bgColor=#ffffff align=center><%if rs("bookpic")="" then 
	response.write "<div align=center><a href=goodsview.asp?bjxGid="&rs("bookid")&" ><img src=images/emptybook.gif width=90 height=90 border=0></a></div>"
	else%>
                            <a href=goodsview.asp?bjxGid=<%=rs("bookid")%> ><img src="<%=trim(rs("bookpic"))%>" width=70 height=70 border=0 align=absmiddle></a>
                            <%end if%>
                        </TD>
                      </TR>
                    </TBODY>
                  </TABLE>
                      <table width="95%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><div align="center">
                                <%response.write "<a class=a4 href=goodsview.asp?bjxGid="&rs("bookid")&" >"
			if len(trim(rs("bookname")))>7 then
			response.write left(trim(rs("bookname")),6)&".."
			else
			response.write trim(rs("bookname"))
			end if
			response.write "</a>"
			%>
                          </div></td>
                        </tr>
                        <tr>
                          <td><div align="center"><FONT color=#ff6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font></div></td>
                        </tr>
                    </table></td>
                  <%rs.movenext%>
              </tr>
                                          </table>
                                            <%end if%>
                                        </td>
                                      </tr>
                                      <%next%>
                                      <%
rs.close
set rs=nothing%>
                                    </table>
                                    <%end if%>
                                </td>
                              </tr>
                            </table></TD>
                          </TR>
                          <TR>
                            <TD 
height=5></TD>
                          </TR>
                        </TBODY>
                    </TABLE></TD>
                  </TR>
                  <TR>
                    <TD><IMG height=4 
                                src="images/mydata_right_bottom.gif" 
                                width=230></TD>
                  </TR>
                </TBODY>
            </TABLE></TD>
          </TR>
          <TR>
            <TD height=10></TD>
          </TR>
        </TBODY>
    </TABLE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -