修改元数据管理页面

This commit is contained in:
Li Jianxuan 2014-06-12 03:03:06 +00:00
parent 9bdd7b25b9
commit 393839eda6
2 changed files with 4344 additions and 4333 deletions

View File

@ -305,6 +305,8 @@ class Admin_DataController extends Zend_Controller_Action
$att=$this->_getParam('att'); $att=$this->_getParam('att');
$attupdate = $this->_getParam('attupdate'); $attupdate = $this->_getParam('attupdate');
if(!empty($keyword))
$this->view->keyword = $keyword;
if ($delete) if ($delete)
{ {

View File

@ -2,7 +2,7 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('后台管理'); $this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css'); //$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>'); $this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>'); $this->breadcrumb('<a href="/admin/data">数据管理</a>');
@ -10,40 +10,52 @@
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox'); $this->theme->AppendPlus($this,'colorbox');
?> ?>
<div id="leftPanel"> <div class="row-fluid">
<?= $this->partial('data/left.phtml'); ?> <div class="span2">
</div> <?= $this->partial('data/left.phtml'); ?>
<div id="rightPanel"> </div>
<?php if ($this->msg or $this->messages) :?> <div class="span10">
<div id="message">
<?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="right_title">元数据管理</div> <h3>元数据管理</h3>
<div class="search"> <hr />
<form action="" method="get">
<div class="input-prepend"> <?php if ($this->msg or $this->messages) :?>
<div class="alert alert-success">
<?php if ($this->msg) : ?>
<?php echo $this->msg; ?>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<?php echo $msg;echo "<br />"; ?>
<?php endforeach;endif; ?>
</div>
<?php endif; ?>
<div class="search" style="overflow:hidden;">
<div class="span6">
<form action="" method="get" class="form-search">
<div class="input-append">
<input type="hidden" name="search" value='1' /> <input type="hidden" name="search" value='1' />
<input class="span2 search-query" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/> <input class="span12" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
<input type="submit" class="btn" value="搜索" /> <button type="submit" class="btn">搜索</button>
</div> </div>
</form> </form>
</div><!-- search DIV --> </div>
<div class="span6 text-right">
<a href="/admin/data/md/down/1">下载全部xml元数据</a>
</div>
</div><!-- search DIV -->
<a href="/admin/data/md/down/1">下载全部xml元数据</a> <?php if (count($this->paginator)): ?>
<?php if (count($this->paginator)): ?> <div class="datalist">
<div class="datalist"> <ul class="unstyled">
<ul> <?php foreach ($this->paginator as $item): ?>
<?php foreach ($this->paginator as $item): ?> <li class="well well-small">
<li class="well well-small">
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4> <h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
<p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p> <p>大小:<?= $item['filesize']; ?>M创建时间<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
<p> <p>
操作: 操作:
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> | <a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
@ -69,16 +81,13 @@
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a> | <a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a> |
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a> <a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
</p> </p>
<?php if($item['author']) :?> </li>
<p>数据贡献者:<?= $item['author']; ?></p> <?php endforeach; ?>
<?php endif;?> </ul>
<p class="content"><?= $item['description']; ?></p> </div>
</li> <?php endif; ?>
<?php endforeach; ?> <?php echo $this->paginator; ?>
</ul> </div>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</div> </div>
<script> <script>
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"}); $(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});