seller_tpl_edit.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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_message}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="explanation" id="explanation">
  13. <div class="title" id="checkZoom">
  14. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  15. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  16. </div>
  17. <ul>
  18. <li>{$Think.lang.message_help1}</li>
  19. <li>{$Think.lang.message_help2}</li>
  20. <li>{$Think.lang.message_help3}</li>
  21. </ul>
  22. </div>
  23. <div class="ncap-form-default homepage-focus" dstype="sellerTplContent">
  24. <h4>{$Think.lang.message_mt_name}:{$smtpl_info.storemt_name}</h4>
  25. <ul class="tab-menu">
  26. <li class="current">{$Think.lang.mt_message_switch_tpl}</li>
  27. <li>{$Think.lang.mt_short_switch_tpl}</li>
  28. <li>{$Think.lang.mt_mail_switch_tpl}</li>
  29. <li>{$Think.lang.mt_weixin_switch_tpl}</li>
  30. </ul>
  31. <form class="tab-content" method="post" name="message_form" >
  32. <input type="hidden" name="code" value="{$smtpl_info.storemt_code}" />
  33. <input type="hidden" name="type" value="message" />
  34. <table class="ds-default-table">
  35. <tbody>
  36. <tr class="noborder">
  37. <td class="required w120">{$Think.lang.mt_message_switch}</td>
  38. <td class="vatop rowform">
  39. <div class="onoff">
  40. <label for="smt_message_switch1" class="cb-enable {if condition="$smtpl_info.storemt_message_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  41. <label for="smt_message_switch0" class="cb-disable {if condition="$smtpl_info.storemt_message_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  42. <input id="smt_message_switch1" name="message_switch" value="1" type="radio" {if condition="$smtpl_info.storemt_message_switch eq 1"} checked="checked"{/if}>
  43. <input id="smt_message_switch0" name="message_switch" value="0" type="radio" {if condition="$smtpl_info.storemt_message_switch eq 0"} checked="checked"{/if}>
  44. </div>
  45. </td>
  46. </tr>
  47. <tr class="noborder">
  48. <td class="required w120">{$Think.lang.mt_mail_forced}</td>
  49. <td class="vatop rowform">
  50. <div class="onoff">
  51. <label for="storemt_message_forced1" class="cb-enable {if condition="$smtpl_info.storemt_message_forced eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  52. <label for="storemt_message_forced0" class="cb-disable {if condition="$smtpl_info.storemt_message_forced eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  53. <input id="storemt_message_forced1" name="message_forced" value="1" type="radio" {if condition="$smtpl_info.storemt_message_forced eq 1"} checked="checked"{/if}>
  54. <input id="storemt_message_forced0" name="message_forced" value="0" type="radio" {if condition="$smtpl_info.storemt_message_forced eq 0"} checked="checked"{/if}>
  55. </div>
  56. </td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="required w120">{$Think.lang.message_content}</td>
  60. <td class="vatop rowform"><textarea name="message_content" rows="6" class="tarea">{:htmlspecialchars_decode($smtpl_info.storemt_message_content)}</textarea></td>
  61. <td class="vatop tips"></td>
  62. </tr>
  63. </tbody>
  64. <tfoot>
  65. <tr class="tfoot">
  66. <td></td>
  67. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  68. </tr>
  69. </tfoot>
  70. </table>
  71. </form>
  72. <form class="tab-content" method="post" name="short_form" style="display:none;">
  73. <input type="hidden" name="code" value="{$smtpl_info.storemt_code}" />
  74. <input type="hidden" name="type" value="short" />
  75. <table class="ds-default-table">
  76. <tbody>
  77. <tr class="noborder">
  78. <td class="required w120">{$Think.lang.mt_short_switch}</td>
  79. <td class="vatop rowform">
  80. <div class="onoff">
  81. <label for="storemt_short_switch1" class="cb-enable {if condition="$smtpl_info.storemt_short_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  82. <label for="storemt_short_switch0" class="cb-disable {if condition="$smtpl_info.storemt_short_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  83. <input id="storemt_short_switch1" name="short_switch" value="1" type="radio" {if condition="$smtpl_info.storemt_short_switch eq 1"} checked="checked"{/if}>
  84. <input id="storemt_short_switch0" name="short_switch" value="0" type="radio" {if condition="$smtpl_info.storemt_short_switch eq 0"} checked="checked"{/if}>
  85. </div>
  86. </td>
  87. <td class="vatop tips"></td>
  88. </tr>
  89. <tr class="noborder">
  90. <td class="required w120">{$Think.lang.mt_mail_forced}</td>
  91. <td class="vatop rowform">
  92. <div class="onoff">
  93. <label for="smt_short_forced1" class="cb-enable {if condition="$smtpl_info.smt_short_forced eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  94. <label for="smt_short_forced0" class="cb-disable {if condition="$smtpl_info.smt_short_forced eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  95. <input id="smt_short_forced1" name="short_forced" value="1" type="radio" {if condition="$smtpl_info.smt_short_forced eq 1"} checked="checked"{/if}>
  96. <input id="smt_short_forced0" name="short_forced" value="0" type="radio" {if condition="$smtpl_info.smt_short_forced eq 0"} checked="checked"{/if}>
  97. </div>
  98. </td>
  99. <td class="vatop tips"></td>
  100. </tr>
  101. <tr class="noborder">
  102. <td class="required w120">{$Think.lang.message_content}</td>
  103. <td class="vatop rowform"><textarea name="short_content" rows="6" class="tarea">{$smtpl_info.storemt_short_content}</textarea></td>
  104. <td class="vatop tips"></td>
  105. </tr>
  106. </tbody>
  107. <tfoot>
  108. <tr class="tfoot">
  109. <td></td>
  110. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  111. </tr>
  112. </tfoot>
  113. </table>
  114. </form>
  115. <form class="tab-content" method="post" name="mail_form" style="display:none;">
  116. <input type="hidden" name="code" value="{$smtpl_info.storemt_code}" />
  117. <input type="hidden" name="type" value="mail" />
  118. <table class="ds-default-table">
  119. <tbody>
  120. <tr class="noborder">
  121. <td class="required w120">{$Think.lang.mt_mail_switch}</td>
  122. <td class="vatop rowform">
  123. <div class="onoff">
  124. <label for="storemt_mail_switch1" class="cb-enable {if condition="$smtpl_info.storemt_mail_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  125. <label for="storemt_mail_switch0" class="cb-disable {if condition="$smtpl_info.storemt_mail_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  126. <input id="storemt_mail_switch1" name="mail_switch" value="1" type="radio" {if condition="$smtpl_info.storemt_mail_switch eq 1"} checked="checked"{/if}>
  127. <input id="storemt_mail_switch0" name="mail_switch" value="0" type="radio" {if condition="$smtpl_info.storemt_mail_switch eq 0"} checked="checked"{/if}>
  128. </div>
  129. </td>
  130. <td class="vatop tips"></td>
  131. </tr>
  132. <tr class="noborder">
  133. <td class="required w120">{$Think.lang.mt_mail_forced}</td>
  134. <td class="vatop rowform">
  135. <div class="onoff">
  136. <label for="storemt_mail_forced1" class="cb-enable {if condition="$smtpl_info.storemt_mail_forced eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  137. <label for="storemt_mail_forced0" class="cb-disable {if condition="$smtpl_info.storemt_mail_forced eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  138. <input id="storemt_mail_forced1" name="mail_forced" value="1" type="radio" {if condition="$smtpl_info.storemt_mail_forced eq 1"} checked="checked"{/if}>
  139. <input id="storemt_mail_forced0" name="mail_forced" value="0" type="radio" {if condition="$smtpl_info.storemt_mail_forced eq 0"} checked="checked"{/if}>
  140. </div>
  141. </td>
  142. <td class="vatop tips"></td>
  143. </tr>
  144. <tr class="noborder">
  145. <td class="required w120">{$Think.lang.mail_subject}</td>
  146. <td class="vatop rowform"><textarea name="mail_subject" rows="6" class="tarea">{$smtpl_info.storemt_mail_subject}</textarea></td>
  147. <td class="vatop tips"></td>
  148. </tr>
  149. <tr class="noborder">
  150. <td class="required w120">{$Think.lang.mail_content}</td>
  151. <td class="vatop rowform"><textarea name="mail_content" rows="6" class="tarea">{:htmlspecialchars_decode($smtpl_info.storemt_mail_content)}</textarea></td>
  152. <td class="vatop tips"></td>
  153. </tr>
  154. </tbody>
  155. <tfoot>
  156. <tr class="tfoot">
  157. <td></td>
  158. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  159. </tr>
  160. </tfoot>
  161. </table>
  162. </form>
  163. <form class="tab-content" method="post" name="weixin_form" style="display:none;">
  164. <input type="hidden" name="code" value="{$smtpl_info.storemt_code}" />
  165. <input type="hidden" name="type" value="weixin" />
  166. <table class="ds-default-table">
  167. <tbody>
  168. <tr class="noborder">
  169. <td class="required w120">{$Think.lang.weixin_switch}</td>
  170. <td class="vatop rowform">
  171. <div class="onoff">
  172. <label for="storemt_weixin_switch1" class="cb-enable {if condition="$smtpl_info.storemt_weixin_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  173. <label for="storemt_weixin_switch0" class="cb-disable {if condition="$smtpl_info.storemt_weixin_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  174. <input id="storemt_weixin_switch1" name="weixin_switch" value="1" type="radio" {if condition="$smtpl_info.storemt_weixin_switch eq 1"} checked="checked"{/if}>
  175. <input id="storemt_weixin_switch0" name="weixin_switch" value="0" type="radio" {if condition="$smtpl_info.storemt_weixin_switch eq 0"} checked="checked"{/if}>
  176. </div>
  177. </td>
  178. <td class="vatop tips"></td>
  179. </tr>
  180. <tr class="noborder">
  181. <td class="required w120">{$Think.lang.mt_mail_forced}</td>
  182. <td class="vatop rowform">
  183. <div class="onoff">
  184. <label for="storemt_weixin_forced1" class="cb-enable {if condition="$smtpl_info.storemt_weixin_forced eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  185. <label for="storemt_weixin_forced0" class="cb-disable {if condition="$smtpl_info.storemt_weixin_forced eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  186. <input id="storemt_weixin_forced1" name="weixin_forced" value="1" type="radio" {if condition="$smtpl_info.storemt_weixin_forced eq 1"} checked="checked"{/if}>
  187. <input id="storemt_weixin_forced0" name="weixin_forced" value="0" type="radio" {if condition="$smtpl_info.storemt_weixin_forced eq 0"} checked="checked"{/if}>
  188. </div>
  189. </td>
  190. <td class="vatop tips"></td>
  191. </tr>
  192. <tr class="noborder">
  193. <td class="required w120">{$Think.lang.weixin_code}</td>
  194. <td class="vatop rowform"><input name="weixin_code" value="{$smtpl_info.storemt_weixin_code}" type="text" class="txt" /></td>
  195. <td class="vatop tips">{$Think.lang.storemt_weixin_code_text[$smtpl_info.storemt_code]}</td>
  196. </tr>
  197. </tbody>
  198. <tfoot>
  199. <tr class="tfoot">
  200. <td></td>
  201. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  202. </tr>
  203. </tfoot>
  204. </table>
  205. </form>
  206. </div>
  207. </div>
  208. <script>
  209. $(function(){
  210. $('div[dstype="sellerTplContent"] > ul').find('li').click(function(){
  211. $(this).addClass('current').siblings().removeClass('current');
  212. var _index = $(this).index();
  213. var _form = $('div[dstype="sellerTplContent"]').find('form');
  214. _form.hide();
  215. _form.eq(_index).show();
  216. });
  217. });
  218. </script>