556fa89364e2595c5bddc800870a1dcbafb5399c.file.index.html.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?php /* Smarty version Smarty-3.1.11, created on 2019-03-22 11:34:34
  2. compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/email_template_admin/index.html" */ ?>
  3. <?php /*%%SmartyHeaderCode:9470641115948e0d743fb07-16483484%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '556fa89364e2595c5bddc800870a1dcbafb5399c' =>
  8. array (
  9. 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/email_template_admin/index.html',
  10. 1 => 1498544920,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '9470641115948e0d743fb07-16483484',
  15. 'function' =>
  16. array (
  17. ),
  18. 'version' => 'Smarty-3.1.11',
  19. 'unifunc' => 'content_5948e0d74cfbb6_91399313',
  20. 'variables' =>
  21. array (
  22. 'info' => 0,
  23. 'error' => 0,
  24. 'list' => 0,
  25. 'item' => 0,
  26. 'status_array' => 0,
  27. 'uname' => 0,
  28. 'show' => 0,
  29. ),
  30. 'has_nocache_code' => false,
  31. ),false); /*/%%SmartyHeaderCode%%*/?>
  32. <?php if ($_valid && !is_callable('content_5948e0d74cfbb6_91399313')) {function content_5948e0d74cfbb6_91399313($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include '/www/wwwroot/edm.alipearl.net/frame/libs/plugins/modifier.date_format.php';
  33. ?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  34. <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  35. <!-- Right side column. Contains the navbar and content of the page -->
  36. <aside class="right-side">
  37. <!-- Content Header (Page header) -->
  38. <section class="content-header">
  39. <h1>
  40. 邮件模板列表
  41. <small>Control panel</small>
  42. </h1>
  43. <ol class="breadcrumb">
  44. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  45. <li class="active">Blank page</li>
  46. </ol>
  47. </section>
  48. <!-- Main content -->
  49. <section class="content">
  50. <div class="span9">
  51. <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
  52. <div class="alert alert-success "><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
  53. </div>
  54. <?php }?>
  55. <?php if ($_smarty_tpl->tpl_vars['error']->value){?>
  56. <div class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['error']->value;?>
  57. </div>
  58. <?php }?>
  59. <div id='main' class="form-actions">
  60. <a href="/?a=email_template_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加邮件模板</a>
  61. <div style="height:20px;"></div>
  62. <table class="table table-striped" style="margin-top:15px;">
  63. <tr>
  64. <th>ID</th>
  65. <th >模板标题</th>
  66. <th >模板内容</th>
  67. <th>状态</th>
  68. <th>创建人</th>
  69. <th>修改时间</th>
  70. <th>添加时间</th>
  71. <th style="width:125px;">操作</th>
  72. </tr>
  73. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  74. $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  75. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  76. $_smarty_tpl->tpl_vars['item']->_loop = true;
  77. ?>
  78. <tr>
  79. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  80. </td>
  81. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['msg_title'];?>
  82. </td>
  83. <td style="width:40%"><?php echo $_smarty_tpl->tpl_vars['item']->value['msg_content'];?>
  84. </td>
  85. <td><?php echo $_smarty_tpl->tpl_vars['status_array']->value[$_smarty_tpl->tpl_vars['item']->value['status']];?>
  86. </td>
  87. <td><?php echo $_smarty_tpl->tpl_vars['uname']->value;?>
  88. </td>
  89. <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['update_time'],'%Y-%m-%d');?>
  90. </td>
  91. <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['add_time'],'%Y-%m-%d');?>
  92. </td>
  93. <td>
  94. <a href="/?a=email_template_admin&m=update&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  95. ">修改</a>
  96. <?php if ($_smarty_tpl->tpl_vars['item']->value['status']==1){?>
  97. <a href="/?a=email_template_admin&m=delete&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  98. &status=2" style="margin-left:30px;" >禁用</a>
  99. <?php }?>
  100. <?php if ($_smarty_tpl->tpl_vars['item']->value['status']==2){?>
  101. <a href="/?a=email_template_admin&m=delete&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  102. &status=1" style="margin-left:30px;" >启用</a>
  103. <?php }?>
  104. </td>
  105. </tr>
  106. <?php } ?>
  107. </table>
  108. <?php echo $_smarty_tpl->tpl_vars['show']->value;?>
  109. </div>
  110. </div>
  111. </section><!-- /.content -->
  112. </aside><!-- /.right-side -->
  113. </div><!-- ./wrapper -->
  114. <style>
  115. select{height:30px;}
  116. </style>
  117. <script>
  118. $('#treeview4').addClass('active');
  119. $(".email_template_left").addClass('active');
  120. </script>
  121. </body>
  122. </html>
  123. <?php }} ?>