增加了消息处理状态的判断
This commit is contained in:
parent
5d7c23cb16
commit
fcf59044dc
|
@ -3,7 +3,9 @@
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
$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="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
|
$this->breadcrumb('<a href="/admin/sys">系统管理</a>');
|
||||||
|
@ -38,7 +40,20 @@
|
||||||
<?php echo $this->info['body'];?>
|
<?php echo $this->info['body'];?>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
<?php if ($this->info['status']>=0) echo '<button class="btn" onclick="over();">标记为已处理</button>';?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pagenavi"></div>
|
<div class="pagenavi"></div>
|
||||||
</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>
|
|
@ -74,7 +74,7 @@ class message
|
||||||
static function getOne($db,$uid,$id){
|
static function getOne($db,$uid,$id){
|
||||||
$rev = array();
|
$rev = array();
|
||||||
try{
|
try{
|
||||||
$sql = "SELECT m.pid,m.rid,m.sendtime,m.status,m.msgid,m.title,mc.body,u.realname,ml.uid FROM messages m
|
$sql = "SELECT m.id,m.pid,m.rid,m.sendtime,m.status,m.msgid,m.title,mc.body,u.realname,ml.uid FROM messages m
|
||||||
LEFT JOIN messages_content mc ON m.msgid=mc.id
|
LEFT JOIN messages_content mc ON m.msgid=mc.id
|
||||||
LEFT JOIN users u on u.id=m.pid
|
LEFT JOIN users u on u.id=m.pid
|
||||||
LEFT JOIN messages_logs ml ON m.id=ml.mid
|
LEFT JOIN messages_logs ml ON m.id=ml.mid
|
||||||
|
|
Loading…
Reference in New Issue