ee2fdb838a2476da77b31dedfd02cb00be52a67f.file.index.html.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php /* Smarty version Smarty-3.1.11, created on 2020-05-30 08:24:19
  2. compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/send_email2_admin/index.html" */ ?>
  3. <?php /*%%SmartyHeaderCode:3284238645948e0d5423ba5-96575574%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'ee2fdb838a2476da77b31dedfd02cb00be52a67f' =>
  8. array (
  9. 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/send_email2_admin/index.html',
  10. 1 => 1590798256,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '3284238645948e0d5423ba5-96575574',
  15. 'function' =>
  16. array (
  17. ),
  18. 'version' => 'Smarty-3.1.11',
  19. 'unifunc' => 'content_5948e0d5479159_15061882',
  20. 'variables' =>
  21. array (
  22. 'email_counts' => 0,
  23. 'info' => 0,
  24. 'group_list' => 0,
  25. 'item' => 0,
  26. 'template_list' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. ),false); /*/%%SmartyHeaderCode%%*/?>
  30. <?php if ($_valid && !is_callable('content_5948e0d5479159_15061882')) {function content_5948e0d5479159_15061882($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  31. <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  32. <!-- Right side column. Contains the navbar and content of the page -->
  33. <aside class="right-side">
  34. <!-- Content Header (Page header) -->
  35. <section class="content-header">
  36. <h1>
  37. 邮件发送-模板发送
  38. <!--<small>待发送邮件 <span style="color:red;"><?php echo $_smarty_tpl->tpl_vars['email_counts']->value;?>
  39. </span> 封</small>-->
  40. </h1>
  41. <ol class="breadcrumb">
  42. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  43. <li class="active">Blank page</li>
  44. </ol>
  45. </section>
  46. <!-- Main content -->
  47. <section class="content">
  48. <div class="span9">
  49. <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
  50. <div class="alert alert-success nodisplay"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
  51. </div>
  52. <?php }?>
  53. <div id='main' class="form-actions">
  54. <form method="post" action="" id="form1">
  55. <table class="table table-bordered" style="margin-top:15px;">
  56. <tr>
  57. <td>收件人</td>
  58. <td>
  59. <select name="group_name" id="group_name">
  60. <option value="0">请选择</option>
  61. <option value="all">所有客户</option>
  62. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  63. $_from = $_smarty_tpl->tpl_vars['group_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  64. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  65. $_smarty_tpl->tpl_vars['item']->_loop = true;
  66. ?>
  67. <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  68. "><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  69. </option>
  70. <?php } ?>
  71. </select>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td>请选择邮件模板</td>
  76. <td>
  77. <select name="template_id" id="template_id">
  78. <option value="0">请选择</option>
  79. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  80. $_from = $_smarty_tpl->tpl_vars['template_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  81. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  82. $_smarty_tpl->tpl_vars['item']->_loop = true;
  83. ?>
  84. <option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  85. "><?php echo $_smarty_tpl->tpl_vars['item']->value['msg_title'];?>
  86. </option>
  87. <?php } ?>
  88. </select>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td>&nbsp;</td>
  93. <td >
  94. <input type="button" onclick="to_submit();" value="提交" class="btn btn-info" style="width:120px;" />
  95. </td>
  96. </tr>
  97. </table>
  98. </form>
  99. </div>
  100. </div>
  101. </section><!-- /.content -->
  102. </aside><!-- /.right-side -->
  103. </div><!-- ./wrapper -->
  104. <style>
  105. select{height:30px;}
  106. .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
  107. </style>
  108. <script>
  109. $('#treeview1').addClass('active');
  110. $(".send_email2_left").addClass('active');
  111. function to_submit(){
  112. var template_id = $('#template_id').val();
  113. var group_name = $('#group_name').val();
  114. if(template_id==0 || group_name==0){
  115. alert("请选择模板和客户");
  116. }else{
  117. $('#form1').submit();
  118. }
  119. }
  120. </script>
  121. </body>
  122. </html>
  123. <?php }} ?>