<!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>{#$webtitle#}{#$web_config.poweredby#}</title>
<link rel="stylesheet" type="text/css" href="../templates/www/{#$web_config.temp -> dir#}/css/{#$web_config.temp -> style#}.css" />
<link rel="stylesheet" type="text/css" href="./css/user.css" />
<script language="javascript" src="./js/jquery.min.js" ></script>
<script language="javascript" src="./js/user_command.js" ></script>
<script language="javascript">
	var webroot_url = '{#$base_weburl#}';
	function submitFun()
	{

		var idadd_name 			= document.getElementById('add_name');
		var ididprovince 		= document.getElementById('idprovince');
		var idadd_mobile 		= document.getElementById('add_mobile');
		var idadd_phone 		= document.getElementById('add_phone');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');

		if(idadd_name.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：姓名不能为空！请输入！';
			idadd_name.focus();
			return false;
		}
		if(ididprovince.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：地区不能为空！请输入！';
			ididprovince.focus();
			return false;
		}
		if(idadd_mobile.value=='')
		{
			idsuggestionInfo.innerHTML = '提 示：手机不能为空！请重新输入！';
			idadd_mobile.focus();
			return false;
		}

	}
</script>
</head>
<body>
{#include file="./cover/header.tpl"#}
{#include file="./cover/web_address.tpl"#}
<div class="maincss">
{#include file="./cover/user_left.tpl"#}
<div id="usermain">
<div class="usermainright">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th >姓名</th>
<th >地址</th>
<th >手机</th>
<th >操作</th>
</tr>

{#foreach item=item from=$address_info#}
<tr >
<td class="tdleft">{#$item.add_name#}</td><td class="keykey">{#$item.add_pcdall#},{#$item.add_address#}</td><td class="tdleft">{#$item.add_mobile#}</td><td class="tdleft"> <a href="./user/index.php?load=address&act=info&id={#$item.add_id#}">修改</a> <a href="./user/index.php?load=address&act=del&id={#$item.add_id#}" onclick="if(confirm('你确认要删除操作！')){ return  true; }else{ return  false; }" >删除</a> </td></tr>
{#/foreach#}

</table>
</div>
<div class="usermainright">
<form action="{#$act_url#}" method="post" onsubmit="return submitFun(this)">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="2">基本信息</th>
</tr>
<tr >
<td class="tdright">姓名</td><td class="tdleft"><input name="add_name" id="add_name" value=""  type="text"   ></td></tr>	

<tr >
<td class="tdright">地区</td><td class="tdleft"><span id="province_span"><select class="form-control" name="province" id="province">
          <option value="">{#$lang.txt_select#}</option>
          </select></span> 

 <span id="city_span"><select class="form-control" name="city" id="city">
          <option value="" >{#$lang.txt_select#}</option>
          </select></span>
          <span id="district_span"><select class="form-control" name="district" id="district">
          <option value="" >{#$lang.txt_select#}</option>
          </select></span>
      <input name="pcd_all" id="pcd_all" value="{#$user_info.pcd_all#}" type="hidden"  >
<script language="javascript">
	get_area( '0',  'province' ,  '');
</script>      
</td></tr>

<tr >
<td class="tdright">地址</td><td class="tdleft"><span id="spprovince"></span><span id="spcity"></span><span id="spdistrict"></span><input name="add_address" id="add_address" value="" type="text"  style="width:250px;" ></td></tr>


<tr >
<td class="tdright"><strong>邮政编码：</strong></td>
<td class="tdleft"><input name="add_zip_code" id="add_zip_code"  value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>手机：</strong></td>
<td class="tdleft"><input name="add_mobile" id="add_mobile" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>电话：</strong></td>
<td class="tdleft"><input name="add_phone" id="add_phone" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>邮箱：</strong></td>
<td class="tdleft"><input name="add_email" id="add_email" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>标志建筑：</strong></td>
<td class="tdleft"><input name="add_sign" id="add_sign" value="" type="text"  style="width:250px;" ></td>
</tr>

<tr >
<td class="tdright"><strong>送货时间：</strong></td>
<td class="tdleft"><select id="add_sendtime" name="add_sendtime">
{#foreach item=s_item key=s_key from=$lang.send_time_arr#}
<option value="{#$s_key#}">{#$s_item#}</option>
{#/foreach#}</select></td>
</tr>


<tr >
<td colspan="2"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>
<tr >
<td colspan="2"  class="tdcenter"><input name="submit" id="submit" type="submit" value=" 添 加 " ></td>
</tr></table>
</form>

</div>
</div>
</div>
{#include file="./cover/footer.tpl"#}
</body>
</html>