<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<% 
	String pageshow = request.getParameter("main");
	String pagenum = request.getParameter("page");
	String customer = request.getParameter("customer");
	 String user = (String) session.getAttribute("user") ;
	%>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<!-- Khoi tao CSS -->
<link rel="stylesheet" href="images/stylehome.css" type="text/css">
<link rel="stylesheet" href="images/uniform.default.css" type="text/css" media="screen">
<!-- Ket Thuc CSS -->
<!-- HighSlide -->
<script type="text/javascript" src="js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="highslide/highslide-with-html.js"></script>
<!-- Ket Thuc HighSlide -->
<script type="text/javascript" src="js/jquery.simplemodal.js"></script>
<script type="text/javascript" src="js/AjaxLogin.js"></script>
<script src="js/jquery.uniform.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
      $(function(){
        $(".UniXT").uniform();
      });
    </script>
<title>:: Đồ Lưu Niệm - Online Shopping ::</title>
</head>
<!-- Loading -->
<div id="LoadingDiv" style="position:absolute; visibility:show; z-index:1000; opacity:0.6;filter:alpha(opacity=60); left:-500px; top:200px;">
<table width="200" cellpadding="20" cellspacing="1" border="0" bgcolor="#666666">
<tr> <td align=center bgcolor="#FFFFFF"><b style="color:black">Đang Tải Dữ Liệu<br> 
<img src="images/loading.gif" class=inlineimg></b></td></tr>
</table>
</div>
<script language="javascript" type="text/javascript" src="js/loadp.js"></script>
<!-- Ket Thuc Loading -->
<body>
<center>

<table border="0" cellpadding="0" cellspacing="0" width="900" background="images/bgheader.gif">
<tr><td height="120">

<center>
<table border="0" cellpadding="0" cellspacing="0" background="730" width="885">
<tr>
<td height="115"  align="left" valign="top" width="469">
<a href="index.jsp"><img border="0" title="Trang Chủ" src="images/banner.png" width="100%" height="100%"> </a>
</td>
<td valign="top" align="right" width="416">


<form method="post" action="Search">
<input  style="color: #828282" type="text" class=SINPUT name="name" size="25" maxlength="255" value="Nhập tên sản phẩm" onfocus="if (this.value == 'Nhập tên sản phẩm'){this.value=''; this.style.color='Black';}" onblur="if (this.value == '') {this.value='Nhập tên sản phẩm'; this.style.color='#828282';}" type="text" name="user" size="20"></input>
<input style="height:25px; width:40px; border: 0; color: transparent; cursor:pointer; background-color: transparent; background-image: url(images/search-icon.png); background-repeat: no-repeat;" type="submit">
</form>


</td>
</tr></table>
</center>

</td></tr></table>
<div><img src="images/clear.gif" height="5"></div>

<table border="0" width="900" height="29" cellpadding="0" cellspacing="0">
<tr>
<td width="10" background="images/m1.gif"></td>
<td width="880" background="images/m2.gif" align="right">
<!-- Menu Top -->
<SCRIPT src="js/Menu.js"></SCRIPT>

<div id="menu" class="menu" align="center">
		<UL>
			<LI><a href="index.jsp">Trang Chủ</a></LI>	
			<% if(user== null){ %>	
			<LI><a href="index.jsp?customer=reg">Đăng Kí</a></LI><% } %>							
			<LI><a href="index.jsp?customer=contact">Liên Hệ</a></LI>
			<LI><a href="index.jsp?customer=search">Tìm Kiếm</a></LI>
		</UL>
		</div>
 <!-- End Menu Top -->
</td>
<td width="10" background="images/m3.gif"></td>
</tr>
</table>
<table border="0">
<tr>
<td valign="top">


<table border="0" width="400" height="29" cellpadding="0" cellspacing="0">
<tr><td height="11" background="images/lcd01.jpg"></td></tr>
<tr><td height="199" background="images/lcd02.jpg">

<center><table border="0" cellspacing="0" cellpadding="0">
<tr><td>
<!--  Gallery -->
<jsp:include page="slideshow.jsp"></jsp:include> 
 <!-- Ket Thuc Gallery  -->
</td></tr></table></center>
<tr><td height="40" background="images/lcd03.jpg"></td></tr>
</table>

</td>
<td valign="top" width="340">

 <!--  Box Cap Nhat -->
<table border="0" width="500" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1_.gif"></td>
<td  width="484" background="images/2_.gif" align="right">
<font color="#FFFFFF"><b>Thông Báo</b></font>
</td>
<td width="8" background="images/3_.gif"></td>
</tr>
<tr valign="top">
<td background="images/4.gif" width="8"></td>
<td height="212" width="484" align="left">
<jsp:include page="announce.jsp"></jsp:include> 
</td>
<td background="images/5.gif" width="8"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif" width="8"></td>
<td background="images/7.gif" width="484"></td>
<td background="images/8.gif" width="8"></td>
</tr></table>

 <!-- Ket Thuc Box Cap Nhat  -->

