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

111 lines
5.4 KiB
PHTML
Executable File

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
?>
<style>
.fieldlist ul li{line-height:24px;padding:5px;}
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
.news_list ul li{line-height:24px;}
</style>
<div class="row">
<div class="span12">
<h4><i class="icon-folder-open"></i>Data Collection</h4>
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>WATER</a>
</div>
<div class="span12">
<h4><i class="icon-flag"></i>Datasets Navigator</h4>
<form method="get" action="/search" id="search" class="form-search">
<div class="input-append">
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="Full Text Search">
<button type="submit" class="btn"><i class="icon-search"></i>Search</button>
</div>
<a class="btn" href="/search/advance"><i class="icon-search"></i>Advance Search</a>
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>Browse</a>
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>Online List</a>
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>Offline List</a>
</form>
<ul class="unstyled inline">
<li><a class="btn" href="/data/thumb"><i class="icon-picture"></i>Thumbnail</a></li>
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>Timeline</a></li>
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>Extend Map</a></li>
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>TimeMap</a></li>
<li><a class="btn" href="/data/organization"><i class="icon-filter"></i>By Organization</a></li>
<li><a class="btn" href="/data/fund"><i class="icon-money"></i>By Fund</a></li>
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>By Author</a></li>
<li><a class="btn" href="/data/doi"><i class="icon-paper-clip"></i>By DOI</a></li>
</ul>
</div>
<?php
$keytypezh=array('place'=>'Place Keywords','theme'=>'Theme Keywords','discipline'=>'Discipline Keywords','stratum'=>'Stratum Keywords','temporal'=>'Temporal Keywords');
$type='theme';
?>
<div class="span12">
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div class="row">
<?php
$type='place';
?>
<div class="span12">
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
</div>
<?php
$type='temporal';
?>
<div class="span12">
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
<ul class="unstyled inline">
<?php foreach($this->keywords[$type] as $cg) : ?>
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
</div>
<div class="span12">
<h4><a href="/data/category"><i class="icon-th-large"></i> ISO 19115 Categories</a></h4>
<ul class="unstyled inline">
<?php foreach($this->category as $cg) : ?>
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><i class="icon-th-large"></i><?php print($cg['name']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
</div>
<div class="span12">
<?php if ($this->serie) : ?>
<h4><a href="/data/series"><i class="icon-signal"></i>Dataset Series</a></h4>
<ul class="unstyled inline">
<?php foreach($this->serie as $cg) : ?>
<li><a href='/data/series/<?php echo $cg['id']; ?>'><i class="icon-list-ol"></i><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
<div class="row">
<div class="span12">
<h4><img src="/images/dbs.png" align="absmiddle" /><a href="/data/browse">Latest Updates</a><a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
<ul class="unstyled">
<?php foreach($this->metadata as $md) : ?>
<li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
<?php endforeach; ?>
</ul>
</div><!-- /right -->
</div>