77 lines
3.2 KiB
PHTML
Executable File
77 lines
3.2 KiB
PHTML
Executable File
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->data);
|
|
$this->headTitle('在线数据浏览');
|
|
$this->headTitle($this->codename);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css');
|
|
$this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
|
|
$this->nav[] = array('link' => "/data/onlinelist", 'title' => '在线数据浏览');
|
|
?>
|
|
<!--当前位置-->
|
|
<div class="breadcrumb-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3 col-sm-4 bcid-cat">数据服务</div>
|
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--搜索框-->
|
|
<div class="content content1">
|
|
<div class="container">
|
|
<div class="searchBox">
|
|
<i onclick="$('#search-form').submit()">搜索</i>
|
|
<form action="/search" id="search-form">
|
|
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
|
|
</form>
|
|
</div>
|
|
<div class="guanjian">
|
|
<a href="/data/tag">关键词浏览</a>
|
|
<a href="/data/onlinelist">在线数浏览</a>
|
|
<a href="/data/offlinelist">离线浏览</a>
|
|
</div>
|
|
|
|
<div class="col-md-3" style="padding-left: 0;">
|
|
<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>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
<div class="main inner-left col-md-9" style="padding-right:0 ;">
|
|
<ul class="newUlList">
|
|
<?php foreach ($this->paginator as $md) : ?>
|
|
<li>
|
|
<div class="">
|
|
<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>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="page">
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|