</td>
</tr></table>

<table border="0">
<tr>
<td valign="top"><!--Bat dau Menu trai-->
<!--  Bat Dau Menu Chinh-->
<table border="0" width="220" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif">
<font color="#FFFFFF"><b>Menu Chính</b></font>
</td>
<td width="8" background="images/3.gif"></td>
</tr>
<tr>
<td background="images/4.gif"></td>
<td>
<div><img src="images/clear.gif" height="5"></div>

<img border="0" src="images/download.gif" width="15" height="9">
<a href="index.jsp?customer=intro">Giới Thiệu</a><br>
<% if(user== null){ %>
<img border="0"  src="images/download.gif" width="15" height="9">
<a href="index.jsp?customer=reg">Đăng Kí</a><br> <% } %>
<img border="0"  src="images/download.gif" width="15" height="9">
<a href="index.jsp?customer=contact">Liên Hệ</a><br>
</td>
<td background="images/5.gif"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif"></td>
<td background="images/8.gif"></td>
</tr></table>
<div><img src="images/clear.gif" height="5"></div>

<!--  // Ket thuc Menu Chinh -->


<!--   Bat Dau Danh Muc Sanh Pham -->
<table border="0" width="220" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="123">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif" height="28">
<font color="#FFFFFF"><b>Danh Mục</b></font></td>
<td width="8" background="images/3.gif" height="28"></td>
</tr>
<tr>
<td background="images/4.gif" height="85"></td>
<td valign="top" height="10">
<jsp:include page="category.jsp"></jsp:include> 
<td background="images/5.gif" height="85"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif" height="10"></td>
<td background="images/8.gif" height="10"></td>
</tr></table>

<!--  // Ket thuc danh muc Sanh Pham -->

<div><img src="images/clear.gif" height="5"></div>
<!--  Bat dau Ho Tro onl -->
<table border="0" width="220"  cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif" height="28">
<font color="#FFFFFF"><b>Hỗ Trợ Online</b></font>
</td>
<td width="8" background="images/3.gif" height="28"></td>
</tr>
<tr>
<td background="images/4.gif" height="154"></td>
<td height="154" align="center">
<br>

<jsp:include page="support.jsp"></jsp:include> 

</td>
<td background="images/5.gif" height="154"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif" height="10"></td>
<td background="images/8.gif" height="10"></td>
</tr></table>
<!--  // Ket thuc Ho Tro Onl -->
</td>


<td valign="top">
<center>



<!-- Info -->

 <% if (customer==null) { %> <% } else  { %>
<% 
if(customer.equals("reg")) 
{ customer="register.jsp"; } 
 if(customer.equals("regok") || customer.equals("PayOk")) 
 { customer="success.jsp"; }
 if(customer.equals("attempt")) 
 { customer="attempt.jsp"; }
 if(customer.equals("logout")) 
 { customer="logout.jsp"; }
 if(customer.equals("changepw")) 
 { customer="changepass.jsp"; }
 if(customer.equals("forgot-pass")) 
 { customer="forgotpass.jsp"; }
 if(customer.equals("mycart")) 
 { customer="mycart.jsp"; }
 if(customer.equals("checkout")) 
 { customer="checkout.jsp"; }
 if(customer.equals("search")) 
 { customer="search.jsp"; }
 if(customer.equals("mybill")) 
 { customer="mybill.jsp"; }
 if(customer.equals("contact")) 
 { customer="contact.jsp"; }
 if(customer.equals("intro")) 
 { customer="intro.jsp"; }
 if(customer.equals("banktransfer")) 
 { customer="banktransfersuccess.jsp"; }
 %>
<div align="left">

<table border="0" width="460" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="140" style="border-collapse:  bordercolor="#111111">
<tr>
<td width="8" height="28" background="images/1_.gif"></td>
<td  width="444" background="images/2_.gif" align="right" height="28">
<font color="#FFFFFF"><b><span id="titleCustomer"> </span></b></font></td>
<td width="8" background="images/3_.gif" height="28"></td>
</tr>
<tr>
<td background="images/4.gif" ></td>
<td height="140" align="center">
<Br>	

<jsp:include page="<%= customer %>"></jsp:include> 

</td>
<td background="images/5.gif" ></td>
</tr>
<tr>
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif" height="10"></td>
<td background="images/8.gif" height="10"></td>
</tr></table>
</div>
<div><img src="images/clear.gif" height="5"></div>
<% } %>
<!--  End Info -->


<!-- Main Web -->

<div align="left">

