account_edit.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="dssc-form-default">
  4. <form id="add_form" action="" method="post">
  5. <input name="seller_id" value="{$seller_info.seller_id}" type="hidden" />
  6. <dl>
  7. <dt><i class="required">*</i>{$Think.lang.seller_account_name}{$Think.lang.ds_colon}</dt>
  8. <dd> {$seller_info.seller_name} <span></span>
  9. <p class="hint"></p>
  10. </dd>
  11. </dl>
  12. <dl>
  13. <dt><i class="required">*</i>{$Think.lang.account_group}{$Think.lang.ds_colon}</dt>
  14. <dd><select name="group_id">
  15. {foreach name="seller_group_list" item="value" }
  16. <option value="{$value.sellergroup_id}" {if $seller_info.sellergroup_id == $value.sellergroup_id}selected{/if}>{$value.sellergroup_name}</option>
  17. {/foreach}
  18. </select>
  19. <span></span>
  20. <p class="hint"></p>
  21. </dd>
  22. </dl>
  23. <div class="bottom">
  24. <input type="submit" class="submit" value="{$Think.lang.ds_submit}">
  25. </div>
  26. </form>
  27. </div>
  28. <script>
  29. $(document).ready(function(){
  30. $('#add_form').validate({
  31. onkeyup: false,
  32. errorPlacement: function(error, element){
  33. element.nextAll('span').first().after(error);
  34. },
  35. submitHandler:function(form){
  36. ds_ajaxpost('add_form', 'url', "{:url('Selleraccount/account_list')}");
  37. },
  38. rules: {
  39. group_id: {
  40. required: true
  41. }
  42. },
  43. messages: {
  44. group_id: {
  45. required: '<i class="iconfont">&#xe64c;</i>{$Think.lang.select_account_group}'
  46. }
  47. }
  48. });
  49. });
  50. </script>
  51. {/block}