修复数据模板功能
This commit is contained in:
parent
29bc9c12b0
commit
fd5436c41a
|
@ -31,14 +31,12 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
<li class="box-shadow"><a class="text-shadow" href="/heihe/submit/ac/unsubmit">未提交元数据</a></li>
|
<li class="box-shadow"><a class="text-shadow" href="/heihe/submit/ac/unsubmit">未提交元数据</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div style="width:70%;overflow:hidden;padding-left:20px;">
|
<div id="datalist">
|
||||||
<h2>根据已有元数据来创建数据</h2>
|
<h2>根据已有元数据来创建数据</h2>
|
||||||
<form id="datasearch" class="search_form" action="/submit/newdata/ac/add">
|
<form id="datasearch" class="search_form" action="/submit/newdata/ac/add">
|
||||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
<?php
|
<?php
|
||||||
if (count($this->paginator)):
|
if (count($this->paginator)):
|
||||||
echo "<ul>";
|
echo "<ul>";
|
||||||
|
|
|
@ -32,9 +32,34 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="datalist">
|
||||||
|
<h2>根据预制元数据模板创建数据</h2>
|
||||||
|
<form id="datasearch" class="search_form" action="/submit/newdata/">
|
||||||
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
|
if (count($this->paginator)):
|
||||||
|
echo "<ul>";
|
||||||
|
$autoindex=0;
|
||||||
|
foreach ($this->paginator as $item):
|
||||||
|
$autoindex++;
|
||||||
|
?>
|
||||||
|
<li>
|
||||||
|
<p><span class="title"><?php echo $item['title'];?></span>
|
||||||
|
【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank">以此为模板新建</a>
|
||||||
|
<?php if ($this->isadmin || $item['isowner']==0) : ?>
|
||||||
|
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
】</p>
|
||||||
|
</li>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
echo "</ul>";
|
||||||
|
endif; ?>
|
||||||
|
</div>
|
||||||
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
|
Loading…
Reference in New Issue