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

<%@ 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=utf-8">
    <title><%=Globals.Text["UserDefined_Title"]%></title>
    <link href="Admin.css" rel="stylesheet" type="text/css">
    

    <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><%=Globals.Text["UpdateUser_ModifyProfiy"]%> </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">
                                            <font color="#FF6600"><a href="editPost.aspx"><%=Globals.Text["PageSet_PublishArtical"]%></a></font>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <fieldset>
                                                <legend>&nbsp;<%=Globals.Text["UpdateUser_ModifyProfiy"]%>&nbsp;</legend>
                                            <div align="right">
                                                    <br>
                                                    <br>
                                                    <br>
                                                </div>
                                            </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="5">
                                        </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="0" bgcolor="#FFFFFF"
                                    class="black333333_red_noline">
                                    <tbody>
                                    <tr>
                <td colspan="3" align="center" bgcolor="#669900">
                    <font color="#FFFFFF"><%=Globals.Text["UpdateUser_update"]%></font></td>
            </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right" width="91">
                                                <%=Globals.Text["UpdateUser_Account"]%>
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lblAccount" runat="server"></asp:Label></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>
                                                            <%=Globals.Text["UpdateUser_IntPassword"]%></td>
                                                        <td>
                                                            <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=Globals.Text["UpdateUser_NewPassword"]%>&nbsp;</td>
                                                        <td>
                                                            <asp:TextBox ID="txtNewPassword1" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <span><%=Globals.Text["UpdateUser_ConfirmNewPassword"]%></span></td>
                                                        <td>
                                                            <asp:TextBox ID="txtNewPassword2" runat="server"></asp:TextBox></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_Email"]%>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                                            <td>
                                                <%=Globals.Text["UpdateUser_FindPassword"]%>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_UserNickName"]%></td>
                                            <td>
                                                <asp:TextBox ID="txtTrueName" runat="server"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#eef5e2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_Sex"]%></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">
                                               <%=Globals.Text["UpdateUser_Birthday"]%></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">
                                                <%=Globals.Text["UpdateUser_ICNumber"]%></td>
                                            <td align="left">
                                                <asp:TextBox ID="txtIDCard" runat="server"></asp:TextBox></td>
                                            <td>&nbsp;</td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_City"]%></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">
                                                <%=Globals.Text["UpdateUser_City"]%></td>
                                            <td align="left">&nbsp;
                                                </td>
                                            <td>

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

                                                </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_Telephone"]%></td>
                                            <td align="left">
                                                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                                            <td>
                                                <%=Globals.Text["UpdateUser_TelephoneDetail"]%></td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_Address"]%>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtAddress" runat="server" Columns="33"></asp:TextBox></td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr bgcolor="#EEF5E2">
                                            <td align="right">
                                                <%=Globals.Text["UpdateUser_Poscode"]%></td>
                                            <td align="left">
                                                <asp:TextBox ID="txtPostcode" 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>
                        <tr><td height="4"></td></tr>
                    </table>
                </td>
            </tr>
            
            <tr>
                <td height="30" bgcolor="#E3F0D0" align="center">
                </td>
            </tr>
        
        </table>
    </form>
</body>
</html>
<asp:literal runat="server" iD="Message"></asp:literal>