2 Star 1 Fork 2

徐子玉 / 品贷网

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
userPassword.html 7.35 KB
一键复制 编辑 原始数据 按行查看 历史
徐子玉 提交于 2017-07-05 11:21 . + pdw
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>密码修改-品代网(pindai123.com)--国内首家建材行业供应链交易平台,F2B2C运营模式开创网络建材市场新纪元。</title>
<meta name="keywords" content="代理,加盟,招商,批发,零售,建材网上商城,PPR,PVC,PE,管材,管件,波纹管,缠绕管,卫浴,陶瓷,龙头,浴缸,地漏,吊顶,灯具,开关,插线板,插座,电线,电缆,水暖五金,地板,油漆,地暖,太阳能,净水器,装修材料" />
<meta name="description" content="品代网(pindai123.com)是中国首家采用云管理系统,互联网加实体营销管理为一体的交易平台。专业的建材行业综合网上购物平台,销售管材管件,水暖卫浴,厨卫洁具,灯具开关,板材五金,油漆涂料,电线电缆,家装材料,建筑材料,五金配件,防水等。正品低价,品质保证,便捷操作,诚信服务。">
<meta name="author" content="Administrator">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="css/indent.css" />
<!-- 个人中心 -->
<link rel="stylesheet" href="css/userinfor.css" />
<link rel="stylesheet" href="css/add.css"/>
<!--右边栏-->
<link rel="stylesheet" href="css/right_side.css" />
<script src="js/jquery-1.7.2.min.js"></script>
<!-- 验证 -->
<script type="text/javascript" src="js/jquery.validate.js"></script>
<!--右边栏-->
<script type="text/javascript" src="js/right-side/parabola.js"></script>
<script type="text/javascript" src="js/right-side/right_side.js"></script>
</head>
<body>
<!-- 右侧固定导航链接 -->
<!--<div class="mui-mbar-tabs">
{$userright_html}
</div>-->
<!-- top_header 顶部 -->
{$user_head_html}
<!--top_logo -->
<div class="top_logo">
{$userinfo_head_html}
</div>
<!-- indent -->
<div id="indent">
<div class="wrap_1200 clearfix">
<!-- 左侧边栏 -->
<div class="indent_left clearfix">
{$indentleft_html}
</div>
<!-- 右侧 -->
<div class="indent_right clearfix">
<!-- 个人中心-->
<div id="til3_con" class="my_info">
<div class="indent_right_box">
<div class="indent_right_box_title">
<ul>
<li class="aaaa">密码修改</li>
</ul>
</div>
<!-- <div class="indent_right_title">密码修改</div>-->
<div class="indent_right_con">
<div class="my_info_con">
<div class="my_password clearfix">
<div class="user_info_pic fl">
<p class="p1 fl"><img src="images/my_password.png" /></p>
<p class="p2 fl">密码修改</p>
</div>
<form id="new_pw">
<div class="new_password fl">
<p class="hang">
<span>当前密码:</span>
<input id="oldpasswd" type="password" class="input1" name="user[passwd]" value=""/>
</p>
<p class="hang">
<span>新密码:</span>
<input id="newpasswd1" type="password" class="input1" name="user[newpasswd]" />
</p>
<p class="hang">
<span>确认新密码:</span>
<input id="newpasswd2" type="password" class="input1" name="user[newpasswd2]"/>
</p>
<p class="hang">
<a class="input2" id="changePasswdBtn">提交</a>
</p>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- 个人中心 end-->
</div>
</div>
</div>
<!--sidebar-->
{$sidebar_html}
<!-- 版权 -->
<div id="footermain">
{$foot_html}
</div>
<!-- v5kf.com -->
<script type="text/javascript" charset="utf-8" src="https://www.v5kf.com/104932/v5kf.js"></script>
<!-- / v5kf.com -->
<script type="text/javascript">
$(document).ready(function () {
//验证密码
$("#changePasswdBtn").click(function () {
var oldpasswd = $("#oldpasswd").val();
var newpasswd1 = $("#newpasswd1").val();
var newpasswd2 = $("#newpasswd2").val();
if (oldpasswd == "" || newpasswd1 == "" || newpasswd2 == "") {
alert("请填写密码");
}
else if (newpasswd1 != newpasswd2) {
alert("两次密码不一致");
}
else if (newpasswd1.length < 6) {
alert("密码不能小于6位");
}
else {
$.post("api.php?act=userPassModify", {password: oldpasswd, passwordNew: newpasswd1}, function (data) {
if (data == "success") {
alert("保存成功");
$("#oldpasswd").attr("value", "");
$("#newpasswd1").attr("value", "");
$("#newpasswd2").attr("value", "");
window.location.href = "logout.php";
}
else {
alert(data);
}
});
}
});
// $('.my_pro_info li').click(function(){
// $(this).addClass('active').siblings().removeClass('active');
// });
});
</script>
</body>
</html>
1
https://gitee.com/xuqipeter/pdw.git
git@gitee.com:xuqipeter/pdw.git
xuqipeter
pdw
品贷网
master

搜索帮助