2011-11-16 10:01:39 +00:00
|
|
|
<?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');
|
2011-11-16 10:01:39 +00:00
|
|
|
$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>
|
2011-11-17 09:45:28 +00:00
|
|
|
<?php if ($this->info['status']>=0) echo '<button class="btn" onclick="over();">标记为已处理</button>';?>
|
2011-11-16 10:01:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pagenavi"></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>
|