修改了页面视图

This commit is contained in:
Li Jianxuan 2012-04-06 10:03:16 +00:00
parent 4d544ee293
commit 8145b7f80f
2 changed files with 26 additions and 16 deletions

View File

@ -5,7 +5,8 @@ $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb($this->config->title->data); $this->breadcrumb($this->config->title->data);
$this->breadcrumb()->setSeparator(' > '); $this->breadcrumb()->setSeparator(' > ');
$this->headScript()->appendFile('/static/js/jqFancyTransitions.1.8.js'); $this->headScript()->appendFile('/static/js/jqgalscroll.js');
$this->headLink()->appendStylesheet('/static/css/jqGalScroll.css');
?> ?>
<div id="metadata" class="full clear"> <div id="metadata" class="full clear">
<div class="width2 fleft"> <div class="width2 fleft">
@ -95,18 +96,22 @@ $this->headScript()->appendFile('/static/js/jqFancyTransitions.1.8.js');
</div> </div>
</div> </div>
<div class="tbox mt12"> <div class="tbox mt12">
<div id='slideshowHolder'> <ul id='slideshowHolder'>
<?php <?php
foreach ($this->mdrandoms as $v) foreach ($this->mdrandoms as $v)
{ {
echo '<img src="/service/thumb/id/'.$v['id'].'" alt="'.$v['title'].'" /> echo '<li><a href="/data/'.$v['uuid'].'" target="_blank"><img src="/service/thumb/id/'.$v['id'].'" alt="'.$v['title'].'" /></a></li>';
<a href="/data/'.$v['uuid'].'"></a>';
} }
?> ?>
</div> </ul>
<script> <script>
$(document).ready( function(){ $(document).ready(function(){
$('#slideshowHolder').jqFancyTransitions({ 'width': 280, 'height': 300,'links': true }); $("#slideshowHolder").jqGalScroll({
speed:1,
width: 270,
height: 245,
direction : 'vertical'
});
}); });
</script> </script>
</div> </div>

View File

@ -2,7 +2,8 @@
$this->headTitle($this->config->title->site); $this->headTitle($this->config->title->site);
$this->headTitle('首页'); $this->headTitle('首页');
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headScript()->appendFile('/static/js/jqFancyTransitions.1.8.js'); $this->headScript()->appendFile('/static/js/jqgalscroll.js');
$this->headLink()->appendStylesheet('/static/css/jqGalScroll.css');
$auth = Zend_Auth::getInstance(); $auth = Zend_Auth::getInstance();
?> ?>
<div id="index" class="full clear"> <div id="index" class="full clear">
@ -56,22 +57,26 @@
</div> </div>
</div><!-- left --> </div><!-- left -->
<div class="width3 fright"> <div class="width3 fright">
<div class="tbox"> <div class="tbox">
<div id='slideshowHolder'> <ul id='slideshowHolder'>
<?php <?php
foreach ($this->mdrandoms as $v) foreach ($this->mdrandoms as $v)
{ {
echo '<img src="/service/thumb/id/'.$v->id.'" alt="'.$v->title.'" /> echo '<li><a href="/data/'.$v->uuid.'" target="_blank"><img src="/service/thumb/id/'.$v->id.'" alt="'.$v->title.'" /></a></li>';
<a href="/data/'.$v->uuid.'"></a>';
} }
?> ?>
</div> </ul>
</div>
<script> <script>
$(document).ready( function(){ $(document).ready(function(){
$('#slideshowHolder').jqFancyTransitions({ 'width': 280, 'height': 300,'links': true }); $("#slideshowHolder").jqGalScroll({
speed:1,
width: 270,
height: 300,
direction : 'vertical'
});
}); });
</script> </script>
</div>
<div class="tbox mt12"> <div class="tbox mt12">
<div class="title corners-top">在线下载热门数据</div> <div class="title corners-top">在线下载热门数据</div>
<div class="content" style="width:258px;"> <div class="content" style="width:258px;">