123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <{include file='../public/admin_header.html'}>
- <{include file='../public/admin_navi.html'}>
- <!-- Right side column. Contains the navbar and content of the page -->
- <aside class="right-side">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <h1>
- 邮件发送-模板发送
- <small>Control panel</small>
- </h1>
- <ol class="breadcrumb">
- <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
- <li class="active">Blank page</li>
- </ol>
- </section>
- <!-- Main content -->
- <section class="content">
- <div class="span9">
- <{if $info}>
- <div class="alert alert-success nodisplay"><{$info}></div>
- <{/if}>
- <div id='main' class="form-actions">
- <form method="post" action="" id="form1">
- <table class="table table-bordered" style="margin-top:15px;">
- <tr>
- <td>收件人</td>
- <td>
- <select name="group_name" id="group_name">
- <option value="0">请选择</option>
- <option value="all">所有客户</option>
- <{foreach from=$group_list item=item}>
- <option value="<{$item.name}>"><{$item.name}></option>
- <{/foreach}>
- </select>
- </td>
- </tr>
- <tr>
- <td>请选择邮件模板</td>
- <td>
- <select name="template_id" id="template_id">
- <option value="0">请选择</option>
- <{foreach from=$template_list item=item}>
- <option value="<{$item.id}>"><{$item.msg_title}></option>
- <{/foreach}>
- </select>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td >
- <input type="button" onclick="to_submit();" value="提交" class="btn btn-info" style="width:120px;" />
- </td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- </section><!-- /.content -->
- </aside><!-- /.right-side -->
- </div><!-- ./wrapper -->
- <style>
- select{height:30px;}
- .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
- </style>
- <script>
- $('#treeview1').addClass('active');
- $(".send_email2_left").addClass('active');
- function to_submit(){
- var template_id = $('#template_id').val();
- var group_name = $('#group_name').val();
- if(template_id==0 || group_name==0){
- alert("请选择模板和客户");
- }else{
- $('#form1').submit();
- }
- }
- </script>
- </body>
- </html>
|