<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String pageshow = request.getParameter("main");
String user = (String) session.getAttribute("user");
%>
<% if (user == null) { response.sendRedirect("login.jsp");} else {
user = user.toLowerCase();
if (!user.equals("admin")){
	response.sendRedirect("permission.jsp");
}
else {
%>
<html>
<base href="http://<%= request.getServerName() %>:<%= request.getServerPort() %><%= request.getContextPath() %>/admin/"/>
<head>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<title>:: AdminCP - Đồ Lưu Niệm ::</title>
<!-- 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">
<!-- 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 -->
<link rel=stylesheet href='images/AjaxForm.css' type=text/css>
<script type="text/javascript" src="js/SearchID.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/Cate.js"></script>
<!-- Ket Thuc CSS -->
<script src="js/jquery.uniform.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
      $(function(){
        $(".UniXT").uniform();
      });
    </script>
<script>
function numberonly(event) {
	 var chCode = (event.charCode === undefined) ? event.keyCode : event.charCode;
	 if (chCode > 31 && (chCode < 48 || chCode > 57))
	 {return false;}
	 else { return true;}
	  }
</script>
</head>

<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="../ProductController" onsubmit="return SearchID(this)">
<input type="hidden" name="rep" value="viewID"/>
<input  onkeypress="return numberonly(event);" style="color: #828282" type="text" class=SINPUT name="id" id="id" size="25" maxlength="255" value="Nhập ID sản phẩm" onfocus="if (this.value == 'Nhập ID sản phẩm'){this.value=''; this.style.color='Black';}" onblur="if (this.value == '') {this.value='Nhập ID sản phẩm'; this.style.color='#828282';}" type="text" name="user" size="20"></input>
<input type="submit" 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;">&nbsp;
</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/Menuam.js"></SCRIPT>
<div id="menuam" class="menuam" align="left">

		<UL>
			<LI><a href="../index.jsp">Cửa Hàng</a></LI>	
			<LI><a href="../Announce?rep=edit">Thông Báo</a></LI>		
			<LI><a href="../Bill?rep=view">Hóa Đơn</a></LI>								
			<LI><a href="../AUser?rep=view">Khách Hàng</a></LI>
			<LI><a href="../ProductController?rep=showAll">Sản Phẩm</a></LI>
			<LI><a href="../Support?rep=viewall">Hỗ Trợ</a></LI>
		</UL>
		</div>
 <!-- End Menu Top -->
</td>
<td width="10" background="images/m3.gif"></td>
</tr>
</table>


<table border="0" width="899" height="425">
<tr>
<td valign="top" width="220"><!--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"><b><font color="white">&nbsp;&nbsp;&nbsp;Chức Năng</font></b>
</td>
<td width="8" background="images/3.gif"></td>
</tr>
<tr>
<td background="images/4.gif" height="249"></td>
<td height="249">
<div><img src="images/clear.gif" height="5"></div>

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

</td>
<td background="images/5.gif" height="249"></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 -->


<td valign="top">
<center>


<!-- Main Web -->

<div align="left">

<table border="0" width="675" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" height="348" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="8" height="28" background="images/1_.gif"></td>
<td  style="color: #FFFFFF" width="658" background="images/2_.gif" align="right" height="28">
<b><font color="white"><span id="titleMod">Chức Năng</span></font></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SCRIPT src="js/date.js"></script></td>
<td width="7" background="images/3_.gif" height="28"></td>
</tr>
<tr>

<td background="images/4.gif" height="310"></td>
<td height="450" align="center">

<%
if (pageshow==null){
%>
<jsp:include page="blank.jsp"></jsp:include> <% } else {%> 

<%
if (pageshow.equals("edit-announce")) { %>
	<jsp:include page="announce.jsp"></jsp:include> <% } %>	
	<%
if (pageshow.equals("billlist")) { %>
	<jsp:include page="bills.jsp"></jsp:include> <% } %>
		<%
if (pageshow.equals("allproduct")) { %>
	<jsp:include page="allproduct.jsp"></jsp:include> <% } %>
		<%
if (pageshow.equals("viewpd-ID")) { %>
	<jsp:include page="viewproductid.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("createpd")) { %>
	<jsp:include page="createproduct.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("viewCM")) { %>
	<jsp:include page="cmmanage.jsp"></jsp:include> <% } %>
		<%
if (pageshow.equals("viewallsupport")) { %>
	<jsp:include page="allsupport.jsp"></jsp:include> <% } %>
		<%
if (pageshow.equals("editsupport")) { %>
	<jsp:include page="editsupport.jsp"></jsp:include> <% } %>	
		<%
if (pageshow.equals("createsupport")) { %>
	<jsp:include page="createsupport.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("user")) { %>
	<jsp:include page="user.jsp"></jsp:include> <% } %>	
	<%
if (pageshow.equals("changepw")) { %>
	<jsp:include page="changepw.jsp"></jsp:include> <% } %>	
	<%
if (pageshow.equals("allproductso")) { %>
	<jsp:include page="soldoutproduct.jsp"></jsp:include> <% } %>
	<%
if (pageshow.equals("editpdso")) { %>
	<jsp:include page="editproductso.jsp"></jsp:include> <% } %>	
		<%
if (pageshow.equals("editpd")) { %>
	<jsp:include page="editproduct.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>

<!--  End Main Web -->
</center>
</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>
Admin Control Panel<br></b> &copy LuanXT</center>
</td>
</tr></table>
</center>
<script language="javascript" type="text/javascript">hide_Loading();</script>
<% if (pageshow !=null) {%>
<script>document.body.scrollTop="295";</script>
<% }}} %>
</body></html>