Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Web-Applications-and-AI/ComputerForYou/out/artifacts/ComputerForYou_war_exploded/admin/admin_home.jsp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
97 lines (73 sloc)
2.27 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ page contentType="text/html;charset=UTF-8" language="java" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<%@ page import="java.util.Iterator"%> | |
<%@ page import="java.util.List"%> | |
<%@ page import="java.sql.*" %> | |
<% | |
Object objectt = session.getAttribute("user_role"); | |
if(objectt == null){ | |
String site = new String("/login.jsp"); | |
response.setStatus(response.SC_MOVED_TEMPORARILY); | |
response.setHeader("Location", site); | |
} | |
else if((Integer) objectt == 100){ | |
} | |
else if ((Integer) objectt == 1) { | |
String site = new String("/customer/home.jsp"); | |
response.setStatus(response.SC_MOVED_TEMPORARILY); | |
response.setHeader("Location", site); | |
} | |
%> | |
<html> | |
<head> | |
<title>course-project</title> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> | |
<link rel="stylesheet" href="/resources/css/bootstrap.min.css"> | |
<script src="/resources/js/jquery.min.js"></script> | |
<script src="/resources/js/bootstrap.min.js"></script> | |
<script src="/resources/js/main.js"></script> | |
<link rel="stylesheet" href="/resources/css/main.css"> | |
</head> | |
<body> | |
<div class="navbar navbar-inverse navbar-fixed-left navbar-fixed-left-admin"> | |
<div class="logo"> | |
<a class="navbar-brand" href="#">${sessionScope.name}</a> | |
<p class="username">.</p> | |
<%-- <p class="username" > <%= username %> </p> --%> | |
</div> | |
<ul class="nav navbar-nav" > | |
<li class="activeNav"><a href="/admin/admin_home.jsp">Home</a></li> | |
<li class=""><a href="/Products"> Products</a></li> | |
<li class=""><a href="/Orders"> Orders</a></li> | |
<li ><a href="/destroysession.jsp">LOG OUT</a></li> | |
</ul> | |
</div> | |
<div class="container"> | |
<br> | |
<div class="table-wrapper"> | |
<div class="table-title table-title-admin"> | |
<div class="row"> | |
<div class="col-sm-6"> | |
<h2><b>Home</b></h2> | |
</div> | |
</div> | |
</div> | |
<div class="row "> | |
<div class="col"> | |
<h1> | |
<% | |
Object objecttt = session.getAttribute("name"); | |
if(objecttt == null){ | |
}else{ | |
%> | |
<%= objecttt %> wellcome to Online Store :) | |
<% | |
} | |
%> | |
</h1> | |
</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> | |