首页 > 代码库 > www

www

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>书店?</title>
    <meta charset="utf-8"/>
    <link rel="stylesheet" type="text/css" href="http://www.mamicode.com/css/common.css" />
    <link rel="stylesheet" type="text/css" href="http://www.mamicode.com/css/index.css" />
    <style type="text/css">
    body{
      background: url(‘images/main_bg.jpg‘);
    }
    #menu{
        background: url(‘images/menu_bg.png‘);
    }
    #notice,#contact{
        background: #F5F5F0;
    }
    
    </style>
</head>
<body>
<c:if test="${empty books }">
    <c:import url="/firstLoaderServlet"></c:import>
</c:if>
    <div id="container">
    <div id="header">
        <div id="login"><a href="http://www.mamicode.com/login.jsp">登录</a></div>
        <div class="divide"></div>
        <div id="register"><a href="http://www.mamicode.com/register.jsp">注册</a></div>
        <div id="banner"><img src="http://www.mamicode.com/images/banner8.jpg"></div>
        <div id="menu">
            <ul id="nav"> 
                <li><a href="http://www.mamicode.com/index.jsp">首页</a></li> 
                <li><a href="http://www.mamicode.com/${pageContext.request.contextPath }/pageQueryServlet?pagenum=1">全部资料</a></li> 
                <li><a href="http://www.mamicode.com/${pageContext.request.contextPath }/pageQueryServlet?epagenum=1">电子资料</a></li>
                <li><a href="http://www.mamicode.com/${pageContext.request.contextPath }/pageQueryServlet?apgenum=1">考研资讯</a></li> 
                <li><a href="http://www.mamicode.com/feedback.jsp">反馈</a></li>
            </ul> 

        </div>
    </div>
    <div id="left">
        <div id="notice">
            <div class="contact_title"> 
                <span class="tit" style="font-size: 12px;">临时通知</span>
            </div>
               <div class="contact_detail">
                <p style="font-size: 16px;">
                    本站提供各种考研资料,欢迎各位选购。如有疑问,请在网站反馈页面给我们留言,或者加入我们的QQ群,里面有专门的人员给您解答
                </p>
               </div>
        </div>
        <div id="contact">
            <div class="contact_title">
                <span class="tit" style="font-size: 12px;">联系我们</span>
            </div>
            <div class="contact_detail">
                <table>
                    <tr>
                    <td style="font-size: 16px;">资料分享群:</td>
                    <td style="font-size: 16px;">251868907</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div id="right">
        <div id="recommand">
            <div class="con_tit">
                <span class="f_right">
                   <!--  <a href="http://www.mamicode.com/#">更多&gt;&gt;</a> -->
                </span>
                <span class="fb">推荐商品</span>
            </div>
            <c:forEach items="${books }" var="book" varStatus="status">
            <c:if test="${status.count eq 1 || (status.count-1) % 5 eq 0}">    
                      <ul class="all_ul">        
                 </c:if> 
                <li>
                    <div class="con_con_img">
                        <a title="面对现代世界问题的人类学" href="http://www.mamicode.com/${pageContext.request.contextPath }/queryRecommandById?id=${book.id }&type=r" target="_blank">
                            <img src="http://www.mamicode.com/${book.coverimg }">
                        </a>
                    </div>
                    <p class="con_con_text">
                        <a title="面对现代世界问题的人类学" href="http://www.mamicode.com/${pageContext.request.contextPath }/queryRecommandById?id=${book.id }" target="_blank">${book.name }</a>
                    </p>
                    <div class="price">${book.price }</div>
                </li>
                
            <c:if test="${status.count % 5 eq 0 || status.count eq 5}">    
                      </ul>    
                  </c:if>    
            </c:forEach>

                
        </div>
        <div id="lastest">
            <div class="con_tit">
                <span class="f_right">
                    <!-- <a href="http://www.mamicode.com/#">更多&gt;&gt;</a> -->
                </span>
                <span class="fb">最新上架</span>
            </div>
            <table class="lastest_table">
                <c:forEach items="${ebooks }" var="ebook" varStatus="status">
                <tr>
                <td class="lastest_table_name">${ebook.name }</td>
                <td class="lastest_table_price" align="right"><a href="http://www.mamicode.com/${ebook.resurl }" target="_blank">${ebook.resurl }</td>
                <td class="lastest_table_time" align="right">
                    <c:if test="${isLogin eq true}"> 
                    ${ebook.keycode }
                    </c:if>
                    <c:if test="${isLogin eq false}"> 
                    <a href="http://www.mamicode.com/login.jsp">登录查看密码</a>
                    </c:if>
                    </td>
                </tr>
                </c:forEach>
                
            </table>
        </div>
    <div id="footer"></div>
</div>
</body>
</html>

 

www