<?php

/* TODO: Add code here */
require 'config/globalconfig.php';
include_once 'class/model_user.php';
include_once 'class/model_resetpassword.php';
$objUser = new Model_User($objConnection);
$objReset = new Model_ResetPassword($objConnection);
if ($_pgR["id"]) {
    global_common::clearSession();
    $resetID = $_pgR['id'];
    $resetID = html_entity_decode($resetID, ENT_COMPAT, 'UTF-8');
    $result = $objReset->checkResetPasswordByID($resetID);
}
?>

<?php 
include_once 'include/_header.inc';
include_once 'include/_menu.inc';
?>
<div id="forgot-page">
	<form method="POST" id='form-reset' class="form-horizontal">
		<div class="table-forgot">
			<div class="control-group">
				<div class="controls">
					<h1 class="m-wrap title"> Thay đổi mật khẩu</h1>
				</div>
			</div>
<?php 
if ($result) {
    ?>