<div class="col-xs-12 col-md-4">
    <div class="row">
        <div class="question-right">
            <div class="question-right-release">
                <a class="btn btn-default question-right-release-btn" target="_blank" href="{url('question/addquestion')}">
                    <i class="icon-note"></i>
                    {lang('ask_questions')}
                </a>

            </div>
            {if session::get('username')}
            <div class="question-right-user">

                <ul>
                    <li>
                        <a href="{url('question/questionlist/page/1/myseemid/1')}">
                            <i class="icon-star"></i>
                            {lang('myconcerns')}
                            <small>{$seemid_num}</small>
                        </a>
                    </li>
                    <li>
                        <a href="{url('question/questionlist/page/1/myquestion/1')}">
                            <i class="icon-question"></i>
                            {lang('myquestion')}
                            <small>{$myquestion_num}</small>
                        </a>
                    </li>
                    <?php if(count(pay::getInstance()->getrows())>1 ||
                    (count(pay::getInstance()->getrows())==1 && count(pay::getInstance()->getrows('pay_code="nopay"'))==0) ){ ?>
                    <li>
                        <a href="{url('manage/consumptionlist/manage/consumption')}">
                            <i class="icon-credit-card"></i>
                            {lang('balance')}
                            <small>{getmenoy()}</small>
                        </a>
                    </li>
                    <?php } ?>
                    <li>
                        <a href="{url('question/draftquestion')}">
                            <i class="icon-note"></i>
                            {lang('drafts')}
                        </a>
                    </li>
                </ul>
            </div>
            {/if}

            <div class="question-right-type">
                <h3><a href="{$base_url}/index.php?case=question&act=typelist">{lang('all_special')}</a></h3>
                <ul>

                    {loop $questiontype $type}
                    {if $typeid==$type['id']}
                    <li  class="active">
                        {else}
                    <li>
                        {/if}
                        <a href="{url('question/questionlist/page/1/typeid/'.$type['id'])}">{$type['typename']}<small>{$type['typenum']}</small></a></li>
                    {/loop}


                </ul>
            </div>
            <div class="question-right-tag">
                <h3><a href="{$base_url}/index.php?case=question&act=taglist">{lang('hot_tag')}</a></h3>
                <ul>
                    {loop $tagdata $questiontag}
                    <li><a href="{url('question/questionlist/page/1/tag/'.$questiontag['id'])}">{$questiontag['tagname']}<small>{$questiontag['tagnum']}</small></a></li>
                    {/loop}
                </ul>
            </div>
            <div class="question-right-hot">
                <h3><a href="{$base_url}/index.php?case=question&act=questionlist&page=1&sorting=1">{lang('hot_questions')}</a></h3>
                <ul>
                    {loop $huoquestiondata $huoquestion}
                    <li><a title="{$huoquestion['stitle']}" href="{url('question/showquestion/id/'.$huoquestion['id'])}" target="_blank">{$huoquestion['title']}</a></li>
                    {/loop}
                </ul>
            </div>
            <div class="question-right-qrcodes">
                <div class="question-right-qrcodes-wiexin">
                    <img src="{get('weixin_pic')}" alt='' />
                    <p>
                        {lang('attention')}<br />{lang('official')}{lang('wechat')}
                    </p>
                </div>
                {if config::get('qrcodes')=='1'}
                <div class="question-right-qrcodes-wap">
                    <div id="qrcode">
                    </div>
                    <p>
                        {lang('scanning')}<br />{lang('access')}{lang('sitewap')}
                    </p>
                </div>
                {/if}
            </div>
        </div>
    </div>
</div>