<%@ Page CodeBehind="regedit.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.regedit" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<% @ Import Namespace="Webdisk" %>
		<link href="<%=xml.GetStyle()%>" type=text/css rel=stylesheet>
<style type=text/css>.style5 { COLOR: #ff0000 }
	</style>
</HEAD>
<body>
  <SCRIPT language=javascript>
function editpass()
{
  var strTemp = document.Form1.Password.value;
  if (strTemp.length == 0 )
  {
      alert("请输入旧密码！");
      document.Form1.Password.focus();
      return false;
  }
  var strTemp = document.Form1.Password1.value;
  if (strTemp.length == 0 )
  {
      alert("请输入新密码！");
      document.Form1.Password1.focus();
      return false;
  }
  var strTemp = document.Form1.Password1.value;
  var strTemp1 = document.Form1.Password2.value;
  if (strTemp!= strTemp1 )
  {
      alert("两次填写密码不一致！");
      document.Form1.Password2.focus();
      return false;
  }
  return true;
}
function editanswer()
{
  var strTemp = document.Form1.uquestion.value;
  if (strTemp.length == 0 )
  {
      alert("请输入密码提示问题！");
      document.Form1.uquestion.focus();
      return false;
  }
  var strTemp = document.Form1.uanswer2.value;
  if (strTemp.length == 0 )
  {
      alert("请输入新密码提示答案！");
      document.Form1.uanswer2.focus();
      return false;
  }
  var strTemp = document.Form1.uquestion.value;
  var strTemp1 = document.Form1.uanswer2.value;
  if (strTemp== strTemp1 )
  {
      alert("问题和答案不能一样！");
      document.Form1.uanswer2.focus();
      return false;
  }
  return true;
}
</SCRIPT>
<form id=Form1 runat="server"><br>
<div id=show1 runat="server">
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center>
  <TR>
    <TD width=5 background="pics/wenbenkuan_02.gif"><IMG height=5 src="pics/wenbenkuan_01.gif" width=5 ></TD>
    <TD width=874 background=pics/wenbenkuan_02.gif><IMG height=5 src="pics/wenbenkuan_02.gif" width=5 ></TD>
    <TD><IMG height=5 src="pics/wenbenkuan_03.gif" width=5 ></TD></TR>
  <TR>
    <TD background=pics/wenbenkuan_04.gif>&nbsp;</TD>
    <TD class=tablebg background=pics/wenbenkuan_05.gif>
      <TABLE width="100%">
        <TR>
          <TD class=tabletop colSpan=2><img src="pics/tj.gif" align="absmiddle"> 修改注册资料&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absMiddle"></a></TD></TR>
        <TR class=tablebg>
          <TD scope=col width="51%" height=23>注：带<SPAN 
            class=style5>***</SPAN>的为必填项</TD>
          <TD scope=col width="49%"><div align="right"><A href="regedit.aspx?pass=1" >&gt;&gt;&gt;切换修改密码及密码保护答案</A></div></TD></TR>
        <TR class=tablebg>
          <TD colSpan=2>
            <table class=tablebgborder cellSpacing=1 cellPadding=2 width="95%" 
            align=center border=0>
              <tr class=tablebg>
                <td width="20%">
                  <div align="left">用 户 名：</div></td>
                <td colSpan=2 height=20><%=vusername%></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">电子邮箱：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=email name=email runat="server"> <span 
                  class=style5>*** <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></span></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">性 别：</div></td>
<td colSpan=2 height=22><asp:radiobuttonlist id=sex runat="server" RepeatLayout="Flow" Width="80px" RepeatDirection="Horizontal" Height="10px">
													<asp:ListItem Value="男" Selected="True">男</asp:ListItem>
													<asp:ListItem Value="女">女</asp:ListItem>
												</asp:radiobuttonlist></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">主 页：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=url name=url runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">QQ：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=qq name=qq runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">MSN：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=msn name=msn runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">真实姓名：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=realname name=realname 
                runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">联系电话：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=phone name=phone runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">联系地址：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=address name=address 
              runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">公司名称：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=company name=company 
              runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">所在部门：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=bm name=bm runat="server"></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">我的空间介绍：</div></td>
                <td colSpan=2 height=22><textarea class=kuan id=recommend name=recommend rows=5 cols=50 runat="server"></textarea></td></tr>
              <tr class=tablebg>
                <td>
                  <div align=center></div></td>
                <td width="78%"><input class=btn id=Submit1 type=submit value=修改资料 name=Button1 runat="server" onserverclick="Submit1_ServerClick">
                  <asp:ValidationSummary ID=ValidationSummary1 runat="server" ShowSummary="False" ShowMessageBox="True"></asp:ValidationSummary></td>
                <td width="2%">&nbsp;</td>
              </tr></table></TD></TR></TABLE></TD>
    <TD width=5 background=pics/wenbenkuan_06.gif><IMG height=5 src="pics/wenbenkuan_06.gif" width=5 ></TD></TR>
  <TR>
    <TD background="pics/wenbenkuan_08.gif"><IMG height=5 src="pics/wenbenkuan_07.gif" width=5 ></TD>
    <TD background=pics/wenbenkuan_08.gif><IMG height=5 src="pics/wenbenkuan_08.gif" width=5 ></TD>
    <TD><IMG height=5 src="pics/wenbenkuan_09.gif" width=5 ></TD></TR></TABLE></div>
<div id=show2 runat="server">
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center>
  <TBODY>
  <TR>
    <TD width=5 background="pics/wenbenkuan_02.gif"><IMG height=5 src="pics/wenbenkuan_01.gif" width=5 ></TD>
    <TD width=874 background=pics/wenbenkuan_02.gif><IMG height=5 src="pics/wenbenkuan_02.gif" width=5 ></TD>
    <TD><IMG height=5 src="pics/wenbenkuan_03.gif" width=5 ></TD></TR>
  <TR>
    <TD background=pics/wenbenkuan_04.gif>&nbsp;</TD>
    <TD class=tablebg background=pics/wenbenkuan_05.gif>
      <TABLE width="100%">
        <TBODY>
        <TR>
          <TD class=tabletop colSpan=2><img src="pics/tj.gif" align="absmiddle"> 修改用户密码&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:history.go(-1);"><img src="pics/link_back.gif" border="0" align="absMiddle"></a></TD>
        </TR>
        <TR class=tablebg>
          <TD scope=col width="51%" height=23>注：带<SPAN 
            class=style5>***</SPAN>的为必填项</TD>
          <TD scope=col width="49%"><div align="right"><A href="regedit.aspx" >&gt;&gt;&gt;切换修改用户资料</A></div></TD></TR>
        <TR class=tablebg>
          <TD colSpan=2>
            <table class=tablebgborder cellSpacing=1 cellPadding=2 width="95%" 
            align=center border=0>
              <TBODY>
              <tr class=tablebg>
                <td width="18%">
                  <div align="left">用 户 名：</div></td>
                <td colSpan=2 height=20><%=vusername%></td></tr>
              <TR class=tablebg>
                <TD>
                  <div align="left"><font face="宋体">旧 密 码：</font></div></TD>
                <TD colSpan=2 height=18><INPUT class=kuan 
                  id=Password type=password name=Password runat="server" 
                  ><SPAN class=style5 
                  >***</SPAN></TD></TR>
              <tr class=tablebg>
                <td>
                  <div align="left">新&nbsp;密&nbsp;码：</div></td>
                <td colSpan=2 height=18>
                  <p><input class=kuan id=Password1 
                  type=password name=Password1 
                  runat="server"><SPAN class=style5 
                  >***</SPAN></p></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">重复新密码：</div></td>
                <td colSpan=2 height=20><input class=kuan 
                  id=Password2 type=password name=Password2 
                  runat="server"><SPAN class=style5 
                  >***</SPAN></td></tr>
              <TR class=tablebg>
                <TD height=20>
                  <div align=center></div></TD>
                <TD width="75%" height=20><font face=宋体 
                  >
                  <input class=btn id=Submit2 type=submit value=修改密码 name=Submit2 runat="server" onClick="javascript:return editpass();" onserverclick="Submit2_ServerClick">
                </font></TD>
                <TD width="7%" height=20>&nbsp;</TD>
              </TR>
              <tr class=tablebg>
                <td>
                  <div align="left">密码提示问题：</div></td>
                <td colSpan=2 height=20><input class=kuan 
                  id=uquestion name=uquestion 
                  runat="server"><SPAN class=style5 
                  >***</SPAN></td></tr>
              <tr class=tablebg>
                <td>
                  <div align="left">原密码提示答案：</div></td>
                <td colSpan=2 height=22><input class=kuan 
                  id=uanswer name=uanswer 
                  runat="server"><SPAN class=style5 
                  >***</SPAN></td></tr>
              <TR class=tablebg>
                <TD>
                  <div align="left">新密码提示答案：</div></TD>
                <TD colSpan=2 height=22><INPUT class=kuan 
                  id=uanswer2 name=uanswer2 runat="server" 
                  ><SPAN class=style5 
                  >***</SPAN></TD></TR>
              <tr class=tablebg>
                <td>
                  <div align=center>&nbsp;                  </div></td>
                <td><input class=btn id=Submit3 type=submit value=修改答案 name=Submit3 runat="server" onClick="javascript:return editanswer();" onserverclick="Submit3_ServerClick"></td>
                <td>&nbsp;</td>
              </tr></TBODY></table></TD></TR></TBODY></TABLE></TD>
    <TD width=5 background=pics/wenbenkuan_06.gif><IMG height=5 src="pics/wenbenkuan_06.gif" width=5 ></TD></TR>
  <TR>
    <TD background="pics/wenbenkuan_08.gif"><IMG height=5 src="pics/wenbenkuan_07.gif" width=5 ></TD>
    <TD background=pics/wenbenkuan_08.gif><IMG height=5 src="pics/wenbenkuan_08.gif" width=5 ></TD>
    <TD><IMG height=5 src="pics/wenbenkuan_09.gif" width=5 ></TD></TR></TBODY></TABLE></div></form>
	</body>
</HTML>
