westdc-zf1/application/default/views/scripts/review/draft.phtml

45 lines
1.6 KiB
PHTML

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->review);
$this->headTitle('投稿元数据');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('投稿元数据');
$this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/js/pubfunc.js');
?>
<div id='sidebar'>
<div id='leftnavi'>
<?= $this->partial('review/navi.phtml'); ?>
</div>
</div>
<?php if (!empty($this->metadata)) : ?>
<div id='mdlist'>
<?php echo $this->page->getNavigation(); ?>
<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.='/public/'.str_replace('_s.','.',$md['filename']);
?>
<div class="thumbmd">
<div class="thumbtitle">
<?php echo $this->escape($md['title']); ?>【投稿时间:<?php echo date('Y-m-d',strtotime($md['ts_created'])); ?>
</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>
<?php endforeach; ?>
<hr class="clear"/>
<?php echo $this->page->getNavigation();
else :
?>
<div>
<p>当前没有对应元数据。</p>
</div>
<?php endif; ?>
</div>