express.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <form method="POST" id='express_form'>
  4. <table class="dssc-default-table">
  5. <thead>
  6. <tr>
  7. <th class="w20"></th>
  8. <th colspan="4" class="tm">{$Think.lang.store_deliver_express_title}</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. {notempty name="express_list"}
  13. <tr class="bd-line">
  14. <td></td>
  15. {php}$i = 1;{/php}
  16. {foreach name="express_list" item="value" key="key" }
  17. <td class="tl">
  18. <label>
  19. <input type="checkbox" name="cexpress[]" <?php if (in_array($key,$express_select)) echo 'checked';?>
  20. value="{$key}">{$value.express_name}
  21. </label>
  22. </td>
  23. {if $i%4 == 0}
  24. </tr>
  25. <tr class="bd-line">
  26. <td></td>
  27. {/if}
  28. {php}$i++;{/php}
  29. {/foreach}
  30. </tr>
  31. {else /}
  32. <tr>
  33. <td colspan="20" class="norecord">
  34. <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
  35. </td>
  36. </tr>
  37. {/notempty}
  38. </tbody>
  39. <tfoot>
  40. <tr>
  41. <td colspan="20" class="bottom">
  42. <input class="submit" type="submit" value="{$Think.lang.ds_common_button_save}">
  43. </td>
  44. </tr>
  45. </tfoot>
  46. </table>
  47. </form>
  48. <script>
  49. $(document).ready(function () {
  50. $('#express_form').validate({
  51. submitHandler: function (form) {
  52. ds_ajaxpost('express_form');
  53. }
  54. });
  55. });
  56. </script>
  57. {/block}