2011-09-21 08:35:03 +00:00
<?php
2018-02-11 05:02:17 +00:00
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
2011-09-21 08:35:03 +00:00
$this->headTitle('分类浏览');
if (!empty($this->codename)) $this->headTitle($this->codename);
$this->headTitle()->setSeparator(' - ');
2013-05-13 03:57:27 +00:00
$this->nav[] = array('link'=>"/data/category",'title'=>'分类浏览');
2018-02-11 05:02:17 +00:00
$this->headLink()->appendStylesheet('/static-sanji/css/data-list.css');
2011-09-21 08:35:03 +00:00
?>
2018-02-11 05:02:17 +00:00
< hr class = "c-f" >
< div class = "container" >
< div class = "row" >
< div class = "col-lg-12" >
<? = $this -> render ( 'breadcrumbs.phtml' ); ?>
< / div >
< / div >
< div class = "row" >
< div class = "col-lg-12" >
<? = $this -> partial ( 'data/tools.phtml' ); ?>
< / div >
< / div >
2013-05-19 02:30:10 +00:00
< / div >
2018-02-11 05:02:17 +00:00
< hr class = "c-f" >
< div class = "container" >
< div class = "row" >
< div class = "col-lg-12" >
< h4 > 数据集类别< / h4 >
< ul class = "nav nav-pills" >
<?php foreach ( $this -> category as $cg ) : ?>
< li class = " <?php if ( ! empty ( $this -> metadata )) : if ( $cg [ 'name' ] == $this -> codename || $cg [ 'name_zh' ] == $this -> codename ){ ?> active <?php } endif ; ?> " style = "width: auto;" >
< a href = '/data/category/code/ <?php echo $cg [ 'code' ]; ?> ' > <?php ( empty ( $cg [ 'name_zh' ])) ? print ( $cg [ 'name' ]) : print ( $cg [ 'name_zh' ]); ?>
< span class = "note" > (<?php echo $cg [ 'count' ]; ?> )</ span ></ a ></ li >
<?php endforeach ; ?>
< / ul >
< / div >
< / div >
<?php if ( $this -> paginator ) { ?>
< div class = "row" >
< div class = "col-lg-12" >
< h4 > 当前浏览:<?php echo $this -> codename ; ?> </ h4 >
<?php foreach ( $this -> paginator as $md ) : ?>
< div class = "row" >
< div class = "col-lg-12 c-list" >
< div class = "col-md-3 c-img-box" >
< div class = "c-cover" > < / div >
< a class = "c-cover" href = "/data/ <?php echo $md [ 'uuid' ]; ?> " ></ a >
< div class = "c-img" style = "background:url('/service/thumb/id/ <?php echo $md [ 'id' ]; ?> ') no-repeat center; background-size:cover" ></ div >
<!-- <a href="/service/bigthumb/uuid/--> <? //= $md['uuid'] ?><!--" class="pull-left colorbox">-->
<!-- <img class="media-object" src="/service/thumb/id/--> <?php //echo $md['id'];?><!--">-->
<!-- </a> -->
< / div >
< div class = "col-md-9 c-list-box" >
< h4 >< a href = "/data/ <?php echo $md [ 'uuid' ]; ?> " > <?php echo $this -> escape ( $md [ 'title' ]); ?> </ a ></ h4 >
< p class = "c-info" >< span class = "c-time" ></ span >< i > <?php echo date ( "d,M,Y" , strtotime ( $md [ 'ts_published' ] )); ?> </ i ></ p >
< p class = "c-con" >
<?php echo str_replace ( array ( " \r\n " , " \n " , " \r " ), '<br />' , mb_strlen ( $md [ 'description' ]) > 200 ? $this -> escape ( mb_substr ( $md [ 'description' ], 0 , 200 , 'UTF-8' ) . '...' ) : $this -> escape ( $md [ 'description' ])); ?>
< / p >
< div class = "dam clear" >
< div class = "c-left" >
< i > 文件大小< / i >
< em > <?php echo round ( $md [ 'filesize' ] / 2014 , 2 ) > 0.99 ? round ( $md [ 'filesize' ] / 2014 , 2 ) : '小于1' ?> MB</ em >
< / div >
< a class = "c-right" href = "/data/ <?php echo $md [ 'uuid' ]; ?> " > 更多</ a >
< / div >
< / div >
< / div >
< / div >
<?php endforeach ; ?>
< / div >
< / div >
< div class = "row" >
< div class = "col-xs-12" >
< div class = "page" >
< div class = "pagenavi" > <? = $this -> paginator ; ?> </ div >
< / div >
< / div >
2013-04-07 09:10:51 +00:00
< / div >
2018-02-11 05:02:17 +00:00
<?php } ?>
2013-04-07 09:10:51 +00:00
< / div >