<%@ page language="C#" autoeventwireup="true" inherits="UserInfo_UserUpdata, App_Web_rbxcxpwt" theme="Themes" stylesheettheme="Themes" %>

<!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 id="Head1" runat="server">
    <title>员工信息修改</title>
    <style type="text/css">
        #innav
        {
            padding-left: 50px;
            color: #d38e0c;
        }
        #innav A
        {
            color: #d38e0c;
        }
        .style1
        {
            width: 14%;
            border: 1px solid #D3EAF8;
        }
        .style2
        {
            width: 14%;
            height: 6px;
            border: 1px solid #D3EAF8;
        }
        .style3
        {
            height: 6px;
            border: 1px solid #D3EAF8;
            width: 57%;
        }
        .style4
        {
            border: 1px solid #D3EAF8;
        }
        .style5
        {
            border: 1px solid #D3EAF8;
            width: 57%;
        }
    </style>
    <script type="text/javascript" src="../js/jquery.js"></script>
  <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
</head>
<body>
<div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt;color:Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：个人管理 > 个人信息修改</span>
            </td>
        </tr>
        <tr>
            <td>
            <table width="100%" cellpadding="0" cellspacing="1" class="table_notitle">
                                <tr>
                                    <td width="13%" align="right" class="td01">
                                        <span style="color: Red; font-size: 16px;">*</span> 中文名：
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:TextBox ID="txtName" runat="server" MaxLength="25"></asp:TextBox>
                                    </td>
                                    <td width="53%" rowspan="8" align="center"  class="td01">
                                        <span style="font-size: 16px; color: #d38e0c;">照片展示</span><br />
                                        <br />
                                        &nbsp;
                                        <asp:Image ID="imgInfo" runat="server" ImageUrl=""  Height="121px" Width="95px" onerror="this.src='../images/null.jpg'" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        英文名：
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:TextBox ID="txtEName" runat="server" MaxLength="25"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        性别：
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:RadioButtonList ID="rblsex" runat="server" Width="113px" RepeatColumns="2">
                                            <asp:ListItem Value="M" Selected>男</asp:ListItem>
                                            <asp:ListItem Value="F">女</asp:ListItem>
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        地址：
                                    </td>
                                    <td bgcolor="#ffffff" align="left" >
                                        <asp:TextBox ID="txtAdd" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        Email：
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:TextBox ID="txtEmail" runat="server" MaxLength="100"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        <span style="color: Red; font-size: 16px;">*</span> 手机号码：
                                    </td>
                                    <td align="left" bordercolor="#CCCCCC" bgcolor="#ffffff" >
                                        <asp:TextBox ID="txtPhone" runat="server" MaxLength="25"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="td01">
                                        个人图片：
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:FileUpload ID="uploadImage" runat="server" Width="205" />图片大小95*121
                                    </td>
                                </tr>
                                <tr >
                                    <td bgcolor="#ffffff" align="right" class="td01">
                                        <span style="color: Red; font-size: 16px;">*</span> 为必填项！
                                    </td>
                                    <td bgcolor="#ffffff" align="left">
                                        <asp:Button ID="btnOk" runat="server" Text="保 存" OnClick="btnOk_Click" />
                                        &nbsp;<asp:Button ID="btnset" runat="server" Text="重 置" OnClick="btnset_Click" />
                                    </td>
                                </tr>
                            </table>
            </td>
        </tr>
    </table>
                            
    </form>
      <script type="text/javascript">
         $("#loading").fadeOut()
</script>
</body>

<script type="text/javascript" src="../Js/jquery.js"></script>

<script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

<script type="text/javascript" src="../Js/WebValidator.js"></script>

<script type="text/javascript" src="../Js/InterfaceContrl.js"></script>

<script src="../js/calendar.js" type="text/javascript"></script>

<script type="text/javascript" language="javascript">
//    CheckRegular("#<%=txtEmail.ClientID %>", "/^([a-zA-Z0-9]|[._])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/", true, "Email");
//    CheckRegular("#<%=txtPhone.ClientID %>", "/(^0\d{2,3}\-\d{7,8}$)|(^0?1[3,5,8][0,1,3,5,6,8,9]\d{8}$)/", false, "手机");
    function ValidateLengths() {
        var e = /^([a-zA-Z0-9]|[._])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
        var p = /(^0\d{2,3}\-\d{7,8}$)|(^0?1[3,5,8][0,1,2,3,4,5,6,7,8,9]\d{8}$)/;
        var s = /^[A-Za-z]+$/;
        if (document.getElementById("txtName").value == "") {
            alert("中文名称不能为空！");
            document.getElementById("txtName").select();
            return false;
        }
//         if (document.getElementById("txtPhone").value == "") {
//            alert("手机号码不能为空！");
//            document.getElementById("txtPhone").select();
//            return false;
//        } 
        else if (document.getElementById("txtName").value.length > 25) {
            alert("中文名称长度不能超过25个字符！\n");
            document.getElementById("txtName").select();
            return false;
        } else if (document.getElementById("txtEName").value.length > 25) {
            alert("英文名长度不能超过25个字符！\n");
            document.getElementById("txtEName").select();
            return false;
        } 
//        else if (!s.exec(document.getElementById("txtEName").value)){
//            alert("英文名只能是字母！\n");
//            document.getElementById("txtEName").select();
//            return false;
//        }
        else if (document.getElementById("txtAdd").value.length > 50) {
            alert("地址长度不能超过25个字符！\n");
            document.getElementById("txtAdd").select();
            return false;
        } else if (!e.exec(document.getElementById("txtEmail").value) && document.getElementById("txtEmail").value != "") {
            alert("Email格式错误！\n");
            document.getElementById("txtEmail").select();
            return false;

        } 
//        else if (!p.exec(document.getElementById("txtPhone").value) && document.getElementById("txtPhone").value != "") {
//            alert("手机号码格式错误！\n");
//            document.getElementById("txtPhone").select();
//            return false;
//        } 
        else if (document.getElementById("txtEmail").value.length > 25) {
            alert("Email长度不能超过25个字符！\n");
            document.getElementById("txtEmail").select();
            return false;
        } else if (document.getElementById("txtPhone").value.length > 12) {
            alert("手机号码长度不能超过25个字符！\n");
            document.getElementById("txtPhone").select();
            return false;
        }
        return true;
    }
       
</script>

</html>
