deliver_region.html 1.0 KB

12345678910111213141516171819202122232425262728
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="dssc-form-default">
  4. <form method="post" action="{:url('Sellerdeliverset/deliver_region')}" id="my_store_form">
  5. <dl>
  6. <dt>{$Think.lang.default_delivery_area}{$Think.lang.ds_colon}</dt>
  7. <dd>
  8. <input name="region" type="hidden" id="region" value="{$deliver_region[1]}" />
  9. <input name="area_ids" type="hidden" id="_areas" value="{$deliver_region[0]}">
  10. <p class="hint">{$Think.lang.guidelines_distribution_areas}</p>
  11. </dd>
  12. </dl>
  13. <div class="bottom">
  14. <input type="submit" class="submit" value="{$Think.lang.ds_common_button_save}" />
  15. </div>
  16. </form>
  17. </div>
  18. <script type="text/javascript">
  19. $(function () {
  20. $('#region').ds_region();
  21. });
  22. $('#my_store_form').validate({
  23. submitHandler: function (form) {
  24. ds_ajaxpost('my_store_form');
  25. },
  26. });
  27. </script>
  28. {/block}