<%@ page import="java.util.*" %>

<html>
<link href="basic.css" rel="stylesheet" type="text/css">
<body>
<title>Group C Scheduler</title>

<%
  Boolean success = (Boolean)request.getAttribute("success");

  if(success){
%>

<h2 align="center">Group C Scheduler Main Menu</h2>
<h3 align="center">for <%= request.getParameter("user") %></h3>
<p align="center">&nbsp;</p>
<form method="POST" action="ScheduleEntry.do">
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">
  <input type="SUBMIT" value="Proceed to Schedule Entry">
</form>

<form method="POST" action="ScheduleLookup.do">
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">
  <input type="SUBMIT" value="Proceed to Schedule Lookup">
</form>

<form method="POST" action="CalculateFreeTime.do">
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">
  <input type="SUBMIT" value="Calculate Free Time">
</form>

<p>&nbsp;</p>
<p><br>
</p>
<hr />

<form method="POST" action="form.jsp">
  <input type="SUBMIT" value="Logout">
</form>


<%
  }
  else{
%>

<script type="text/javascript">
<!--
  var answer = alert ("Error logging in.  Check your username and password.")
  window.location="form.jsp"
// -->
</script> 

<%
  }
%>

</body>
</html>
