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/^0ee371b66e9b9d22775ab66785...

177 lines
5.9 KiB

<?php /* Smarty version Smarty-3.1.12, created on 2021-01-28 16:30:11
compiled from "./templates/profile.tpl" */ ?>
<?php /*%%SmartyHeaderCode:5594728106012e693d732c3-38088164%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'0ee371b66e9b9d22775ab667856eb31c1805a90c' =>
array (
0 => './templates/profile.tpl',
1 => 1611808634,
2 => 'file',
),
),
'nocache_hash' => '5594728106012e693d732c3-38088164',
'function' =>
array (
),
'variables' =>
array (
'isadmin' => 0,
'fullname' => 0,
'email' => 0,
'email_msgs' => 0,
'comment' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.12',
'unifunc' => 'content_6012e693d83fe5_38447666',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6012e693d83fe5_38447666')) {function content_6012e693d83fe5_38447666($_smarty_tpl) {?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gift Registry - Update Profile</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() {
$("#changepwdform").validate({
highlight: validate_highlight,
success: validate_success,
rules: {
newpwd: {
required: true,
maxlength: 50
},
confpwd: {
required: true,
maxlength: 50,
equalTo: "#newpwd"
}
},
messages: {
newpwd: {
required: "Password is required.",
maxlength: "Password must be 50 characters or less."
},
confpwd: {
required: "Confirmation is required.",
maxlength: "Confirmation must be 50 characters or less.",
equalTo: "Passwords don't match."
}
}
});
$("#profileform").validate({
highlight: validate_highlight,
success: validate_success,
rules: {
fullname: {
required: true,
maxlength: 50
},
email: {
required: true,
maxlength: 255,
email: true
}
},
messages: {
fullname: {
required: "Full name is required.",
maxlength: "Full name must be 50 characters or less."
},
email: {
required: "E-mail address is required.",
maxlength: "E-mail address must be 255 characters or less.",
email: "E-mail address must be a valid address."
}
}
});
});
</script>
</head>
<body>
<?php echo $_smarty_tpl->getSubTemplate ('navbar.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('isadmin'=>$_smarty_tpl->tpl_vars['isadmin']->value), 0);?>
<div class="container" style="padding-top: 60px;">
<div class="row">
<div class="span8 offset2">
<form name="changepwdform" id="changepwdform" action="profile.php" method="POST" class="well form-horizontal">
<input type="hidden" name="action" value="changepwd">
<fieldset>
<legend>Change Password</legend>
<div class="control-group">
<label class="control-label" for="newpwd">New password</label>
<div class="controls">
<input type="password" id="newpwd" name="newpwd" class="input-xlarge">
</div>
</div>
<div class="control-group">
<label class="control-label" for="confpwd">Confirm password</label>
<div class="controls">
<input type="password" id="confpwd" name="confpwd" class="input-xlarge">
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Change Password</button>
<button type="button" class="btn" onclick="document.location.href='index.php';">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div>
<div class="row">
<div class="span8 offset2">
<form name="profileform" id="profileform" action="profile.php" method="POST" class="well form-horizontal">
<input type="hidden" name="action" value="save">
<fieldset>
<legend>Update Profile</legend>
<div class="control-group">
<label class="control-label" for="fullname">Full name</label>
<div class="controls">
<input type="text" id="fullname" name="fullname" class="input-xlarge" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['fullname']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email">E-mail address</label>
<div class="controls">
<input type="text" id="email" name="email" class="input-xlarge" value="<?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['email']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email_msgs">Copy on msg</label>
<div class="controls">
<input type="checkbox" id="email_msgs" name="email_msgs" <?php if ($_smarty_tpl->tpl_vars['email_msgs']->value){?>CHECKED<?php }?>>
E-mail me a copy of every message
</div>
</div>
<div class="control-group">
<label class="control-label" for="comment">Comments / shipping address / etc. (optional)</label>
<div class="controls">
<textarea id="comment" name="comment" rows="5" cols="40"><?php echo mb_convert_encoding(htmlspecialchars($_smarty_tpl->tpl_vars['comment']->value, ENT_QUOTES, 'UTF-8', true), "HTML-ENTITIES", 'UTF-8');?>
</textarea>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Update Profile</button>
<button type="button" class="btn" onclick="document.location.href='index.php';">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</body>
</html>
<?php }} ?>