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.
92 lines
5.8 KiB
92 lines
5.8 KiB
{template "header.html", "/"}
|
|
|
|
<div class="page-container">
|
|
<div class="page-content-wrapper">
|
|
{template "header.html"}
|
|
<div class="page-content">
|
|
<div class="container">
|
|
<div class="page-content-inner">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="bg-white">
|
|
<link href="{HOME_THEME_PATH}slide/slide.css" type="text/css" rel="stylesheet">
|
|
<div id="myslide" style="width: auto; height: auto; overflow: hidden">
|
|
<table width="100%" cellSpacing="0" cellPadding="0">
|
|
<tr>
|
|
<td class="pic" id="bimg">
|
|
<!--查询推荐位2(首页幻灯)的内容,field需要用到的字段(不填表示全部),按displayorder(后台指定排序)排序-->
|
|
{list action=module flag=2 field=thumb,title,url order=displayorder,updatetime num=5}
|
|
<div class="{if $key==0}dis{else}undis{/if}" name="f">
|
|
<a href="{$t.url}" title="{$t.title}" {if $t.target}target="_blank"{/if}><img alt="{$t.title}" style="width: 100%; height: 274px;" src="{dr_thumb($t.thumb, 350, 270)}" border="0"></a>
|
|
</div>
|
|
{/list}
|
|
<table id="font_hd" width="100%" cellSpacing="0" cellPadding="0">
|
|
<tr>
|
|
<td class="title" id="info">
|
|
<!--查询推荐位2(首页幻灯)的内容,field需要用到的字段(不填表示全部),按displayorder(后台指定排序)排序-->
|
|
{list action=module flag=2 field=thumb,title,url order=displayorder,updatetime num=5}
|
|
<div class="{if $key==0}dis{else}undis{/if}" name="f">
|
|
<a href="{$t.url}" title="{$t.title}" {if $t.target}target="_blank"{/if}>{$t.title}</a>
|
|
</div>
|
|
{/list}
|
|
</td>
|
|
<td id="simg" nowrap="nowrap" style="text-align:right">
|
|
<!--查询推荐位2(首页幻灯)的内容,field需要用到的字段(不填表示全部),按displayorder(后台指定排序)排序-->
|
|
{list action=module flag=2 field=thumb,title,url order=displayorder,updatetime num=5}
|
|
<div class="{if $key==0}{else}f1{/if}" onclick=play(x[{$key}],{$key}) name="f">{$key+1}</div>
|
|
{/list}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script src="{HOME_THEME_PATH}slide/slide.js"></script>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!--循环输出顶级栏目下面的子栏目及其内容,运用到了双list循环标签因此需要定义返回值return=c(都懂得)-->
|
|
{list action=category pid=0 num=5 return=c}
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="portlet light">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<span class="caption-subject bold uppercase"><a class=" font-green" href="{dr_mobile_category_url(MOD_DIR, $c.id)}">{$c.name}</a></span>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<ul class="list-unstyled">
|
|
<!-- 调用模块的10条数据 -->
|
|
{list action=module catid=$c.id order=updatetime num=10}
|
|
<li style="line-height: 23px">
|
|
<span class="badge badge-empty badge-success"></span>
|
|
<a href="{dr_mobile_show_url(MOD_DIR, $t.id)}" class="title">{dr_strcut($t.title, 30)}</a>
|
|
</li>
|
|
{/list}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/list}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
{template "footer.html"}
|