ownshop_edit.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="explanation" id="explanation">
  4. <div class="title" id="checkZoom">
  5. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  6. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  7. </div>
  8. <ul>
  9. <li>{$Think.lang.ownshop_edit_help1}</li>
  10. <li>{$Think.lang.ownshop_edit_help2}</li>
  11. <li>{$Think.lang.ownshop_edit_help3}</li>
  12. <li>{$Think.lang.ownshop_edit_help4}</li>
  13. </ul>
  14. </div>
  15. <form id="store_form" method="post">
  16. <input type="hidden" name="store_id" value="{$store_array.store_id}" />
  17. <table class="ds-default-table">
  18. <tbody>
  19. <tr class="noborder">
  20. <td class="required w120"><label class="validation" for="store_name">{$Think.lang.ds_store_name}:</label></td>
  21. <td class="vatop rowform"><input type="text" value="{$store_array.store_name}" id="store_name" name="store_name" class="txt" /></td>
  22. <td class="vatop tips"></td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="required"><label for="store_name">{$Think.lang.store_addtime}:</label></td>
  26. <td class="vatop rowform">{notempty name="$store_array.store_addtime"}{$store_array.store_addtime|date='Y-m-d'}{/notempty}</td>
  27. <td class="vatop tips"></td>
  28. </tr>
  29. <tr class="noborder">
  30. <td class="required"><label>{$Think.lang.ds_member_name}:</label></td>
  31. <td class="vatop rowform">{$store_array.member_name}</td>
  32. <td class="vatop tips"></td>
  33. </tr>
  34. <tr class="noborder">
  35. <td class="required"><label class="validation" for="seller_name">{$Think.lang.ds_seller_name}:</label></td>
  36. <td class="vatop rowform">{$store_array.seller_name}</td>
  37. <td class="vatop tips">{$Think.lang.seller_name_tips}</td>
  38. </tr>
  39. </tbody>
  40. <tbody>
  41. <tr class="noborder">
  42. <td class="required"><label><label>{$Think.lang.belongs_class}:</label></label></td>
  43. <td class="vatop rowform">
  44. <select name="storeclass_id">
  45. <option value="0">{$Think.lang.ds_please_choose}...</option>
  46. {notempty name="class_list"}
  47. {foreach name="class_list" item="v" key="k" }
  48. <option {if $store_array.storeclass_id == $v.storeclass_id}selected="selected" {/if} value="{$v.storeclass_id}">{$v.storeclass_name}</option>
  49. {/foreach}
  50. {/notempty}
  51. </select>
  52. </td>
  53. <td class="vatop tips"></td>
  54. </tr>
  55. </tbody>
  56. <tbody>
  57. <tr class="noborder">
  58. <td class="required"><label><label for="bind_all_gc">{$Think.lang.bind_all_gc}:</label></label></td>
  59. <td class="vatop rowform onoff">
  60. <label for="bind_all_gc1" class="cb-enable {if $store_array.bind_all_gc == '1'}selected{/if}" ><span>{$Think.lang.ds_yes}</span></label>
  61. <label for="bind_all_gc0" class="cb-disable {if $store_array.bind_all_gc == '0'}selected{/if}" ><span>{$Think.lang.ds_no}</span></label>
  62. <input id="bind_all_gc1" name="bind_all_gc" {if $store_array.bind_all_gc == '1'}checked="checked"{/if} value="1" type="radio">
  63. <input id="bind_all_gc0" name="bind_all_gc" {if $store_array.bind_all_gc == '0'}checked="checked"{/if} value="0" type="radio">
  64. </td>
  65. <td class="vatop tips"></td>
  66. </tr>
  67. </tbody>
  68. <tbody>
  69. <tr class="noborder">
  70. <td class="required"><label><label for="state">{$Think.lang.store_state}:</label></label></td>
  71. <td class="vatop rowform onoff"><label for="store_state1" class="cb-enable {if $store_array.store_state == '1'}selected{/if}" ><span>{$Think.lang.ds_open}</span></label>
  72. <label for="store_state0" class="cb-disable {if $store_array.store_state == '0'}selected{/if}" ><span>{$Think.lang.ds_close}</span></label>
  73. <input id="store_state1" name="store_state" {if $store_array.store_state == '1'}checked="checked"{/if} onclick="$('#tr_store_close_info').hide();" value="1" type="radio">
  74. <input id="store_state0" name="store_state" {if $store_array.store_state == '0'}checked="checked"{/if} onclick="$('#tr_store_close_info').show();" value="0" type="radio">
  75. </td>
  76. <td class="vatop tips"></td>
  77. </tr>
  78. </tbody>
  79. <tbody id="tr_store_close_info">
  80. <tr >
  81. </tr>
  82. <tr class="noborder">
  83. <td class="required"><label for="store_close_info">{$Think.lang.store_close_info}:</label></td>
  84. <td class="vatop rowform"><textarea name="store_close_info" rows="6" class="tarea" id="store_close_info">{$store_array.store_close_info}</textarea></td>
  85. <td class="vatop tips"></td>
  86. </tr>
  87. </tbody>
  88. <tfoot>
  89. <tr class="tfoot">
  90. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  91. </tr>
  92. </tfoot>
  93. </table>
  94. </form>
  95. </div>
  96. <script type="text/javascript">
  97. $(function () {
  98. $('input[name=store_state][value={$store_array.store_state}]').trigger('click');
  99. $('#store_form').validate({
  100. errorPlacement: function (error, element) {
  101. error.appendTo(element.parentsUntil('tr').parent().find('td:last'));
  102. },
  103. rules: {
  104. store_name: {
  105. required: true,
  106. remote: "{:url('Ownshop/ckeck_store_name',['store_id'=>$store_array.store_id])}"
  107. }
  108. },
  109. messages: {
  110. store_name: {
  111. required: '{$Think.lang.store_name_required}',
  112. remote: '{$Think.lang.store_name_remote}'
  113. }
  114. }
  115. });
  116. });
  117. </script>