<table border="0" width="460" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="348" style="border-collapse:  bordercolor="#111111">
<tr>
<td width="8" height="28" background="images/1_.gif"></td>
<td  width="444" background="images/2_.gif" align="right" height="28">
<font color="#FFFFFF"><b><span id="titleProduct"> </span></b></font></td>
<td width="8" background="images/3_.gif" height="28"></td>
</tr>
<tr>
<td background="images/4.gif" height="310"></td>
<td height="310"  align="center">
<%
if (pageshow==null || pageshow.equals("newproduct")){
%>
<jsp:include page="productnewly.jsp"></jsp:include> <% } else {%> 

<%
if (pageshow.equals("category")) { %>
	<jsp:include page="productcategory.jsp"></jsp:include> <% } %>	
<%
if (pageshow.equals("search")) { %>
	<jsp:include page="productsearch.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("product")) { %>
	<jsp:include page="productId.jsp"></jsp:include> <% } %>
<%
if (pageshow.equals("allproduct")) { %>
	<jsp:include page="allproduct.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("allproductbyprice")) { %>
	<jsp:include page="allproductbyprice.jsp"></jsp:include> <% } %>			
			
<% } %>
</td>
<td background="images/5.gif" height="310"></td>
</tr>
<tr>
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif" height="10"></td>
<td background="images/8.gif" height="10"></td>
</tr></table>
</div>
<div><img src="images/clear.gif" height="5"></div>
</center>
<!--  End Main Web -->

</td>

<td valign="top">
<!--  Menu Ben Trai -->

<!--  Bat Dau Member -->
<!-- Ajax Login -->
<jsp:include page="ajaxlogin.jsp"></jsp:include> 
<!-- Ket Thuc Ajax Login -->
<table border="0" width="220" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="1">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif" height="28">
<font color="#FFFFFF"><b>Khách Hàng</b></font></td>
<td width="8" background="images/3.gif" height="28"></td>
</tr>
<tr>
<td background="images/4.gif" height="1"></td>
<td height="1" valign="top">
<Br>
<div id="loginbox">
<!--  Check Login -->
<% if (user != null) {%> 
<jsp:include page="customer.jsp"></jsp:include> 
<% } else { %>
<jsp:include page="login.jsp"></jsp:include> <% } %>
<!--  Ket Thuc Check Login -->
</div>
</td>
<td background="images/5.gif" height="1"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif" height="10"></td>
<td background="images/8.gif" height="10"></td>
</tr></table>
<!--  // Ket thuc Member -->
<div><img src="images/clear.gif" height="5"></div>

<!--  Bat Dau BOX Gio Hang -->
<table border="0" width="220" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif">
<font color="#FFFFFF"><b> Giỏ Hàng</b></font>
</td>
<td width="8" background="images/3.gif"></td>
</tr>
<tr>
<td background="images/4.gif"></td>
<td height="130"  align="center">
<jsp:include page="cart.jsp"></jsp:include> 
</td>
<td background="images/5.gif"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif"></td>
<td background="images/8.gif"></td>
</tr></table>
<!--  // Ket thuc Gio Hang -->

<div><img src="images/clear.gif" height="5"></div>

<!--  Bat Dau Hinh Anh -->
<table border="0" width="220" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif">
<font color="#FFFFFF"><b>Hình Ảnh Sản Phẩm</b></font>
</td>
<td width="8" background="images/3.gif"></td>
</tr>
<tr>
<td background="images/4.gif"></td>
<td height="130" align="center">
<br>
<jsp:include page="top10images.jsp"></jsp:include> 

</td>
<td background="images/5.gif"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif"></td>
<td background="images/8.gif"></td>
</tr></table>
<!--  // Ket thuc Tin Tuc -->
<div><img src="images/clear.gif" height="5"></div>
<!-- Bat dau Thong Ke -->
<table border="0" width="220"  cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="8" height="28" background="images/1.gif"></td>
<td  width="204" background="images/2.gif">
<font color="#FFFFFF"><b>Thống Kê</b></font>
</td>
<td width="8" background="images/3.gif"></td>
</tr>
<tr>
<td background="images/4.gif"></td>
<td valign="top" height="55">
<br>
<jsp:include page="stat.jsp"></jsp:include>
<br>
</td>
<td background="images/5.gif"></td>
</tr>
<tr bgcolor="cyan">
<td height="10" background="images/6.gif"></td>
<td background="images/7.gif"></td>
<td background="images/8.gif"></td>
</tr></table>
<!--  // Ket thuc Thong Ke -->
<!--  // Menu Trai-->

</td>
<!--Ket thuc phan Noi dung-->
</tr></table><!--Ket thuc bo cuc trang-->

<br>
<table border="0" cellpadding="0" cellspacing="0" width="900" background="images/footer.gif">
<tr><td height="60">
<center><b>
Project Bán Đồ Lưu Niệm Online<br></b> &copy CNPM 2012</center>
</td>
</tr></table>
</center>
<script language="javascript" type="text/javascript">hide_Loading();</script>
<% if (pageshow !=null || customer !=null) {%>
<script>document.body.scrollTop="410";</script>
<% } %>
</body></html>