fix newdata url problem, change import function with colorbox

This commit is contained in:
wlx 2012-04-17 09:16:00 +00:00
parent 18792dd47f
commit 33965950e1
4 changed files with 19 additions and 12 deletions

View File

@ -4,6 +4,8 @@ $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('新建数据');
@ -22,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="tabs-controller">
<ul>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
</ul>
</div>
@ -32,7 +34,7 @@ $this->breadcrumb()->setSeparator(' > ');
<h2>根据预制元数据模板创建数据</h2>
<ul>
<?php foreach ($this->templates as $item) : ?>
<li><a href="/service/geonetwork?metadata.create?group=2&id=<?php echo $item['id']; ?>" target="_blank"><?php echo $item['title']; ?></a></li>
<li><a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank"><?php echo $item['title']; ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
@ -50,7 +52,7 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<li>
<p><span class="title"><?php echo $item['title'];?></span>
<a href="/service/geonetwork?metadata.create?group=2&id=<?php echo $item['gid']; ?>">以此为模板新建</a>
<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>">以此为模板新建</a>
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a></p>
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
</li>
@ -63,5 +65,6 @@ $this->breadcrumb()->setSeparator(' > ');
</div>
<!-- //页面内容 -->
<script>
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$('#wapper').width($('body').width()-300);
</script>

View File

@ -22,7 +22,7 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="tabs-controller">
<ul>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
</ul>
</div>

View File

@ -4,6 +4,8 @@ $this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headLink()->appendStylesheet('/css/author.css');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/author">数据作者</a>');
$this->breadcrumb('新建数据');
@ -22,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="tabs-controller">
<ul>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
<li class="box-shadow active">单条元数据查看</li>
</ul>
@ -35,5 +37,6 @@ $this->breadcrumb()->setSeparator(' > ');
</div>
<!-- //页面内容 -->
<script>
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
$('#wapper').width($('body').width()-300);
</script>

View File

@ -24,7 +24,7 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="tabs-controller">
<ul>
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/import">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add">新建元数据</a></li>
</ul>
</div>
@ -39,8 +39,8 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<li>
<p><span class="title"><?php echo $item['title'];?></span>
<a href="/service/geonetwork?metadata.show?id=<?php echo $item['id']; ?>">在geonetwork里查看</a>
| <a href="/service/geonetwork?metadata.edit?id=<?php echo $item['id']; ?>">在geonetwork里修改</a>
<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>">在geonetwork里查看</a>
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>">在geonetwork里修改</a>
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
</p>
</li>
@ -83,6 +83,7 @@ function action(ac,id){
});
}
$(".inline").colorbox({inline:true, width:"50%"});
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
function commit(id){
action('commit&changelog='+$('#changelog').val(),id);
}