增加了查看详细评论的功能
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');
|
$q = $this->_request->getParam('q');
|
||||||
$search = $this->_request->getParam('search');
|
$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 "是";
|
if($item['is_expert']==false)echo "否";else echo "是";
|
||||||
?></td>
|
?></td>
|
||||||
<td><?php echo $item['realname'];?></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>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -22,34 +22,33 @@
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="search">
|
<div class="form">
|
||||||
<form action="" method="get">
|
<form>
|
||||||
<input type="hidden" name="search" value='1' />
|
<p>
|
||||||
<input type="hidden" name="id" value='<?php echo $this->id;?>' />
|
<label>评审人:</label>
|
||||||
<label>搜索关键字</label><input type="text" name="q" value="<?php echo $this->q; ?>" />
|
<?php echo $this->info['realname'];?>
|
||||||
<input type="submit" class="btn" value="搜索" />
|
</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>
|
</form>
|
||||||
</div><!-- search DIV -->
|
</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>
|
<script>$("#list tr").mouseover(function(){$(this).addClass("high")}).mouseout(function(){$(this).removeClass("high")})</script>
|
Loading…
Reference in New Issue