fix paramater problem

This commit is contained in:
wlx 2012-04-17 08:33:25 +00:00
parent 513acb2764
commit cff57b640d
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ $this->breadcrumb()->setSeparator(' > ');
<h2>根据预制元数据模板创建数据</h2>
<ul>
<?php foreach ($this->templates as $item) : ?>
<li><a href="/service/geonetwork?url=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 +50,7 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<li>
<p><span class="title"><?php echo $item['title'];?></span>
<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urldecode('&id='.$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>