{T "content","header",TPLID}
<!--路径导航-->
<div class="container">
    <ol class="breadcrumb" style="margin-bottom: 0px;  font-size: 12px;">
        您现在的位置：
        <li><a href="/index.php">首页</a></li>
        <li class="active"><a href="/index.php?m=guestbook">留言板</a></li>
    </ol>
</div>

<div class="container ssa--liuyan-list">
    <div class="margin_top30" style="display: inline-block;">
        <form class="form-inline" action="" method="get">
            <div class="ssa--biaodan-border">
                <select class="form-control" name="conditions">
                    <option value="0" {if $conditions==0}selected{/if}>按关键字查询</option>
                    <option value="1" {if $conditions==1}selected{/if}>按帖子查询码查询</option>
                </select>
            </div>
            <div class="ssa--biaodan-border">
                <div class="form-group">
                    <label class="sr-only" for="exampleInputEmail3"> </label>
                    <input type="text" name="keywords" class="form-control" id="exampleInputEmail3" placeholder="请输入搜索内容" value="{$keywords}">
                </div>
            </div>
            <div class="ssa--biaodan-border">
                <select class="form-control" name="area">
                    <option value="">主题领域</option>
                    {loop $area_array $key $r}
                    <option value="{$key}" {if $area==$key}selected{/if}>{$r}</option>
                    {/loop}
                </select>
            </div>
            <div class="ssa--biaodan-border">
                <select class="form-control" name="category">
                    <option value="">主题类别</option>
                    {loop $category_array $key $r}
                    <option value="{$key}" {if $category==$key}selected{/if}>{$r}</option>
                    {/loop}
                </select>
            </div>
            <input type="hidden" name="m" value="guestbook">
            <button type="submit" class="btn btn-success">搜索</button>
        </form>
    </div>
    <div class="margin_top30" style="float: right"><a href="index.php?m=guestbook&v=contact" class="btn  btn-default"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span> <strong>快速留言</strong></a>
    </div>



    <div class="bs-example bs-example-tabs" data-example-id="togglable-tabs" style="margin-top: 30px;">
        <ul id="myTabs" class="nav nav-pills ssa--liuyan-hdsx" role="tablist">
            <li role="presentation" {if $type==0}class="active"{/if}><a href="index.php?m=guestbook&type=0" >全部</a></li>
            <li role="presentation" {if $type==8}class="active"{/if}><a href="index.php?m=guestbook&type=8" >已回复</a></li>
            <li role="presentation" {if $type==9}class="active"{/if}><a href="index.php?m=guestbook&type=9" >未回复</a></li>
            <li role="presentation" {if $type==7}class="active"{/if}><a href="index.php?m=guestbook&type=7" >办理中</a></li>
        </ul>

        <div id="myTabContent" class="tab-content">

            <div role="tabpanel" class="tab-pane fade active in" id="home" aria-labelledby="home-tab">

                <div class="panel panel-default">

                    {loop $guestbook_result $r}
                    <div class="panel-heading">
                        <span style="display: inline-block; max-width: 70%;"><strong>{if $r['area']}[<a>{$r['area']}</a>]{/if} <a>{$r['category']}</a> <a href="index.php?m=guestbook&v=show&id={$r['id']}">{$r['title']}</a></strong><span class="color-danger  font_size14">&nbsp;&nbsp; | &nbsp;&nbsp;{$status[$r[status]]}</span> </span> <span style=" float: right; font-size: 14px;  color: #999;">网友：{$r['linkman']}  &nbsp;&nbsp; {date('Y-m-d H:i',$r['addtime'])}</span>
                    </div>
                    <div class="panel-body">
                       <div style="width: 70%"> {strcut($r['content'],190,'...')}</div>
                        {if $r[status]==9}
                        <p class="text-right color_777 font_size14 margin_bottom0" style="margin-top: -21px;"><a href="{WEBURL}index.php?m=guestbook&f=index&v=show&id={$r[id]}">[查看全文]</a></p>
                        {/if}
                    </div>
                    <!--回复-->
                    {if $r[status]==8}
                    <div class="panel-footer">
                        <div class="ssa--huifu-hd">
                            <div class="hd-left"><h4><strong>官方回复：</strong></h4></div>
                            <div class="hd-right"> <span style=" font-size: 14px;  color: #999;">回复单位：{$r[reply_user]}  &nbsp;&nbsp; {date('Y-m-d H:i',$r['replytime'])}</span></div>
                        </div>
                        {strcut($r['reply'],180,'...')}
                        <p class="text-right color_777 font_size14 margin_bottom0"><a href="/index.php?m=guestbook&f=index&v=show&id={$r['id']}">[查看全文]</a></p>
                    </div>
                    {/if}
                    <!-- // 回复-->
                    {/loop}
                    {/wz}
                </div>
                <div style="text-align:center;">
                    <nav style="text-align: center;">
                        <ul class="pagination">
                            {$guestbook_pages}
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>




{T "content","footer",TPLID}