<%@ page language="C#" autoeventwireup="true" inherits="general_MyOffice_Contact_Add, CrmCommand" %>

<!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>
    <base target=_self></base>
     <script src="../../Javascript/canlendar.js" type="text/javascript"></script>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
        <table border="0" cellpadding="3" cellspacing="0" class="small" style="width: 66%">
            <tr>
                <td class="Big" style="width: 1016px">
                    <img align="absMiddle" src="../images/notify_new.gif" width="18" height="18" /><span class="big3">
                        <asp:Label ID="Label1" runat="server" Text="新建联系人"></asp:Label></span>
                </td>
            </tr>
        </table>

        <table class="small" cellSpacing="1" cellPadding="1"  border="0"  style="width: 662px" bgcolor="black">
            <tr>
                <td class="TableData"　 align="right" style="width: 217px; height: 24px;" style="width: 127px">
                    组名：</td>
                <td class="TableData"　style="width: 668px; height: 24px;">
                    <asp:DropDownList ID="DropGroup" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px; height: 28px" align="right">
                    姓名：</td>
                <td class="TableData" style="width: 668px; height: 28px">
                    <input id="txtname" runat="server" type="text" class="BigInput" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtname"
                        Display="Dynamic" ErrorMessage="联系人输入格式为英文或中文!" ValidationExpression="^[^`~!@#$%^&*()+-=|\\\[\]\{\}:;\'\,.<>/?0-9]{1,19}$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtname"
                        ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px" align="right">
                    性别：</td>
                <td class="TableData" style="width: 668px">
                    <asp:DropDownList ID="DropSex" runat="server" CssClass="BigInput">
                        <asp:ListItem Value="0">男</asp:ListItem>
                        <asp:ListItem Value="1">女</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="TableData" style="width: 127px" align="right">
                    生日：</td>
                <td class="TableData"　style="width: 668px">
                    <input id="txtbirday" runat="server" 
                        readonly="readonly" type="text" class="BigInput" /><img border="0" onclick='popUpCalendar(document.getElementById("txtbirday"), document.getElementById("txtbirday"), "yyyy-mm-dd")'
                src="../../App_Themes/Green/images/Calendar.gif" style="width: 24px; height: 23px" />
                   </td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px; height: 21px;" align="right">
                    职务：</td>
                <td class="TableData" style="width: 668px; height: 21px;">
                    <input id="txtduty" runat="server" type="text" class="BigInput" /></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px" align="right">
                    工作单位：</td>
                <td class="TableData" style="width: 668px">
                    <input id="txtcompany" runat="server" type="text" class="BigInput" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtcompany"
                        Display="Dynamic" ErrorMessage="工作单位输入必须是中文或者英文" ValidationExpression="^[^`~!@#$%^&*()+-=|\\\[\]\{\}:;\'\,.<>/?0-9]{2,19}$"></asp:RegularExpressionValidator></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px" align="right">
                    联系地址：</td>
                <td class="TableData" style="width: 668px">
                    <input id="txtaddress" runat="server" style="width: 433px" type="text" class="BigInput" /></td>
            </tr>
            <tr>
                <td class="TableData" style="width: 127px" align="right">
                    移动电话：</td>
                <td class="TableData" style="width: 668px">
                    <input id="txtphone" runat="server" type="text" class="BigInput" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtphone"
                        Display="Dynamic" ErrorMessage="移动电话输入不正确！" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    小灵通请加106及区号，如 1060571xxxxxxxx</td>
            </tr>
            <tr>
                <td class="TableData" style="width: 127px" align="right">
                    固定电话：</td>
                <td class="TableData" style="width: 668px">
                    <input id="txttelephone" runat="server" type="text" class="BigInput" /><asp:RegularExpressionValidator
                        ID="RegularExpressionValidator3" runat="server" ControlToValidate="txttelephone"
                        Display="Dynamic" ErrorMessage="输入格式为区号-号码.如:0745-2785010" ValidationExpression="(\d{3}-\d{8}|\d{4}-\d{8}|\d{4}-\d{7}|\d{3}-\d{7})?"></asp:RegularExpressionValidator></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px; height: 10px" align="right">
                    传真：</td>
                <td class="TableData" style="width: 668px; height: 10px">
                    <input id="txtfax" runat="server" type="text" class="BigInput" /></td>
            </tr>
            <tr >
                <td class="TableData" style="width: 127px; height: 25px" align="right">
                    电子邮件：</td>
                <td class="TableData" style="width: 668px; height: 25px">
                    <input id="txtemail" runat="server" type="text" class="BigInput" />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtemail"
                        Display="Dynamic" ErrorMessage="电子邮件输入格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            
            <tr>
                <td class="TableData" align="right" style="height: 5px" >
                    备注：
                </td>
                <td class="TableData"  style="height: 61px">
                    <asp:TextBox ID="txtremark" runat="server" Height="104px" TextMode="MultiLine" Width="83%" CssClass="BigInput" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="TableData"　 colspan="2" style="height: 9px" align="center">
                    <asp:Button ID="Button7" runat="server" CssClass="BigButton" Height="26px"
                         Text="提交" Width="46px" OnClick="Button7_Click" />
                    <input id="Reset1" style="height: 25px" type="reset" value="重置" class="BigButton" /></td>
            </tr>
        </table>  
    </form>
</body>
</html>
