<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Admin</title>
<link rel="stylesheet" type="text/css" href="css/960.css" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/text.css" />
<link rel="stylesheet" type="text/css" href="css/blue.css" />
<link type="text/css" href="css/smoothness/ui.css" rel="stylesheet" />  
    <script type="text/javascript" src="../../ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="js/blend/jquery.blend.js"></script>
	<script type="text/javascript" src="js/ui.core.js"></script>
	<script type="text/javascript" src="js/ui.sortable.js"></script>    
    <script type="text/javascript" src="js/ui.dialog.js"></script>
    <script type="text/javascript" src="js/ui.datepicker.js"></script>
    <script type="text/javascript" src="js/effects.js"></script>
    <script type="text/javascript" src="js/flot/jquery.flot.pack.js"></script>
   
    <script  language="javascript" type="text/javascript" src="js/graphs.js"></script>

</head>
<SCRIPT>
      function confirmDelete() {
        if(confirm("sure logout?")){
        	return true;
        }
        else{
        	return false;
        }
      }
 
</SCRIPT>
<%
String repInclude = (String)request.getParameter("rep");
if(repInclude == null){
	repInclude = "welcome.jsp";
}
String userName = (String)session.getAttribute("userName"); 
String message = "";
String tb = (String)request.getAttribute("tb");
if(tb != null){
	message = tb;
}
%>
<% if(userName == null) {%>
<jsp:include page="index.jsp"></jsp:include>

<%}else {%>
<body>
<!-- WRAPPER START -->
<div class="container_16" id="wrapper">	
  	<!--LOGO-->
	<div class="grid_8" id="logo">Admin - Website mynonglam.vn</div>
    <div class="grid_8">
<!-- USER TOOLS START -->
      <div id="user_tools"><span> Welcome <%= userName%> |  <a href="home.jsp?rep=changepassword.jsp">Change password</a>  |  <a onclick="return confirmDelete()" href="logout">Logout</a></span></div>
    </div>
<!-- USER TOOLS END -->    
<div class="grid_16" id="header">
<!-- MENU START -->
<div id="menu">
	<ul class="group" id="menu_group_main">
		<li class="item first" id="one"><a href="home.jsp" class="main current"><span class="outer"><span class="inner dashboard">Home</span></span></a></li>
        <li class="item middle" id="two"><a href="#" class="main"><span class="outer"><span class="inner content">Content</span></span></a></li>
        <li class="item middle" id="three"><a href="#"><span class="outer"><span class="inner reports png">Reports</span></span></a></li>
        <li class="item middle" id="four"><a href="#" class="main"><span class="outer"><span class="inner users">Users</span></span></a></li>
		<li class="item middle" id="five"><a href="#" class="main"><span class="outer"><span class="inner media_library">Media Library</span></span></a></li>        
		<li class="item middle" id="six"><a href="#" class="main"><span class="outer"><span class="inner event_manager">Event Manager</span></span></a></li>        
		<li class="item middle" id="seven"><a href="#" class="main"><span class="outer"><span class="inner newsletter">Newsletter</span></span></a></li>        
		<li class="item last" id="eight"><a href="#" class="main"><span class="outer"><span class="inner settings">Settings</span></span></a></li>        
    </ul>
</div>
<!-- MENU END -->
</div>
<div class="grid_16">
<!-- TABS START -->
    <div id="tabs">
         <div class="container">
            <ul>
                      <li><a href="home.jsp?rep=accmanager.jsp" ><span>Account Manager</span></a></li>
                      <li><a href="home.jsp?rep=groupmanager.jsp"><span>Group Manager</span></a></li>
           </ul>
        </div>
    </div>
<!-- TABS END -->    
</div>


<!-- CONTENT START -->
    <div style="min-height: 350px;" class="grid_16" id="content">
    <div style="color: red; margin-left: 15px;"><%= message %></div>
  			<div style="margin-top: 20px;">
  			<center>
  			<jsp:include page="<%= repInclude %>"></jsp:include>
  			</center>
  			</div>
    
<!-- END CONTENT-->    
  </div>
<div class="clear"> </div>

		<!-- This contains the hidden content for modal box calls -->
		<div class='hidden'>
		</div>
</div>
<!-- WRAPPER END -->
<!-- FOOTER START -->
<div class="container_16" id="footer">
Website Administration by <a href="#">XuanHoa</a></div>
<!-- FOOTER END -->
</body>

<%} %>
</html>