添加判断语句不显示没有内容的要素

This commit is contained in:
wlx 2011-10-19 15:08:15 +00:00
parent c697ed5363
commit 3c19bfda01
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<div id='rightPanel'>
<h3>目前系统中专家库为<?php echo $this->stat['experts']; ?>人,新投稿元数据<?php echo $this->stat['draft']; ?>条,已接收元数据<?php echo $this->stat['accept']; ?>条,有<?php echo $this->stat['inreview']; ?>条元数据正在评审中,已完成评审元数据<?php echo $this->stat['reviewed']; ?>条,有<?php echo $this->stat['openreviewuser']; ?>个用户参与了<?php echo $this->stat['openreview']; ?>次评审。 <a href="/review/myreview">我参审的元数据</a></h3>
<?php if ($this->mdreceived) : ?>
<ul>
<div class="title"><a href="/review/draft">元数据:最新收稿</a></div>
<?php foreach($this->mdreceived as $md) : ?>
@ -19,6 +20,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endforeach; ?>
<li class="more"><a href="/review/draft">更多>></a></li>
</ul>
<?php endif; if ($this->mdaccepted) : ?>
<ul>
<div class="title"><a href="/review/accept">元数据:已接收</a></div>
<?php foreach($this->mdaccepted as $md) : ?>
@ -28,6 +30,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endforeach; ?>
<li class="more"><a href="/review/accept">更多>></a></li>
</ul>
<?php endif; if ($this->mdinreview) : ?>
<ul>
<div class="title"><a href="/review/inreview">元数据:送审中</a></div>
<?php foreach($this->mdinreview as $md) : ?>
@ -37,6 +40,7 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endforeach; ?>
<li class="more"><a href="/review/inreview">更多>></a></li>
</ul>
<?php endif; if ($this->mdreviewed) : ?>
<ul>
<div class="title"><a href="/review/reviewed">元数据:最新完成评审</a></div>
<?php foreach($this->mdreviewed as $md) : ?>
@ -46,4 +50,5 @@ $this->breadcrumb()->setSeparator(' > ');
<?php endforeach; ?>
<li class="more"><a href="/review/reviewed">更多>></a></li>
</ul>
<?php endif; ?>
</div>