westdc-zf1/module/Application/view/application/account/getpassword.phtml

64 lines
2.6 KiB
PHTML

<style>
.form-login {
overflow:hidden;
max-width: 500px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
</style>
<div class="container">
<div class="form-login">
<h2 class="form-signin-heading">重置密码</h2>
<?php if(!empty($this->msg)){
echo $this->msg;
}else{?>
<?php if(empty($this->error)) { ?>
<div class="alert alert-info alert-login">
请输入用户名和新密码
</div>
<?php }else{ ?>
<?= $this->error ?>
<?php } ?>
<form action="" method="post" id="login_form" class="form-horizontal">
<div class="form-group">
<label for="inputUsername" class="col-lg-3 control-label">用户名</label>
<div class="col-lg-9">
<input type="text" class="form-control" id="inputUsername" name="username" placeholder="Username" value="<?php if(!empty($this->username)) {echo $this->username;}?>">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-lg-3 control-label">密码</label>
<div class="col-lg-9">
<input type="password" class="form-control" id="inputPassword" name="password" placeholder="Password">
</div>
</div>
<div class="form-group">
<label for="inputPassword1" class="col-lg-3 control-label">确认密码</label>
<div class="col-lg-9">
<input type="password" class="form-control" id="inputPassword1" name="confirm_password" placeholder="Type in Password again">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<input type="hidden" name="submit" value="1" />
<?php if(!empty($this->href)){?>
<input type="hidden" name="href" value="<?= $this->href ?>" />
<?php }?>
<?php if(!empty($this->salt)) { ?>
<input type="hidden" name="salt" value="<?= $this->salt ?>" />
<?php } ?>
<button class="btn btn-large btn-primary" type="submit">提交</button>
</div>
</div>
</form>
<?php } ?>
</div>
</div>