<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditUser.aspx.cs" Inherits="Manage_EditUser" %>

<%@ Import Namespace="Spaces" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>控制面板 - 文章管理</title>
    <link href="General2.css" rel="stylesheet" type="text/css">
    <style type="text/css">
<!--
form{padding:0;margin:0}
fieldset{border:1px solid #669900}
legend{font-weight:bold;color:#000}
input{padding-top:2px;}
.sec_nav {color:#438b47;}
.sec_nav a{text-decoration:none;color:#438b47}
.sec_nav a:hover{text-decoration:underline;}
.form_border{border-left:1px solid #ACD373;border-right:1px solid #ACD373;background:#fff;}
.form_in{line-height:120%;}
.form_in th{background:#c5d7e2}
img {border:0px  }
-->
</style>

    <script src="<%=Globals.ApplicationPath %>/Include/js/dialog.js" type="text/javascript"></script>

    <script src="<%=Globals.ApplicationPath %>/Include/js/base.js" type="text/javascript"></script>

</head>
<body>
    <form id="formbill" runat="server">

        <script type="text/javascript">
        function isDigit(s)
{
var patrn=/^[0-9]{1,20}$/;
if (!patrn.exec(s)) return false
return true
}
        function isEmail(emailStr)
      {

var reg=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
return reg.test(emailStr)
    }
   function chkForm()
   {
   var theForm=$('<%=formbill.ClientID %>');
   var email=theForm.<%=txtEmail.ClientID %>.value;
    if(!isEmail(email))
    {
    _error_msg_show('请输入正确的Email地址！:S')
     return false;
    }
    var nickName=theForm.<%=txtTrueName.ClientID %>.value;
    if(nickName.trim()=="")
    {
    _error_msg_show('请输入妮称！:S')
     return false;
    }
    var idNumber=theForm.<%=txtIDCard.ClientID %>.value;
    if(!isDigit(idNumber))
    {
       _error_msg_show('身份证号码填写错误！:S')
     return false;
    }
    var userCity=$('city').value;
    if(userCity==-1)
    {
    _error_msg_show('请选择所在城市！:S')
     return false;
    }
    return true;
   }
        </script>

        <script language="JavaScript" src='<%=Globals.ApplicationPath %>/Include/selectcity.js'></script>

        <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="black333333_red_noline">
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="3" height="3">
                                <img src="img/O_angle_up_left.gif" width="3" height="3"></td>
                            <td bgcolor="#ACD373" width="100%">
                            </td>
                            <td width="3">
                                <img src="img/O_angle_up_right.gif" width="3" height="3"></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td bgcolor="#acd373" height="30">
                    &nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffffff"><b>个人信息修改 </b></font>
                </td>
            </tr>
            <tr>
                <td class="form_border">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="20">
                                &nbsp;</td>
                            <td>
                                &nbsp;</td>
                            <td width="20">
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="black333333_red_noline">
                                    <tr>
                                        <td align="right">
                                       
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <fieldset>
                                                <legend>&nbsp;个人信息修改&nbsp;</legend>
                                                <div align="right">
                                                    您现在使用的是文章回复管理界面。<br>
                                                    在此页面，您可以对您发表的所有BLOG文章回复进行编辑或者管理。<br>
                                                    <br>
                                                </div>
                                            </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="5">
                                           &nbsp; <a href="EditUser.aspx?Account=<%=Request.QueryString["Account"] %>">编辑用户资源</a> | <a href="EditUserConfig.aspx?Account=<%=Request.QueryString["Account"] %>">修改用户配置</a>
                                            | <a href="UserStatistics.aspx?Account=<%=Request.QueryString["Account"] %>">用户数计统计</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <tr>
                                            <td>
                                                <!-- 功能列表 -->
                                                <!-- /功能列表 -->
                                                <!-- 分类列表 -->
                                                <!-- /分类列表 -->
                                            </td>
                                        </tr>
                                </table>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <table width="100%" border="0" cellpadding="3" cellspacing="2" bgcolor="#FFFFFF"
                                    class="black333333_red_noline">
                                    <tbody>
                                    
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right" width="91">
                                                用户帐号：
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAccount" runat="server"></asp:Label>&nbsp; 
                                                <asp:HyperLink ID="linkAdmin" runat="server">后台管理</asp:HyperLink></td>
                                            <td>
                                            </td>
                                        </tr>
                                         <tr bgcolor="#EEF5E2">
                                            <td align="right" width="91">
                                                登陆名：
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblLoginName" runat="server"></asp:Label>&nbsp; 
                                              </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td>
                                            </td>
                                            <td colspan="2">
                                                <asp:CheckBox ID="chkPassword" name="chkPassword" runat="server" onclick="psdisplay()"
                                                    Text="修改登录密码" /></td>
                                        </tr>
                                        <tr id="ps1" style="display: none" bgcolor="#EEF5E2">
                                            <td align="left">
                                            </td>
                                            <td colspan="2">
                                                <table>
                                                    <tr>
                                                        <td>
                                                            原密码:</td>
                                                        <td>
                                                            <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            新密码:&nbsp;</td>
                                                        <td>
                                                            <asp:TextBox ID="txtNewPassword1" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <span>新密码确认:</span></td>
                                                        <td>
                                                            <asp:TextBox ID="txtNewPassword2" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                Email地址：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                                            <td>
                                                请务必正确填写正确，是找回密码的唯一依据
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                用户妮称：</td>
                                            <td>
                                                <asp:TextBox ID="txtTrueName" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                性别：</td>
                                            <td>
                                                    <asp:RadioButtonList ID="Gender" runat="server" RepeatDirection=Horizontal>
                                                <asp:ListItem Text="男" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="女" Value="2"></asp:ListItem>
                                                </asp:RadioButtonList></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                生日：</td>
                                            <td>
                                            <asp:DropDownList ID="dropYear" runat="server">
                                                </asp:DropDownList>年<asp:DropDownList ID="dropMonth" runat="server">
                                                </asp:DropDownList>月<asp:DropDownList ID="DropDay" runat="server">
                                                </asp:DropDownList>日
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                证件号码：</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtIDCard" runat="server"></asp:TextBox></td>
                                            <td>
                                                请填写真实的号码，这是您获奖时的凭证</td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                所在城市：</td>
                                            <td align="left">
                                                <select name="prov" onchange="javascript:selectcity()" size="1">
                                                    <option selected="selected" value="-1">未选</option>
                                                </select>

                                                <script language="javascript">  ProvinceOptionMenu();                              
                                                </script>
                                                <select id="city" name="city" size="1">
                                                    <option selected="selected" value="-1">未选</option>
                                                </select></td>
                                            <td style="color: #ff0000">
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right" style="height: 20px">
                                                所在城市：</td>
                                            <td align="left" style="height: 20px">
                                                &nbsp;</td>
                                            <td style="height: 20px">

                                                <script language="javascript">   ProvinceOptionMenu(); </script>

                                                </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                电 话：</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                                            <td>
                                                最好填写手机或您的固定电话，以便能够及时与您联系</td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                地址：
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtAddress" runat="server" Columns="33"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                邮编：</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtPostcode" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                注册IP地址:</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtRegIP" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                注册时间:</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtRegDate" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                最近登陆时间:</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtLastDate" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                最近登陆陆IP:</td>
                                            <td align="left">
                                                <asp:TextBox ID="txtLastIP" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="buttonUpdate" runat="server" Text="修改用户信息" OnClick="buttonUpdate_Click"
                                                    OnClientClick="return chkForm();" /></td>
                                            <td>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="30" bgcolor="#E3F0D0" align="center">
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="3">
                                <img src="images/O_angle_down_left.gif" width="3" height="3"></td>
                            <td height="3" background="images/O_angle_bottom.gif" width="100%">
                            </td>
                            <td width="3">
                                <img src="images/O_angle_down_right.gif" width="3" height="3"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
<asp:literal runat="server" iD="Message"></asp:literal>