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

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

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

<h2 align="center">Group C Schedule Entry</h2>
<h3 align="center">for <%= request.getAttribute("user") %></h3>
<p align="center">&nbsp;</p>

   <tr><td>
      <%
        if(request.getAttribute("fullname") != null){
      %>
        <h4>Full Name:  <%= request.getAttribute("fullname") %></h4>
      <%
        }
      %>
      </td>
    </tr>
    <tr><td>
      <%
        if(request.getAttribute("id") != null){
      %>
        <h4>ID:  <%= request.getAttribute("id") %></h4>
      <%
        }
      %>
      </td>
    </tr>
    <tr><td>
      <%
        if(request.getAttribute("scheddata") != null){
      %>
        <h4>ID:  <%= request.getAttribute("scheddata") %></h4>
      <%
        }
      %>
      </td>
    </tr>

   <body>
    <h3>Please enter your schedule:    </h3>
  <form action="GetSchedule.do"  method="post" onsubmit='return checkInput()'>
  <input type="hidden" name="user" value="<%= request.getParameter("user") %>">
  <input type="hidden" name="password" value="<%= request.getParameter("password") %>">
    <table>
    <tr>
    <td>User:</td>
    <td><textarea cols="40" rows="2" id="one" name="one">MWF 8:00am-7:30pm, TR 8:00am-6:00pm</textarea></td>
    </tr>
    </table>
    <br />
    <div><input type="submit"/></div>
</form>	
<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>
