  <div class="user_left">
      <div class="user_info">
       <div class="Head_portrait"><img src="images/people.png"  width="80px" height="80px"/><!--头像区域--></div>
       <div class="user_name">用户蜜甘草<a href="index.php?c=user&a=user_info">[个人资料]</a></div>
      </div>
      <ul class="Section">
       <li><a href="index.php?c=user"><em></em><span>个人中心</span></a></li>
        <li><a href="index.php?c=user&a=user_info"><em></em><span>个人信息</span></a></li>
       <li><a href="index.php?c=user&a=user_edit"><em></em><span>修改密码</span></a></li>
      
       <li class='selecton'><a href="index.php?c=user&a=user_log"><em></em><span style="color: #FFF;">消费记录</span></a></li>
      </ul>
    </div>






        <div class=" right_style r_user_style"> 
        <div class="user_Borders">     
       <div class="title_name">
        <span class="name">修改密码</span>
       </div>
       <!--修改密码样式-->
       <div class="about_user_info">
        
       <div class="user_layout">
         <ul >
          <li><label class="user_title_name">原密码：</label><input name="oldpwd" type="password"  class="add_text"/><i>*</i></li>
          <li><label class="user_title_name">新密码：</label><input name="newpwd" type="password"  class="add_text"/><i>*</i></li>
          <li><label class="user_title_name">确认新密码：</label><input name="aginpwd" type="password"  class="add_text"/><i>*</i></li>         
         </ul>
         <div class="operating_btn"><input name="name" id="edit_btn" type="submit" value="确认"  class="submit—btn"/></div>
         </div>
        
        
       </div>
         <script>
              $(function(){
                    $("#edit_btn").bind("click", function(){ //提交
                            $oldpwd=$("[name=oldpwd]").val();
                            $newpwd=$("[name=newpwd]").val();
                            $aginpwd=$("[name=aginpwd]").val();                         
                            $.ajax({
                                    type: "POST",
                                    url: "index.php?c=user&a=ajaxeditpwd",
                                    cache: false,
                                    data: {oldpwd:$oldpwd,newpwd:$newpwd,aginpwd:$aginpwd},
                                    dataType: "json",
                                    success: function(data) {
                                            var json = eval(data);
                                            var response = json.response;
                                            var result = json.result;                                          
                                            if (response == "1") {
                                                  alert(result);
                                                  
                                                  window.location.reload();
                                            }
                                            else {
                                                  alert(result);
                                            }
                                    },
                                   
                                   
                            });

                    });

            });
         </script>