元数据详细页对齐问题。
This commit is contained in:
parent
61ca75fdc9
commit
20ea02360b
|
@ -1,4 +1,4 @@
|
|||
<div class="container">
|
||||
|
||||
<div class="span12 row">
|
||||
<form method="get" action="/search" id="search" class="form-search">
|
||||
|
||||
|
@ -75,4 +75,3 @@
|
|||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -4,74 +4,76 @@
|
|||
$theme = new \Sookon\Helpers\Theme;
|
||||
$theme->AppendPlus($this,'google_map_v3');
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h2><?= $this->data['title'] ?></h2>
|
||||
<hr />
|
||||
<div class="span8">
|
||||
<div class="row">
|
||||
<h4>摘要信息</h4>
|
||||
<?= $this->data['description'] ?>
|
||||
|
||||
<div class="span12">
|
||||
<div class="row">
|
||||
<h2><?= $this->data['title'] ?></h2>
|
||||
<hr />
|
||||
<div class="span8">
|
||||
<div class="row">
|
||||
<h4>摘要信息</h4>
|
||||
<?= $this->data['description'] ?>
|
||||
<hr />
|
||||
</div>
|
||||
<div class="row">
|
||||
<h4>标签</h4>
|
||||
<?php
|
||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
if ($kt==$cg['keytype']) :
|
||||
$i+=1;
|
||||
else :
|
||||
if (!empty($kt)) echo '</ul>';
|
||||
$kt=$cg['keytype'];
|
||||
$i=0;
|
||||
endif;
|
||||
if ($i==0) {
|
||||
?>
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?></a></li>
|
||||
<?php
|
||||
}
|
||||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h4>空间位置</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
</div>
|
||||
<div class="row">
|
||||
<h4>标签</h4>
|
||||
<?php
|
||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
if ($kt==$cg['keytype']) :
|
||||
$i+=1;
|
||||
else :
|
||||
if (!empty($kt)) echo '</ul>';
|
||||
$kt=$cg['keytype'];
|
||||
$i=0;
|
||||
endif;
|
||||
if ($i==0) {
|
||||
?>
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><?php echo $kw[$kt]; ?></a></li>
|
||||
<?php
|
||||
}
|
||||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<h4>数据细节</h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md['fileformat']) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md['fileformat']; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>大小:</strong><?php echo $md['filesize']; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||
<?php endif; ?>
|
||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||
<?php if (!empty($md['timebegin'])) : ?>
|
||||
<li id="datatimes">
|
||||
<strong>数据时间范围:</strong>
|
||||
<?php echo date('Y-m-d',strtotime($md['timebegin']));if (!empty($md['timeend'])) echo " 至 ".date('Y-m-d',strtotime($md['timeend'])); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md['datatype']) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||
</ul>
|
||||
<!-- data detail -->
|
||||
<hr />
|
||||
<a href="<?= isset($md['url']) ? $md['url']:'javascript:alert(\'暂无链接信息\');' ?>" class="btn btn-primary btn-large btn-block" title="前去下载">
|
||||
访问数据详细页面
|
||||
</a>
|
||||
<!-- url jump button -->
|
||||
</div> <!-- right panle-->
|
||||
|
||||
</div>
|
||||
<div class="span4">
|
||||
<h4>空间位置</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
<h4>数据细节</h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md['fileformat']) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md['fileformat']; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>大小:</strong><?php echo $md['filesize']; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||
<?php endif; ?>
|
||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||
<?php if (!empty($md['timebegin'])) : ?>
|
||||
<li id="datatimes">
|
||||
<strong>数据时间范围:</strong>
|
||||
<?php echo date('Y-m-d',strtotime($md['timebegin']));if (!empty($md['timeend'])) echo " 至 ".date('Y-m-d',strtotime($md['timeend'])); ?>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md['datatype']) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||
</ul>
|
||||
<!-- data detail -->
|
||||
<hr />
|
||||
<a href="<?= isset($md['url']) ? $md['url']:'javascript:alert(\'暂无链接信息\');' ?>" class="btn btn-primary btn-large btn-block" title="前去下载">
|
||||
访问数据详细页面
|
||||
</a>
|
||||
<!-- url jump button -->
|
||||
</div> <!-- right panle-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/span12--!>
|
||||
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue