westdc-zf1/application/admin/views/scripts/data/version-bydata.phtml

55 lines
2.2 KiB
PHTML
Raw Permalink Normal View History

<?php
2014-07-23 08:38:32 +00:00
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/admin.css');
$this->headLink()->appendStylesheet('/css/author.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('数据版本管理');
$this->breadcrumb()->setSeparator(' > ');
?>
2014-07-23 08:38:32 +00:00
<div class="row">
<!-- 左侧导航 -->
2014-07-23 08:38:32 +00:00
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<!-- //左侧导航 -->
<!-- 页面内容 -->
<div class="col-md-10 col-sm-12">
<div class="form-group">
<ul class="nav nav-tabs" role="tablist">
<li class=""><a href="/admin/data/version">所有版本概况</a></li>
<li class=""><a href="/admin/data/version/ac/unpublish">已发布数据的未发布版本</a></li>
<li class="active"><a href="/admin/data/version/ac/bydata">逐数据浏览</a></li>
</ul>
2014-07-23 08:38:32 +00:00
</div>
<div class="input-group form-group">
2014-09-23 13:50:03 +00:00
<form id="datasearch" class="search_form input-group" action="/admin/data/version/ac/bydata">
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" placeholder="搜索关键字" />
2014-07-23 08:38:32 +00:00
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
</form>
</div>
<div id="datalistZ">
<?php
if (count($this->paginator)):
echo "<ul class=list-unstyled>";
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
<li class="well well-sm">
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
</li>
<?php endforeach;
echo "</ul>";
endif; ?>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>