缩略图地址替换
This commit is contained in:
parent
915b7c1ab5
commit
e2f7c3c1d5
|
@ -23,7 +23,7 @@ $this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$
|
|||
<?php
|
||||
foreach($this->metadata as $md) : ?>
|
||||
<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(' > ');
|
|||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<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>
|
||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -14,11 +14,12 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
|
|
|
@ -14,11 +14,12 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -38,7 +38,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<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>
|
||||
|
|
|
@ -20,14 +20,14 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<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>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div id='leftnav'>
|
||||
|
|
|
@ -59,7 +59,7 @@ window.onload=function() {
|
|||
"title" : "<?php echo $row['title']; ?>",
|
||||
"options" : {
|
||||
// set the full HTML for the info window
|
||||
"infoHtml": "<a href=/data/<?php echo $row['uuid']; ?>><?php echo $row['title']; ?></a><hr /><img src=/data/thumb/id/<?php echo $row['id']; ?> />"
|
||||
"infoHtml": "<a href=/data/<?php echo $row['uuid']; ?>><?php echo $row['title']; ?></a><hr /><img src=/service/thumb/id/<?php echo $row['id']; ?> />"
|
||||
}
|
||||
},
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -148,7 +148,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