<!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>添加客户资料 -  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/common.js" ></script>
<script language="javascript">
	function submitFun()
	{
		var idprs_name 		= document.getElementById('prs_name');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idprs_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：名称不能为空！请输入！';
			idprs_name.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="{#$employee_weburl#}/index.php?load=address&act=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_address-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>
<div class="list">
<form action="{#$employee_weburl#}/index.php?load=address&act=addinfo" method="post"   name="formSub" onsubmit="return submitFun(this)">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2" >客户添加</th>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td">姓名(客户名称)</td><td class="tdleft"><input name="add_name" id="add_name" value=""  type="text"  style="width:250px;"  ></td></tr>	

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td">地区</td><td class="tdleft"><div id="userd_addr"><span id="userd_province"><select name="idprovince" id="idprovince"><option value="">请选择</option></select></span><span id="userd_city"><select name="idcity" id="idcity"><option value="" >请选择</option></select></span><span id="userd_district"><select name="iddistrict" id="iddistrict"><option value="" >请选择</option></select></span></div>
<script language="javascript">
	function getareadict( objval, nextobj , areatype , selval )
	{
		var areatype = areatype; 
		var idnextobj = document.getElementById( nextobj );
		if(objval!='')
		{
			$.get("{#$base_weburl#}/index.php?load=ajaxarea&act="+areatype+"&objval="+objval+"&selval="+selval, function(data)
			{
				idnextobj.innerHTML = data;
			})
		}else{
			$.get("{#$base_weburl#}/index.php?load=ajaxarea&act="+areatype+"", function(data)
			{
				idnextobj.innerHTML = data;
			})
		}
		
	}
	function provinceval(obj)
	{
		
		spprovince.innerHTML = obj.options[obj.selectedIndex].text;
		spcity.innerHTML	 = '';
		spdistrict.innerHTML = '';
		
		document.getElementById('hiprovince').value = obj.options[obj.selectedIndex].text;
		document.getElementById('hicity').value 	= '';
		document.getElementById('hidistrict').value = '';
		
	}
	function cityval(obj)
	{
		spcity.innerHTML	 = obj.options[obj.selectedIndex].text;
		spdistrict.innerHTML = '';
		
		document.getElementById('hicity').value 	  = obj.options[obj.selectedIndex].text;
		document.getElementById('hidistrict').value   = '';
	}
	
	function districtval(obj)
	{
		spdistrict.innerHTML = obj.options[obj.selectedIndex].text
		
		document.getElementById('hidistrict').value = obj.options[obj.selectedIndex].text;
	}
	
	getareadict( '0',  'userd_province','province' ,  '');
</script>	<input type="hidden" value="" name="hiprovince" id="hiprovince" /><input type="hidden" value="" name="hicity" id="hicity" /><input type="hidden" value="" name="hidistrict" id="hidistrict" /></td></tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td">地址</td><td class="tdleft"><span id="spprovince"></span><span id="spcity"></span><span id="spdistrict"></span><input name="add_address" id="add_address" value="{#$AddressInfo.add_address#}" type="text"  style="width:250px;" ></td></tr>


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

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>手机：</strong></td>
<td class="tdleft"><input name="add_mobile" id="add_mobile" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>电话：</strong></td>
<td class="tdleft"><input name="add_phone" id="add_phone" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>邮箱：</strong></td>
<td class="tdleft"><input name="add_email" id="add_email" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>标志建筑：</strong></td>
<td class="tdleft"><input name="add_sign" id="add_sign" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>送货时间：</strong></td>
<td class="tdleft"><select id="add_sendtime" name="add_sendtime">{#foreach item=senditem key=sendkey from=$_LANG.sendtimeArray#}
<option value="{#$sendkey#}">{#$senditem#}</option>
{#/foreach#}</select></td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td class="td"><strong>是否有效：</strong></td>
<td class="tdd">
{#foreach key=ek item=ei from=$_LANG.bd_enabledArray#}
{#$ei#}<input type="radio"   name="add_enabled" id="add_enabled[{#$ek#}]"  value="{#$ek#}" {#if $ek eq 1#} checked="checked" {#/if#}>
{#/foreach#}
</td>
</tr>


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

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';">
<td colspan="2"  class="tdcenter"> <input name="submit" id="submit" type="submit" value="添 加" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{#$employee_weburl#}/index.php?load=address&act=infolist" >返回列表</a></td>
</tr>
</table>
</form>
</div>
</td></tr>
<tr><td></td></tr>
</table>



</body>
</html>