parent
ea41e350f2
commit
1844561d4d
|
@ -91,7 +91,12 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
}
|
||||
else
|
||||
{
|
||||
$sql = "update mdstatus set status='$status' where id in ($id)";
|
||||
if($status==1)
|
||||
{$sql = "update mdstatus set status='$status',ts_received='".date('Y-m-d H:i:s')."' where id in ($id)"; }
|
||||
else if($status==5)
|
||||
{$sql = "update mdstatus set status='$status',ts_finished='".date('Y-m-d H:i:s')."' where id in ($id)";}
|
||||
else
|
||||
{$sql = "update mdstatus set status='$status' where id in ($id)";}
|
||||
try{
|
||||
if($this->db->exec($sql)>0)
|
||||
{
|
||||
|
@ -174,6 +179,34 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
if($show>0)
|
||||
{
|
||||
|
||||
$sql = "select m.*,md.*,u.realname from mdstatus m
|
||||
left join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where m.id=$show
|
||||
";
|
||||
|
||||
$rs = $this->db->query($sql);
|
||||
$rows = $rs->fetch();
|
||||
|
||||
$sql = "select exp.*,u.* from mdexpertreview exp
|
||||
left join users u on u.id=exp.id
|
||||
where exp.uuid='{$rows['uuid']}'";
|
||||
$rs = $this->db->query($sql);
|
||||
$exps = $rs->fetchAll();
|
||||
|
||||
$expname = array();
|
||||
|
||||
foreach ($exps as $k=>$v)
|
||||
{
|
||||
if($v['id']!='')
|
||||
{$expname[] = '<a href="/admin/user/show/id/'.$v['id'].'">'.$v['realname'].'</a>';}
|
||||
}
|
||||
if(count($expname>0))
|
||||
{$rows['exps'] = join(',',$expname);}
|
||||
|
||||
$rows['status'] = $this->rewiterstatus($rows['status']);
|
||||
|
||||
$this->view->info = $rows;
|
||||
|
||||
|
||||
$this->_helper->viewRenderer('inreviewshow');
|
||||
|
@ -181,9 +214,17 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
}//查看详细
|
||||
else
|
||||
{
|
||||
$sql = "select m.id,md.title,m.status from mdstatus m
|
||||
|
||||
$searchjoin = "";
|
||||
if(!empty($search) && !empty($keyword))
|
||||
{
|
||||
$searchjoin = " and md.title like '%$keyword%'";
|
||||
$this->view->keyword = $keyword;
|
||||
}
|
||||
|
||||
$sql = "select m.id,md.title,m.status,m.uuid from mdstatus m
|
||||
left join metadata md on md.uuid=m.uuid
|
||||
where m.status in (2,3,4)";
|
||||
where m.status in (2,3,4) $searchjoin";
|
||||
$rs = $this->db->query($sql);
|
||||
$rows = $rs->fetchAll();
|
||||
|
||||
|
|
|
@ -24,11 +24,19 @@
|
|||
<?php endif; ?>
|
||||
<div id="rightPanel">
|
||||
|
||||
<div class="search">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="search" value='1' />
|
||||
<ul>
|
||||
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
|
||||
<li><input type="submit" class="searchbtn" value="搜索" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div><!-- search DIV -->
|
||||
|
||||
<table>
|
||||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
||||
<td width='40'>ID</td>
|
||||
<td width='500'>标题</td>
|
||||
<td width='600'>标题</td>
|
||||
<td width='100'>状态</td>
|
||||
<td width="150">操作</td>
|
||||
</tr>
|
||||
|
@ -37,10 +45,9 @@
|
|||
<?php foreach ($this->paginator as $item): ?>
|
||||
<?php $autoindex++;?>
|
||||
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
||||
<td><?php echo $item['id']; ?></td>
|
||||
<td><?php echo $item['title']; ?></td>
|
||||
<td><?php echo $item['status']; ?></td>
|
||||
<td><a href="/admin/inreview/show/<?php echo $item['id']; ?>">查看详细</a></td>
|
||||
<td><a href="/admin/review/inreview/show/<?php echo $item['id']; ?>">查看详细</a></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('元数据评审');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="divContent">
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('review/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<p><?php echo $this->msg; ?></p>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<p><?php echo $msg; ?></p>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul>
|
||||
<li>元数据:《 <a href="/data/<?php echo $this->info['uuid']; ?>"><?php echo $this->info['title']; ?></a>》</li>
|
||||
<li>作者:<?php echo $this->info['author'];?></li>
|
||||
<li>评审状态:<?php echo $this->info['status'];?></li>
|
||||
<li>评审专家:<?php echo $this->info['exps'];?></li>
|
||||
<li>纳入评审时间:<?php echo $this->info['ts_created'];?></li>
|
||||
<li>开始评审时间:<?php echo $this->info['ts_received'];?></li>
|
||||
<li>结束评审时间:<?php echo $this->info['ts_finished'];?></li>
|
||||
<li>管理员:<?php echo $this->info['realname'];?></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
<li></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue