<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" type="text/css" href="{{kg['tpl_url']}}style/shop_shipping.css">
<script src="{{kg['tpl_url']}}script/jquery.min.js"></script>
<script src="{{kg['tpl_url']}}script/cropper.min.js"></script>
<script src="{{kg['tpl_url']}}script/amazeui.datetimepicker.min.js"></script>
<script src="{{kg['server']['HTTP_HOST']}}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/shop_shipping.js"></script>
</head>
<body data-type="generalComponents">
    {% include 'component_header.tpl' %}
    <div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
        {% include 'component_left.tpl' %}
        <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                配送方式管理
            </div>
            <ol class="am-breadcrumb">
                <li><a href="./" class="am-icon-home">首页</a></li>
                <li>配送方式管理</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span>&nbsp;配送方式管理
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml am-select-hover am-no-margintop">
                        <div class="portlet-input input-small input-inline ngar-xiugai-width">
                            <div class="input-icon right am-fr top-1">
                                <div class="am-btn-group am-btn-group-xs">
                                    <a href="shipping_update" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-plus"></span>&nbsp;添加配送方式</a>
                                </div>
                            </div>
                            <div class="am-cf"></div>
                        </div>
                    </div>
                </div>
                <div class="tpl-block ngALL-AFenyeFu-marginT">
                    <div class="am-g">
                        <div class="tpl-form-body tpl-form-line padding-none">
                            <div class="am-tab-panel am-fade am-active am-in" id="tab2">
                                <div class="am-u-sm-12 ngco-No-paddingR">
                                    <form class="am-form">
                                        <table class="am-table am-table-striped am-table-hover table-main ngco-Esz-mgibdr">
                                            <thead>
                                                <tr>
                                                    <th>配送方式名称</th>
                                                    <th>手续费</th>
                                                    <th>手续费到付</th>
                                                    <th>保价费比例</th>
                                                    <th>简要描述</th>
                                                    <th>操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {% for row in data %}
                                                <tr>
                                                    <td>{{row['title']}}</td>
                                                    <td>{{row['freight']}}</td>
                                                    {% if row['topay'] == 1 %}
                                                    <td>支持</td>
                                                    {% else %}
                                                    <td>不支持</td>
                                                    {%endif%}
                                                    <td>{{row['insure']}}</td>
                                                    <td>{{row['description']}}</td>
                                                    <td>
                                                        <div class="am-btn-toolbar">
                                                            <div class="am-btn-group am-btn-group-xs">
                                                                <a href="shipping_update?action=edit&id={{row['id']}}" class="am-btn am-btn-default am-btn-xs am-text-default am-hide-sm-only">
                                                                    <span class="am-icon-pencil-square-o"></span>&nbsp;编辑
                                                                </a>
                                                                <a href="shipping_manage?action=del&id={{row['id']}}" class="am-btn am-btn-default am-btn-xs am-text-danger ngro-Jclick-shanchubi">
                                                                    <span class="am-icon-trash-o"></span>&nbsp;删除
                                                                </a>
                                                                {% if row['enable'] == 1%}
                                                                <a href="shipping_manage?action=enable&id={{row['id']}}"  title="点击禁用" class="am-btn am-btn-default am-btn-xs am-hide-sm-only am-text-warning">
                                                                    <span class="am-icon-star-o "></span>&nbsp;已启用
                                                                </a>
                                                                {% else %}
                                                                <a href="shipping_manage?action=able&id={{row['id']}}"  title="点击启用" class="am-btn am-btn-default am-btn-xs am-hide-sm-only am-text-warning">
                                                                    <span class="am-icon-star-o "></span>&nbsp;已禁用
                                                                </a>
                                                                {% endif %}
                                                            </div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                {% endfor %}
                                            </tbody>
                                        </table>
                                        {% if not data %}<div class="no-data"><ul>没有相关数据</ul></div>{% endif %}
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {% include 'component_footer.tpl' %}
        </div>
		</div><!-- /.scrollbar-wrap -->
    </div>
</body>
</html>