<%@ page language="C#" autoeventwireup="true" inherits="general_ClientManage_EditContact, CrmCommand" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
   <title>联系人信息修改</title>
   <base target=_self></base>
    <script src="../../Javascript/formCheck.js" language=javascript></script>
   <script src="../../Javascript/canlendar.js" type="text/javascript"></script>
      <script src="../../Javascript/Trim.js" type="text/javascript"></script>
    <script>
function CheckForm()
{


   if(document.Form1.TxtName.value == "")
   {
          alert("联系人名称不能为空！");
	     document.Form1.TxtName.focus();
	     return (false);
   }
   if(document.Form1.TxtPhone.value != "")
   {
        if(!isPhone(document.Form1.TxtPhone.value))
       {
	     alert("手机号码格式不正确！");
	     document.Form1.TxtPhone.focus();
	     return (false);
       }
   }
   if(document.Form1.TxtComTel.value != "")
   { 
          if(!isTelOK(document.Form1.TxtComTel.value))
       {
	     alert("办公电话格式不正确！");
	     document.Form1.TxtComTel.focus();
	     return (false);
       }
   }
//    if(document.Form1.TxtFax.value != "")
//   { 
//        if(!isFaxOK(document.Form1.TxtFax.value))
//       {
//	     alert("传真号码格式不正确！");
//	     document.Form1.TxtFax.focus();
//	     return (false);
//       }
//   }
   if(document.Form1.TxtEmail.value != "")
   {
        if(!isEMail(document.Form1.TxtEmail.value))
       {
	     alert("E-Mail格式不正确！");
	     document.Form1.TxtEmail.focus();
	     return (false);
       }
   }
// if(document.Form1.TxtBir.value == "")
//       {
//	     alert("生日不能为空！");
//	     document.Form1.TxtBir.focus();
//	     return (false);
//       }
   return true;
   }
  
   </script>
   
	<style type="text/css">
.style1 {
	border-width: 0;
}
</style>
</head>
<body class="bodycolor" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" >
    <form id="Form1" runat="server">
    <center>
       <table style="width: 506px; " cellspacing="0" align="center" cellpadding="0" class="style1">
		<tr>
							<TD class="TableData" style="width: 506px"><IMG height="18" src="../images/notify_new.gif" width="18" align="absMiddle"><SPAN class="big3">
								联系人信息</SPAN>
						</TD>
		</tr>
		<tr>
			<td class="TableData" align="center" valign="top" style="width: 506px;">
			<TABLE class="small" cellSpacing="1" align="center" border="0" style="width: 466px" bgcolor="black">
    	<tr>
    	<td class="TableData" noWrap style="width: 80px; height: 25px;" >姓名:</td>
		<td class="TableData" noWrap style="width: 164px; height: 25px;">
            <asp:TextBox ID="TxtName" CssClass="BigInput" runat="server"></asp:TextBox></td>
		<td class="TableData" noWrap style="width: 80px; height: 25px;">
		性别:</td><td class="TableData" noWrap style="height: 25px">
                <asp:DropDownList ID="DrpSex" runat="server">
                    <asp:ListItem>男</asp:ListItem>
                    <asp:ListItem>女</asp:ListItem>
                </asp:DropDownList></td>
    	</tr>
    	<tr>
    	<td class="TableData" noWrap style="width: 80px" >手机号码:</td>
		<td class="TableData" noWrap style="width: 164px"><asp:TextBox CssClass="BigInput" ID="TxtPhone" runat="server"></asp:TextBox></td>
		<td class="TableData" noWrap style="width: 80px">
		家庭电话:</td><td class="TableData" noWrap><asp:TextBox CssClass="BigInput" ID="TxtTel" runat="server"></asp:TextBox></td>
    	</tr>
    	<tr>
    	<td class="TableData" noWrap style="width: 80px" >部门:</td>
		<td class="TableData" noWrap style="width: 164px"><asp:TextBox CssClass="BigInput" ID="TxtDept" runat="server"></asp:TextBox></td>
		<td class="TableData" noWrap style="width: 80px">
		职务:</td><td class="TableData" noWrap><asp:TextBox CssClass="BigInput" ID="TxtDuty" runat="server"></asp:TextBox></td>
    	</tr>
    	
    	<tr>
    	<td class="TableData" noWrap style="width: 80px" >办公电话:</td>
		<td class="TableData" noWrap style="width: 164px"><asp:TextBox CssClass="BigInput"   ID="TxtComTel" runat="server"></asp:TextBox></td>
		<td class="TableData" noWrap style="width: 80px">
		E-mail:</td><td class="TableData" noWrap><asp:TextBox CssClass="BigInput"   ID="TxtEmail" runat="server"/></td>
    	</tr>
    	<tr>
    	<td class="TableData" noWrap style="width: 80px" >QQ:</td>
		<td class="TableData" noWrap style="width: 164px"><asp:TextBox CssClass="BigInput"   ID="TxtQQ" runat="server"/></td>
		<td class="TableData" noWrap style="width: 80px">
		家庭住址:</td><td class="TableData" noWrap><asp:TextBox CssClass="BigInput"   ID="TxtAdr" runat="server"/></td>
    	</tr>
    	<tr>
    	<td class="TableData" noWrap style="width: 80px" >备注说明:</td><td colspan=3 class="TableData" noWrap>
            <asp:TextBox ID="TxtContent"  runat="server" Height="112px" TextMode="MultiLine" Width="376px" BorderWidth="1px" BorderStyle="Solid" BorderColor="Silver"></asp:TextBox></td>
    	</tr>
   		　　	
    	</TABLE>
			</td>
		</tr>
		<tr>
			<td align="center" style="width: 506px; height: 25px;"> <asp:Button ID="BtnUpdate" class="BigButton"  runat="server" OnClientClick="return CheckForm();" Text="修改" OnClick="BtnUpdate_Click" Width="91px" />
							&nbsp;&nbsp;&nbsp;&nbsp;<input
                                id="btnExit" onclick="javascript:self.close();" class="BigButton" type="button" value="关闭" style="width: 91px"   /></td>
		</tr>
		</table> 
		</center>  
  </form> 
</body>
</html>
