| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 | <?php /* Smarty version Smarty-3.1.11, created on 2019-03-22 11:34:34         compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/email_template_admin/index.html" */ ?><?php /*%%SmartyHeaderCode:9470641115948e0d743fb07-16483484%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');$_valid = $_smarty_tpl->decodeProperties(array (  'file_dependency' =>   array (    '556fa89364e2595c5bddc800870a1dcbafb5399c' =>     array (      0 => '/www/wwwroot/edm.alipearl.net/application/module/view/email_template_admin/index.html',      1 => 1498544920,      2 => 'file',    ),  ),  'nocache_hash' => '9470641115948e0d743fb07-16483484',  'function' =>   array (  ),  'version' => 'Smarty-3.1.11',  'unifunc' => 'content_5948e0d74cfbb6_91399313',  'variables' =>   array (    'info' => 0,    'error' => 0,    'list' => 0,    'item' => 0,    'status_array' => 0,    'uname' => 0,    'show' => 0,  ),  'has_nocache_code' => false,),false); /*/%%SmartyHeaderCode%%*/?><?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';?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?><!-- 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">			<?php if ($_smarty_tpl->tpl_vars['info']->value){?>			<div   class="alert alert-success  "><?php echo $_smarty_tpl->tpl_vars['info']->value;?></div>			<?php }?>			<?php if ($_smarty_tpl->tpl_vars['error']->value){?>			<div   class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['error']->value;?></div>			<?php }?>			<div id='main' class="form-actions">				<a href="/?a=email_template_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加邮件模板</a>				<div style="height:20px;"></div>				<table class="table table-striped" style="margin-top:15px;">					<tr>						<th>ID</th>						<th >模板标题</th>						<th >模板内容</th>						<th>状态</th>						<th>创建人</th>						<th>修改时间</th>						<th>添加时间</th>						<th style="width:125px;">操作</th>					</tr>					<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){$_smarty_tpl->tpl_vars['item']->_loop = true;?>					<tr>						<td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?></td>						<td><?php echo $_smarty_tpl->tpl_vars['item']->value['msg_title'];?></td>						<td style="width:40%"><?php echo $_smarty_tpl->tpl_vars['item']->value['msg_content'];?></td>						<td><?php echo $_smarty_tpl->tpl_vars['status_array']->value[$_smarty_tpl->tpl_vars['item']->value['status']];?></td>						<td><?php echo $_smarty_tpl->tpl_vars['uname']->value;?></td>						<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['update_time'],'%Y-%m-%d');?></td>						<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['item']->value['add_time'],'%Y-%m-%d');?></td>						<td>							<a href="/?a=email_template_admin&m=update&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>">修改</a>							<?php if ($_smarty_tpl->tpl_vars['item']->value['status']==1){?>							<a href="/?a=email_template_admin&m=delete&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>&status=2" style="margin-left:30px;" >禁用</a>							<?php }?>							<?php if ($_smarty_tpl->tpl_vars['item']->value['status']==2){?>							<a href="/?a=email_template_admin&m=delete&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>&status=1" style="margin-left:30px;" >启用</a>							<?php }?>						</td>					</tr>					<?php } ?>				</table>				<?php echo $_smarty_tpl->tpl_vars['show']->value;?>			</div>		</div>	</section><!-- /.content --></aside><!-- /.right-side --></div><!-- ./wrapper --><style>	select{height:30px;}</style><script>	$('#treeview4').addClass('active');	$(".email_template_left").addClass('active');</script></body></html><?php }} ?>
 |