<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="images/icon.png"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>科院校惠通 - 首页</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="scripts/function.js"></script>
<style>
.scroll_div {width:600px; height:62px;margin:0 auto; overflow: hidden; white-space: nowrap; background:#ffffff;}
.scroll_div img {width:120px;height:60px;border: 0;margin: auto 8px; border:1px #efefef solid;}
#scroll_begin, #scroll_end, #scroll_begin ul, #scroll_end ul, #scroll_begin ul li, #scroll_end ul li{display:inline;}
</style>
<style>
.scroll_div {width:500px; height:100px;margin:0 auto; overflow: hidden; white-space: nowrap; background:#ffffff;}
.scroll_div img {width:120px;height:100px;border: 0;margin: auto 8px; border:1px #efefef solid;}
#scroll_begin, #scroll_end, #scroll_begin ul, #scroll_end ul, #scroll_begin ul li, #scroll_end ul li{display:inline;}
</style>
<script language="javascript">
function ScrollImgLeft(){
var speed=20
var scroll_begin = document.getElementById("scroll_begin");
var scroll_end = document.getElementById("scroll_end");
var scroll_div = document.getElementById("scroll_div");
scroll_end.innerHTML=scroll_begin.innerHTML
function Marquee(){
if(scroll_end.offsetWidth-scroll_div.scrollLeft<=0)
scroll_div.scrollLeft-=scroll_begin.offsetWidth
else
scroll_div.scrollLeft++
}
var MyMar=setInterval(Marquee,speed)
scroll_div.onmouseover=function() {clearInterval(MyMar)}
scroll_div.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
}
function selectname(){
var name = document.getElementById("selectname").value;
location.href='selectProductList?name='+name;
}
</script>
</head>
<body>
<div id="header" class="wrap">
<div id="logo"><a href="indexSelect"><a href="indexSelect"><img src="images/logo2.png" /></a></a></div>
<div class="help">
<c:if test="${name!=null}"><a href="selectdd?dd=${name.EU_USER_ID }">个人订单</a></c:if>
<c:if test="${name!=null}">欢迎您${name.EU_USER_NAME }</c:if>
<a href="ShopSelect" class="shopping">购物车</a>
<c:if test="${name==null}"><a href="login.jsp">登录</a></c:if>
<c:if test="${name!=null}"><a href="zx">退出</a></c:if>
<a href="register.jsp">注册</a><a href="SelallServlet">留言</a>
<c:if test="${name.EU_STATUS==2}"><a href="manage/index.jsp" >后台管理</a></c:if></div>
<div class="navbar">
<div id="childNav2">
<ul >
<li class="first"><a href="#"></a></li>
<li class="last"><input type="text" id="selectname"/></li>
<li> <a href="javascript:selectname()">搜索</a></li>
</ul>
</div>
</div>
</div>
<div id="main-navigation">
<ul class="main-menu">
<li id="current"><a href="indexSelect">首页</a></li>
<li><a href="#">我的信息</a></li>
<li><a href="product-add.jsp">出售商品</a></li>
<li><a href="newsSelect2">科院新闻</a></li>
<li><a href="SelallServlet">进入留言</a></li>
</ul>
</div>
</div>
<div id="main" class="wrap">
<div class="lefter">
<div class="box">
<h2>商品分类</h2>
<dl>
<dt><a href="selectProductList">全部商品</a></dt>
<c:forEach var="f" items="${flist}">
<dt><a href="selectProductList?fid=${f.EPC_ID }">${f.EPC_NAME }</a></dt>
<c:forEach var="c" items="${clist}">
<c:if test="${f.EPC_ID==c.EPC_PARENT_ID}">
<c:if test="${p.EPC_CHILD_ID!=c.EPC_ID}">
<dd><a href="selectProductList?cid=${c.EPC_ID }">${c.EPC_NAME }</a></dd>
</c:if>
</c:if>
</c:forEach>
</c:forEach>
</dl>
</div>
<div class="spacer"></div>
<div class="last-view">
<h2>浏览足迹</h2>
<dl class="clearfix">
<c:forEach var="lastp" items="${lastlylist}">
<dt><a href="selectProductView?id=${lastp.EP_ID }"><img height="40" src="images/product/${lastp.EP_FILE_NAME }" /></a></dt>
<dd><a href="selectProductView?id=${lastp.EP_ID }">${lastp.EP_NAME }</a></dd>
</c:forEach>
</dl>
</div>
</div>
<div class="main">
<div class="price-off">
<!--#####商品的滚动区域#####-->
<div id="scroll_div" class="scroll_div">
<div id="scroll_begin">
<ul>
<li><a href="selectProductView?id=667"><img src="images/product/b6.jpg" /></a></li>
<li><a href="selectProductView?id=670"><img src="images/product/dn5.jpg" /></a></li>
<li><a href="selectProductView?id=672"><img src="images/product/f4.jpg" /></a></li>
<li><a href="selectProductView?id=674"><img src="images/product/j3.jpg" /></a></li>
<li><a href="selectProductView?id=601"><img src="images/product/10.jpg" /></a></li>
<li><a href="selectProductView?id=683"><img src="images/product/m4.jpg" /></a></li>
<li><a href="selectProductView?id=679"><img src="images/product/ts1.jpg" /></a></li>
<li><a href="selectProductView?id=678"><img src="images/product/j5.jpg" /></a></li>
</ul>
</div>
<div id="scroll_end"></div>
</div>
<!--#####商品的滚动区域#####-->
</div>
<script type="text/javascript">ScrollImgLeft();</script>
</div>
<div class="main">
<div class="price-off">
<h2>今日推荐</h2>
<ul class="product clearfix">
<c:forEach var="tp" items="${tlist}">
<li>
<dl>
<dt><a href="selectProductView?id=${tp.EP_ID }" target="_blank"><img src="images/product/${tp.EP_FILE_NAME }" /></a></dt>
<dd class="title"><a href="selectProductView?id=${tp.EP_ID }" target="_blank">${tp.EP_DESCRIPTION }</a></dd>
<dd class="price">${tp.EP_PRICE }.00</dd>
</dl>
</li>
</c:forEach>
</ul>
</div>
<div class="side">
<div class="news-list">
<h4> 科院新闻</h4>
<ul>
<c:forEach var="n" items="${nlist}">
<li><a href="newsSelect2?id=${n.EN_ID }" target="_blank">${n.EN_TITLE }</a></li>
</c:forEach>
</ul>
</div>
<div class="spacer"></div>
</div>
<div class="spacer clear"></div>
<div class="hot">
<h2>强烈推荐</h2>
<ul class="product clearfix">
<c:forEach var="hotp" items="${hlist}">
<li>
<dl>
<dt><a href="selectProductView?id=${hotp.EP_ID }" target="_blank"><img src="images/product/${hotp.EP_FILE_NAME }" /></a></dt>
<dd class="title"><a href="selectProductView?id=${hotp.EP_ID }" target="_blank">${hotp.EP_DESCRIPTION}</a></dd>
<dd class="price">${hotp.EP_PRICE }.00</dd>
</dl>
</li>
</c:forEach>
</ul>
</div>
</div>
<div class="clear"></div>
</div>
<div id="footer">
科院校惠通1.0<br />Copyright © 周裕<br /><br />
</div>
</body>
</html>