member_tpl_edit.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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}:{$mmtpl_info.membermt_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="{$mmtpl_info.membermt_code}" />
  33. <input type="hidden" name="type" value="message" />
  34. <dl>
  35. <dt>{$Think.lang.mt_message_switch}</dt>
  36. <dd>
  37. <div class="onoff">
  38. <label for="message_switch1" class="cb-enable {if condition="$mmtpl_info.membermt_message_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  39. <label for="message_switch0" class="cb-disable {if condition="$mmtpl_info.membermt_message_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  40. <input id="message_switch1" name="message_switch" value="1" type="radio" {if condition="$mmtpl_info.membermt_message_switch eq 1"} checked="checked"{/if}>
  41. <input id="message_switch0" name="message_switch" value="0" type="radio" {if condition="$mmtpl_info.membermt_message_switch eq 0"} checked="checked"{/if}>
  42. </div>
  43. </dd>
  44. </dl>
  45. <dl>
  46. <dt>{$Think.lang.message_content}</dt>
  47. <dd>
  48. <textarea name="message_content" rows="6" class="tarea">{:htmlspecialchars_decode($mmtpl_info.membermt_message_content)}</textarea>
  49. </dd>
  50. </dl>
  51. <dl>
  52. <dt></dt>
  53. <dd>
  54. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  55. </dd>
  56. </dl>
  57. </form>
  58. <form class="tab-content" method="post" name="short_form" style="display:none;">
  59. <input type="hidden" name="code" value="{$mmtpl_info.membermt_code}" />
  60. <input type="hidden" name="type" value="short" />
  61. <dl>
  62. <dt>{$Think.lang.mt_short_switch}</dt>
  63. <dd>
  64. <div class="onoff">
  65. <label for="short_switch1" class="cb-enable {if condition="$mmtpl_info.membermt_short_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  66. <label for="short_switch0" class="cb-disable {if condition="$mmtpl_info.membermt_short_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  67. <input id="short_switch1" name="short_switch" value="1" type="radio" {if condition="$mmtpl_info.membermt_short_switch eq 1"} checked="checked"{/if}>
  68. <input id="short_switch0" name="short_switch" value="0" type="radio" {if condition="$mmtpl_info.membermt_short_switch eq 0"} checked="checked"{/if}>
  69. </div>
  70. </dd>
  71. </dl>
  72. <dl>
  73. <dt>{$Think.lang.message_content}</dt>
  74. <dd>
  75. <textarea name="short_content" rows="6" class="tarea">{$mmtpl_info.membermt_short_content}</textarea>
  76. </dd>
  77. </dl>
  78. <dl>
  79. <dt></dt>
  80. <dd>
  81. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  82. </dd>
  83. </dl>
  84. </form>
  85. <form class="tab-content" method="post" name="mail_form" style="display:none;">
  86. <input type="hidden" name="code" value="{$mmtpl_info.membermt_code}" />
  87. <input type="hidden" name="type" value="mail" />
  88. <dl>
  89. <dt>{$Think.lang.mt_mail_switch}</dt>
  90. <dd>
  91. <div class="onoff">
  92. <label for="mail_switch1" class="cb-enable {if condition="$mmtpl_info.membermt_mail_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  93. <label for="mail_switch0" class="cb-disable {if condition="$mmtpl_info.membermt_mail_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  94. <input id="mail_switch1" name="mail_switch" value="1" type="radio" {if condition="$mmtpl_info.membermt_mail_switch eq 1"} checked="checked"{/if}>
  95. <input id="mail_switch0" name="mail_switch" value="0" type="radio" {if condition="$mmtpl_info.membermt_mail_switch eq 0"} checked="checked"{/if}>
  96. </div>
  97. </dd>
  98. </dl>
  99. <dl>
  100. <dt>{$Think.lang.mail_subject}</dt>
  101. <dd>
  102. <textarea name="mail_subject" rows="6" class="tarea">{$mmtpl_info.membermt_mail_subject}</textarea>
  103. </dd>
  104. </dl>
  105. <dl>
  106. <dt>{$Think.lang.mail_content}</dt>
  107. <dd>
  108. <textarea name="mail_content" rows="6" class="tarea">{:htmlspecialchars_decode($mmtpl_info.membermt_mail_content)}</textarea>
  109. </dd>
  110. </dl>
  111. <dl>
  112. <dt></dt>
  113. <dd>
  114. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  115. </dd>
  116. </dl>
  117. </form>
  118. <form class="tab-content" method="post" name="weixin_form" style="display:none;">
  119. <input type="hidden" name="code" value="{$mmtpl_info.membermt_code}" />
  120. <input type="hidden" name="type" value="weixin" />
  121. <table class="ds-default-table">
  122. <tbody>
  123. <tr class="noborder">
  124. <td class="required w120">{$Think.lang.weixin_switch}</td>
  125. <td class="vatop rowform">
  126. <div class="onoff">
  127. <label for="membermt_weixin_switch1" class="cb-enable {if condition="$mmtpl_info.membermt_weixin_switch eq 1"}selected{/if}">{$Think.lang.ds_yes}</label>
  128. <label for="membermt_weixin_switch0" class="cb-disable {if condition="$mmtpl_info.membermt_weixin_switch eq 0"}selected{/if}">{$Think.lang.ds_no}</label>
  129. <input id="membermt_weixin_switch1" name="weixin_switch" value="1" type="radio" {if condition="$mmtpl_info.membermt_weixin_switch eq 1"} checked="checked"{/if}>
  130. <input id="membermt_weixin_switch0" name="weixin_switch" value="0" type="radio" {if condition="$mmtpl_info.membermt_weixin_switch eq 0"} checked="checked"{/if}>
  131. </div>
  132. </td>
  133. <td class="vatop tips"></td>
  134. </tr>
  135. <tr class="noborder">
  136. <td class="required w120">{$Think.lang.weixin_code}</td>
  137. <td class="vatop rowform"><input name="weixin_code" value="{$mmtpl_info.membermt_weixin_code}" type="text" class="txt" /></td>
  138. <td class="vatop tips">{$Think.lang.membermt_weixin_code_text[$mmtpl_info.membermt_code]}</td>
  139. </tr>
  140. </tbody>
  141. <tfoot>
  142. <tr class="tfoot">
  143. <td></td>
  144. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  145. </tr>
  146. </tfoot>
  147. </table>
  148. </form>
  149. </div>
  150. </div>
  151. <script>
  152. $(function(){
  153. $('div[dstype="sellerTplContent"] > ul').find('li').click(function(){
  154. $(this).addClass('current').siblings().removeClass('current');
  155. var _index = $(this).index();
  156. var _form = $('div[dstype="sellerTplContent"]').find('form');
  157. _form.hide();
  158. _form.eq(_index).show();
  159. });
  160. });
  161. </script>