Shipping_edit.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>" method="post">
  2. <table cellpadding=0 cellspacing=0 class="table_form" width="100%">
  3. <tr>
  4. <td width="120">配送方式名称:</td>
  5. <td><input type="text" class="input-text" name="name" value="{$vo.name}" validate="required:true,minlength:1, maxlength:40" /></td>
  6. </tr>
  7. <tr>
  8. <td>类型:</td>
  9. <td><input type="checkbox" id="type" name="type" value="1" class="input_checkbox" />货到付款 </td>
  10. </tr>
  11. <tr>
  12. <td>重量设置:</td>
  13. <td>
  14. <select name="first_weight" id="first_weight">
  15. <option label="500克" value="500">500克</option>
  16. <option label="1公斤" value="1000" selected="selected">1公斤</option>
  17. <option label="1.2公斤" value="1200">1.2公斤</option>
  18. <option label="2公斤" value="2000">2公斤</option>
  19. <option label="5公斤" value="5000">5公斤</option>
  20. <option label="10公斤" value="10000">10公斤</option>
  21. <option label="20公斤" value="20000">20公斤</option>
  22. <option label="50公斤" value="50000">50公斤</option>
  23. </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 续重单位 &nbsp;
  24. <select name="second_weight" id="second_weight">
  25. <option label="500克" value="500">500克</option>
  26. <option label="1公斤" value="1000" selected="selected">1公斤</option>
  27. <option label="1.2公斤" value="1200">1.2公斤</option>
  28. <option label="2公斤" value="2000">2公斤</option>
  29. <option label="5公斤" value="5000">5公斤</option>
  30. <option label="10公斤" value="10000">10公斤</option>
  31. <option label="20公斤" value="20000">20公斤</option>
  32. <option label="50公斤" value="50000">50公斤</option>
  33. </select>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td>保价设置:</td>
  38. <td>
  39. <input type="checkbox" id="is_insure" name="is_insure" class="input_checkbox" value="1"/>支持物流保价
  40. </td>
  41. </tr>
  42. <tr id="is_insure_box">
  43. <td>&nbsp;</td>
  44. <td>
  45. 费率 <input type="text" id="insure_fee" name="insure_fee" value="{$vo.insure_fee}" class="input-text" size="3"/>% 最低保价费<input type="text" id="insure_low_price" name="insure_low_price" value="{$vo.insure_low_price}" class="input-text" size="3"/> *该项必填且只允许填写数字金额
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>配送费用:</td>
  50. <td>首重费用 <input type="text" id="first_price" name="first_price" class="input-text" value="{$vo.first_price}" size="3" validate="required:true,minlength:1, maxlength:40"/>元 续重费用<input type="text" name="second_price" id="second_price" class="input-text" value="{$vo.second_price}" size="3" validate="required:true,minlength:1, maxlength:40"/> 元 </td>
  51. </tr>
  52. <tr>
  53. <td>{:L(description)}:</td>
  54. <td><textarea id="description" name="description" rows="4" cols="50">{$vo.description}</textarea>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>{:L(listorder)}:</td>
  59. <td><input type="text" name="listorder" value="{$vo[listorder]|intval}" class="input-text" id="listorder" size="3" /></td>
  60. </tr>
  61. <tr>
  62. <td>状态:</td>
  63. <td> <input name="status" value="0" type="radio" {if !$vo[status]}checked{/if}> {:L(disable)}&nbsp;&nbsp;&nbsp;<input name="status" value="1" type="radio" {if $vo[status]}checked{/if}> {:L(enable)} </td>
  64. </tr>
  65. </table>
  66. <if condition="$vo[id]!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
  67. {if $_GET['isajax']}
  68. <input type="hidden" name="isajax" value="1" />
  69. <input name="dosubmit" type="submit" value="1" class="hidden" id="dosubmit">
  70. {else}
  71. <div class="btn">
  72. <INPUT TYPE="submit" value="{:L('dosubmit')}" class="button buttonBtn" >
  73. <input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
  74. <input TYPE="reset" value="{:L('reset')}" class="button">
  75. </div>
  76. {/if}
  77. <script>
  78. $(document).ready(function() {
  79. $("#is_insure").click( function () {
  80. if($(this).val()== 0){
  81. $("#is_insure_box").hide();
  82. $("#insure_fee").val('');
  83. $("#insure_low_price").val('');
  84. } else {
  85. $("#is_insure_box").show();
  86. }
  87. });
  88. });
  89. </script>
  90. </div>
  91. </form>
  92. </body></html>