<?php defined('IN_ECJIA') or exit('No permission resources.');?>
<!-- {extends file="ecjia-merchant.dwt.php"} -->

<!-- {block name="home-content"} -->
<div class="page-header">
	<div class="pull-left">
		<h2><!-- {if $ur_here}{$ur_here}{/if} --></h2>
  	</div>
  	<div class="pull-right ">
  		{if $action_link}
		<a href="{$action_link.href}" class="btn btn-primary data-pjax ">
			<i class="fa fa-search"></i> {$action_link.text}
		</a>
		{/if}
  	</div>
  	<div class="clearfix"></div>
</div>

<div class="row">
	<div class="col-lg-12">
	    <div class="panel">
	    	<div class="panel-body">
				<div class="accordion-group panel panel-default">
					<div class="page-header">
                        <h4>
                        	<strong>{t}已启用{/t}</strong>
                        	<small class="ecjiaf-ff1">{lang key='shipping::shipping.close_distribution'}</small>
                        </h4>
                     </div>
					<table class="table table-striped table-hide-edit">
						<thead>
							<tr>
								<th class="w110">{lang key='shipping::shipping.shipping_name'}</th>
								<th>{lang key='shipping::shipping.shipping_desc'}</th>
								<th class="w80">{lang key='shipping::shipping.insure'}</th>
								<th class="w100">{lang key='shipping::shipping.support_cod'}</th>
							</tr>
						</thead>
						<tbody>
							<!-- {foreach from=$enabled item=module} -->
							<tr>
								<td>
									{$module.name}
								</td>
								<td class="hide-edit-area">
									{$module.desc|nl2br}
									<div class="edit-list">
										<a class="data-pjax" href='{RC_Uri::url("shipping/mh_area/init", "shipping_id={$module.id}&code={$module.code}")}'  title="{lang key='shipping::shipping.shipping_area'}">{lang key='shipping::shipping.set_shipping'}</a>
									</div>
								</td>
								<td>
									<!-- {if $module.is_insure } -->
										{$module.insure_fee}
									<!-- {else} -->
										{lang key='shipping::shipping.not_support'}
									<!-- {/if} -->
								</td>
								<td>
									{if $module.cod==1}
										{lang key='system::system.yes'}
									{else}
										{lang key='system::system.no'}
									{/if}
								</td>
							</tr>
							<!-- {foreachelse} -->
							<tr><td class="no-records" colspan="5">{lang key='system::system.no_records'}</td></tr>
							<!-- {/foreach} -->
						</tbody>
					</table>
				</div>
			</div>
		</div>
		
		<div class="panel">	
			<div class="panel-body">			
				<div class="accordion-group panel panel-default">
					<div class="page-header">
						<h4>
	          				<strong>{t}未启用{/t}</strong>
	          				<small class="ecjiaf-ff1">{lang key='shipping::shipping.open_distribution'}</small>
	          			</h4>
	     			</div>
					<table class="table table-striped table-hide-edit">
						<thead>
							<tr>
								<th class="w110">{lang key='shipping::shipping.shipping_name'}</th>
								<th>{lang key='shipping::shipping.shipping_desc'}</th>
								<th class="w80">{lang key='shipping::shipping.insure'}</th>
								<th class="w100">{lang key='shipping::shipping.support_cod'}</th>
							</tr>
						</thead>
						<tbody>
							<!-- {foreach from=$disabled item=module} -->
							<tr>
								<td>
									{$module.name}
								</td>
								<td class="hide-edit-area">
									{$module.desc|nl2br}
									<div class="edit-list">
										<a class="data-pjax" href='{RC_Uri::url("shipping/mh_area/init", "shipping_id={$module.id}&code={$module.code}")}'  title="{lang key='shipping::shipping.shipping_area'}">{lang key='shipping::shipping.set_shipping'}</a>
									</div>
								</td>
								<td>
									<!-- {if $module.is_insure } -->
										{$module.insure_fee}
									<!-- {else} -->
										{lang key='shipping::shipping.not_support'}
									<!-- {/if} -->
								</td>
								<td>
									{if $module.cod==1}
										{lang key='system::system.yes'}
									{else}
										{lang key='system::system.no'}
									{/if}
								</td>
							</tr>
							<!-- {foreachelse} -->
							<tr><td class="no-records" colspan="5">{lang key='system::system.no_records'}</td></tr>
							<!-- {/foreach} -->
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- {/block} -->