You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

143 lines
4.4 KiB

<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<div class="main-div" style=" width:100%; clear:both; margin-bottom:0px; float:left; background:#fff;">
<form method="post" action="warehouse.php" name="theForm" enctype="multipart/form-data">
<table width="100%">
<tr>
<td class="label">始发地:</td>
<td>
<select name="warehouse_id" id="warehouse_id">
{foreach from=$warehouse_list item=warehouse}
<option value="{$warehouse.region_id}" {if $parent_id eq $warehouse.region_id} selected="selected"{/if}>{$warehouse.region_name}</option>
{/foreach}
</select>
</td>
</tr>
<tr>
<td class="label">到达目的地:</td>
<td style="color:#F00">{$region_name}</td>
</tr>
<tr>
<td class="label">物流配送:</td>
<td>
<select name="shipping_id" id="shipping_id" onchange="javascript:area_freight(this.value);">
<!--<option value="0">请选择...</option>-->
{foreach from=$shipping_list item=shipping}
{if $shipping.shipping_id==$seller_shopinfo.shipping_id}
<option value="{$shipping.shipping_id}">{$shipping.shipping_name}</option>
{/if}
{/foreach}
</select>
</td>
</tr>
<tr>
<td colspan="2" id="freightArea"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="{$lang.button_submit}" class="button" />
<input type="reset" value="{$lang.button_reset}" class="button" />
<input type="hidden" name="act" value="{$form_action}" />
<input name="id" value="{$region_id}" type="hidden" id="region_id"/>
<input name="rId" value="{$regionId}" type="hidden" id="regionId"/> </td>
</tr>
</table>
</form>
<style type="text/css">
.div_ul{ width:100%; background:#fff;}
ul,li{ margin:0px; padding:0px; list-style:none;}
li{ padding:15px; float:left;}
.label_2{ width:50%}
</style>
<div class="div_ul">
<ul>
{foreach from=$freight_list item=freight name=nofreight}
<li><a href="warehouse_shipping_mode.php?act=list&shipping_id={$freight.shipping_id}&id={$freight.region_id}">{$freight.shipping_name}</a></li>
{/foreach}
</ul>
</div>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
onload = function()
{
// 开始检查订单
startCheckOrder();
area_freight({$seller_shopinfo.shipping_id}); //加载运费配置 by wu
}
//-->
</script>
<script type="text/javascript">
function addImg(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('info-table');
var row = tbl.insertRow(idx + 1);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addImg)(.*)(\[)(\+)/i, "$1removeImg$3$4-");
}
function removeImg(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('info-table');
tbl.deleteRow(row);
}
/**
* 查询运费模式参数
*/
function area_freight(shipping_id){
Ajax.call('warehouse.php?act=get_freight_area&shipping_id=' + shipping_id, '', area_freightResponse, 'GET', 'JSON');
}
function area_freightResponse(res){
document.getElementById('freightArea').innerHTML = res.content;
}
/**
* 配送费用计算方式
*/
function compute_mode(shipping_code,mode)
{
var base_fee = document.getElementById("base_fee");
var step_fee = document.getElementById("step_fee");
var item_fee = document.getElementById("item_fee");
if(shipping_code == 'post_mail' || shipping_code == 'post_express')
{
var step_fee1 = document.getElementById("step_fee1");
}
if(mode == 'number')
{
item_fee.style.display = '';
base_fee.style.display = 'none';
step_fee.style.display = 'none';
if(shipping_code == 'post_mail' || shipping_code == 'post_express')
{
step_fee1.style.display = 'none';
}
}
else
{
item_fee.style.display = 'none';
base_fee.style.display = '';
step_fee.style.display = '';
if(shipping_code == 'post_mail' || shipping_code == 'post_express')
{
step_fee1.style.display = '';
}
}
}
</script>
{/literal}
<div style="float:left; width:100%">
{include file="pagefooter.htm"}
</div>