<?php

define('PERMISSION_TYPE', NULL); // No permission required to visit this page;

require __dir__ . '/init.php';

require _SDIR . '/for-confirm.php';

template::$BLANK_PAGE = TRUE;

template::get_header();

?>

	<?php bridge::open(); ?>
	
    <div class="login-form-area mg-t-30 mg-b-40 pt-5">

		<form id="adminpro-form" class="adminpro-form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

			<div class="login-bg card">
				<div class='card-body'>
				
					<div class="row mb-2">
						<div class="col-lg-12">
							<div class="logo text-center">
								<a href="javascript:void(0)">
									<img src="<?php echo template::$logo; ?>" alt="" height='50'/>
								</a>
							</div>
						</div>
					</div>
					
					<?php template::alert( $msg, $status ?? null ); ?>
					
					<div class="row align-items-center">
						<div class="col-lg-4">
							<div class="login-input-head">
								<p><b>New Password</b></p>
							</div>
						</div>
						
						<div class="col-lg-8">
							<div class="login-input-area mb-3">
								<input type="password" name="password" class="form-control" />
							</div>
							<div class="login-input-area mb-3">
								<input type="password" name="password-alt" class="form-control" />
							</div>
						</div>
					</div>
					
					<div class='row'>
						<div class='col-lg-8 ml-auto'>
							<button type="submit"  name="log" class="btn btn-primary">Reset</button>
						</div>
					</div>
					<input type="hidden" name="email" value="<?php echo $_POST['email'] ?? $_GET['e']; ?>">
					
				</div>
			</div>
			
		</form>

    </div>

	<?php bridge::close(); ?>
	
<?php template::get_footer(); ?> 