更新后台评审首页的分平台实现
This commit is contained in:
parent
97402e262d
commit
76c6725159
|
@ -8,6 +8,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
$this->view->theme = new Theme();
|
$this->view->theme = new Theme();
|
||||||
$this->_helper->layout->setLayout('administry');
|
$this->_helper->layout->setLayout('administry');
|
||||||
$this->view->pageID = "review-".$this->_request->getActionName();
|
$this->view->pageID = "review-".$this->_request->getActionName();
|
||||||
|
$this->submd=$this->view->config->sub->metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -17,7 +18,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
|
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
|
||||||
right join metadata md on md.uuid=m.uuid
|
right join $this->submd md on md.uuid=m.uuid
|
||||||
left join users u on u.id=m.userid
|
left join users u on u.id=m.userid
|
||||||
order by m.id desc limit 10 ";
|
order by m.id desc limit 10 ";
|
||||||
$re = $this->db->query($sql);
|
$re = $this->db->query($sql);
|
||||||
|
@ -39,7 +40,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
|
$sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m
|
||||||
right join metadata md on md.uuid=m.uuid
|
right join $this->submd md on md.uuid=m.uuid
|
||||||
left join users u on u.id=m.userid
|
left join users u on u.id=m.userid
|
||||||
where u.id='$userid'";
|
where u.id='$userid'";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue