56 lines
1.9 KiB
PHTML
56 lines
1.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('Login');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/css/register.css');
|
|
$this->breadcrumb('<a href="/">Home</a>');
|
|
$this->breadcrumb('<a href="/account/fetchpwd">Fetch password</a>');
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
<div class="row-fluid">
|
|
<?php if(!empty($this->error)) { ?>
|
|
<?= $this->error ?>
|
|
<?php } ?>
|
|
<form method="post" class="form-horizontal">
|
|
<div class="control-group">
|
|
<label class="control-label" for="email">E-mail</label>
|
|
<div class="controls">
|
|
<input id="email" type="text" value="" name="email" />
|
|
<span class="help-block">Your email address</span>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="captcha">Captcha</label>
|
|
<div class="controls">
|
|
<input id="captcha" type="text" value="" name="captcha" />
|
|
<img id="captcha_img" src="<?php echo $this->captcha ?>" style="cursor:pointer" />
|
|
<a href="javascript:void(0);" onclick="changecaptcha()">Not clear?</a>
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<input type="hidden" name="submit" value="1" />
|
|
<?php if(!empty($this->href)){?>
|
|
<input type="hidden" name="href" value="<?= $this->href ?>" />
|
|
<?php }?>
|
|
<button type="submit" class="btn">submit</button>
|
|
<a href="/account/register">Register new username</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script>
|
|
$('#captcha_img').click(function(e) {
|
|
changecaptcha();
|
|
});
|
|
function changecaptcha(){
|
|
$.ajax({
|
|
url:"/account/captcha",
|
|
data:"<?= time() ?>",
|
|
success: function(src){
|
|
document.getElementById('captcha_img').src = src;
|
|
}
|
|
});
|
|
}
|
|
</script>
|