2011-10-21 08:52:32 +00:00
|
|
|
<?php
|
2011-11-07 15:10:10 +00:00
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->data);
|
|
|
|
$this->headTitle('全部浏览');
|
2011-10-21 08:52:32 +00:00
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headLink()->appendStylesheet('/css/water.css');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
2011-11-07 15:10:10 +00:00
|
|
|
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
|
2011-10-21 08:52:32 +00:00
|
|
|
$this->breadcrumb('缩略图浏览');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2011-11-07 15:10:10 +00:00
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
2011-10-21 08:52:32 +00:00
|
|
|
?>
|
|
|
|
<div id='sidebar'>
|
|
|
|
<div id='leftnavi'>
|
|
|
|
<?= $this->partial('heihe/navi.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id='right'>
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
|
|
|
<hr />
|
|
|
|
<div id="mdlist">
|
2011-11-07 15:10:10 +00:00
|
|
|
<?php foreach($this->metadata as $md) : ?>
|
2011-10-21 08:52:32 +00:00
|
|
|
<div class="thumb">
|
2011-10-25 04:12:44 +00:00
|
|
|
|
|
|
|
<div class="thumbtitle">
|
|
|
|
<a href="/heihe/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>
|
|
|
|
</div>
|
2011-11-07 02:20:41 +00:00
|
|
|
<a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $this->escape($md['title']); ?>">
|
|
|
|
<img 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']);?>" />
|
|
|
|
</a>
|
2011-10-21 08:52:32 +00:00
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
<hr style="clear:left;"/>
|
|
|
|
<?php echo $this->page->getNavigation(); ?>
|
2011-11-07 02:20:41 +00:00
|
|
|
</div>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
$(document).ready(function(){$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});});
|
|
|
|
</script>
|