<%@ 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 enter your username and email address, along with your confirmation number...</h5>
		<p align="center">
		<form action="Verify.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>Email:</th> 
		    <td><input type=text name="email" id="email"></td>
		  </tr>
		  <tr><th>Confirmation Number:</th>
		    <td><input type=text name="number" id="number"></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("expired")) {
                     out.print("<p align='center' style='color: red'>Verification has expired.  " + 
                               "Please click the Create Account button to create a new account.  You can use your original username.</p>");
                  }
                  else if (reason.equals("notVerified")) {
                     out.print("<p align='center' style='color: red'>Invalid verification information.  " +
                               "Please enter again or click the Reverify button below to get a new confirmation email.</p>");
                  }
                  else if (reason.equals("invalid")) {
                     out.print("<p align='center' style='color: red'>An account with that username and email address does not exist.  " +
                                "Please enter a valid account or click Login below to go to the Login page.</p>");
                  }
              %>

                <br />

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