增加了查看详细评论的功能
This commit is contained in:
parent
eac73402f9
commit
10050c52d5
|
@ -811,12 +811,41 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$q = $this->_request->getParam('q');
|
||||
$search = $this->_request->getParam('search');
|
||||
|
||||
if($ac=='view' && !empty($uuid))
|
||||
if($ac=='view' && !empty($id))
|
||||
{
|
||||
$redirect = "/admin/review/comments";
|
||||
$redirect = "/admin/review/comments/ac/view/id/$id";
|
||||
|
||||
if(!is_numeric($id))
|
||||
{
|
||||
$this->messenger->addMessage('参数不正确,请按正确的步骤进行访问');
|
||||
$this->_redirect($redirect);
|
||||
}
|
||||
|
||||
$sql = "select r.id,r.mdcomment,r.datacomment,r.editorcomment,u.realname,md.title,att.filename,r.ts_created,ratt.attachid as attid from mdreview r
|
||||
left join metadata md on md.uuid=r.uuid
|
||||
left join users u on u.id=r.userid
|
||||
left join mdreviewattach ratt on ratt.reviewid=r.id
|
||||
left join attachments att on att.id=ratt.attachid
|
||||
where r.id='$id'
|
||||
";
|
||||
|
||||
$rs = $this->db->query($sql);
|
||||
|
||||
$row = $rs->fetch();
|
||||
|
||||
if(!empty($row['attid']))
|
||||
{
|
||||
$row['attid'] = '<a href="/admin/data/attachments/down/'.$row['attid'].'">下载</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$row['attid'] = '无附件';
|
||||
}
|
||||
|
||||
|
||||
$this->_helper->viewRenderer('');
|
||||
$this->view->info = $row;
|
||||
|
||||
$this->_helper->viewRenderer('commentsview');
|
||||
|
||||
}//查看单个元数据的评审
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
if($item['is_expert']==false)echo "否";else echo "是";
|
||||
?></td>
|
||||
<td><?php echo $item['realname'];?></td>
|
||||
<td><a href="/admin/review/comments/ac/view/uuid/<?php echo $item['uuid']?>">查看评审</a></td>
|
||||
<td><a href="/admin/review/comments/ac/view/id/<?php echo $item['id']?>">查看详细</a></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
|
|
|
@ -22,34 +22,33 @@
|
|||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="search">
|
||||
<form action="" method="get">
|
||||
<input type="hidden" name="search" value='1' />
|
||||
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
|
||||
<label>搜索关键字</label><input type="text" name="q" value="<?php echo $this->q; ?>" />
|
||||
<input type="submit" class="btn" value="搜索" />
|
||||
<div class="form">
|
||||
<form>
|
||||
<p>
|
||||
<label>评审人:</label>
|
||||
<?php echo $this->info['realname'];?>
|
||||
</p>
|
||||
<p>
|
||||
<label>评审时间</label>
|
||||
<?php echo date("Y-m-d H:i",strtotime($this->info['ts_created']));?>
|
||||
</p>
|
||||
<p>
|
||||
<label>元数据意见</label><br />
|
||||
<textarea id="mdcomment" class="medium half" name="mdcomment"><?php echo $this->info['mdcomment'];?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label>对数据的意见</label><br />
|
||||
<textarea id="datacomment" class="small half" name="datacomment"><?php echo $this->info['datacomment'];?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label>给数据中心的意见</label><br />
|
||||
<textarea id="editorcomment" class="small half" name="editorcomment"><?php echo $this->info['editorcomment'];?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<label>附件</label><br />
|
||||
<?php echo $this->info['attid'];?>
|
||||
</p>
|
||||
</form>
|
||||
</div><!-- search DIV -->
|
||||
<table class="stylized">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width='600'>标题</td>
|
||||
<td width='80'>评审条数</td>
|
||||
<td width='80'>操作</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<tbody id="list">
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<tr>
|
||||
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
|
||||
<td><?php echo $item['c'];?></td>
|
||||
<td><a href="/admin/review/comments/ac/view/uuid/<?php echo $item['uuid']?>">查看评审</a></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>
|
Loading…
Reference in New Issue