修改了数据评审中的模板

This commit is contained in:
Li Jianxuan 2013-03-26 03:56:42 +00:00
parent 28a2bcab17
commit 7ada7a32ea
11 changed files with 270 additions and 213 deletions

View File

@ -81,6 +81,8 @@ class ReviewController extends Zend_Controller_Action
* mdstatus 中status 字段值为 0 的元数据为收稿元数据 * mdstatus 中status 字段值为 0 的元数据为收稿元数据
*/ */
function draftAction(){ function draftAction(){
$this->view->pageID = "review-draft";
$page=@(int)$this->_request->getParam('page'); $page=@(int)$this->_request->getParam('page');
if (empty($page)) $page=1; if (empty($page)) $page=1;
$offset=$this->limit*($page-1); $offset=$this->limit*($page-1);
@ -100,6 +102,8 @@ class ReviewController extends Zend_Controller_Action
* mdstatus status 字段值为 1 的元数据为进入评审的元数据 * mdstatus status 字段值为 1 的元数据为进入评审的元数据
*/ */
function acceptAction(){ function acceptAction(){
$this->view->pageID = "review-accept";
$page=@(int)$this->_request->getParam('page'); $page=@(int)$this->_request->getParam('page');
if (empty($page)) $page=1; if (empty($page)) $page=1;
$offset=$this->limit*($page-1); $offset=$this->limit*($page-1);
@ -119,6 +123,7 @@ class ReviewController extends Zend_Controller_Action
* mdstatus status 字段值为 2,3,4 的元数据为正在进行评审的元数据 * mdstatus status 字段值为 2,3,4 的元数据为正在进行评审的元数据
*/ */
function inreviewAction(){ function inreviewAction(){
$this->view->pageID = "review-inreview";
$page=@(int)$this->_request->getParam('page'); $page=@(int)$this->_request->getParam('page');
if (empty($page)) $page=1; if (empty($page)) $page=1;
$offset=$this->limit*($page-1); $offset=$this->limit*($page-1);
@ -138,6 +143,7 @@ class ReviewController extends Zend_Controller_Action
* mdstatus status 字段值为 5 的元数据为已经通过评审的元数据 * mdstatus status 字段值为 5 的元数据为已经通过评审的元数据
*/ */
function reviewedAction(){ function reviewedAction(){
$this->view->pageID = "review-reviewed";
$page=@(int)$this->_request->getParam('page'); $page=@(int)$this->_request->getParam('page');
if (empty($page)) $page=1; if (empty($page)) $page=1;
$offset=$this->limit*($page-1); $offset=$this->limit*($page-1);
@ -541,6 +547,7 @@ class ReviewController extends Zend_Controller_Action
function helpAction() function helpAction()
{ {
$this->view->pageID = "review-help";
} }

View File

@ -10,38 +10,41 @@ $this->breadcrumb('接收元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<?php if (!empty($this->metadata)) : ?> <div id='mdlist'>
<div id='mdlist'> <?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <hr />
<?php foreach($this->metadata as $md) : <?php foreach($this->metadata as $md) :
$thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid']; $thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid'];
$thumburl.='/public/'.str_replace('_s.','.',$md['filename']); $thumburl.='/public/'.str_replace('_s.','.',$md['filename']);
?> ?>
<div class="thumbmd"> <div class="media" style="border-bottom:1px dashed #ccc;">
<div class="thumbtitle"> <a class="pull-left" href="#">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> <img class="media-object pull-left" src="/service/thumb/id/<?php echo $md['id'];?>">
</a>
<div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?></h4>
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a>
<?php endif; ?> <?php endif; ?>
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
</div>
</div>
<?php endforeach; ?>
<hr class="clear"/>
<?php echo $this->page->getNavigation();
else :
?>
<div>
<p>当前没有对应元数据。</p>
</div>
<?php endif; ?>
</div> </div>
<img class="thumbimg" src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?>
<hr class="clear"/>
<?php echo $this->page->getNavigation();
else :
?>
<div>
<p>当前没有对应元数据。</p>
</div>
<?php endif; ?>
</div> </div>

View File

@ -10,19 +10,20 @@ $this->breadcrumb('投稿元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<?php if (!empty($this->metadata)) : ?>
<div id='mdlist'> <?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?> <div id='mdlist'>
<hr /> <?php echo $this->page->getNavigation(); ?>
<?php foreach($this->metadata as $md) : <hr />
<?php foreach($this->metadata as $md) :
$thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid']; $thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid'];
$thumburl.='/public/'.str_replace('_s.','.',$md['filename']); $thumburl.='/public/'.str_replace('_s.','.',$md['filename']);
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<?php echo $this->escape($md['title']); ?>【投稿时间:<?php echo date('Y-m-d',strtotime($md['ts_created'])); ?> <?php echo $this->escape($md['title']); ?>【投稿时间:<?php echo date('Y-m-d',strtotime($md['ts_created'])); ?>
@ -32,13 +33,16 @@ $this->headScript()->appendFile('/js/pubfunc.js');
onclick="fnCreate('<?php echo $thumburl; ?>')" /> onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<hr class="clear"/> <hr class="clear"/>
<?php echo $this->page->getNavigation(); <?php echo $this->page->getNavigation();
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>当前没有对应元数据。</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div>
</div>
</div> </div>

View File

@ -8,16 +8,19 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('元数据评审说明'); $this->breadcrumb('元数据评审说明');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<div id='help'>
<h1>为什么要进行数据评审?</h1> <div id='help'>
<p></p> <h1>为什么要进行数据评审?</h1>
<h1>如何进行数据评审?</h1> <p></p>
<p></p> <h1>如何进行数据评审?</h1>
<p></p>
</div>
</div>
</div> </div>

View File

@ -3,58 +3,55 @@ $config = Zend_Registry::get('config');
$this->headTitle($config->title->site); $this->headTitle($config->title->site);
$this->headTitle($config->title->review); $this->headTitle($config->title->review);
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('元数据评审'); $this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
?> ?>
<div class="row"> <div class="row">
<div class="span3"> <div class="span3">
<div class="well sidebar-nav">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div>
<div class="span9"> <div class="span9">
<div id='indexbody'>
<?php if ($this->mdreceived) : ?> <?php if ($this->mdreceived) : ?>
<ul> <h3><a href="/review/draft">元数据:最新收稿</a></h3>
<div class="title"><a href="/review/draft">元数据:最新收稿</a></div> <ul class="unstyled">
<?php foreach($this->mdreceived as $md) : ?> <?php foreach($this->mdreceived as $md) : ?>
<div class="mditem"> <li><img src="/images/westdc_20w.gif" /><?php echo $this->escape($md['title']);?>(收稿时间:<?php echo $md['ts_created'];?></li>
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?>(收稿时间:<?php echo $md['ts_created'];?></li>
</div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/draft">更多>></a></li> <li class="pull-right"><a href="/review/draft">更多>></a></li>
</ul> </ul>
<?php endif; if ($this->mdaccepted) : ?> <?php endif;?>
<ul>
<div class="title"><a href="/review/accept">元数据:已接收</a></div>
<?php if ($this->mdaccepted) : ?>
<hr />
<h3><a href="/review/accept">元数据:已接收</a></h3>
<ul class="unstyled">
<?php foreach($this->mdaccepted as $md) : ?> <?php foreach($this->mdaccepted as $md) : ?>
<div class="mditem"> <li><img src="/images/westdc_20w.gif" /><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>[<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a>]</li>
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a> <a href="/data/<?php echo $md['uuid'];?>">查看</a>]</li>
</div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/accept">更多>></a></li> <li class="pull-right"><a href="/review/accept">更多>></a></li>
</ul> </ul>
<?php endif; if ($this->mdinreview) : ?> <?php endif; ?>
<ul>
<div class="title"><a href="/review/inreview">元数据:评审中</a></div> <?php if ($this->mdinreview) : ?>
<hr />
<h3><a href="/review/inreview">元数据:评审中</a></h3>
<ul class="unstyled">
<?php foreach($this->mdinreview as $md) : ?> <?php foreach($this->mdinreview as $md) : ?>
<div class="mditem"> <li><img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a> <a href="/data/<?php echo $md['uuid'];?>">查看</a>]</li>
<li> <img src="/images/westdc_20w.gif" /> <?php echo $this->escape($md['title']);?> [<a href="/review/review/uuid/<?php echo $md['uuid'];?>">评审</a> <a href="/data/<?php echo $md['uuid'];?>">查看</a>]</li>
</div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/inreview">更多>></a></li> <li class="pull-right"><a href="/review/inreview">更多>></a></li>
</ul> </ul>
<?php endif; if ($this->mdreviewed) : ?> <?php endif; if ($this->mdreviewed) : ?>
<ul> <hr />
<div class="title"><a href="/review/reviewed">元数据:最新完成评审</a></div> <h3><a href="/review/reviewed">元数据:最新完成评审</a></h3>
<ul class="unstyled">
<?php foreach($this->mdreviewed as $md) : ?> <?php foreach($this->mdreviewed as $md) : ?>
<div class="mditem"> <li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
<li> <img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
</div>
<?php endforeach; ?> <?php endforeach; ?>
<li class="more"><a href="/review/reviewed">更多>></a></li> <li class="pull-right"><a href="/review/reviewed">更多>></a></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</div> </div>

View File

@ -8,40 +8,42 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('在审元数据'); $this->breadcrumb('在审元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<?php if (!empty($this->metadata)) : ?> <div id='mdlist'>
<div id='mdlist'> <?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?> <?php echo $this->page->getNavigation(); ?>
<hr /> <hr />
<?php foreach($this->metadata as $md) : <?php foreach($this->metadata as $md) :
$thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid']; $thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid'];
$thumburl.='/public/'.str_replace('_s.','.',$md['filename']); $thumburl.='/public/'.str_replace('_s.','.',$md['filename']);
?> ?>
<div class="thumbmd"> <div class="media" style="border-bottom:1px dashed #ccc;">
<div class="thumbtitle"> <a class="pull-left" href="#">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a> 【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> <img class="media-object pull-left" src="/service/thumb/id/<?php echo $md['id'];?>">
</a>
<div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a> 【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?></h4>
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a>
<?php endif; ?> <?php endif; ?>
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
</div>
</div>
<?php endforeach; ?>
<hr class="clear"/>
<?php echo $this->page->getNavigation();
else :
?>
<div>
<p>当前没有对应元数据。</p>
</div>
<?php endif; ?>
</div> </div>
<img class="thumbimg" src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?>
<hr class="clear"/>
<?php echo $this->page->getNavigation();
else :
?>
<div>
<p>当前没有对应元数据。</p>
</div>
<?php endif; ?>
</div> </div>

View File

@ -7,14 +7,12 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('我参审的元数据'); $this->breadcrumb('我参审的元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js'); $this->headLink()->appendStylesheet('/css/mdreview.css');
?> ?>
<div class="row"> <div class="row">
<div class="span3"> <div class="span3">
<div class="well sidebar-nav">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div>
<div class="span9"> <div class="span9">
<div id='mdlist'> <div id='mdlist'>
<?php if (!empty($this->metadata)) : ?> <?php if (!empty($this->metadata)) : ?>
@ -24,18 +22,20 @@ $this->headScript()->appendFile('/js/pubfunc.js');
$thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid']; $thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid'];
$thumburl.='/public/'.str_replace('_s.','.',$md['filename']); $thumburl.='/public/'.str_replace('_s.','.',$md['filename']);
?> ?>
<div class="thumbmd"> <div class="media" style="border-bottom:1px dashed #ccc;">
<div class="thumbtitle"> <a class="pull-left" href="#">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?> <img class="media-object pull-left" src="/service/thumb/id/<?php echo $md['id'];?>">
</a>
<div class="media-body">
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?></h4>
<?php if ($md['status']!=5) : ?> <?php if ($md['status']!=5) : ?>
<a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a> <a href="/review/review/uuid/<?php echo $md['uuid'];?>"><img src="/images/review.png" alt="查看评审页" title="进行数据评审"></a>
<?php else : ?> <?php else : ?>
【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?> 【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_accepted'])); ?>
审结时间:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?> 审结时间:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?>
<?php endif; ?> <?php endif; ?>
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
</div> </div>
<img class="img-polaroid" style="height:100px;" src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"
onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<hr class="clear"/> <hr class="clear"/>

View File

@ -1,11 +1,13 @@
<ul class="nav nav-list"> <div class="sidebar-nav bs-review-nav">
<li id="Nav-review-myreview"><a href="/review/myreview">我参审的元数据</a></li> <ul class="nav nav-list bs-review-sidenav">
<li id="Nav-review-draft"><a href="/review/draft">投稿元数据</a></li> <li id="Nav-review-myreview"><a href="/review/myreview"><i class="icon-chevron-right"></i>我参审的元数据</a></li>
<li id="Nav-review-accept"><a href="/review/accept">已接收元数据</a></li> <li id="Nav-review-draft"><a href="/review/draft"><i class="icon-chevron-right"></i>投稿元数据</a></li>
<li id="Nav-review-inreview"><a href="/review/inreview">评审中元数据</a></li> <li id="Nav-review-accept"><a href="/review/accept"><i class="icon-chevron-right"></i>已接收元数据</a></li>
<li id="Nav-review-reviewed"><a href="/review/reviewed">已通过元数据</a></li> <li id="Nav-review-inreview"><a href="/review/inreview"><i class="icon-chevron-right"></i>评审中元数据</a></li>
<li id="Nav-review-help"><a href="/review/help">元数据评审说明</a></li> <li id="Nav-review-reviewed"><a href="/review/reviewed"><i class="icon-chevron-right"></i>已通过元数据</a></li>
</ul> <li id="Nav-review-help"><a href="/review/help"><i class="icon-chevron-right"></i>元数据评审说明</a></li>
</ul>
</div>
<form class="form-search" id="search" enctype="application/x-www-form-urlencoded" action="/review/search" method="post"> <form class="form-search" id="search" enctype="application/x-www-form-urlencoded" action="/review/search" method="post">
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'':$this->key; ?>" placeholder="搜索标题和摘要"> <input class="keyword" type="text" name="q" id="q" value="<?php echo (empty($this->key))?'':$this->key; ?>" placeholder="搜索标题和摘要">
</form> </form>

View File

@ -5,7 +5,6 @@
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); $this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); $this->headScript()->appendFile('/js/jquery.colorbox-min.js');
@ -72,15 +71,15 @@
</p> </p>
<p> <p>
元数据意见(必填)<br/> 元数据意见(必填)<br/>
<textarea id="mdcomment" class="medium full" name="mdcomment"><?php echo $this->review['mdcomment'];?></textarea> <textarea id="mdcomment" class="span10" name="mdcomment"><?php echo $this->review['mdcomment'];?></textarea>
</p> </p>
<p> <p>
对数据的意见:<br/> 对数据的意见:<br/>
<textarea id="datacomment" class="small full" name="datacomment"><?php echo $this->review['datacomment'];?></textarea> <textarea id="datacomment" class="span10" name="datacomment"><?php echo $this->review['datacomment'];?></textarea>
</p> </p>
<p> <p>
给数据中心的意见:<br/> 给数据中心的意见:<br/>
<textarea id="editorcomment" class="small full" name="editorcomment"><?php echo $this->review['editorcomment'];?></textarea> <textarea id="editorcomment" class="span10" name="editorcomment"><?php echo $this->review['editorcomment'];?></textarea>
</p> </p>
<p> <p>
评审附件: 评审附件:
@ -93,7 +92,7 @@
</p> </p>
<br /> <br />
<p> <p>
<button class="btn btn-green" type="button" id="submit" onclick="return confirm('是否确定提交评审意见?')">提交</button> <button class="btn btn-success" type="button" id="submit" onclick="return confirm('是否确定提交评审意见?')">提交</button>
<button class="btn btn-small" type="button" id="save">存草稿</button> <button class="btn btn-small" type="button" id="save">存草稿</button>
<button class="btn btn-small" type="reset" id="reset" onclick="return confirm('是否确定重置已经填写的意见?')">重置</button> <button class="btn btn-small" type="reset" id="reset" onclick="return confirm('是否确定重置已经填写的意见?')">重置</button>
</p> </p>

View File

@ -8,21 +8,21 @@ $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('审结元数据'); $this->breadcrumb('审结元数据');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div class="row">
<div id='leftnavi'> <div class="span3">
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> <div class="span9">
<?php if (!empty($this->metadata)) : ?>
<div id='mdlist'> <?php if (!empty($this->metadata)) : ?>
<?php echo $this->page->getNavigation(); ?> <div id='mdlist'>
<hr /> <?php echo $this->page->getNavigation(); ?>
<?php foreach($this->metadata as $md) : <hr />
<?php foreach($this->metadata as $md) :
$thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid']; $thumburl='/gndata/'.sprintf('%05d',floor(($md['gid']+0.1)/100)*100).'-'.sprintf('%05d',ceil(($md['gid']+0.1)/100)*100-1)."/".$md['gid'];
$thumburl.='/public/'.str_replace('_s.','.',$md['filename']); $thumburl.='/public/'.str_replace('_s.','.',$md['filename']);
?> ?>
<div class="thumbmd"> <div class="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【接收时间:<?php echo date('Y-m-d',strtotime($md['ts_finished'])); ?>
@ -35,13 +35,16 @@ $this->headScript()->appendFile('/js/pubfunc.js');
onclick="fnCreate('<?php echo $thumburl; ?>')" /> onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<hr class="clear"/> <hr class="clear"/>
<?php echo $this->page->getNavigation(); <?php echo $this->page->getNavigation();
else : else :
?> ?>
<div> <div>
<p>当前没有对应元数据。</p> <p>当前没有对应元数据。</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div>
</div>
</div> </div>

View File

@ -1,3 +1,40 @@
.bs-review-nav{
padding:14px;
}
.bs-review-sidenav{
padding:0px;
margin:0px;
}
.bs-review-sidenav > li:first-child > a {
border-radius: 6px 6px 0 0;
}
.bs-review-sidenav > li:last-child > a {
border-radius: 0 0 6px 6px;
}
.bs-review-sidenav li{
margin:0px;
padding:0px;
line-height:30px;
}
.bs-review-sidenav li a {
border:1px solid #E5E5E5;
margin: 0 0 -1px;
}
.bs-review-sidenav li.active a {
border:none;
margin: 0 0 0 0;
}
.bs-review-sidenav li i{
float:right;
margin-top:8px;
}
.bs-review-nav .form-search{
margin:10px auto;
}
.bs-review-nav .form-search .keyword{
width:95%;
}
/* Tables /* Tables
---------------------------------------------------------------------*/ ---------------------------------------------------------------------*/