You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.6 KiB
31 lines
1.6 KiB
{layout name="public/layout" /}
|
|
{if condition="(isset($list) and count($list))"}
|
|
<div class="categorylist">
|
|
<div class="page-header">
|
|
<h2>活动 </h2>
|
|
</div>
|
|
<div class="products">
|
|
{foreach $list as $vo}
|
|
<div class="product media" onclick="window.location.href='{:url('activity/detail',array('id'=>$vo['id']))}'" >
|
|
<div class="media-left">
|
|
<a href="#">
|
|
{if condition="empty($vo['poster'])"}
|
|
<img src="{$yf_theme_path}/public/img/default.png" class="media-object" width="104px" />
|
|
{else}
|
|
<img src="{$vo.poster}" class="media-object" width="104px" οnerrοr="javascript:this.src='{$yf_theme_path}/public/img/default.png';"/>
|
|
{/if}
|
|
</a>
|
|
</div>
|
|
<div class="media-body">
|
|
<h4 class="media-heading">{$vo.title}</h4>
|
|
<div class="media-content">
|
|
<p>开始日期:{$vo.start_date?date('Y-m-d',$vo['start_date']):''}</p>
|
|
<p>结束日期:{$vo.end_date?date('Y-m-d',$vo['end_date']):''}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
<div class="pages text-center">{$show}</div>
|
|
</div>
|
|
{/if}
|