<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=account_password.<br />
 * Allows customer to change their password
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_account_password_default.php 2896 2006-01-26 19:10:56Z birdbrain $
 */
?>
<div class="centerColumn" id="accountPassword">
	<div class="stacked-layout">
		<?php echo zen_draw_form('account_password', zen_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'), 'post', 'onsubmit="return check_form(account_password);"') . zen_draw_hidden_field('action', 'process'); ?>

		<h3 class="section-title"><?php echo HEADING_TITLE; ?></h3>
		<p class="text-danger"><?php echo FORM_REQUIRED_INFORMATION; ?></p> 
		<br>

		<?php if ($messageStack->size('account_password') > 0) echo $messageStack->output('account_password'); ?>

		<div class="form-group">
			<label class="inputLabel" for="password-current"><?php echo str_replace(':', '', ENTRY_PASSWORD_CURRENT) . (zen_not_null(ENTRY_PASSWORD_CURRENT_TEXT) ? ' <span class="alert form-alert text-danger">' . ENTRY_PASSWORD_CURRENT_TEXT . '</span>': ''); ?></label>
			<?php echo zen_draw_password_field('password_current','','id="password-current"'); ?>
		</div>

		<div class="form-group">
			<label class="inputLabel" for="password-new"><?php echo str_replace(':', '', ENTRY_PASSWORD_NEW) . (zen_not_null(ENTRY_PASSWORD_NEW_TEXT) ? ' <span class="alert form-alert text-danger">' . ENTRY_PASSWORD_NEW_TEXT . '</span>': ''); ?></label>
			<?php echo zen_draw_password_field('password_new','','id="password-new"'); ?>
		</div>

		<div class="form-group">
			<label class="inputLabel" for="password-confirm"><?php echo str_replace(':', '', ENTRY_PASSWORD_CONFIRMATION)  . (zen_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? ' <span class="alert form-alert text-danger">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></label>
			<?php echo zen_draw_password_field('password_confirmation','','id="password-confirm"'); ?>
		</div>
		<br><br>
		
		<div class="buttonRow pull-right"><input type="submit" value="<?php echo BUTTON_SUBMIT_ALT; ?>" class="button"></div>
		<div class="buttonRow pull-left"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '" class="button button-inverse">' . BUTTON_BACK_ALT . '</a>'; ?></div>

		</form>
	</div>
</div>
