westdc-zf1/application/default/views/scripts/data/organization.phtml

94 lines
3.8 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->nav[] = array('link'=>"/data/organization",'title'=>'单位浏览');
$this->theme->AppendPlus($this,'colorbox');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/dataProduct.css');
$this->headLink()->appendStylesheet('/static-sanji-v2/css/header-position.css');
?>
<?= $this->render('breadcrumbs.phtml') ?>
<!--搜索框-->
<div class="searchBox searchBox2">
<div class="container">
<div class="col-sm-12">
<div class="form-group">
<form action="/search" id="search-form">
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
</form>
</div>
<i onclick="$('#search-form').submit()"></i>
</div>
</div>
</div>
<!--固定搜索框-->
<div class="searchBox searchBox1">
<div class="container">
<div class="col-sm-12">
<div class="form-group">
<input type="text" class="form-control" placeholder="搜素关键词">
</div>
<i></i>
</div>
</div>
</div>
<div class="searchOne">
<div class="container">
<div class="col-lg-12">
<?= $this->partial('data/tools.phtml'); ?>
</div>
</div>
</div>
<div class="intro1">
<div class="container">
</div>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="nav nav-pills">
<?php foreach($this->organisation as $cg) : ?>
<li style="width:auto;"><a href='/data/organization/name/<?php echo $cg['organisation']; ?>'><?php print($cg['organisation']); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<?php if($this->paginator) { ?>
<div class="col-lg-12">
<h4>当前浏览数据集序列:<?php echo $this->codename; ?></h4>
<ul class="newUlList">
<?php foreach ($this->paginator as $md) : ?>
<li>
<div class="newsImgBox">
<a href="/data/<?php echo $md['uuid'];?>">
<img src="/service/thumb/id/<?php echo $md['id']; ?>">
</a>
</div>
<div class="newRight">
<div class="newTopTitle">
<span><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></span>
<i><?php echo date("Y-m-d", strtotime($md['ts_published'])); ?></i>
</div>
<p>
<?php echo str_replace(array("\r\n", "\n", "\r"), '<br />', mb_strlen($md['description']) > 120 ? $this->escape(mb_substr($md['description'], 0, 120, 'UTF-8') . '...') : $this->escape($md['description'])); ?>
</p>
<a class="more" href="/data/<?php echo $md['uuid']; ?>">更多</a>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="row">
<div class="col-xs-12">
<div class="page">
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
<?php } ?>
</div>