<%@ 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; --> 

	 <!-- generate an innertable to frame the content of my page -->
	 <table border ="0" cellspacing ="1" cellpadding ="4" width ="750px" >
	    <tr>
		<td>
			<form method="get" action="menu.html">
			<p><input type= "submit" value="Main Menu" disabled /></p>
			</form>
		</td>
		<td>
                        <form method="post" action="">
                        <p><input type= "submit" value="Enter/Change Schedule" disabled /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="GetFreeTime.do">
                        <p><input type= "submit" value="Find Common Free Times" disabled /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="Lookup.do">
                        <p><input type= "submit" value="Lookup Schedules" disabled /></p>
                        </form>
		</td>
		<td>
                        <form method="post" action="Lookup.do">
                        <p><input type= "submit" value="Logout" disabled /></p>
                        </form>
		</td>
	    </tr>
	    <tr>
	       <td align = "left" valign = "top" style="width:50%" colspan="5"> 
		  <h3>Please login to begin using this application...</h3>
		  <p align="center">
  			<form action="Login.do" method="post">
			<p align="center">
      			<table align="center">
	  		   <tr><th>Username:</th> 
	    			<td><input type=text name="username" id="username"></td>
	  		   </tr>
	  		   <tr><th>Password:</th> 
	    			<td><input type=password name="password" id="password"></td>
	  		   </tr>
	  		   <tr><th>  </th>
				<td><input type=submit value="submit" name="submit"></td></tr>
      			</table>
			</p>
    			</form>
			

                      <%  String reason = (String)request.getAttribute("reason");
                          if (reason.equals("notVerified")) {
                            out.print("<p align='center' style='color: red'>Account not verified.  " + 
                                "Check your email for a Confirmation email, or click the Verify button below to verify your " +
                                "account now.</p>");
                          }
                          else if (reason.equals("invalid")) {
                            out.print("<p align='center' style='color: red'>Username and password do not match.  " +
                               "Please enter again or click the Create Account button below to create a new account.</p>");
                          }
                      %>

                <br />

		<table align="center">
		  <tr>
		    <td>
		      <form action="createAccount.html" method=post>
			<input type=submit value="Create Account" name="submit" />
		      </form>
		    </td>
		    <td>
		      <form action="verification.html" method=post>
			<input type=submit value="Verify Account" name="submit" />
		     </form>
		    </td>
		  </tr>
		</table>		   		
               </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>
