{template "header.html", "/"}
<div class="page-container">
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="container">


                <div class="page-content-inner">
                    <div class="search-page search-content-2">
                        <div class="search-bar ">
                            <div class="row">
                                <div class="col-md-12">
                                    <form name="search" action="index.php" type="get">
                                        <input type="hidden" name="c" value="so"/>
                                        <input type="hidden" name="module" value="{$dirname}"/>
                                        <div class="input-group">
                                            <input type="text" name='keyword' value='{$keyword}' class="form-control" placeholder="输入关键字搜索">
                                            <span class="input-group-btn">
                                                <button class="btn blue uppercase bold" type="submit">全站搜索</button>
                                            </span>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">


                                <div class="search-container ">

                                    <div style="margin: 0px 20px;padding-top: 20px;">
                                    {loop $module $dir $t}
                                    <a href="{dr_so_url($params, 'module', $dir)}" class="badge {if $dir==$dirname}badge-info{else}badge-default{/if}"> {$t.name}（{intval($t.search.sototal)}） </a>
                                     {/loop}
                                    </div>
                                    <ul class="search-container">
                                        {if $searchid}
                                        {list action=search module=$dirname id=$searchid total=$sototal catid=$catid order=$params.order page=1 pagesize=10 urlrule=$urlrule}
                                        <li class="search-item clearfix">
                                            <div class="search-content text-left">
                                                <h4 class="search-title">
                                                    <a title="{$t.title}" href="{dr_mobile_show_url($dirname, $t.id)}">{dr_keyword_highlight($t.title, $keyword)}</a>
                                                </h4>
                                                <p class="search-desc">{dr_keyword_highlight($t.description, $keyword)}</p>
                                                <div class="search-post-foot">
                                                    <div class="search-post-meta">
                                                        <i class="icon-calendar font-blue"></i>
                                                        <a href="javascript:;">{$t.updatetime}</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-fire font-blue"></i>
                                                        <a href="javascript:;">{$t.hits}次</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-bubble font-blue"></i>
                                                        <a href="javascript:;">{$t.comments}</a>
                                                    </div>
                                                </div>
                                            </div>
                                        </li>
                                        {/list}
                                        {if !$total}
                                        <div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>
                                        {/if}
                                        {else}
                                        <div class="alert alert-danger"><strong>对不起!</strong> 没有找到任何记录 </div>
                                        {/if}
                                    </ul>
                                    <div class="search-pagination">
                                        <ul class="pagination">
                                            {$pages}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
</div>



{template "footer.html"}