<?php include_once( "../../../../spider.inc.php" ); ?>
{charset:UTF-8}
<?php
$GLOBALS['deliveryType']	= trim(stripslashes($_GET['dt']));
$GLOBALS['weightValue']	= trim(stripslashes($_GET['dw']));
$GLOBALS['defaultPrice']	= trim(stripslashes($_GET['dp']));
?>
<div id="block_{write:deliveryType}_{write:weightValue}">
	<h2>{if:'1'==deliveryType}クール便{else}普通便{/if} 梱包目安の合計値が{write:weightValue}まで</h2>
	<div style="width:96%;margin:0 auto;text-align:right;">
		<input type="text" id="price_{write:deliveryType}_{write:weightValue}" name="price_{write:deliveryType}_{write:weightValue}" size="10" value="" /><input type="button" value="全てに適用" onclick="shoppingSettingDeliveryApplyAll({write:deliveryType},{write:weightValue})" />
	</div>
	<table class="detail" style="width:96%;margin:0 auto;">
	<tbody>
	<tr>
		{foreach:PREFECTURE_HASH prefNum prefName}
		<th style="white-space:nowrap;">{write:prefName}</th>
		<td style="white-space:nowrap;text-align:right;">
			<input type="text" id="price_{write:deliveryType}_{write:weightValue}_{write:prefNum}" name="price[{write:deliveryType}][{write:weightValue}][{write:prefNum}]" size="10" value="{write:defaultPrice}" style="text-align:right;" />円
		</td>
		{if:(PREFECTURE_HASH_loop_counter%3)==0}</tr><tr>{/if}
		{/foreach}
	</tr>
	</tbody>
	</table>
	<p style="text-align:right;">
		<a href="javascript:shoppingSettingDeliveryDelete({write:deliveryType},{write:weightValue})">{if:'1'==deliveryType}クール便{else}普通便{/if} 梱包目安合計{write:weightValue}までの設定を削除する</a>
	</p>
	<br />
</div>