<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?php require 'cnn.php'; ?>
<HTML><HEAD><TITLE>Re-senha2</TITLE>
<meta http-equiv=Page-Exit content=blendTrans(Duration=1.0)>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript src="jsfunc.js" 
type=text/javascript></SCRIPT>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<style type="text/css">
body { background-color:#000; }
a { font-size:11px; color:#CCC; text-decoration:none; font-family:"Tahoma"; }
a:hover { color:gray; text-decoration:underline;}
body,th,tr { font-size:11px; color:#333; font-family:"Tahoma" }
input { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
select { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #FFF; }
.submit { font-size:11px; color:#666; font-family:"Tahoma"; border:1px solid #999; background-color:;}

.style1 {
	color: #990000;
	font-weight: bold;
}
.quote {
	font-family: "Verdana";
	font-size: 10px;
	color: #000000;
	background-color: ;
	border: 1px solid #FFFFFF;
	padding: 7px;
}
</style></HEAD>
<BODY bgcolor="#FFFFFF">
<div align="center">

    <?php 
$login = stripslashes($_POST['login']);
$sql_login_check = mssql_query("SELECT fpas_ques FROM memb_info WHERE memb___id = '$login'"); 
$sql_username_check = mssql_query("SELECT memb___id FROM MEMB_INFO WHERE memb___id='$login'"); 
$username_check = mssql_num_rows($sql_username_check); 
if (empty($login) || ($username_check <= 0)) 
{
echo "Error: <br>";
if (empty($login))
echo '<p align="center">Some fields were left blank. Please go back and try again.';
elseif (($username_check <= 0))
echo '<p align="center">Login does not exist in database. Please go back and try again.';
}
else 
{
echo '<form action="re_senhadone.php" method="post" name="form1">
                      
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="30%"><div align="right">
                        E-Mail:
                            </div></td>
                            <td colspan="3">
                                <input name="email" type="text" id="email" maxlength="50">
                          E-mail do cadastro.</td>
                          </tr>
                          <tr>
                            <td><div align="right">
                              Pergunta Secreta:
                            </div></td>
                            <td colspan="3">
                                
                                  <input name="ques" type="text"  readonly="';
echo mssql_result($sql_login_check, 0, 0);
echo '" id="ques" value="';
echo mssql_result($sql_login_check, 0, 0);
echo '"></td>
                          </tr>
                          <tr>
                            <td><div align="right">
                               Resposta Secreta: 
                            </div></td>
                            <td colspan="3">
                                <input name="answer" type="text" id="answer" maxlength="10">
                          A mesma do cadastro</td>
                          </tr>
                          <tr>
                            <td><div align="right">
                               Número Secreto (ID):
                            </div></td>
                            <td colspan="3">
                                <input name="idnumb" type="text" id="idnumb" maxlength="12">
                          O mesmo do cadastro.</td>
                          </tr>
                          <tr>
                            <td><div align="right"></div></td>
                            <td width="5%">&nbsp;</td>
                            <td width="10%"><input type="submit" name="Submit" value="Recuperar">
                            </td>
                            <td width="55%"><input type="reset" name="Submit2" value="Apagar">
                            </td>
                          </tr>
                        </table>
                    </form>';
}
?>
  </p>
  <table width="100%" height="5%" border="0.5">
    <tr> </tr>
    <tr>
      <th scope="col"></th>
    </tr>
  </table>
  <div align="center"><span class=textLogin><?php print $credits; ?> </span></div>
</div>
</BODY></HTML>