43 lines
1.9 KiB
PHTML
43 lines
1.9 KiB
PHTML
<?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/organization">分单位浏览</a>');
|
|
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
?>
|
|
|
|
<div class="row-fluid">
|
|
<div><?= $this->breadcrumb() ?> </div>
|
|
<?= $this->partial('data/tools.phtml'); ?>
|
|
</div>
|
|
|
|
<?php if (!empty($this->paginator)) : ?>
|
|
<h3>当前浏览:<?php echo $this->codename; ?></h3>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<ul id="datalist">
|
|
<?php foreach($this->paginator as $md) : ?>
|
|
<div class="media well well-small">
|
|
<a class="pull-left" href="#">
|
|
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>" data-src="holder.js/128x128">
|
|
</a>
|
|
<div class="media-body">
|
|
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
|
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
|
</div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
<?php else : ?>
|
|
<div class="row-fluid">
|
|
<ul class="nav nav-pills">
|
|
<?php foreach($this->organisation as $cg) : ?>
|
|
<li><a href='/data/organization/name/<?php echo $cg['organisation']; ?>'><?php print($cg['organisation']); ?></a></li>
|
|
<?php endforeach; ?>
|
|
</ul></div>
|
|
<?php endif; ?> |