edit_plate.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div class="eject_con">
  2. <div id="warning" class="alert alert-error"></div>
  3. <form method="post" action="{:url('Sellergoodsonline/edit_plate')}" id="plate_form">
  4. <input type="hidden" name="commonid" value="{$Request.param.commonid}" />
  5. <dl>
  6. <dt>{$Think.lang.associated_layout}:</dt>
  7. <dd>
  8. <p>
  9. <label>{$Think.lang.top_layout}</label>
  10. <select name="plate_top">
  11. <option>{$Think.lang.ds_please_choose}</option>
  12. {notempty name="plate_list.1"}
  13. {foreach name="plate_list.1" item="val"}
  14. <option value="{$val.storeplate_id}" {if $plateid.plateid_top == $val.storeplate_id}selected="selected"{/if}>{$val.storeplate_name}</option>
  15. {/foreach}
  16. {/notempty}
  17. </select>
  18. </p>
  19. <p>
  20. <label>{$Think.lang.bottom_layout}</label>
  21. <select name="plate_bottom">
  22. <option>{$Think.lang.ds_please_choose}</option>
  23. {notempty name="plate_list.0"}
  24. {foreach name="plate_list.0" item="val"}
  25. <option value="{$val.storeplate_id}" {if $plateid.plateid_bottom == $val.storeplate_id}selected="selected"{/if}>{$val.storeplate_name}</option>
  26. {/foreach}
  27. {/notempty}
  28. </select>
  29. </p>
  30. <p class="hint">{$Think.lang.all_advertisements_will_blank}</p>
  31. </dd>
  32. </dl>
  33. <div class="bottom">
  34. <input type="submit" class="submit" value="{$Think.lang.ds_submit}"/>
  35. </div>
  36. </form>
  37. </div>
  38. <script>
  39. $(function(){
  40. $('#plate_form').submit(function(){
  41. ds_ajaxpost('plate_form');
  42. return false;
  43. });
  44. });
  45. </script>