index.lijg.20200529.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <{include file='../public/admin_header.html'}>
  2. <{include file='../public/admin_navi.html'}>
  3. <!-- Right side column. Contains the navbar and content of the page -->
  4. <aside class="right-side">
  5. <!-- Content Header (Page header) -->
  6. <section class="content-header">
  7. <h1>
  8. 邮件发送-模板发送
  9. <small>Control panel</small>
  10. </h1>
  11. <ol class="breadcrumb">
  12. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  13. <li class="active">Blank page</li>
  14. </ol>
  15. </section>
  16. <!-- Main content -->
  17. <section class="content">
  18. <div class="span9">
  19. <{if $info}>
  20. <div class="alert alert-success nodisplay"><{$info}></div>
  21. <{/if}>
  22. <div id='main' class="form-actions">
  23. <form method="post" action="" id="form1">
  24. <table class="table table-bordered" style="margin-top:15px;">
  25. <tr>
  26. <td>收件人</td>
  27. <td>
  28. <select name="group_name" id="group_name">
  29. <option value="0">请选择</option>
  30. <option value="all">所有客户</option>
  31. <{foreach from=$group_list item=item}>
  32. <option value="<{$item.name}>"><{$item.name}></option>
  33. <{/foreach}>
  34. </select>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td>请选择邮件模板</td>
  39. <td>
  40. <select name="template_id" id="template_id">
  41. <option value="0">请选择</option>
  42. <{foreach from=$template_list item=item}>
  43. <option value="<{$item.id}>"><{$item.msg_title}></option>
  44. <{/foreach}>
  45. </select>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>&nbsp;</td>
  50. <td >
  51. <input type="button" onclick="to_submit();" value="提交" class="btn btn-info" style="width:120px;" />
  52. </td>
  53. </tr>
  54. </table>
  55. </form>
  56. </div>
  57. </div>
  58. </section><!-- /.content -->
  59. </aside><!-- /.right-side -->
  60. </div><!-- ./wrapper -->
  61. <style>
  62. select{height:30px;}
  63. .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
  64. </style>
  65. <script>
  66. $('#treeview1').addClass('active');
  67. $(".send_email2_left").addClass('active');
  68. function to_submit(){
  69. var template_id = $('#template_id').val();
  70. var group_name = $('#group_name').val();
  71. if(template_id==0 || group_name==0){
  72. alert("请选择模板和客户");
  73. }else{
  74. $('#form1').submit();
  75. }
  76. }
  77. </script>
  78. </body>
  79. </html>