{extend name="default/base/base_seller" /}
{block name="seller_main"}

<form method="POST" id='express_form'>
    <table class="dssc-default-table">
        <thead>
        <tr>
            <th class="w20"></th>
            <th colspan="4" class="tm">{$Think.lang.store_deliver_express_title}</th>
        </tr>
        </thead>
        <tbody>
        {notempty name="express_list"}
        <tr class="bd-line">
            <td></td>
            {php}$i = 1;{/php}
            {foreach name="express_list" item="value" key="key" }
            <td class="tl">
                <label>
                    <input type="checkbox" name="cexpress[]" <?php if (in_array($key,$express_select)) echo 'checked';?>
                    value="{$key}">{$value.express_name}
                </label>
            </td>
            {if $i%4 == 0}
        </tr>
        <tr class="bd-line">
            <td></td>
            {/if}
            {php}$i++;{/php}
            {/foreach}
        </tr>
        {else /}
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i class="fa fa-warning"></i><span>{$Think.lang.no_record}</span></div>
            </td>
        </tr>
        {/notempty}
        </tbody>
        <tfoot>
        <tr>
            <td colspan="20" class="bottom"><label class="submit-border"><input class="submit" type="submit"
                                                                                value="{$Think.lang.ds_common_button_save}"></label></td>
        </tr>
        </tfoot>
    </table>
</form>
<script>
    $(document).ready(function () {
        $('#express_form').validate({
            submitHandler: function (form) {
                ds_ajaxpost('express_form');
            }
        });
    });
</script>

{/block}
