<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String user = (String) session.getAttribute("user") ;%>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<link rel=stylesheet href='images/style.css' type=text/css>
<title>Register</title>
<Script>
function logout(){
if(confirm('Bạn thực sự muốn Đăng Xuất ?'))
{return true;}
else {return false;}
}
</script>
</head>
<body>

<% if (user == null) { %>
<div align="center">
<br><b>Bạn Đã Đăng Xuất</b><br><br><p></div>
 <% } else { %>

<form method="post" name="form1" action="Process">
<input type="hidden" id="ajaxlogin" value="<%= user %>" />
<table border="0" cellpadding="0" cellspacing="0"   width="100%" height="13">
  <tr>
    <td width="125%" style="border: 1px " height="1" colspan="2">
Khách hàng: <b><%= user %></b></td>
  </tr>
    <tr>
    <td width="125%" style="border: 1px " height="13" colspan="2">
    </td>
  </tr>
  <% if (user.toLowerCase().equals("admin")) {%>
    <tr>
    <td width="2%" style="border: 1px " height="1">
<img border="0" src="images/download.gif" width="15" height="9"></td>
    <td width="123%" style="border: 1px " height="1">&nbsp;<a href="admin/index.jsp">Quản lý</a></td>
  </tr><% } %>
  <tr>
    <td width="2%" style="border: 1px " height="1">
<img border="0" src="images/download.gif" width="15" height="9"></td>
    <td width="123%" style="border: 1px " height="1">&nbsp;<a href="index.jsp?customer=mybill">Hóa đơn mua hàng</a></td>
  </tr>
  <tr>
    <td width="2%" style="border: 1px " height="2">
<img border="0" src="images/download.gif" width="15" height="9"></td>
    <td width="123%" style="border: 1px " height="2">
    &nbsp;<a href="index.jsp?customer=changepw">Đổi mật khẩu</a></td>
  </tr>
  <tr>
    <td width="2%" style="border: 1px " height="1">
    <img border="0" src="images/download.gif" width="15" height="9"></td>
    <td width="123%" style="border: 1px " height="1">
    &nbsp;<a onclick="return logout();" href="AUser?rep=logout-store" >Đăng xuất</a></td>
  </tr>
  </table>
  </form>
  <%} %>
</body></html>