<!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>添加客户 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript" src="{#$base_weburl#}/js/jquery-1.7.2.js" ></script>
<script language="javascript" src="{#$base_weburl#}/js/admincommon.js" ></script>
<script language="javascript" src="{#$base_weburl#}/js/pinyin.js" ></script>
<script language="javascript">
	function submitFun()
	{

		var id_name 		= document.getElementById('customer_name');
		var id_pinyin 		= document.getElementById('customer_pinyin');
		var id_email 		= document.getElementById('customer_email');
		var id_tel 			= document.getElementById('customer_tel');

		patn = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/;
		
		telpatn = /^([0-9_\--])+([0-9_-])+/;
		
		if(id_name.value=='')
		{
			document.getElementById('divcustomer_name').innerHTML = ' 提 示：客户名称不能为空！请输入！';
			id_name.focus();
			return false;
		}else if((id_name).length < 3)
		{
			id_name.focus();
			return false;
		}else if(id_pinyin.value=='')
		{
			document.getElementById('divcustomer_pinyin').innerHTML = ' 提 示：名称拼音不能为空！请输入！';
			id_pinyin.focus();
			return false;		
		}else if(id_tel.value=='')
		{
			document.getElementById('divcustomer_tel').innerHTML = ' 提 示：客户电话不能为空！请输入！';
			id_tel.focus();
			return false;		
		}else if(!telpatn.test(id_tel.value))
		{

				alert ("提示：\n\n客户电话格式不正确，请输入正确的电子邮件地址！！");
				id_tel.focus (); 
				return false; 
		}else if(id_email.value=='')
		{
			document.getElementById('divcustomer_email').innerHTML = ' 提 示：客户电子邮件不能为空！请输入！';
			id_email.focus();
			return false;		
		}else if(!patn.test(id_email.value))
		{

				alert ("提示：\n\n电子邮件格式不正确，请输入正确的电子邮件地址！！");
				id_email.focus (); 
				return false; 
		}
		
	}
</script>

</head>
<body>
<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">

<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php/customer/infolist"><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">客户列表</a> | 添加客户</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_customer-add.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td width="100%" align="center" >

<form action="{#$actUrl#}" method="post" onsubmit="return submitFun(this)" enctype="multipart/form-data" name="formSub" >
<table cellpadding="0" cellspacing="1" border="0"   class="tableborder" >
<tr>
<th colspan="3">添加客户</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>客户名称：</strong></td>
<td class="tdd" style="width:250px;"><input name="customer_name" id="customer_name" value="" type="text"  style="width:250px;" onblur="getPinYinValue('customer_name','customer_pinyin')" ></td>
<td class="tdleft"><div id="divcustomer_name" class="redcls">*</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="tdright"><strong>名称拼音：</strong></td>
<td class="tdd" style="width:250px;"><input name="customer_pinyin" id="customer_pinyin" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_pinyin" class="redcls">*</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>所在地区：</strong></td>
<td class="tdd" style="width:250px;"><input name="customer_area" id="customer_area" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_area"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户地址：</strong></td>
<td class="tdd" style="width:250px;"><input name="customer_address" id="customer_address" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_address"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>邮政编码：</strong></td>
<td class="tdd" style="width:250px;"><input name="customer_zip" id="customer_zip" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_zip"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户电话：</strong></td>
<td class="tdd"><input name="customer_tel" id="customer_tel" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_tel" class="redcls">*</div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户传真：</strong></td>
<td class="tdd"><input name="customer_fax" id="customer_fax" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_fax"></div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户网址：</strong></td>
<td class="tdd"><input name="customer_website" id="customer_website" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_website"></div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户邮箱：</strong></td>
<td class="tdd"><input name="customer_email" id="customer_email" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_email" class="redcls"><font color="#FF0000">*</font></div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>营业执照注册号：</strong></td>
<td class="tdd"><input name="customer_licence" id="customer_licence" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_licence"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>法人：</strong></td>
<td class="tdd"><input name="customer_chieftain" id="customer_chieftain" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_chieftain"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>注册资金：</strong></td>
<td class="tdd"><input name="customer_bankroll" id="customer_bankroll" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_bankroll"></div></td>
</tr>



<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>营业额：</strong></td>
<td class="tdd"><input name="customer_turnover" id="customer_turnover" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_turnover"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>开户银行：</strong></td>
<td class="tdd"><input name="customer_bank" id="customer_bank" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_bank"></div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>银行帐号：</strong></td>
<td class="tdd"><input name="customer_bankaccount" id="customer_bankaccount" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_bankaccount"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>地税登记号：</strong></td>
<td class="tdd"><input name="customer_localtaxno" id="customer_localtaxno" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_localtaxno"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>国税登记号：</strong></td>
<td class="tdd"><input name="customer_nationaltaxno" id="customer_nationaltaxno" value="" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_nationaltaxno"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>分配经理：</strong></td>
<td class="tdd"><input name="customer_managerid" id="customer_managerid" value="" type="text" style="width:250px;"></td>
<td class="tdleft"><div id="divcustomer_managerid"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户等级：</strong></td>
<td class="tdd"><input name="customer_level" id="customer_level" value="0" type="text" style="width:250px;"></td>
<td class="tdleft"><div id="divcustomer_level"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户满意度：</strong></td>
<td class="tdd"><input name="customer_satisfy" id="customer_satisfy" value="3" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_satisfy"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户信用度：</strong></td>
<td class="tdd"><input name="customer_credit" id="customer_credit" value="0" type="text"  style="width:250px;" ></td>
<td class="tdleft"><div id="divcustomer_credit"></div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户失败次数：</strong></td>
<td class="tdd"><input name="customer_losecount" id="customer_losecount" value="0" type="text"  style="width:250px;"  ></td>
<td class="tdleft"><div id="divcustomer_losecount"></div></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>客户状态：</strong></td>
<td class="tdd"><select name="customer_status" id="customer_status">
<option value="0" selected="selected">未开发</option>
<option value="1">开发中</option>
<option value="2">正常</option>
<option value="3">成功</option>
<option value="4">流失</option>
<option value="5">删除</option>
</select></td>
<td class="tdleft"><div id="divcustomer_status"></div></td>
</tr>



<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"> <input name="submit" id="submit" type="submit" value="添 加" ></td>
</tr>
</table>
</form>

</td></tr>
<tr><td></td></tr>
</table>



	
</body>
</html>