欢迎来到元素模板ys720.com,本站提供专业的织梦模板PBOOTCMS模板网站模板网站修改/网站仿站
当前位置:主页 > 程序教程 > ECSHOP教程 >
ECSHOP教程

ecshop 如何调用 省市地区?

(元素模板) / 2023-07-12 15:25
ecshop 如何调用省市地区?元素模板为您解答
<select id="country" name="country" onchange="region.changed(this, 1, 'province')" onBlur="chk_addr('region');"> -->
                        <!-- <option value="0">{$lang.please_select}{$name_of_region[1]}</option> -->
                        {foreach from=$country_list item=country}
                        <!-- <option value="{$country.region_id}" {if $country.region_id eq $consignee.country}selected{/if}>{$country.region_name}</option> -->
                        {/foreach}
</select>		
<select id="province" name="province" onchange="region.changed(this, 2, 'city')" onBlur="chk_addr('region');"> -->
                        <!-- <option value="0">{$lang.please_select}{$name_of_region[1]}</option> -->
                        {foreach from=$province_list item=province}
                        <!-- <option value="{$province.region_id}" {if $province.region_id eq $consignee.province}selected{/if}>{$province.region_name}</option> -->
                        {/foreach}
</select>
<select  id="city" name="city" onchange="region.changed(this, 3, 'district')" onBlur="chk_addr('region');">
                        <option value="0">{$lang.please_select}{$name_of_region[2]}</option>
                        <!-- {foreach from=$city_list item=city} -->
                        <option value="{$city.region_id}" {if $city.region_id eq $consignee.city}selected{/if}>{$city.region_name}</option>
                        <!-- {/foreach} -->
                    </select>
                    <select name="district" id="district" onBlur="chk_addr('region');">
                        <option value="0">{$lang.please_select}{$name_of_region[3]}</option>
                        <!-- {foreach from=$district_list item=district} -->
                        <option value="{$district.region_id}" {if $district.region_id eq $consignee.district}selected="selected"{/if}>{$district.region_name}</option>
                        <!-- {/foreach} -->
                    </select>
Copyright @ 2013-2021 元素模板 www.ys720.com All Rights Reserved. 版权所有 元素模板 www.ys720.com