缩略图采用service/thumb
This commit is contained in:
parent
d5d83a43b0
commit
8675ca072e
|
@ -20,7 +20,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
foreach($this->metadata as $md) : ?>
|
||||
<hr />
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
|
|
|
@ -16,7 +16,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<?php foreach($this->metadata as $md) : ?>
|
||||
<hr />
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>" title="XML模式查看"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/map/id/<?php echo $md['id']; ?>" title="查看数据空间范围"><img src="/images/map.gif" /></a>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
?>
|
||||
<div id="download">
|
||||
<h1><?php echo $this->md['title']; ?>(<?php echo $this->md['filesize']; ?>MB)</h1>
|
||||
<div id="thumb"><img src="/data/thumb/id/<?php echo $this->md['id'];?>" /></div>
|
||||
<div id="thumb"><img src="/service/thumb/id/<?php echo $this->md['id'];?>" /></div>
|
||||
<div id="ftpurl">
|
||||
<fieldset><legend>FTP下载地址</legend>
|
||||
<ul>
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/OpenLayers.js');
|
||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
||||
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
||||
?>
|
||||
<script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg'></script>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
|
@ -56,7 +56,7 @@
|
|||
popup = new OpenLayers.Popup.FramedCloud("chicken",
|
||||
feature.geometry.getBounds().getCenterLonLat(),
|
||||
null,
|
||||
"<div style='font-size:.8em'><a href=/data/"+feature.attributes['uuid']+">"+ feature.attributes['title'] +"</a> | <a href=/data/map/id/"+feature.attributes['id']+"><img src=/images/map.gif></a><hr /><img src=/data/thumb/id/" + feature.attributes['id']+"/></div>",
|
||||
"<div style='font-size:.8em'><a href=/data/"+feature.attributes['uuid']+">"+ feature.attributes['title'] +"</a> | <a href=/data/map/id/"+feature.attributes['id']+"><img src=/images/map.gif></a><hr /><img src=/service/thumb/id/" + feature.attributes['id']+"/></div>",
|
||||
null, false, onPopupClose);
|
||||
feature.popup = popup;
|
||||
map.addPopup(popup);
|
||||
|
|
|
@ -38,7 +38,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<hr />
|
||||
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/water/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
|
|
|
@ -39,7 +39,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<?php foreach($this->metadata as $md) : ?>
|
||||
<hr />
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
|
|
|
@ -17,7 +17,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<hr />
|
||||
<div class="thumb"><img src="/data/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/water/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
||||
|
||||
</h2>
|
||||
|
|
|
@ -9,8 +9,7 @@ $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|||
$this->breadcrumb('<a href="/water/">黑河综合遥感联合试验</a>');
|
||||
$this->breadcrumb('时空联合导航');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg');
|
||||
//$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhThiRESR0xRCe9JKd36EL3glTk0OxTsRzifkUWmTTrYWaE7dY1lYUlGxA');
|
||||
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||
$this->headScript()->appendFile('/js/timemap/timemap.js');
|
||||
|
@ -48,7 +47,7 @@ window.onload=function() {
|
|||
"title" : "<?php echo htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')); ?>",
|
||||
"options" : {
|
||||
// set the full HTML for the info window
|
||||
"infoHtml": "<div class='info'><a href=/water/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')); ?></a><hr /><img src=/data/thumb/id/<?php echo $row['id']; ?> /></div>",
|
||||
"infoHtml": "<div class='info'><a href=/water/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')); ?></a><hr /><img src=/service/thumb/id/<?php echo $row['id']; ?> /></div>",
|
||||
"theme":"orange"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -153,7 +153,7 @@ endforeach;
|
|||
</div>
|
||||
<div id="left">
|
||||
|
||||
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md->id;?>" onclick="fnCreate('<?php echo $this->thumburl; ?>')" /> </div>
|
||||
<div id="ImageViewer"><img src="/service/thumb/id/<?php echo $md->id;?>" onclick="fnCreate('<?php echo $this->thumburl; ?>')" /> </div>
|
||||
<div id="abstract">
|
||||
<p>
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||
|
|
Loading…
Reference in New Issue