<?php
$this->pageTitle = 'Онлайн легиона';
?>   
<?php if (!$models): ?>
    <div class="info">В онлайне никого нет</div>
<?php else: ?>
    <?php foreach($models as $model):?>
        <?php echo CHtml::link(Users::getFullLogin($model->id_user), array('/user/index', 'id' => $model->id_user), array('class' => 'block'))?>
    <?php endforeach;?>
 <?php endif; ?>

<?php $this->widget('CLinkPager', array(
    'id'=>'link_pager',
    'pages' => $pages,
    'header' => '<center>',
    'footer' => '</center>',
    'firstPageLabel' => '',
    'prevPageLabel' => '«',
    'nextPageLabel' => '»',
    'lastPageLabel' => '',
    'htmlOptions' => array("class" => 'pagination'),
));?>