index.php
1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php $this->_extends('layout/default_layout');?>
<?php $this->_block('main');?>
<div class="slide-main brand-slide">
<div class="slide-box">
<div class="slide-wrap clearfix">
<?php foreach($this->view->banners as $banner):?>
<div class="box">
<a href="<?php echo $banner['url'];?>" target="_blank" title="<?php echo $banner['text'];?>">
<img src="<?php echo Lib_Images::getImageUrl($banner['res'],'0980x0474','fragmentimg');?>" alt=""/>
</a>
</div>
<?php endforeach;?>
</div>
</div>
<div class="slide-navigator">
<div class="dib clearfix">
<?php echo '<a href="javascript:;" class="on"></a>'.str_repeat('<a href="javascript:;"></a>', count($this->view->banners) - 1);?>
</div>
</div>
<div class="slide-control">
<a class="slide-prev iconfont" href="javascript:void(0);"></a>
<a class="slide-next iconfont" href="javascript:void(0);"></a>
</div>
</div>
<div class="brand-main">
<div class="search-wrap">
<input type="text" placeholder="搜索品牌...">
<a href="javascript:;" class="search-btn iconfont"></a>
</div>
<div class="brand-content">
<ul class="brand-list cooperation-list clearfix">
<br/>
</ul>
</div>
</div>
<div id="brand_detail">
</div>
<div class="overlay"></div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
seajs.use('yohood',function(yohood){
yohood.brand();
})
</script>
<?php $this->_endblock();?>