<%@ Page CodeBehind="regedit.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.regedit" %>
<%@ Register Src="~/userleft.ascx" TagPrefix="uc1" TagName="userleft" %>
<%@ Register Src="~/usertop.ascx" TagPrefix="uc1" TagName="usertop" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改资料</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
	<link rel="stylesheet" href="css/atlantis.css">
	
</head>
<body>
 <div class="wrapper">
    <!-- begin::navigation -->
         <uc1:usertop runat="server" ID="usertop" />
    <uc1:userleft runat="server" ID="userleft" />
    <!-- end::navigation -->

   <div class="main-panel">

        <div class="content">
            <div class="page-inner">


        <div >

           <div class="card">
			    <div class="card-body">
		<form id="Form1" runat="server">
			<ul class="nav nav-pills mb-3 justify-content-center" role="tablist">
  <li class="nav-item">
    <a class="nav-link active" id="home-tab" data-toggle="pill" href="#home" role="tab"
       aria-controls="pills-home" aria-selected="true"><b>修改注册资料</b></a>
  </li>
  <li class="nav-item">
    <a class="nav-link" id="profile-tab" data-toggle="pill" href="#profile" role="tab"
       aria-controls="pills-profile" aria-selected="false"><b>修改登录密码</b></a>
  </li>
</ul>
<div class="tab-content">
  <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
 <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">用户名</label>
    <div class="col-sm-10">
    <%=vusername%>
    </div>
  </div>
<div class="form-group row">
    <label for="email" class="col-sm-2 col-form-label">邮箱：</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="email" placeholder="Email"  runat="server">
		 <asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" Display="Dynamic" ErrorMessage="请输入邮件地址"
															ControlToValidate="email"></asp:requiredfieldvalidator><asp:regularexpressionvalidator id="RegularExpressionValidator3" runat="server" Display="Dynamic" ErrorMessage="错误的电子邮件地址"
															ControlToValidate="email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:regularexpressionvalidator>
    </div>
  </div>
  <div class="form-group row">
    <label for="qq" class="col-sm-2 col-form-label">QQ号</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="qq" runat="server">
    </div>
  </div>
<div class="form-group row">
    <label for="msn" class="col-sm-2 col-form-label">微信号</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="msn" runat="server">
    </div>
  </div>
  <fieldset class="form-group">
    <div class="row">
      <legend class="col-form-label col-sm-2 pt-0">性别</legend>
      <div class="col-sm-10">
         <div class="custom-control custom-radio custom-control-inline">
    <input type="radio" id="sex1" name="customRadioInline1" class="custom-control-input" runat="server">
    <label class="custom-control-label" for="sex1">男</label>
</div>
<div class="custom-control custom-radio custom-control-inline">
    <input type="radio" id="sex2" name="customRadioInline1" class="custom-control-input" runat="server">
    <label class="custom-control-label" for="sex2">女</label>
</div>
      </div>
    </div>
  </fieldset>
	 <div class="form-group row">
    <label for="realname" class="col-sm-2 col-form-label">真实姓名</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="realname" runat="server">
    </div>
  </div>
 <div class="form-group row">
    <label for="phone" class="col-sm-2 col-form-label">联系电话</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="phone" runat="server">
    </div>
  </div>
 <div class="form-group row">
    <label for="recommend" class="col-sm-2 col-form-label">我的空间介绍</label>
    <div class="col-sm-10">
		 <textarea class="form-control" style="width:100%" id="recommend" rows="5" runat="server"></textarea>
    </div>
  </div>
  <div class="form-group row justify-content-center">
      <button type="submit" class="btn btn-primary"  runat="server" onserverclick="Submit1_ServerClick">修改资料</button>
		<asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowSummary="False" ShowMessageBox="True"></asp:ValidationSummary>
  </div>
   

  </div>
  <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
	  <div class="form-group row">
    <label for="inputEmail3" class="col-sm-2 col-form-label">用户名</label>
    <div class="col-sm-10">
    <%=vusername%>
    </div>
  </div>
	  <div class="form-group row">
    <label for="realname" class="col-sm-2 col-form-label">旧密码</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="Password" runat="server">
    </div>
  </div>
 <div class="form-group row">
    <label for="realname" class="col-sm-2 col-form-label">新密码</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="Password1" runat="server">
    </div>
  </div>
 <div class="form-group row">
    <label for="realname" class="col-sm-2 col-form-label">重复新密码</label>
    <div class="col-sm-10">
      <input type="password" class="form-control" id="Password2" runat="server">
    </div>
  </div>
	   <div class="form-group row justify-content-center">
        <input class="btn btn-primary" id="Submit2" type="submit" value="修改密码" name="Submit2" runat="server" onclick="javascript: return editpass();" onserverclick="Submit2_ServerClick">
  </div>
  </div>
</div>
		</form>
			    </div>

    </div></div></div>
    <!-- end::main content -->
</body>
</html>			
   <script type="text/javascript" src="js/calendar.js"></script>
<script src="js/jquery.3.2.1.min.js"></script>
	<script src="js/popper.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<!-- jQuery UI -->
	<script src="js/jquery-ui.min.js"></script>
	<script src="js/jquery.ui.touch-punch.min.js"></script>
	
	<!-- jQuery Scrollbar -->
	<script src="js/jquery.scrollbar.min.js"></script>
	<!-- Atlantis JS -->
	<script src="js/webfont.min.js"></script>
	<script src="js/atlantis.js"></script>
<script src="js/function.js"></script>
		<SCRIPT>
            
            function editpass() {
                var strTemp = $("#Password").val();
                if (strTemp=="") {
                    alert("请输入旧密码！");
                    $("#Password").focus();
                    return false;
                }
                var strTemp = $("#Password1").val();
                if (strTemp=="") {
                    alert("请输入新密码！");
                    $("#Password1").focus();
                    return false;
                }
                var strTemp = $("#Password1").val();
                var strTemp1 = $("#Password2").val();
                if (strTemp != strTemp1) {
                    alert("两次填写密码不一致！");
                    $("#Password2").focus();
                    return false;
                }
                return true;
            }
        </SCRIPT>