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

📄 main.jsp

📁 网上书店后台管理源码基于struts1.2+oracle数据库
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dongfang.po.*"%>
<%
	List timeBookList =(List) session.getAttribute(Contants.TIEM_BOOK_LIST_KEY);
	List countBookList = (List) session.getAttribute(Contants.COUNT_BOOK_LIST_KEY);
	Book book = null;
%>

<HTML><HEAD><TITLE>Shopping Online</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/css.css" type=text/css rel=stylesheet></HEAD>
<BODY leftMargin=0 topMargin=0>
<TABLE cellSpacing=0 cellPadding=0 width=778 align=center border=0>
  <TBODY>
  <TR>
    <TD height=10></TD></TR></TBODY></TABLE>
<TABLE height=148 cellSpacing=0 cellPadding=0 width=778 align=center border=0>
  <TBODY>
  <TR vAlign=top>
    <TD width=8></TD>
    <TD width=236>
      <TABLE width="375" height="340"><!--DWLayoutTable-->
        <TBODY>
        <TR>
          <TD width=348 height=1> </TD>
          <TD height="1" width="29"></TD></TR>
        <TR>
          <TD height="13" width="348">
            <TABLE id=AutoNumber1 style="BORDER-COLLAPSE: collapse" 
            borderColor=#111111 height=20 cellSpacing=0 cellPadding=0 width=151 
            background=images/fu.gif border=0>
              <TBODY>
              <TR>
                <TD align=middle width=82><B>精品书推荐</B></TD>
                <TD align=middle></TD></TR></TBODY></TABLE></TD>
          <TD height="13" width="29"></TD></TR>
        <TR>
          <TD vAlign=top height=328 width="348"><!-- ------------------circulation-------------------------->
            <TABLE cellSpacing=0 cellPadding=0 width="103%" border=0>
              <TBODY>
       <%
       		if(timeBookList!=null)
       		{
       			for(int i=0;i<timeBookList.size();i++)
       			{
       				book = (Book)timeBookList.get(i);
       			    if(i%2==0)
       			    {
       			    	%>
				       			    		
				              <TR>
				                <TD width="50%"><BR>书名:<%=book.getName()%><BR><A 
				                  href="detail.do?bookId=<%=book.getId()%>" 
				                  target=main><IMG 
				                   src="<%=book.getImage()%>"  vspace=6 
				                  border=0></A> <BR>会员价:<%=book.getSaleprice()%>元<BR><A 
				                  href="detail.do?bookId=<%=book.getId()%>" 
				                  target=main>详细信息</A> <A href="buy.do?bookId=<%=book.getId()%>">订购<IMG              
				                  height=15 src="images/order.gif" width=21 border=0></A> 
				                </TD>
       			    	<%
       			    	
       			    }
       			    else
       			    	{
			       			  %>
			       			  <TD width="50%"><BR>书名:<%=book.getName()%><BR><A 
			                  href="detail.do?bookId=<%=book.getId()%>" 
			                  target=main><IMG 
			                  src="<%=book.getImage()%>"  vspace=6 
			                  border=0></A> <BR>会员价:<%=book.getSaleprice()%>元<BR><A 
			                  href="detail.do?bookId=<%=book.getId()%>" 
			                  target=main>详细信息</A> <A href="buy.do?bookId=<%=book.getId()%>">订购<IMG              
			                  height=15 src="images/order.gif" width=21 border=0></A> 
			                </TD></TR>
		                     <% 
       			    	}
       			}
       		}
        %>
                   </TBODY></TABLE></TD>
          <TD height="328" width="29"></TD></TR></TBODY></TABLE></TD>
    <TD width=341>
      <TABLE cellSpacing=0 cellPadding=0 width="188" border=0>
        <TBODY>
        <TR>
          <TD width=187 height=1></TD></TR>
        <TR>
          <TD vAlign=top height=388 width="187">
            <TABLE cellSpacing=0 cellPadding=0 width="182" border=0>
              <TBODY>
              <TR>
                <TD vAlign=top align=middle width="185">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=3></TD></TR></TBODY></TABLE>
                  <TABLE cellSpacing=0 cellPadding=0 width=165 border=0>
                    <TBODY>
                    <TR>
                      <TD align=middle><IMG height=4 
                        src="images/promo_list_top.gif" width="100%" 
                        border=0></TD></TR>
                    <TR>
                      <TD align=middle bgColor=#dbc2b0>销售排行</TD></TR>
                    <TR>
                      <TD align=middle>
                        <TABLE cellSpacing=0 cellPadding=0 width="100%" 
border=0>
                          <TBODY>

                <%
                	if(countBookList!=null)
                	{
                		for(int i=0;i<countBookList.size();i++)
                		{
                			book = (Book)countBookList.get(i);
                			%>
                				
                          <TR>
                            <TD width="70%" bgColor=#f5efe7 height=22>&nbsp;              
                              <A 
                  href="detail.do?bookId=<%=book.getId()%>" 
                  target=main><%=book.getName()%></A></TD>
                            <TD width="30%" bgColor=#f5efe7><%=book.getSalecount()%></TD></TR>
                			<%
                		}
                	}
                 %>
                 	</TBODY></TABLE></TD></TR>
                    <TR>
                      <TD></TD></TR></TBODY></TABLE>
                 
</BODY></HTML>
                 

⌨️ 快捷键说明

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