修改了页面视图

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

View File

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