parent
266f7aef98
commit
43fc5dca5a
@ -1,53 +1,86 @@ |
|||||||
<table width="50%" border="0" align="center" cellpadding="3" cellspacing="1" class="table" style="margin-top:200px;"> |
<?php |
||||||
<form id="theFrm"> |
use \common\libs\MyLib; |
||||||
<input type="hidden" name="id" value="<?= $user_info->id ?>">
|
?> |
||||||
<tr> |
<?php $this->beginBlock('header_css'); ?> |
||||||
<td width="100" height="25" align="center" class="td_bg">工号</td> |
<link href="/assets/css/plugins/iCheck/custom.css" rel="stylesheet"> |
||||||
<td height="25" class="td_bg" align="center"><?=$user_info->username?></td>
|
<?php $this->endBlock(); ?> |
||||||
</tr> |
|
||||||
<tr> |
<div class="wrapper wrapper-content animated fadeInRight"> |
||||||
<td width="100" height="25" align="center" class="td_bg">姓名</td> |
<div class="ibox float-e-margins"> |
||||||
<td height="25" class="td_bg" align="center"><?=$user_info->name?></td>
|
<div class="ibox-title"> |
||||||
</tr> |
<h5>修改密码</h5> |
||||||
<tr> |
</div> |
||||||
<td width="100" height="25" align="center" class="td_bg">电话</td> |
<div class="ibox-content"> |
||||||
<td height="25" class="td_bg" align="center"><?=$user_info->phone?></td>
|
<div class="row"> |
||||||
</tr> |
<div class="col-md-12"> |
||||||
<tr> |
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
<td width="100" height="25" align="center" class="td_bg">修改密码</td> |
<input type="hidden" name="id" value="<?=$user_info->id?>">
|
||||||
<td height="25" class="td_bg" align="center"> |
<div class="form-group"> |
||||||
<input type="Password" name="pwd" placeholder="在这里输入新密码" /> |
<label class="col-md-1 control-label">工号</label> |
||||||
</td> |
<div class="col-md-6"> |
||||||
</tr> |
<label class="form-control-static"><?=$user_info->username?></label>
|
||||||
<tr> |
</div> |
||||||
<td width="100" height="25" align="center" class="td_bg">确认密码</td> |
</div> |
||||||
<td height="25" class="td_bg" align="center"> |
<div class="form-group"> |
||||||
<input type="Password" name="re_pwd" placeholder="在这里确认新密码" /> |
<label class="col-md-1 control-label">姓名</label> |
||||||
</td> |
<div class="col-md-6"> |
||||||
</tr> |
<label class="form-control-static"><?=$user_info->name?></label>
|
||||||
</form> |
</div> |
||||||
<tr> |
</div> |
||||||
<td height="22" colspan="2" align="center" class="td_bg"> |
<div class="form-group"> |
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
<label class="col-md-1 control-label">电话</label> |
||||||
</td> |
<div class="col-md-6"> |
||||||
</tr> |
<label class="form-control-static"><?=$user_info->phone?></label>
|
||||||
</table> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
</div> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
<div class="form-group"> |
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
<label class="col-md-1 control-label">新密码</label> |
||||||
|
<div class="col-md-6"> |
||||||
|
<input type="password" name="pwd" value="" class="form-control"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="form-group"> |
||||||
|
<label class="col-md-1 control-label">确认密码</label> |
||||||
|
<div class="col-md-6"> |
||||||
|
<input type="password" name="re_pwd" value="" class="form-control"> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div> |
||||||
|
<div class="row"> |
||||||
|
<div class="col-md-5 col-md-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'); ?> |
||||||
<script type="text/javascript" language="javascript"> |
<script type="text/javascript" language="javascript"> |
||||||
$(function () { |
$(function () { |
||||||
//提交按钮 |
//提交按钮 |
||||||
$("#submit-btn").click(function(){ |
$(".btn-save").click(function(){ |
||||||
if(confirm('是否确认提交?')) { |
parent.layer.confirm('是否确认提交?', { |
||||||
|
btn: ['确认','取消'], //按钮 |
||||||
|
shade: false //不显示遮罩 |
||||||
|
}, function(){ |
||||||
var params = $("#theFrm").serialize(); |
var params = $("#theFrm").serialize(); |
||||||
$.post('/common/update-pwd-save',params,function(obj){ |
$.post('/common/update-pwd-save',params,function(data){ |
||||||
alert(obj.msg); |
parent.layer.msg(data.msg); |
||||||
if(obj.success){ |
if(data.success) { |
||||||
window.top.location.href = "/common/logout"; |
window.top.location.href = "/common/logout"; |
||||||
} |
} |
||||||
},'json'); |
},'json'); |
||||||
} |
}, function(){ |
||||||
|
// |
||||||
|
}); |
||||||
}); |
}); |
||||||
}) |
}) |
||||||
</script> |
</script> |
||||||
|
<?php $this->endBlock('footer_js'); ?> |
||||||
|
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 60 KiB |
Loading…
Reference in new issue