17 Star 48 Fork 17

koyshe/phpshe

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setting_pw.html 2.15 KB
一键复制 编辑 原始数据 按行查看 历史
koyshe 提交于 2021-12-08 13:55 +08:00 . v1.8
<!--{include(pe_tpl('header.html'));}-->
<div class="huiyuan_content">
<!--{include(pe_tpl('user_menu.html'));}-->
<div class="fr huiyuan_main">
<div class="hy_tt">
<a href="user.php?mod=setting&act=pw" <!--{if($act=='pw'):}-->class="sel"<!--{endif;}-->>登录密码<i></i></a>
<a href="user.php?mod=setting&act=paypw" <!--{if($act=='paypw'):}-->class="sel"<!--{endif;}-->>支付密码<i></i></a>
</div>
<div class="hy_table">
<form method="post" id="form" autocomplete="off">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--{if($user['user_pw']):}-->
<tr>
<td style="text-align:right;">当前密码:</td>
<td><input type="password" name="user_oldpw" class="inputall input200" /></td>
</tr>
<!--{endif;}-->
<tr>
<td style="text-align:right;" width="150">新登录密码:</td>
<td><input type="password" name="user_pw" class="inputall input200" /></td>
</tr>
<tr>
<td style="text-align:right;">确认新密码:</td>
<td><input type="password" name="user_pw2" class="inputall input200" /></td>
</tr>
<tr>
<td></td>
<td>
<input type="hidden" name="pe_token" value="{$pe_token}" />
<input type="hidden" name="pesubmit" />
<input type="button" value="提 交" class="tjbtn" />
</td>
</tr>
</table>
</form>
</div>
</div>
<div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){
$(":button").click(function(){
/*if ($(":input[name='user_oldpw']").val().length == 0) {
pe_tip('请输入当前密码');
return false;
}
if ($(":input[name='user_pw']").val().length < 6 || $(":input[name='user_pw']").val().length > 20) {
pe_tip('新密码为6-20位字符');
return false;
}
if ($(":input[name='user_pw1']").val().length < 6 || $(":input[name='user_pw1']").val().length > 20) {
pe_tip('确认密码为6-20位字符');
return false;
}
if ($(":input[name='user_pw']").val() != $(":input[name='user_pw1']").val()) {
pe_tip('新密码与确认密码不一致');
return false;
}*/
pe_submit('{pe_nowurl()}', function(json){
if (json.code == 1) pe_open('reload', 1000);
});
})
})
</script>
<!--{include(pe_tpl('footer.html'));}-->
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/koyshe/phpshe.git
git@gitee.com:koyshe/phpshe.git
koyshe
phpshe
phpshe
master

搜索帮助