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

<%
  if(request.getAttribute("user") != null){
%>

<h2 align="center">Group C Free Time Calculator</h2>
<h3 align="center">for <%= request.getParameter("user") %></h3>
<p align="center">&nbsp;</p>

<h3>Enter Free time constraint:    </h3>
<form action="CalculateFreeTime.do"  method="post" onsubmit='return checkInput()'>
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">

   <textarea cols="40" rows="1" id="one" name="one"></textarea>
    <br />
    <div><input type="submit" value="Do it!"/></div>
</form>

<%  if(request.getAttribute("result") != null) {%>
	<h4>You Free Times Sir</h4>
	<%=request.getAttribute("result")%>
	<%}%>



<hr />
<form method="POST" action="MainMenu.do">
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">
  <input type="SUBMIT" value="Return to Main Menu">
</form>

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

<%
  }
  else{
%>

<script type="text/javascript">
<!--
  var answer = alert ("Please Log In First.")
  window.location="form.jsp"
// -->
</script>

<%
  }
%>

</html></body>
