{template modoer_header}
<div id="body">

    <div class="ix_foo">

        <div class="ix1_left">
            <script type="text/javascript" src="{URLROOT}/static/javascript/jquery.d.imagechange.js"></script>
            <div class="l1_pics" id="l1_pics">
                {get:modoer val=bcastr(groupname/index)}
                <a href="$val[item_url]" title="$val[itemtitle]" target="_blank"><img src="{URLROOT}/$val[link]" height="200" width="348" /></a>
                {/get}
            </div>
            <script type="text/javascript">
                $('#l1_pics').d_imagechange({width:300,height:250,repeat:'repeat'});
            </script>
        </div>

        <div class="ix1_center">
            <ul class="hl">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,introduce/where/att=1 AND status=1/orderby/listorder/rows/1/cachetime/1000)}
                <li>
                    <h2><a href="{url article/detail/id/$val[articleid]}">$val[subject]</a></h2>
                    <p>{sublen $val[introduce],52,'...'}...</p>
                </li>
                {/get}
            </ul>
            <div class="ix1_line"></div>
            <ul class="hl2">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,catid,author,dateline/where/att=2 AND status=1/orderby/listorder/rows/8/cachetime/1000)}
                <li><a href="{url article/detail/id/$val[articleid]}" title="$val[subject]">{sublen $val[subject],14}</a></li>
                {/get}
            </ul>
            <div class="clear"></div>
            <ul class="hl3">
                {get:modoer val=table(table/dbpre_articles/select/articleid,subject,thumb/where/att=3 AND status=1/orderby/listorder/rows/4/cachetime/1000)}
                <li><div><a href="{url article/detail/id/$val[articleid]}"><img src="{URLROOT}/$val[thumb]" width="88" height="60" title="$val[subject]" /></a></div></li>
                {/get}
            </ul>
        </div>

        <div class="ix1_right">
            <div class="btns">
                <a href="{url member/reg}" title="免费注册">免费注册</a>
                <a href="{url member/login}" title="快速登录">快速登录</a>
                <a href="{url review/member/ac/add}" title="发表点评">发表点评</a>
                <a href="{url item/member/ac/subject_add}" title="添加主题">添加主题</a>
                <div class="clear"></div>
            </div>
            <ul class="comm">
                <h2><a href="{url index/announcement/do/list}">网站公告</a></h2>
                {get:modoer val=table(table/dbpre_announcements/select/id,title,dateline/where/available=1/orderby/orders/rows/5/cachetime/1000)}
                <li><div><a href="{url index/announcement/id/$val[id]}">{sublen $val[title],18}</a></div></li>
                {/get}
            </ul>
        </div>

        <div class="clear"></div>

    </div>

    <div class="index_1">
        <div class="ixf_left">
            <!-- 推荐主题 begin --->
            <div class="ix_foo">
                <div class="ix_finer">
                    <div class="ix_left1_more">
                        <div class="ix_tab">
                            <div id="btn_subject1" class="selected"><a href="###" onclick="tabSelect(1,'subject')" onfocus="this.blur()">综合</a></div>
                            <!--{eval $i=2;}-->
                            {get:item val=category(pid/0)}
                            <div id="btn_subject$i"><a href="###" onclick="tabSelect($i,'subject')" onfocus="this.blur()">$val[name]</a></div>
                            <!--{eval $i++;}-->
                            {/get}
                        </div>
                    </div>
                </div>
                <div class="ix_left1_body" id="subject1" style="height:270px;_height:245px;">
                    <ul class="index_subject_pic">
                        {get:modoer val=table(table/dbpre_subject/select/sid,aid,name,subname,avgsort,thumb,description/where/finer>0 AND status=1/orderby/finer DESC/rows/10/cachetime/1000)}
                        <li>
                            <div><a href="{url item/detail/id/$val[sid]}"><img src="{URLROOT}/{if $val[thumb]}$val[thumb]{else}static/images/noimg.gif{/if}" alt="$val[name].$val[subname]" title="$val[name].$val[subname]" /></a></div>
                            <p><a href="{url item/detail/id/$val[sid]}" title="$val[name].$val[subname]">{sublen $val[name].$val[subname],10}</a></p>
                        </li>
                        {/get}
                    </ul>
                </div>
                <!--{eval $i=2;}-->
                {get:item val=category(pid/0)}
                <div class="ix_left1_body none" style="height:270px;_height:245px;" id="subject$i" datacallname="首页_推荐主题" params="{'pid':'$val[catid]'}"></div>
                <!--{eval $i++;}-->
                {/get}
                <div class="ix_left1_bottom"></div>
            </div>
            <!-- 推荐主题 end --->

			<!-- 需要加载的广告位置 -->
			<div id="adv_1"></div>

            <!-- 最新点评 end --->
            <div class="ix_foo">
                <div class="ix_review">
                    <div class="ix_left1_more"><span class="arrow-ico"><a href="{url item/reviews}">更多</a></span></div>
                </div>
                <div class="ix_left1_body" style="height:435px;">
                    <!--{get:review val=review(orderby/posttime DESC/rows/5/cachetime/500)}-->
                    <div class="review">
                        <div class="member">
                            <a href="{url space/index/uid/$val[uid]}"><img src="{print get_face($val[uid])}" class="face"></a>
                        </div>
                        <div class="field">
                            <div class="feed">
                                <!--{if $val[uid]}-->
                                <span class="member-ico"><a href="{url space/index/uid/$val[uid]}">$val[username]</a></span>&nbsp;在&nbsp;{date $val[posttime], 'w2style'}
                                <!--{else}-->
                                <span class="font_3">游客({print preg_replace("/^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)$/","\\1.\\2.*.*", $val[ip])})</span>
                                <!--{/if}-->
                                点评了&nbsp;<strong><a href="{print:review typeurl(idtype/$val[idtype]/id/$val[id])}">$val[subject]</a></strong>
                            </div>
                            <div class="info">
                                <ul class="score">
                                    <!--{get:review _val=reviewopt(catid/$val[pcatid])}-->
                                    <li>$_val[name]</li><li class="start{print cfloat($val[$_val[flag]])}"></li>
                                    <!--{/get}-->
                                </ul>
                                <div class="clear"></div>
                                <!--{eval $reviewurl = '...<a href="' . url("review/detail/id/".$val[rid]) . '">查看全文</a>';}-->
                                <p>{sublen $val[content],42,$reviewurl}</p>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <!--{/get}-->
                </div>
                <div class="ix_left1_bottom"></div>
            </div>
            <!-- 最新点评 end --->
        </div>
        <div class="ixf_right">
            
            <!-- 会员卡 begin -->
            <!--{if check_module('card')}-->
            <div class="ix_foo">
                <div class="ix_right_top"></div>
                <div class="ix_right_body" style="height:220px;">
                    <h2><a href="{url card/index}">会员卡折扣</a></h2>
                    <ul class="ix_card">
                    {get:card val=list_finer(row/10/cachetime/1000)}
                    <li><cite>$val[discount]&nbsp;折</cite><a href="{url item/detail/id/$val[sid]}">{sublen trim($val[name].$val[subname]),15}</a></li>
                    {/get}
                    </ul>
                </div>
                <div class="ix_right_bottom"></div>
            </div>
            <!--{/if}-->
            <!-- 会员卡 end -->

            <!-- 热门优惠券 begin -->
            <!--{if check_module('exchange')}-->
            <div class="ix_foo">
                <div class="ix_right_top"></div>
                <div class="ix_right_body" style="height:195px;">
                    <h2><a href="{url coupon/index}">优惠券</a></h2>
                    <ul class="ix_coupon">
                    {get:coupon val=list_new(row/7/cachetime/1000)}
                        <!--{if $val_k <= 1}-->
                            <li class="thumb"><a href="{url coupon/detail/id/$val[couponid]}" title="$val[subject]"><img src="{URLROOT}/$val[thumb]" alt="$val[subject]" /></a></li>
                        <!--{else}-->
                            <li class="c"><cite>{date $val[dateline], 'm-d'}</cite><a href="{url coupon/detail/id/$val[couponid]}">{sublen $val[subject],15}</a></li>
                        <!--{/if}-->
                    {/get}
                    </ul>
                </div>
                <div class="ix_right_bottom"></div>
            </div>
            <!--{/if}-->
            <!-- 热门优惠券 end -->

            <!-- 点评分类 begin -->
            <div class="ix_foo">
                <div class="ix_right_top"></div>
                <div class="ix_right_body" style="height:400px; overflow:auto; overflow-x:hidden;">
                    <h2>主题分类</h2>
                    {get:item val=category(pid/0)}
                    <div class="ix_category">
                        <h3><a href="{url item/list/catid/$val[catid]}">$val[name]</a></h3>
                        {get:item _val=category(pid/$val[catid])}
                        <a href="{url item/list/catid/$_val[catid]}">$_val[name]</a>
                        {/get}
                    </div>
                    {/get}
                </div>
                <div class="ix_right_bottom"></div>
            </div>
            <!-- 点评分类 end -->
        </div>
        <div class="clear"></div>
    </div>

    <div class="index_1">
        <div class="ixf_left">
            <!-- 最新图片 begin --->
            <div class="ix_foo">
                <div class="ix_picture">
                    <div class="ix_left1_more"><span class="arrow-ico"><a href="{url item/allpic}">更多</a></span></div>
                </div>
                <div class="ix_left1_body" style="height:90px;">
                    <ul class="index_pic">
                    <!--{get:item val=picture(select/picid,title,thumb,sid/orderby/addtime DESC/rows/7/cachetime/1000)}-->
                    <li><div><a href="{url item/detail/id/$val[sid]}"><img src="{URLROOT}/$val[thumb]" alt="$val[title]" title="$val[title]" /></a><b></b></div></li>
                    <!--{/get}-->
                    </ul>
                </div>
                <div class="ix_left1_bottom"></div>
            </div>
            <!-- 最新图片 end --->
        </div>
        <div class="ixf_right">
            <!-- 最新标签 begin -->
            <div class="ix_foo">
                <div class="ix_right_top"></div>
                <div class="ix_right_body">
                    <h2><a href="{url item/tag}">最新标签</a></h2>
                    <div class="ix_tag" style="height:92px;">
                        {get:item val=tag(orderby/dateline DESC/row/20/cachetime/1000)}
                        <span><a href="{url item/tag/tagid/$val[tagid]}"{if $val[total]} class="{print:item tagclassname(total/$val[total])}"{/if}>{sublen $val[tagname],6}</a></span>
                        {/get}
                    </div>
                </div>
                <div class="ix_right_bottom"></div>
            </div>
            <!-- 最新标签 end -->
        </div>
        <div class="clear"></div>
    </div>

    <!-- 友情链接 begin -->
    <!--{if check_module('link')}-->
    <div class="mainrail rail-border-3">
        <div class="rail-h-bg-3">
            <em>
                <a href="{url link/apply}">申请链接</a>&nbsp;
                <span class="arrow-ico"><a href="{url link/index}">更多</a></span>
            </em>
            <h2 class="rail-h-3">友情链接</h2>
        </div>
        <div class="index_links">
            <div class="links">
                {get:link val=links(type/char)}
                <a href="$val[link]" title="$val[des]" target="_blank">$val[title]</a>
                {/get}
            </div>
            <div class="line"></div>
            <div class="links">
                {get:link val=links(type/logo)}
                <a href="$val[link]" title="$val[des]" target="_blank"><img src="$val[logo]" alt="$val[title]" /></a>
                {/get}
            </div>
        </div>
    </div>
    <!--{/if}-->
    <!-- 友情链接 end -->

</div>
<div id="adv_1_content" style="display:none;">
<!--{include display('adv:show','name/首页_中部广告')}-->
</div>
<script type="text/javascript">
//加载广告
replace_content('adv_1=adv_1_content');
</script>
<!--{eval footer();}-->