Ejemplo n.º 1
0
                         <span id="qa-waiting-template" class="qa-waiting fa fa-spinner fa-spin"></span>
                 </div>

             </div>
        </section>
        <section class="right-side">
            <div class="refer">
                <div class="refer-title">
                    <div class="refer-img"></div>
                    <div class="refer-font">相关文章</div>
                </div>
                <div class="refer-list">
                    <ul>
                        <ul>
                        <?php 
$simposts = getSimilarPosts($postid);
if ($simposts != null) {
    foreach ($simposts as $key => $value) {
        echo "<li><a href=/baikedetail/" . $value['postid'] . ".html>" . $value['title'] . '</a></li>';
    }
} else {
    echo "没有相关文章";
}
?>
                    </ul>
                </div>
            </div>
            <div class="refer">
                <div class="refer-title">
                    <div class="refer-img-q"></div>
                    <div class="refer-font">相关问答</div>
Ejemplo n.º 2
0
}
?>
                            
                        </ul>
                    </div>
        </section>
        <section class="right-side">
            <div class="refer">
                <div class="refer-title">
                    <div class="refer-img"></div>
                    <div class="refer-font">相关文章</div>
                </div>
                <div class="refer-list">
                    <ul>
                        <?php 
$simposts = getSimilarPosts($page);
if ($simposts != null) {
    foreach ($simposts as $key => $value) {
        echo "<li><a href=/baikedetail/" . $value['postid'] . ".html>" . $value['title'] . '</a></li>';
    }
} else {
    echo "没有相关文章";
}
?>
                    </ul>
                </div>
            </div>
            <div class="refer">
                <div class="refer-title">
                    <div class="refer-img-q"></div>
                    <div class="refer-font">相关问答</div>