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

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <style type="text/css"> body  {background-color: #C0C0C0; font-family: Georgia, 'Times New Roman', 
				    Garamond; font-size:10pt;}
			      p	    {font-size:10pt;}
			      a	    {font-weight:normal; font-size: 10pt;}
                              h1    {font-size:18pt; font-weight:bold; text-align: center;}
			      h2    {font-size:10pt; font-weight:bold; text-align: center;}
			      h3    {font-size:14pt; color: C0C0C0;}
			      h4    {font-size:9pt; font-weight:bold;}
			      h5    {font-size:10pt; font-weight:normal;}
			      ul    {list-style-type:square; font-size:10pt;} 
			      ol    {font-size:10pt;}
			      table {background-color: #FFFFFF;}
			      .center-content {text-align:center;}
      </style>
      <title>CISC474 : Group E's Scheduler Webapp</title>
   </head>

   <body >
      <!-- generate an outertable to frame the content of the page -->
      <table border = "2" cellspacing = "1" cellpadding = "4" width = "800px" style="align:center" >
      <tr> <td align = "center" valign = "middle">

	 <h1>Group E's Scheduler Webapp</h1>
	 <!-- 	Name: 		Matthew Arbaugh, Anthony Furst, Yana Novikova, Steve Parise, Tara Strobel 
	 	Course Number: 	CISC474 (06S); 
		Assignment: 	A10; --> 

	  <%
                String user = (String)request.getAttribute("user");
                out.print("<p align='center'>Welcome " + user + "</p>");
        %>

	 <!-- generate an innertable to frame the content of my page -->
	 <table border ="0" cellspacing ="1" cellpadding ="4" width ="750px" >
	    <tr>
		<td>
			<form method="post" action="GetMenu.do">
			 <%
                                out.print("<p><input type='text' name='user' style=						'display:none' value='" + user + "' /></p>");
                        %>

			<p><input type= "submit" value="Main Menu" /></p>
			</form>
		</td>
		<td>
                        <form method="post" action="ChangeSched.do">
			 <%
                                out.print("<p><input type='text' name='user' style=						'display:none' value='" + user + "' /></p>");
                        %>

                        <p><input type= "submit" value="Enter/Change Schedule" /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="GetFreeTime.do">
			 <%
                                out.print("<p><input type='text' name='user' style=						'display:none' value='" + user + "' /></p>");
                        %>

                        <p><input type= "submit" value="Find Common Free Times" /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="Lookup.do">
			 <%
                                out.print("<p><input type='text' name='user' style=						'display:none' value='" + user + "' /></p>");
                        %>

                        <p><input type= "submit" value="Lookup Schedules" disabled /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="login.html">
                        <p><input type= "submit" value="Logout" /></p>
                        </form>
		</td>
	    </tr>
	    <tr>
	       <td align = "left" valign = "top" style="width:50%" colspan="5"> 
		  <h3>Select a user to lookup a schedule for...</h3>
		  <p align="center">
			<form method="post" action="Time.do">
			<p align="center">
				<select name="names">
				<%
					List styles = (List)request.getAttribute("styles");
					Iterator it = styles.iterator();
					while(it.hasNext()) {
						out.print("<option>" + it.next() + "</option>");
					}
				
					out.print("</select>");
					out.print("</p>");
					out.print("<p><input type='text' name='user' style=                                             'display:none' value='" + user + "' /></p>");
				%>
			<p align="center"><input type="submit" value="Look up" /></p>
			</form>
		  </p>
               </td>
	    </tr>
	 </table>
	 <p> - Spring 2006 - </p>
      </td></tr>
      </table>

      <!-- Validation coding for my page. -->
      <p>
         <a href="http://validator.w3.org/check?uri=referer"><img
             src="http://www.w3.org/Icons/valid-xhtml11"
             alt="Valid XHTML 1.1" height="31" width="88" /></a>
      </p>
   </body>
</html>
