message.seller_tpl.edit.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3><?php echo $lang['nc_message_set'];?></h3>
  6. <?php echo $output['top_link'];?>
  7. </div>
  8. </div>
  9. <div class="fixed-empty"></div>
  10. <table class="table tb-type2" id="prompt">
  11. <tbody>
  12. <tr class="space odd">
  13. <th colspan="12"><div class="title">
  14. <h5><?php echo $lang['nc_prompts'];?></h5>
  15. <span class="arrow"></span></div></th>
  16. </tr>
  17. <tr>
  18. <td><ul>
  19. <li>平台可给商家提供站内信、短消息、邮件三种通知方式。平台可以选择开启一种或多种通知方式供商家选择。</li>
  20. <li>开启强制接收后,商家不能取消该方式通知的接收。</li>
  21. <li>短消息、邮件需要商家设置正确号码后才能正常接收。</li>
  22. </ul></td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. <div class="homepage-focus" nctype="sellerTplContent">
  27. <h4>模板名称:<?php echo $output['smtpl_info']['smt_name'];?></h4>
  28. <ul class="tab-menu">
  29. <li class="current">站内信模板</li>
  30. <li>手机短信模板</li>
  31. <li>邮件模板</li>
  32. </ul>
  33. <!-- 站内信 S -->
  34. <form class="tab-content" method="post" name="message_form" >
  35. <input type="hidden" name="form_submit" value="ok" />
  36. <input type="hidden" name="code" value="<?php echo $output['smtpl_info']['smt_code'];?>" />
  37. <input type="hidden" name="type" value="message" />
  38. <table class="table tb-type2">
  39. <tbody>
  40. <tr class="noborder">
  41. <td colspan="2" class="required"><label>站内信开关:</label></td>
  42. </tr>
  43. <tr class="noborder">
  44. <td class="vatop rowform onoff">
  45. <label for="message_switch1" class="cb-enable <?php if($output['smtpl_info']['smt_message_switch'] == 1){?>selected<?php }?>"><span><?php echo $lang['open'];?></span></label>
  46. <label for="message_switch0" class="cb-disable <?php if($output['smtpl_info']['smt_message_switch'] == 0){?>selected<?php }?>"><span><?php echo $lang['close'];?></span></label>
  47. <input id="message_switch1" name="message_switch" <?php if($output['smtpl_info']['smt_message_switch'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  48. <input id="message_switch0" name="message_switch" <?php if($output['smtpl_info']['smt_message_switch'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  49. <td class="vatop tips"></td>
  50. </tr>
  51. <tr>
  52. <td colspan="2" class="required"><label>强制接收:</label></td>
  53. </tr>
  54. <tr class="noborder">
  55. <td class="vatop rowform onoff">
  56. <label for="message_forced1" class="cb-enable <?php if($output['smtpl_info']['smt_message_forced'] == 1){?>selected<?php }?>"><span><?php echo $lang['nc_yes'];?></span></label>
  57. <label for="message_forced0" class="cb-disable <?php if($output['smtpl_info']['smt_message_forced'] == 0){?>selected<?php }?>"><span><?php echo $lang['nc_no'];?></span></label>
  58. <input id="message_forced1" name="message_forced" <?php if($output['smtpl_info']['smt_message_forced'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  59. <input id="message_forced0" name="message_forced" <?php if($output['smtpl_info']['smt_message_forced'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  60. <td class="vatop tips"></td>
  61. </tr>
  62. <tr>
  63. <td colspan="2" class="required"><label>消息内容:</label></td>
  64. </tr>
  65. <tr class="noborder">
  66. <td class="vatop rowform">
  67. <textarea name="message_content" rows="6" class="tarea"><?php echo $output['smtpl_info']['smt_message_content'];?></textarea>
  68. </td>
  69. <td class="vatop tips"></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <div class="margintop">
  74. <a href="JavaScript:void(0);" onclick="document.message_form.submit();" class="btn"><span><?php echo $lang['nc_submit'];?></span></a>
  75. </div>
  76. </form>
  77. <!-- 站内信 E -->
  78. <!-- 短消息 S -->
  79. <form class="tab-content" method="post" name="short_name" style="display:none;">
  80. <input type="hidden" name="form_submit" value="ok" />
  81. <input type="hidden" name="code" value="<?php echo $output['smtpl_info']['smt_code'];?>" />
  82. <input type="hidden" name="type" value="short" />
  83. <table class="table tb-type2">
  84. <tbody>
  85. <tr class="noborder">
  86. <td colspan="2" class="required"><label>手机短信开关:</label></td>
  87. </tr>
  88. <tr class="noborder">
  89. <td class="vatop rowform onoff">
  90. <label for="short_switch1" class="cb-enable <?php if($output['smtpl_info']['smt_short_switch'] == 1){?>selected<?php }?>"><span><?php echo $lang['open'];?></span></label>
  91. <label for="short_switch0" class="cb-disable <?php if($output['smtpl_info']['smt_short_switch'] == 0){?>selected<?php }?>"><span><?php echo $lang['close'];?></span></label>
  92. <input id="short_switch1" name="short_switch" <?php if($output['smtpl_info']['smt_short_switch'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  93. <input id="short_switch0" name="short_switch" <?php if($output['smtpl_info']['smt_short_switch'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  94. <td class="vatop tips"></td>
  95. </tr>
  96. <tr>
  97. <td colspan="2" class="required"><label>强制接收:</label></td>
  98. </tr>
  99. <tr class="noborder">
  100. <td class="vatop rowform onoff">
  101. <label for="short_forced1" class="cb-enable <?php if($output['smtpl_info']['smt_short_forced'] == 1){?>selected<?php }?>"><span><?php echo $lang['nc_yes'];?></span></label>
  102. <label for="short_forced0" class="cb-disable <?php if($output['smtpl_info']['smt_short_forced'] == 0){?>selected<?php }?>"><span><?php echo $lang['nc_no'];?></span></label>
  103. <input id="short_forced1" name="short_forced" <?php if($output['smtpl_info']['smt_short_forced'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  104. <input id="short_forced0" name="short_forced" <?php if($output['smtpl_info']['smt_short_forced'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  105. <td class="vatop tips"></td>
  106. </tr>
  107. <tr>
  108. <td colspan="2" class="required"><label>消息内容:</label></td>
  109. </tr>
  110. <tr class="noborder">
  111. <td class="vatop rowform">
  112. <textarea name="short_content" rows="6" class="tarea"><?php echo $output['smtpl_info']['smt_short_content'];?></textarea>
  113. </td>
  114. <td class="vatop tips"></td>
  115. </tr>
  116. </tbody>
  117. </table>
  118. <div class="margintop">
  119. <a href="JavaScript:void(0);" onclick="document.short_name.submit();" class="btn"><span><?php echo $lang['nc_submit'];?></span></a>
  120. </div>
  121. </form>
  122. <!-- 短消息 E -->
  123. <!-- 邮件 S -->
  124. <form class="tab-content" method="post" name="mail_form" style="display:none;">
  125. <input type="hidden" name="form_submit" value="ok" />
  126. <input type="hidden" name="code" value="<?php echo $output['smtpl_info']['smt_code'];?>" />
  127. <input type="hidden" name="type" value="mail" />
  128. <table class="table tb-type2">
  129. <tbody>
  130. <tr class="noborder">
  131. <td colspan="2" class="required"><label>邮件开关:</label></td>
  132. </tr>
  133. <tr class="noborder">
  134. <td class="vatop rowform onoff">
  135. <label for="mail_switch1" class="cb-enable <?php if($output['smtpl_info']['smt_mail_switch'] == 1){?>selected<?php }?>"><span><?php echo $lang['open'];?></span></label>
  136. <label for="mail_switch0" class="cb-disable <?php if($output['smtpl_info']['smt_mail_switch'] == 0){?>selected<?php }?>"><span><?php echo $lang['close'];?></span></label>
  137. <input id="mail_switch1" name="mail_switch" <?php if($output['smtpl_info']['smt_mail_switch'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  138. <input id="mail_switch0" name="mail_switch" <?php if($output['smtpl_info']['smt_mail_switch'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  139. <td class="vatop tips"></td>
  140. </tr>
  141. <tr>
  142. <td colspan="2" class="required"><label>强制接收:</label></td>
  143. </tr>
  144. <tr class="noborder">
  145. <td class="vatop rowform onoff">
  146. <label for="mail_forced1" class="cb-enable <?php if($output['smtpl_info']['smt_mail_forced'] == 1){?>selected<?php }?>"><span><?php echo $lang['nc_yes'];?></span></label>
  147. <label for="mail_forced0" class="cb-disable <?php if($output['smtpl_info']['smt_mail_forced'] == 0){?>selected<?php }?>"><span><?php echo $lang['nc_no'];?></span></label>
  148. <input id="mail_forced1" name="mail_forced" <?php if($output['smtpl_info']['smt_mail_forced'] == 1){?>checked="checked"<?php }?> value="1" type="radio">
  149. <input id="mail_forced0" name="mail_forced" <?php if($output['smtpl_info']['smt_mail_forced'] == 0){?>checked="checked"<?php }?> value="0" type="radio"></td>
  150. <td class="vatop tips"></td>
  151. </tr>
  152. <tr>
  153. <td colspan="2" class="required"><label>邮件标题:</label></td>
  154. </tr>
  155. <tr class="noborder">
  156. <td class="vatop rowform">
  157. <textarea name="mail_subject" rows="6" class="tarea"><?php echo $output['smtpl_info']['smt_mail_subject'];?></textarea>
  158. </td>
  159. <td class="vatop tips"></td>
  160. </tr>
  161. <tr>
  162. <td colspan="2" class="required"><label>邮件内容:</label></td>
  163. </tr>
  164. <tr class="noborder">
  165. <td colspan="2"><?php showEditor('mail_content', $output['smtpl_info']['smt_mail_content']);?></td>
  166. </tr>
  167. </tbody>
  168. </table>
  169. <div class="margintop">
  170. <a href="JavaScript:void(0);" onclick="document.mail_form.submit();" class="btn"><span><?php echo $lang['nc_submit'];?></span></a>
  171. </div>
  172. </form>
  173. <!-- 邮件 E -->
  174. </div>
  175. </div>
  176. <script>
  177. $(function(){
  178. $('div[nctype="sellerTplContent"] > ul').find('li').click(function(){
  179. $(this).addClass('current').siblings().removeClass('current');
  180. var _index = $(this).index();
  181. var _form = $('div[nctype="sellerTplContent"]').find('form');
  182. _form.hide();
  183. _form.eq(_index).show();
  184. });
  185. });
  186. </script>