修改了html结构,修复样式bug

This commit is contained in:
Li Jianxuan 2011-10-31 10:00:21 +00:00
parent 85fcef4f45
commit ab572da28b
2 changed files with 51 additions and 57 deletions

View File

@ -1,50 +1,50 @@
<?php <?php
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review); $this->headTitle($this->config->title->review);
$this->headTitle('我参审的元数据'); $this->headTitle('我参审的元数据');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>'); $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->headScript()->appendFile('/js/pubfunc.js');
?> ?>
<div id='sidebar'> <div id='sidebar'>
<div id='leftnavi'> <div id='leftnavi'>
<?= $this->partial('review/navi.phtml'); ?> <?= $this->partial('review/navi.phtml'); ?>
</div> </div>
</div> </div>
<?php if (!empty($this->metadata)) : ?> <?php if (!empty($this->metadata)) : ?>
<div id='mdlist'> <div id='mdlist'>
<?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="thumbmd">
<div class="thumbtitle"> <div class="thumbtitle">
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>【状态:<?php echo $md['statustext']; ?>
<?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; ?>
</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']);?>" <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; ?>')" /> onclick="fnCreate('<?php echo $thumburl; ?>')" />
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</div> <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>

View File

@ -14,10 +14,6 @@
?> ?>
<?php $md=$this->metadata;if ($md):?> <?php $md=$this->metadata;if ($md):?>
<h1><?php echo $this->escape($md['title']); ?> <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/review/1/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']);?> <?php if ($md['title_en']) echo '<br />'.$this->escape($md['title_en']);?>
</h1> </h1>
<div id="left"> <div id="left">
@ -27,11 +23,9 @@
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?> <?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
</p> </p>
<p> <p>
<ul> [<a href="/data/<?php echo $md['uuid']; ?>">元数据查看</a>]
<li><a href="/data/<?php echo $md['uuid']; ?>">元数据查看</a></li> [<a href="/data/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件">XML源文件查看</a>]
<li><a href="/data/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件">XML源文件查看</a></li> [<a href="/data/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc-icon.png" alt="Word doc格式">Word版本下载</a>]
<li><a href="/data/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc-icon.png" alt="Word doc格式">Word版本下载</a></li>
</ul>
</p> </p>
</div> </div>