Quick and simple PHP gift registry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
phpgiftreg/templates_c/^577b2c95715fb41671eb65aa69...

107 lines
3.8 KiB

<?php /* Smarty version Smarty-3.1.12, created on 2021-12-19 05:34:22
compiled from "./templates/forgot.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2351021006012f167ad3f26-87476094%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'577b2c95715fb41671eb65aa6989d69ea999fa6a' =>
array (
0 => './templates/forgot.tpl',
1 => 1611976167,
2 => 'file',
),
),
'nocache_hash' => '2351021006012f167ad3f26-87476094',
'function' =>
array (
),
'version' => 'Smarty-3.1.12',
'unifunc' => 'content_6012f167ae87e5_48170379',
'variables' =>
array (
'action' => 0,
'error' => 0,
'username' => 0,
),
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6012f167ae87e5_48170379')) {function content_6012f167ae87e5_48170379($_smarty_tpl) {?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gift Registry - Forgot Password</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/giftreg.js"></script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
$("#forgotform").validate({
highlight: validate_highlight,
success: validate_success,
rules: {
username: {
required: true
},
},
messages: {
username: {
required: "Username is required."
}
}
});
});
</script>
</head>
<body>
<div class="container" style="padding-top: 30px;">
<?php if (isset($_smarty_tpl->tpl_vars['action']->value)&&$_smarty_tpl->tpl_vars['action']->value=="forgot"&&$_smarty_tpl->tpl_vars['error']->value==''){?>
<div class="row">
<div class="span12">
<div class="well">
<p>Shortly, you will receive an e-mail with your new password.</p>
<p>Once you've received your password, click <a href="login.php">here</a> to login.</p>
</div>
</div>
</div>
<?php }else{ ?>
<div class="row">
<div class="span12">
<form name="forgotform" id="forgotform" method="post" action="forgot.php" class="well form-horizontal">
<input type="hidden" name="action" value="forgot">
<fieldset>
<legend>Reset Your Password</legend>
<div class="control-group <?php if (isset($_smarty_tpl->tpl_vars['error']->value)){?>warning<?php }?>">
<label class="control-label" for="username">Username</label>
<div class="controls">
<input id="username" name="username" type="text" class="input-xlarge" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['username']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
<?php if (isset($_smarty_tpl->tpl_vars['error']->value)){?>
<span class="help-inline"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['error']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</span>
<?php }?>
<p class="help-block">
Supply your username and click Submit.<br />
Your password will be reset and the new password will be sent to the e-mail address you have associated with your account.
</p>
</p>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="button" class="btn" onClick="document.location.href='login.php';">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div>
<?php }?>
</div>
</body>
</html>
<?php }} ?>