add review page
This commit is contained in:
parent
de8add8790
commit
889d4a4bbf
|
@ -11,7 +11,7 @@ class ReviewController extends Zend_Controller_Action
|
|||
function indexAction()
|
||||
{
|
||||
//最新10个收稿
|
||||
$sql="select m.uuid,m.title,s.ts_created from mdstatus s left join metadata m on m.uuid=s.uuid where s.status=0 order by s.ts_created desc limit 10";
|
||||
$sql="select m.uuid,m.title,date(s.ts_created) as ts_created from mdstatus s left join metadata m on m.uuid=s.uuid where s.status=0 order by s.ts_created desc limit 10";
|
||||
$this->view->mdreceived = $this->db->fetchAll($sql);
|
||||
//最新10个接收
|
||||
$sql="select m.uuid,m.title,s.ts_accepted from mdstatus s left join metadata m on m.uuid=s.uuid where s.status=1 order by s.ts_created desc limit 10";
|
||||
|
@ -258,5 +258,11 @@ class ReviewController extends Zend_Controller_Action
|
|||
{return "";}
|
||||
}//function rewriterstatus
|
||||
|
||||
function reviewAction() {
|
||||
$uuid = $this->_request->getParam('uuid');
|
||||
$sql=$this->db->quoteInto("select m.id,m.uuid,m.title,m.description,m.title_en from metadata m where m.uuid=?",$uuid);
|
||||
$this->view->metadata=$this->db->fetchRow($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->review);
|
||||
$this->headTitle('数据查看');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/mdview.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
|
||||
$this->breadcrumb('评审元数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<h1><?php echo $this->escape($md['title']); ?>
|
||||
[<a href="/data/<?php echo $md['uuid']; ?>">查看</a>
|
||||
<a href="/data/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件"></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a>
|
||||
]
|
||||
<?php if ($md['title_en']) echo '<br />'.$this->escape($md['title_en']);?>
|
||||
</h1>
|
||||
<div id="left">
|
||||
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md['id'];?>" /> </div>
|
||||
<div id="abstract">
|
||||
<p>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
<div id="comments">
|
||||
<h2>数据评审意见</h2>
|
||||
<div id="allcomments">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
|
Loading…
Reference in New Issue