add time display in the data list
This commit is contained in:
parent
733a3c934b
commit
4c41d4ebe8
|
@ -1,44 +1,45 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('分单位浏览');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/organisation">分单位浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/jquery.masonry.min.js');
|
||||
?>
|
||||
<div id="organisation">
|
||||
<div id="organisation_nav" class="full clear">
|
||||
<div class="title fleft">
|
||||
单位
|
||||
</div>
|
||||
<div class="organisation fright clear">
|
||||
<ul>
|
||||
<?php foreach($this->organisation as $cg) : ?>
|
||||
<li><a href='/data/organisation/name/<?php echo $cg['organisation']; ?>'><?php print($cg['organisation']); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="datalist clear mt12">
|
||||
<ul id="datalist">
|
||||
<?php if($this->metadata) : foreach($this->metadata as $md) : ?>
|
||||
<li id="data_<?php echo $md['uuid']; ?>" class="databox box-shadow">
|
||||
<div class="subject text-shadow"><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a><div class="more"><a href="/data/<?php echo $md['uuid']; ?>">查看详细</a></div></div>
|
||||
<div class="data_content clear">
|
||||
<div class="thumb box-shadow"><img src="/service/thumb/uuid/<?php echo $md['uuid'];?>" /></div>
|
||||
<div class="description"><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach;endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="page">
|
||||
<?php if ($this->page) echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('分单位浏览');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/organisation">分单位浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/jquery.masonry.min.js');
|
||||
?>
|
||||
<div id="organisation">
|
||||
<div id="organisation_nav" class="full clear">
|
||||
<div class="title fleft">
|
||||
单位
|
||||
</div>
|
||||
<div class="organisation fright clear">
|
||||
<ul>
|
||||
<?php foreach($this->organisation as $cg) : ?>
|
||||
<li><a href='/data/organisation/name/<?php echo $cg['organisation']; ?>'><?php print($cg['organisation']); ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="datalist clear mt12">
|
||||
<ul id="datalist">
|
||||
<?php if($this->metadata) : foreach($this->metadata as $md) : ?>
|
||||
<li id="data_<?php echo $md['uuid']; ?>" class="databox box-shadow">
|
||||
<div class="subject text-shadow"><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a><div class="more"><a href="/data/<?php echo $md['uuid']; ?>">查看详细</a></div></div>
|
||||
<div class="data_content clear">
|
||||
<div class="thumb box-shadow"><img src="/service/thumb/uuid/<?php echo $md['uuid'];?>" /></div>
|
||||
<div class="description"><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></div>
|
||||
<div class="description">时间范围:<?= $md['timebegin'] ?> - <?= $md['timeend'] ?></div>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach;endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="page">
|
||||
<?php if ($this->page) echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue