修改元数据管理页面

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');
$attupdate = $this->_getParam('attupdate');
if(!empty($keyword))
$this->view->keyword = $keyword;
if ($delete)
{

View File

@ -2,7 +2,7 @@
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/admin.css');
//$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
@ -10,40 +10,52 @@
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
?>
<div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div id="rightPanel">
<?php if ($this->msg or $this->messages) :?>
<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="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<div class="right_title">元数据管理</div>
<h3>元数据管理</h3>
<div class="search">
<form action="" method="get">
<div class="input-prepend">
<hr />
<?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 class="span2 search-query" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
<input type="submit" class="btn" value="搜索" />
<input class="span12" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
<button type="submit" class="btn">搜索</button>
</div>
</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)): ?>
<div class="datalist">
<ul>
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<?php if (count($this->paginator)): ?>
<div class="datalist">
<ul class="unstyled">
<?php foreach ($this->paginator as $item): ?>
<li class="well well-small">
<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>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
<p>
操作:
<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/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
</p>
<?php if($item['author']) :?>
<p>数据贡献者:<?= $item['author']; ?></p>
<?php endif;?>
<p class="content"><?= $item['description']; ?></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<?php echo $this->paginator; ?>
</div>
</div>
<script>
$(".iframe").colorbox({iframe:true, width:"50%", height:"50%"});