<?php

/**
 *
 * @copyright  2010-2013 frasq.org
 * @version    2
 * @link       http://www.frasq.org
 */
?>
<div class="form">
<form action="" method="post">
<input type="hidden" name="remindme_token" value="<?php echo $token; ?>" />
<div class="fields">
<p class="label">What is your connection name?</p>
<p class="input"><input type="text" name="remindme_login" id="remindme_login" size="40" maxlength="100" title="Identifier" onkeypress="return focusonenter(event, 'remindme_code')" value="<?php echo htmlspecialchars($login, ENT_COMPAT, 'UTF-8'); ?>" /></p>
<p class="info">You may also enter your email address.</p>
<p class="input"><input name="remindme_confirmed" id="remindme_confirmed" type="checkbox" title="Confirmation" <?php if ($confirmed) echo 'checked="checked"'; ?> />&nbsp;I want to receive a new password</p>
<?php if ($with_captcha): ?>
<p class="input">
<img src="<?php echo $base_path; ?>/captcha/remindme" alt="" title="Verification code" />
&nbsp;:&nbsp;
<input type="text" name="remindme_code" id="remindme_code" size="4" maxlength="4" title="4 letters" onkeypress="return submitonenter(event, 'remindme_submit')" value="" />
</p>
<?php endif; ?>
<p class="submit"><button type="submit" name="remindme_submit" id="remindme_submit">Send</button></p>
</div>
</form>
<?php
if ($errors):
extract($errors);
?>
<div class="errors">
<?php if ($missing_code): ?>
<p>Enter the verification code displayed in the image.</p>
<?php elseif ($bad_code): ?>
<p>The verification code is incorrect.</p>
<?php endif; ?>
<?php if ($missing_login): ?>
<p>You haven't typed your identifier.</p>
<?php elseif ($bad_login): ?>
<p>The identifier is not valid.</p>
<?php endif; ?>
<?php if ($missing_confirmation): ?>
<p>Check the confirmation box.</p>
<?php endif; ?>
<?php if ($internal_error): ?>
<p>An internal error has occurred. If you can describe the problem, please <a href="<?php echo $contact_page; ?>">contact us</a>.</p>
<?php endif; ?>
</div>
<?php endif; ?>
<?php
if ($infos):
extract($infos);
?>
<div class="infos">
<?php if ($email_sent): ?>
<p>A new password has been sent to you by email.<br />
To identify yourself, <a href="<?php echo $user_page; ?>">click here</a>.</p>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
