|
|
<?php $this->_extends('layout/default_layout');?>
|
|
|
<?php $this->_block('main');?>
|
|
|
<div class="site-activity-content">
|
|
|
<?php if(!empty($this->view->currentday)):?>
|
|
|
<h2 class="site-activity-date"><?php echo date('Y-m-d', $this->view->currentday);?></h2>
|
|
|
<?php endif;?>
|
|
|
|
|
|
<?php foreach($this->view->topics as $topic):?>
|
|
|
<div class="main-layout clearfix">
|
|
|
<div class="layout-section">
|
|
|
<div class="site-activity-title">
|
|
|
<h4 class="site-activity-intro"><span></span><?php echo $topic['title'];?></h4>
|
|
|
<div class="site-activity-time"
|
|
|
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>
|
|
|
<i class="site-activity-icon"></i>
|
|
|
</div>
|
|
|
<?php
|
|
|
$plans = isset($this->view->plans[$topic['id']])? $this->view->plans[$topic['id']]: array();
|
|
|
foreach($plans as $plan):?>
|
|
|
<div class="layout-item clearfix">
|
|
|
<div class="image-box">
|
|
|
<a href="javascript:;">
|
|
|
<img data-original="<?php echo Lib_Images::getImageUrl($plan['pic'], 'source','fragmentimg');?>?imageView/2/w/640"
|
|
|
src="<?php echo Lib_Images::getImageUrl($plan['pic'], '0308x0160','fragmentimg');?>" alt="" >
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<h2 class="volupia">
|
|
|
<a href="javascript:;"><?php echo $plan['title'];?></a>
|
|
|
</h2>
|
|
|
<p><?php echo $plan['content'];?></p>
|
|
|
<p class="time"><?php echo date('Y.m.d', $plan['start_time']);?></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
</div>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
<div class="site-activity-tab">
|
|
|
<?php foreach($this->view->navs as $key => $navs):?>
|
|
|
<ul>
|
|
|
<?php foreach($navs as $nav):?>
|
|
|
<li
|
|
|
<?php
|
|
|
$url = 'javascript:void(0)';
|
|
|
if($nav['enable']) $url = '/activity/plan/currentday/'.$nav['timestamp'];
|
|
|
if($nav['timestamp'] == $this->view->currentday && $nav['enable']) echo 'class="current"';
|
|
|
else if (!$nav['enable']) echo 'class="disable"';?>
|
|
|
>
|
|
|
<a href="<?php echo $url;?>"><?php echo date('Y-m-d', $nav['timestamp']);?></a>
|
|
|
</li>
|
|
|
<?php endforeach;?>
|
|
|
</ul>
|
|
|
<?php if(next($this->view->navs)):?>
|
|
|
<h4>往期</h4>
|
|
|
<?php endif;?>
|
|
|
<?php endforeach;?>
|
|
|
</div>
|
|
|
<?php $this->_endblock();?>
|
|
|
<?php $this->_block('js');?>
|
|
|
<script type="text/javascript">
|
|
|
seajs.use('yohood',function(yohood){
|
|
|
yohood.activityPlan();
|
|
|
})
|
|
|
</script>
|
|
|
<?php $this->_endblock();?> |
|
|
\ No newline at end of file |
|
|
<?php $this->_extends('layout/default_layout');?>
|
|
|
<?php $this->_block('main');?>
|
|
|
<div class="sh-hd"></div>
|
|
|
<div class="sh-bd">
|
|
|
<div class="section1"></div>
|
|
|
<div class="section2"></div>
|
|
|
<div class="section3"></div>
|
|
|
<div class="section4"></div>
|
|
|
<div class="section5"></div>
|
|
|
<div class="section6"></div>
|
|
|
<div class="section7"></div>
|
|
|
<div class="section8"></div>
|
|
|
<div class="section9"></div>
|
|
|
<div class="section10"></div>
|
|
|
<div class="section11"></div>
|
|
|
</div>
|
|
|
<?php $this->_endblock();?>
|
|
|
<?php $this->_block('js');?>
|
|
|
<script type="text/javascript">
|
|
|
seajs.use('jquery',function($)
|
|
|
{
|
|
|
$(".wrapper").attr("class", "");
|
|
|
$(".bd").attr("class", "");
|
|
|
});
|
|
|
</script>
|
|
|
<?php $this->_endblock();?> |
...
|
...
|
|