Showing
2 changed files
with
93 additions
and
67 deletions
1 | -<?php $this->_extends('layout/default_layout');?> | ||
2 | -<?php $this->_block('main');?> | ||
3 | -<div class="site-activity-content"> | ||
4 | - <?php if(!empty($this->view->currentday)):?> | ||
5 | - <h2 class="site-activity-date"><?php echo date('Y-m-d', $this->view->currentday);?></h2> | ||
6 | - <?php endif;?> | ||
7 | - | ||
8 | - <?php foreach($this->view->topics as $topic):?> | ||
9 | - <div class="main-layout clearfix"> | ||
10 | - <div class="layout-section"> | ||
11 | - <div class="site-activity-title"> | ||
12 | - <h4 class="site-activity-intro"><span></span><?php echo $topic['title'];?></h4> | ||
13 | - <div class="site-activity-time" | ||
14 | - start_time="<?php echo $topic['start_time']?>" end_time="<?php echo $topic['end_time']?>"><?php echo sprintf('%s-%s', date('H:i', $topic['start_time']), date('H:i', $topic['end_time']));?></div> | ||
15 | - <i class="site-activity-icon"></i> | ||
16 | - </div> | ||
17 | - <?php | ||
18 | - $plans = isset($this->view->plans[$topic['id']])? $this->view->plans[$topic['id']]: array(); | ||
19 | - foreach($plans as $plan):?> | ||
20 | - <div class="layout-item clearfix"> | ||
21 | - <div class="image-box"> | ||
22 | - <a href="javascript:;"> | ||
23 | - <img data-original="<?php echo Lib_Images::getImageUrl($plan['pic'], 'source','fragmentimg');?>?imageView/2/w/640" | ||
24 | - src="<?php echo Lib_Images::getImageUrl($plan['pic'], '0308x0160','fragmentimg');?>" alt="" > | ||
25 | - </a> | ||
26 | - </div> | ||
27 | - <div class="content"> | ||
28 | - <h2 class="volupia"> | ||
29 | - <a href="javascript:;"><?php echo $plan['title'];?></a> | ||
30 | - </h2> | ||
31 | - <p><?php echo $plan['content'];?></p> | ||
32 | - <p class="time"><?php echo date('Y.m.d', $plan['start_time']);?></p> | ||
33 | - </div> | ||
34 | - </div> | ||
35 | - <?php endforeach;?> | ||
36 | - </div> | ||
37 | - </div> | ||
38 | - <?php endforeach;?> | ||
39 | - </div> | ||
40 | - <div class="site-activity-tab"> | ||
41 | - <?php foreach($this->view->navs as $key => $navs):?> | ||
42 | - <ul> | ||
43 | - <?php foreach($navs as $nav):?> | ||
44 | - <li | ||
45 | - <?php | ||
46 | - $url = 'javascript:void(0)'; | ||
47 | - if($nav['enable']) $url = '/activity/plan/currentday/'.$nav['timestamp']; | ||
48 | - if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"'; | ||
49 | - else if (!$nav['enable']) echo 'class="disable"';?> | ||
50 | - > | ||
51 | - <a href="<?php echo $url;?>"><?php echo date('Y-m-d', $nav['timestamp']);?></a> | ||
52 | - </li> | ||
53 | - <?php endforeach;?> | ||
54 | - </ul> | ||
55 | - <?php if(next($this->view->navs)):?> | ||
56 | - <h4>往期</h4> | ||
57 | - <?php endif;?> | ||
58 | - <?php endforeach;?> | ||
59 | - </div> | ||
60 | -<?php $this->_endblock();?> | ||
61 | -<?php $this->_block('js');?> | ||
62 | -<script type="text/javascript"> | ||
63 | - seajs.use('yohood',function(yohood){ | ||
64 | - yohood.activityPlan(); | ||
65 | - }) | ||
66 | -</script> | ||
67 | -<?php $this->_endblock();?> | ||
1 | +<?php $this->_extends('layout/default_layout');?> | ||
2 | +<?php $this->_block('main');?> | ||
3 | + <div class="sh-hd"></div> | ||
4 | + <div class="sh-bd"> | ||
5 | + <div class="section1"></div> | ||
6 | + <div class="section2"></div> | ||
7 | + <div class="section3"></div> | ||
8 | + <div class="section4"></div> | ||
9 | + <div class="section5"></div> | ||
10 | + <div class="section6"></div> | ||
11 | + <div class="section7"></div> | ||
12 | + <div class="section8"></div> | ||
13 | + <div class="section9"></div> | ||
14 | + <div class="section10"></div> | ||
15 | + <div class="section11"></div> | ||
16 | + </div> | ||
17 | +<?php $this->_endblock();?> | ||
18 | +<?php $this->_block('js');?> | ||
19 | +<script type="text/javascript"> | ||
20 | +seajs.use('jquery',function($) | ||
21 | +{ | ||
22 | + $(".wrapper").attr("class", ""); | ||
23 | + $(".bd").attr("class", ""); | ||
24 | +}); | ||
25 | +</script> | ||
26 | +<?php $this->_endblock();?> |
website/view/script/activity/planbak.php
0 → 100644
1 | +<?php $this->_extends('layout/default_layout');?> | ||
2 | +<?php $this->_block('main');?> | ||
3 | +<div class="site-activity-content"> | ||
4 | + <?php if(!empty($this->view->currentday)):?> | ||
5 | + <h2 class="site-activity-date"><?php echo date('Y-m-d', $this->view->currentday);?></h2> | ||
6 | + <?php endif;?> | ||
7 | + | ||
8 | + <?php foreach($this->view->topics as $topic):?> | ||
9 | + <div class="main-layout clearfix"> | ||
10 | + <div class="layout-section"> | ||
11 | + <div class="site-activity-title"> | ||
12 | + <h4 class="site-activity-intro"><span></span><?php echo $topic['title'];?></h4> | ||
13 | + <div class="site-activity-time" | ||
14 | + start_time="<?php echo $topic['start_time']?>" end_time="<?php echo $topic['end_time']?>"><?php echo sprintf('%s-%s', date('H:i', $topic['start_time']), date('H:i', $topic['end_time']));?></div> | ||
15 | + <i class="site-activity-icon"></i> | ||
16 | + </div> | ||
17 | + <?php | ||
18 | + $plans = isset($this->view->plans[$topic['id']])? $this->view->plans[$topic['id']]: array(); | ||
19 | + foreach($plans as $plan):?> | ||
20 | + <div class="layout-item clearfix"> | ||
21 | + <div class="image-box"> | ||
22 | + <a href="javascript:;"> | ||
23 | + <img data-original="<?php echo Lib_Images::getImageUrl($plan['pic'], 'source','fragmentimg');?>?imageView/2/w/640" | ||
24 | + src="<?php echo Lib_Images::getImageUrl($plan['pic'], '0308x0160','fragmentimg');?>" alt="" > | ||
25 | + </a> | ||
26 | + </div> | ||
27 | + <div class="content"> | ||
28 | + <h2 class="volupia"> | ||
29 | + <a href="javascript:;"><?php echo $plan['title'];?></a> | ||
30 | + </h2> | ||
31 | + <p><?php echo $plan['content'];?></p> | ||
32 | + <p class="time"><?php echo date('Y.m.d', $plan['start_time']);?></p> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <?php endforeach;?> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <?php endforeach;?> | ||
39 | + </div> | ||
40 | + <div class="site-activity-tab"> | ||
41 | + <?php foreach($this->view->navs as $key => $navs):?> | ||
42 | + <ul> | ||
43 | + <?php foreach($navs as $nav):?> | ||
44 | + <li | ||
45 | + <?php | ||
46 | + $url = 'javascript:void(0)'; | ||
47 | + if($nav['enable']) $url = '/activity/plan/currentday/'.$nav['timestamp']; | ||
48 | + if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"'; | ||
49 | + else if (!$nav['enable']) echo 'class="disable"';?> | ||
50 | + > | ||
51 | + <a href="<?php echo $url;?>"><?php echo date('Y-m-d', $nav['timestamp']);?></a> | ||
52 | + </li> | ||
53 | + <?php endforeach;?> | ||
54 | + </ul> | ||
55 | + <?php if(next($this->view->navs)):?> | ||
56 | + <h4>往期</h4> | ||
57 | + <?php endif;?> | ||
58 | + <?php endforeach;?> | ||
59 | + </div> | ||
60 | +<?php $this->_endblock();?> | ||
61 | +<?php $this->_block('js');?> | ||
62 | +<script type="text/javascript"> | ||
63 | + seajs.use('yohood',function(yohood){ | ||
64 | + yohood.activityPlan(); | ||
65 | + }) | ||
66 | +</script> | ||
67 | +<?php $this->_endblock();?> |
-
Please register or login to post a comment