<?
require_once("../dbconnect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome to Sir Box and Plastics</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="150">&nbsp;</td>
          </tr>
          <tr>
            <td>
			
			<form method="post" action="forgotpasssword.php" name="formname" enctype="multipart/form-data">
			<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="images/left_line.jpg" width="1" height="20" /></td>
                <td background="images/bg_line.jpg"><table width="150" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
                  <tr>
                    <td width="20">&nbsp;</td>
                    <td width="4"><img src="images/left_curv.jpg" width="4" height="20" /></td>
                    <td align="center" background="images/curve_middle.jpg" class="admin">Resend Password</td>
                    <td width="4"><img src="images/right_curv.jpg" width="4" height="20" /></td>
                  </tr>
                </table></td>
                <td><img src="images/left_line.jpg" width="1" height="20" /></td>
                </tr>
              <tr>
                <td bgcolor="#828177"></td>
                <td align="center"><span class="style1">



<?  
 if($_GET['f'])	
			{
				echo "You must enter the Email Address.";
				
				}
				elseif($_GET['n'])
				{
				echo "You entered the wrong email address.";
				}	 ?></span></td>
                <td bgcolor="#828177"></td>
              </tr>
              <tr>
                <td bgcolor="#828177"></td>
                <td>
				<? if(!$_GET['s']){
				?>
			
				<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="144" height="25" align="center" class="admin">Admin Email Address:</td>
                    <td width="10" align="center">:</td>
                    <td width="195">
                      <input type="text" name="emailaddre" id="emailaddre" value="<? echo $_POST['emailaddre']; ?>" style="height: 15px;" />                    </td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td height="30 ">
                      <input type="submit" name="Submit" class="button" value="Resend" />
					  <a href="index.php">
					 <input type="submit" name="Login" class="button" value="Login" /></a>
					  
					  
					  </td>
					 
					  
                  </tr>
                </table>	
				
				<? }
				else
				{?>
				<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="25" colspan="3" align="center" class="admin">
					<strong>YOUR PASSWORD HAS BEEN SENT TO YOUR MAIL</strong></td>
                    </tr>
                  <tr>
                    <td width="144">&nbsp;</td>
                    <td width="10">&nbsp;</td>
                    <td width="195" height="30 ">
					<a href="index.php">
					 <input type="submit" name="Login" class="button" value="Login" />	</a>				  </td>
                  </tr>
                </table>
				
				<? }?>
				
				
			</td>
                <td bgcolor="#828177"></td>
              </tr>
              <tr>
                <td bgcolor="#828177"></td>
                <td align="right" valign="middle" style="padding-right:10px;"><a href="#" class="lax"></a></td>
                <td bgcolor="#828177"></td>
              </tr>
              <tr>
                <td width="1" bgcolor="#828177"></td>
                <td>&nbsp;</td>
                <td width="1" bgcolor="#828177"></td>
                </tr>
              <tr>
                <td height="1" bgcolor="#828177"></td>
               <td height="1" bgcolor="#828177"></td>
               <td height="1" bgcolor="#828177"></td>
                </tr>
            </table>
			</form>
			</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
