日期:2014-05-16 浏览次数:20436 次
function add_set(){
var x=document.getElementById("add");
var selectText = x.options[x.selectedIndex].text;
{foreach from=$shipping_list item=shipping}
{ if $shipping.shipping_code == 'cac_bus' }
{foreach from=$shipping.configure key=mykey item=j}
if ("{$j.regions_cn_line}" == selectText){
set_info = '<div id="cac_bus_set_list">';
set_info += '<input type="text" name="cac_bus_contact" value="{$j.cac_bus_contact}"/>';
set_info += '<input type="text" name="cac_bus_phone" value="{$j.cac_bus_phone}"/>';
set_info += '<input type="text" name="cac_bus_getdate" value=""/>';
set_info += '<input type="password" name="cac_bus_getpass" value=""/>';
set_info += '</div>';
document.getElementById("cac_bus_info").innerHTML+=set_info;
}
{/foreach}
{/if}
{/foreach}