增加了数据文献关联管理中的搜索功能

This commit is contained in:
Li Jianxuan 2011-09-19 09:33:50 +00:00
parent 9b6ea84fd8
commit 83fb46f8d7
3 changed files with 909 additions and 861 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,13 @@
<ul> <ul>
<li><a href="/admin/data/md">元数据管理</a></li> <li class="title">数据管理</li>
<li><a href="/admin/data/comment">数据反馈管理</a></li> <li><a href="/admin/data/md">元数据管理</a></li>
<li><a href="/admin/data/reference">数据文献关联管理</a></li> <li><a href="/admin/data/comment">数据反馈管理</a></li>
<li><a href="/admin/data/import">上传元数据文件</a></li> <li><a href="/admin/data/reference">数据文献关联管理</a></li>
<li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li> <li><a href="/admin/data/import">上传元数据文件</a></li>
<li><a href="/admin/data/datafileimport">导入数据目录</a></li> <li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li>
<li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li> <li><a href="/admin/data/datafileimport">导入数据目录</a></li>
<li><a href="/admin/data/datasetcd">特色数据集管理</a></li> <li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li>
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li> <li><a href="/admin/data/datasetcd">特色数据集管理</a></li>
<li><a href="/admin/data/feature">特色推荐</a></li> <li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
<li><a href="/admin/data/feature">特色推荐</a></li>
</ul> </ul>

View File

@ -1,46 +1,64 @@
<?php <?php
$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>');
$this->breadcrumb('数据文献关联管理</a>'); $this->breadcrumb('数据文献关联管理');
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
?> ?>
<div id="leftPanel"> <div id="leftPanel">
<?= $this->partial('data/left.phtml'); ?> <?= $this->partial('data/left.phtml'); ?>
</div> </div>
<div id="rightPanel"> <div id="rightPanel">
<?php if ($this->msg or $this->messages) :?> <?php if ($this->msg or $this->messages) :?>
<div id="message"> <div id="message">
<?php if ($this->msg) : ?> <?php if ($this->msg) : ?>
<p><?php echo $this->msg; ?></p> <p><?php echo $this->msg; ?></p>
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?> <?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
<p><?php echo $msg; ?></p> <p><?php echo $msg; ?></p>
<?php endforeach;endif; ?> <?php endforeach;endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<a href="/admin/data/reference/add/1">添加新的数据文献</a><?= $this->paginator; ?>
<?php if (count($this->paginator)): ?> <div class="right_title">数据文献关联管理</div>
<div id="datasetcd">
<?php <div class="search">
$u=''; <form action="" method="get">
$i=0; <input type="hidden" name="search" value='1' />
foreach ($this->paginator as $item): <ul>
if ($u==$item['uuid']) : <li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
$i+=1; <li><input type="submit" class="searchbtn" value="搜索" /></li>
else : </ul>
if (!empty($u)) echo '</ul>'; </form>
$i=0; </div><!-- search DIV -->
$u=$item['uuid'];
endif; <div class="controlplan">
if ($i==0) echo '<ul><li>元数据:<a href="/data/'.$item['uuid'].'">'.$item['title'].'</a><a href="/admin/data/reference/add/1/uuid/'.$item['uuid'].'">添加</a></li>'; <a href="/admin/data/reference/add/1">添加新的数据文献</a>
echo '<li>文献(<a href="/admin/data/reference/edit/'.$item['refid'].'">编辑</a> <a href="/admin/data/reference/delete/'.$item['mdid'].'">删除</a>'.$item['reference'].'</li>';
endforeach; </div>
echo '</ul>';
?> <?php if (count($this->paginator)): ?>
</div> <div id="datasetcd">
<?php endif; ?> <?php
$u='';
$i=0;
foreach ($this->paginator as $item):
if ($u==$item['uuid']) :
$i+=1;
else :
if (!empty($u)) echo '</ul>';
$i=0;
$u=$item['uuid'];
endif;
if ($i==0) echo '<ul><li>元数据:<a href="/data/'.$item['uuid'].'">'.$item['title'].'</a><a href="/admin/data/reference/add/1/uuid/'.$item['uuid'].'">添加</a></li>';
echo '<li>文献(<a href="/admin/data/reference/edit/'.$item['refid'].'">编辑</a> <a href="/admin/data/reference/delete/'.$item['mdid'].'">删除</a>'.$item['reference'].'</li>';
endforeach;
echo '</ul>';
?>
</div>
<?php endif; ?>
<?= $this->paginator; ?>
</div> </div>