index.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_inviter_set}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form id="inviter_form" method="post" enctype="multipart/form-data" name="form1" action="">
  13. <table class="ds-default-table">
  14. <tbody>
  15. <tr class="noborder">
  16. <td class="required w120">{$Think.lang.inviter_open}</td>
  17. <td class="vatop">
  18. <div class="onoff">
  19. <label for="inviter_open1" class="cb-enable {if condition="$list_setting.inviter_open eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  20. <label for="inviter_open0" class="cb-disable {if condition="$list_setting.inviter_open eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  21. <input id="inviter_open1" name="inviter_open" value="1" type="radio" {if condition="$list_setting.inviter_open eq 1"} checked="checked"{/if}>
  22. <input id="inviter_open0" name="inviter_open" value="0" type="radio" {if condition="$list_setting.inviter_open eq 0"} checked="checked"{/if}>
  23. </div>
  24. </td>
  25. <td class="vatop tips"></td>
  26. </tr>
  27. <tr class="noborder">
  28. <td class="required"><label> {$Think.lang.inviter_level}:</label></td>
  29. <td class="vatop">
  30. <label>
  31. <input type="radio" {if condition="$list_setting.inviter_level eq 1"} checked="checked"{/if} value="1" name="inviter_level">{$Think.lang.inviter_level_1}
  32. </label>
  33. <label>
  34. <input type="radio" {if condition="$list_setting.inviter_level eq 2"} checked="checked"{/if} value="2" name="inviter_level">{$Think.lang.inviter_level_2}
  35. </label>
  36. <label>
  37. <input type="radio" {if condition="$list_setting.inviter_level eq 3"} checked="checked"{/if} value="3" name="inviter_level">{$Think.lang.inviter_level_3}
  38. </label>
  39. </td>
  40. <td class="vatop tips"></td>
  41. </tr>
  42. <tr class="noborder">
  43. <td class="required w120">{$Think.lang.inviter_show}</td>
  44. <td class="vatop">
  45. <div class="onoff">
  46. <label for="inviter_show1" class="cb-enable {if condition="$list_setting.inviter_show eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  47. <label for="inviter_show0" class="cb-disable {if condition="$list_setting.inviter_show eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  48. <input id="inviter_show1" name="inviter_show" value="1" type="radio" {if condition="$list_setting.inviter_show eq 1"} checked="checked"{/if}>
  49. <input id="inviter_show0" name="inviter_show" value="0" type="radio" {if condition="$list_setting.inviter_show eq 0"} checked="checked"{/if}>
  50. </div>
  51. </td>
  52. <td class="vatop tips">{$Think.lang.inviter_show_notice}</td>
  53. </tr>
  54. <tr class="noborder">
  55. <td class="required w120">{$Think.lang.inviter_return}</td>
  56. <td class="vatop">
  57. <div class="onoff">
  58. <label for="inviter_return1" class="cb-enable {if condition="$list_setting.inviter_return eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  59. <label for="inviter_return0" class="cb-disable {if condition="$list_setting.inviter_return eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  60. <input id="inviter_return1" name="inviter_return" value="1" type="radio" {if condition="$list_setting.inviter_return eq 1"} checked="checked"{/if}>
  61. <input id="inviter_return0" name="inviter_return" value="0" type="radio" {if condition="$list_setting.inviter_return eq 0"} checked="checked"{/if}>
  62. </div>
  63. </td>
  64. <td class="vatop tips">{$Think.lang.inviter_return_notice}</td>
  65. </tr>
  66. <tr class="noborder">
  67. <td class="required w120">{$Think.lang.inviter_view}</td>
  68. <td class="vatop">
  69. <div class="onoff">
  70. <label for="inviter_view1" class="cb-enable {if condition="$list_setting.inviter_view eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  71. <label for="inviter_view0" class="cb-disable {if condition="$list_setting.inviter_view eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  72. <input id="inviter_view1" name="inviter_view" value="1" type="radio" {if condition="$list_setting.inviter_view eq 1"} checked="checked"{/if}>
  73. <input id="inviter_view0" name="inviter_view" value="0" type="radio" {if condition="$list_setting.inviter_view eq 0"} checked="checked"{/if}>
  74. </div>
  75. </td>
  76. <td class="vatop tips">{$Think.lang.inviter_view_notice}</td>
  77. </tr>
  78. <tr class="noborder">
  79. <td class="required"><label> {$Think.lang.inviter_condition}:</label></td>
  80. <td class="vatop">
  81. <label>
  82. <input type="radio" {if condition="$list_setting.inviter_condition eq 0"} checked="checked"{/if} value="0" name="inviter_condition">{$Think.lang.inviter_condition_0}
  83. </label>
  84. <label>
  85. <input type="radio" {if condition="$list_setting.inviter_condition eq 1"} checked="checked"{/if} value="1" name="inviter_condition">{$Think.lang.inviter_condition_1}<input type='text' name='inviter_condition_amount' id='inviter_condition_amount' value="{$list_setting.inviter_condition_amount}" class='input-txt valid' />
  86. </label>
  87. </td>
  88. <td class="vatop tips">{$Think.lang.ds_yuan}</td>
  89. </tr>
  90. <tr class="noborder">
  91. <td class="required w120">{$Think.lang.inviter_back}</td>
  92. <td class="vatop">
  93. {notempty name="$list_setting.inviter_back"}
  94. <span class="type-file-show"><img class="show_image" src="{$Think.ADMIN_SITE_ROOT}/images/preview.png">
  95. <div class="type-file-preview"><img src="{:ds_get_pic(ATTACH_COMMON,$list_setting.inviter_back)}?{$Think.TIMESTAMP}"></div>
  96. </span>
  97. {/notempty}
  98. <span class="type-file-box"><input type='text' name='textfield' id='textfield1' class='type-file-text' />
  99. <input type='button' name='button' id='button1' value='上传' class='type-file-button' />
  100. <input name="inviter_back" type="file" class="type-file-file" id="inviter_back" size="30" hidefocus="true" ds_type="change_inviter_back">
  101. </span>
  102. </td>
  103. <td class="vatop tips"><p class="notic">{$Think.lang.inviter_back_tips}</p></td>
  104. </tr>
  105. <tr class="noborder">
  106. <td class="required w120">{$Think.lang.inviter_ratio_1}</td>
  107. <td class="vatop">
  108. <input id="inviter_ratio_1" name="inviter_ratio_1" value="{$list_setting.inviter_ratio_1}" class="input-txt" type="text">%
  109. <span class="err"></span>
  110. </td>
  111. <td class="vatop tips">{$Think.lang.inviter_ratio_1_notice}</td>
  112. </tr>
  113. <tr class="noborder">
  114. <td class="required w120">{$Think.lang.inviter_ratio_2}</td>
  115. <td class="vatop">
  116. <input id="inviter_ratio_2" name="inviter_ratio_2" value="{$list_setting.inviter_ratio_2}" class="input-txt" type="text">%
  117. </td>
  118. <td class="vatop tips">{$Think.lang.inviter_ratio_2_notice}</td>
  119. </tr>
  120. <tr class="noborder">
  121. <td class="required w120">{$Think.lang.inviter_ratio_3}</td>
  122. <td class="vatop">
  123. <input id="inviter_ratio_3" name="inviter_ratio_3" value="{$list_setting.inviter_ratio_3}" class="input-txt" type="text">%
  124. </td>
  125. <td class="vatop tips">{$Think.lang.inviter_ratio_3_notice}</td>
  126. </tr>
  127. </tbody>
  128. <tfoot>
  129. <tr class="tfoot">
  130. <td></td>
  131. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  132. </tr>
  133. </tfoot>
  134. </table>
  135. </form>
  136. </div>
  137. <script type="text/javascript">
  138. $(function() {
  139. $('#inviter_form').validate({
  140. errorPlacement: function(error, element) {
  141. error.appendTo(element.parent().parent().find('td:last'));
  142. },
  143. rules: {
  144. inviter_ratio_1 : {
  145. number:true,
  146. min:0,
  147. max:100
  148. },
  149. inviter_ratio_2 :{
  150. number:true,
  151. min:0,
  152. max:100
  153. },
  154. inviter_ratio_3 :{
  155. number:true,
  156. min:0,
  157. max:100
  158. }
  159. },
  160. messages: {
  161. inviter_ratio_1 : {
  162. number : '{$Think.lang.ds_sort_number}',
  163. min :'{$Think.lang.ds_min_error}0',
  164. max :'{$Think.lang.ds_max_error}100'
  165. },
  166. inviter_ratio_2 :{
  167. number : '{$Think.lang.ds_sort_number}',
  168. min :'{$Think.lang.ds_min_error}0',
  169. max :'{$Think.lang.ds_max_error}100'
  170. },
  171. inviter_ratio_3 :{
  172. number: '{$Think.lang.ds_sort_number}',
  173. min :'{$Think.lang.ds_min_error}0',
  174. max :'{$Think.lang.ds_max_error}100'
  175. }
  176. }
  177. });
  178. });
  179. </script>