westdc-zf1/application/admin/views/scripts/sys/messageview.phtml

70 lines
3.1 KiB
PHTML
Raw Permalink Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
2011-11-17 09:45:28 +00:00
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/static/js/jquery.jgrowl_minimized.js');
$this->headLink()->appendStylesheet('/static/css/jquery.jgrowl.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
$this->breadcrumb('邮件模板管理');
$this->breadcrumb()->setSeparator(' > ');
?>
2014-07-23 08:38:32 +00:00
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('sys/left.phtml'); ?>
</div>
<div class="col-md-10 col-sm-12">
<div class="form-group">
<a class="btn btn-primary" href="/admin/sys/message/do/listall">查看所有消息</a>
<a class="btn btn-primary" href="/admin/sys/message/">查看新消息</a>
</div>
<form class="form-horizontal">
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label">标题:</label>
<div class="col-md-4 col-sm-8 col-xs-8 form-control-static">
<?php if(!empty($this->info['title']))echo $this->info['title'];else echo "无标题";?>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label">发件人:</label>
<div class="col-md-4 col-sm-8 col-xs-8 form-control-static">
<?php if($this->info['pid']==0) echo "系统";else echo $this->info['realname'];?>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label">发送时间:</label>
<div class="col-md-4 col-sm-8 col-xs-8 form-control-static">
<?php echo date("Y-m-d H:i:s",strtotime($this->info['sendtime']));?>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label">内容:</label>
<div class="col-md-4 col-sm-8 col-xs-8 form-control-static">
<?php echo $this->info['body'];?>
</div>
</div>
<div class="form-group">
<label class="col-md-2 col-sm-2 col-xs-3 control-label"></label>
<div class="col-md-4 col-sm-8 col-xs-8 form-control-static">
<?php if ($this->info['status']>=0) echo '<button class="btn btn-success btn-sm" onclick="over();">标记为已处理</button>';?>
</div>
</div>
</form>
<div class="pagenavi"></div>
</div>
2011-11-17 09:45:28 +00:00
</div>
<script>
function over(){
$.ajax({
'type':"POST",
'url':"/admin/sys/message/do/over",
'data':'id=<?php echo $this->info['id'];?>',
'success':function(html){
$.jGrowl(html, {"life":5000 });
}
});
}
</script>