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; |
||||||
|
?> |
||||||
|
<?php $this->beginBlock('header_css'); ?> |
||||||
|
<link href="/assets/css/plugins/iCheck/custom.css" rel="stylesheet"> |
||||||
|
<?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"> |
||||||
|
<div class="col-md-12"> |
||||||
|
<form role="form" class="form-horizontal data-from" id="theFrm"> |
||||||
<input type="hidden" name="id" value="<?=$user_info->id?>">
|
<input type="hidden" name="id" value="<?=$user_info->id?>">
|
||||||
<tr> |
<div class="form-group"> |
||||||
<td width="100" height="25" align="center" class="td_bg">工号</td> |
<label class="col-md-1 control-label">工号</label> |
||||||
<td height="25" class="td_bg" align="center"><?=$user_info->username?></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"><?=$user_info->name?></td>
|
<div class="form-group"> |
||||||
</tr> |
<label class="col-md-1 control-label">姓名</label> |
||||||
<tr> |
<div class="col-md-6"> |
||||||
<td width="100" height="25" align="center" class="td_bg">电话</td> |
<label class="form-control-static"><?=$user_info->name?></label>
|
||||||
<td height="25" class="td_bg" align="center"><?=$user_info->phone?></td>
|
</div> |
||||||
</tr> |
</div> |
||||||
<tr> |
<div class="form-group"> |
||||||
<td width="100" height="25" align="center" class="td_bg">修改密码</td> |
<label class="col-md-1 control-label">电话</label> |
||||||
<td height="25" class="td_bg" align="center"> |
<div class="col-md-6"> |
||||||
<input type="Password" name="pwd" placeholder="在这里输入新密码" /> |
<label class="form-control-static"><?=$user_info->phone?></label>
|
||||||
</td> |
</div> |
||||||
</tr> |
</div> |
||||||
<tr> |
<div class="form-group"> |
||||||
<td width="100" height="25" align="center" class="td_bg">确认密码</td> |
<label class="col-md-1 control-label">新密码</label> |
||||||
<td height="25" class="td_bg" align="center"> |
<div class="col-md-6"> |
||||||
<input type="Password" name="re_pwd" placeholder="在这里确认新密码" /> |
<input type="password" name="pwd" value="" class="form-control"> |
||||||
</td> |
</div> |
||||||
</tr> |
</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> |
</form> |
||||||
<tr> |
</div> |
||||||
<td height="22" colspan="2" align="center" class="td_bg"> |
</div> |
||||||
<input id="submit-btn" type=button class="ACT_btn" name=Submit1 value=" 提交 "/> |
</div> |
||||||
</td> |
</div> |
||||||
</tr> |
</div> |
||||||
</table> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/jquery-1.8.3.js"></script> |
<?php $this->beginBlock('footer_js'); ?> |
||||||
<script type="text/javascript" language="javascript" src="/js/ajax.js"></script> |
|
||||||
<script type="text/javascript" language="javascript" src="/js/func.js"></script> |
|
||||||
<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