Exemple #1
0
?>
    <ul class="icon-list qys_icon_list" style="margin:5px 0px;">
        <li class="letter-list pull-right">私信:<a style="display: inline-table;cursor: pointer;" href="<?php 
echo Url::toRoute('/say/private');
?>
"><?php 
echo $priviteUserComent;
?>
</a></li>
    </ul>
    <div style="clear: both;"></div>
</div>
<div class="content">
    <?php 
$data = ['limit' => 5, 'is_public' => 1];
$logisticsLists = CommentService::findComments($data);
if ($logisticsLists) {
    echo ListView::widget(['dataProvider' => $logisticsLists, 'itemOptions' => ['class' => 'item qys-item'], 'itemView' => '_item_comment_view', 'pager' => ['class' => ScrollPager::className()]]);
} else {
    ?>

        <div class="container" style="min-height: 350px;">
            <p>没有人吐槽呢</p>
        </div>
    <?php 
}
?>
    <?php 
echo $this->render('@app/views/layouts/main_footer.php');
?>
</div>
Exemple #2
0
</li>
            <li class="heart-list">0</li>

        </ul>
        <div style="clear: both;"></div>
        <p>
            <?php 
echo Html::encode($articleInfo->c_content);
?>
        </p>
    </div>
    <div class="decoration"></div>
    <?php 
$get = Yii::$app->request->get();
$data = ['top_id' => $articleInfo->id, 'limit' => 5, 'get' => $get];
$realyLists = CommentService::findRepays($data);
?>
    <div class="container no-bottom" style='border-top:none;'>
        <?php 
if ($realyLists['models']) {
    ?>
            <?php 
    Pjax::begin(['id' => 'loadpajax']);
    $begin = $realyLists['pages']->getPage() * $realyLists['pages']->pageSize + 1;
    $end = $begin + $realyLists['pages']->getPageSize() - 1;
    if ($begin > $end) {
        $begin = $end;
    }
    ?>
            <div class='container no-bottom'>
                <?php