如何修改能把收货地区的三级目录变成一级

2016-07-07 16:23 来源:www.chinab4c.com 作者:ecshop专家

{insert_scripts files='utils.js,transport.js'}
<table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
<!-- {if $real_goods_count gt 0} -->
<!-- 购物车中存在实体商品显示国家和地区 -->
<tr>
<td bgcolor="#ffffff">{$lang.country_province}:</td>
<td colspan="3" bgcolor="#ffffff">
<select name="country" id="selCountries_{$sn}" class="inputBorder1">
<option value="0">{$lang.please_select}{$name_of_region[0]}</option>
<!-- {foreach from=$country_list item=country} -->
<option value="{$country.region_id}" {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option>
<!-- {/foreach} -->
</select>
<select name="province" id="selProvinces_{$sn}" class="inputBorder1">
<option value="0">{$lang.please_select}{$name_of_region[1]}</option>
<!-- {foreach from=$province_list.$sn item=province} -->
<option value="{$province.region_id}" {if $consignee.province eq $province.region_id}selected{/if}>{$province.region_name}</option>
<!-- {/foreach} -->
</select>
<select name="city" id="selCities_{$sn}" class="inputBorder1">
<option value="0">{$lang.please_select}{$name_of_region[2]}</option>
<!-- {foreach from=$city_list.$sn item=city} -->
<option value="{$city.region_id}" {if $consignee.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
<!-- {/foreach} -->
</select>
<select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if} class="inputBorder1">
<option value="0">{$lang.please_select}{$name_of_region[3]}</option>
<!-- {foreach from=$district_list.$sn item=district} -->
<option value="{$district.region_id}" {if $consignee.district eq $district.region_id}selected{/if}>{$district.region_name}</option>
<!-- {/foreach} -->
</select>
{$lang.require_field} </td>
</tr>
<!-- {/if} -->
<tr>
<td bgcolor="#ffffff">{$lang.consignee_name}:</td>
<td bgcolor="#ffffff"><input name="consignee" type="text" class="inputBorder1" id="consignee_{$sn}" value="{$consignee.consignee|escape}" />
{$lang.require_field} </td>
<td bgcolor="#ffffff">{$lang.email_address}:</td>
<td bgcolor="#ffffff"><input name="email" type="text" class="inputBorder1"id="email_{$sn}" value="{$consignee.email|escape}" />
{$lang.require_field}</td>
</tr>
<!-- {if $real_goods_count gt 10000} -->
<!-- 购物车中存在实体商品显示详细地址以及邮政编码 -->
<tr>
<td bgcolor="#ffffff">{$lang.detailed_address}:</td>
<td bgcolor="#ffffff"><input name="address" type="text" class="inputBorder1"id="address_{$sn}" value="{$consignee.address|escape}" />
{$lang.require_field}</td>
<td bgcolor="#ffffff">{$lang.postalcode}:</td>
<td bgcolor="#ffffff"><input name="zipcode" type="text" class="inputBorder1"id="zipcode_{$sn}" value="{$consignee.zipcode|escape}" /></td>
</tr>
<!-- {/if} -->
<tr>
<td bgcolor="#ffffff">{$lang.phone}:</td>
<td bgcolor="#ffffff"><input name="tel" type="text" class="inputBorder1"id="tel_{$sn}" value="{$consignee.tel|escape}" />
{$lang.require_field}</td>
<td bgcolor="#ffffff">{$lang.backup_phone}:</td>
<td bgcolor="#ffffff"><input name="mobile" type="text" class="inputBorder1"id="mobile_{$sn}" value="{$consignee.mobile|escape}" /></td>
</tr>