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

59 lines
1.9 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
$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(' > ');
?>
<div id="leftPanel">
<?= $this->partial('sys/left.phtml'); ?>
</div>
<div id="rightPanel">
<div class="ctrlplan">
<a href="/admin/sys/message/do/listall">查看所有消息</a>
<a href="/admin/sys/message/">查看新消息</a>
</div>
<div class="form">
<form>
<p>
<label>标题:</label>
<?php if(!empty($this->info['title']))echo $this->info['title'];else echo "无标题";?>
</p>
<p>
<label>发件人:</label>
<?php if($this->info['pid']==0) echo "系统";else echo $this->info['realname'];?>
</p>
<p>
<label>发送时间:</label>
<?php echo date("Y-m-d H:i:s",strtotime($this->info['sendtime']));?>
</p>
<p>
<label>内容:</label><br />
<?php echo $this->info['body'];?>
</p>
</form>
<?php if ($this->info['status']>=0) echo '<button class="btn" onclick="over();">标记为已处理</button>';?>
</div>
<div class="pagenavi"></div>
</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>