{template 'header.html'}

{template 'banner.html'}

<div class="container">

    {loop $data $tagdata}
    <div class="question-list-special">
        <div class="row">
            <div class="col-md-4 col-xs-12">
                <div class="question-list-special-pic">
                    <img src="{if $tagdata['img']}{$tagdata['img']}{else}/images/headimagehref.jpg{/if}">
                </div>
            </div>
            <div class="col-md-8 col-xs-12">
                <div class="question-list-special-title">
                    <h2>
                        <a href="{url('question/questionlist/page/1/tag/'.$tagdata['id'])}">{$tagdata['tagname']}</a>
                    </h2>
                    <!--<span class=""><a href="#">关注专题</a></span>-->
                </div>
                <div class="question-list-special-date">
                    <span>{$tagdata['adddate']}</span><span>{lang('number_of_questions')}： {$tagdata['tagnum']}</span>
                </div>
                <div class="question-list-special-text">
                    {$tagdata['content']}
                </div>
            </div>
        </div>
    </div>
    {/loop}

    <!--分页-->
    <nav aria-label="...">
        <ul class="pagination">
            {if $page>1}
            <li><a href="{modify('page/'.($page-1))}" aria-label="Previous"><span aria-hidden="true">«</span></a></li>
            {/if}
            <?php
								for($i=1;$i<=$allindex;$i++){
							?>
            {if $page==$i}
            <li class="active"><a href="#">{$i}<span class="sr-only">(current)</span></a></li>
            {else}
            <li><a href="{modify('page/'.$i)}">{$i}</a></li>
            {/if}
            <?php } ?>
            {if $page<$allindex}
            <li><a href="{modify('page/'.($page+1))}" aria-label="Next"><span aria-hidden="true">»</span></a></li>
            {/if}
        </ul>
    </nav>

</div>

{template 'footer.html'}