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.
simple-yewu/frontend/views/common/update-pwd.php

86 lines
3.6 KiB

<?php
use \common\libs\MyLib;
?>
<?php $this->beginBlock('header_css'); ?>
<?php $this->endBlock(); ?>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>修改密码</h5>
</div>
<div class="ibox-content">
<div class="row">
5 years ago
<div class="col-sm-12">
<form role="form" class="form-horizontal data-from" id="theFrm">
<input type="hidden" name="id" value="<?=$user_info->id?>">
<div class="form-group">
5 years ago
<label class="col-sm-1 control-label">工号</label>
<div class="col-sm-6">
<label class="form-control-static"><?=$user_info->username?></label>
</div>
</div>
<div class="form-group">
5 years ago
<label class="col-sm-1 control-label">姓名</label>
<div class="col-sm-6">
<label class="form-control-static"><?=$user_info->name?></label>
</div>
</div>
<div class="form-group">
5 years ago
<label class="col-sm-1 control-label">电话</label>
<div class="col-sm-6">
<label class="form-control-static"><?=$user_info->phone?></label>
</div>
</div>
<div class="form-group">
5 years ago
<label class="col-sm-1 control-label">新密码</label>
<div class="col-sm-6">
<input type="password" name="pwd" value="" class="form-control">
</div>
</div>
<div class="form-group">
5 years ago
<label class="col-sm-1 control-label">确认密码</label>
<div class="col-sm-6">
<input type="password" name="re_pwd" value="" class="form-control">
</div>
</div>
<div>
<div class="row">
5 years ago
<div class="col-sm-5 col-sm-offset-5">
<button class="btn btn-primary btn-save" type="button">
<strong>修改密码</strong>
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php $this->beginBlock('footer_js'); ?>
5 years ago
<script type="text/javascript" language="javascript">
$(function () {
//提交按钮
$(".btn-save").click(function(){
parent.layer.confirm('是否确认提交?', {
btn: ['确认','取消'], //按钮
shade: false //不显示遮罩
}, function(){
5 years ago
var params = $("#theFrm").serialize();
$.post('/common/update-pwd-save',params,function(data){
parent.layer.msg(data.msg);
if(data.success) {
5 years ago
window.top.location.href = "/common/logout";
}
},'json');
}, function(){
//
});
5 years ago
});
})
</script>
<?php $this->endBlock('footer_js'); ?>