<?php
$this->pageTitle = 'Магазин';
?>
<div class="npc-view_block">
    <div class="npc-view_img">
        <img src="/images/npc/shop.jpg" alt="*">
    </div>
    <div class="npc-view_info">
        <span class="percent">Торговец:</span> <?php echo $info;?>
    </div>
</div>
<?php
$this->widget('zii.widgets.CListView', array(
    'dataProvider' => $model->search(),
    'itemView' => '_avatar',
    'emptyTagName' => 'div',
    'emptyText' => 'В магазине нет автатаров.',
    'template' => '{items}<hr>{pager}',
    'pager'=>array(
        'class'=>'CLinkPager',
        'actionPrefix'=>'page',
        'header' => '<center>',
        'footer' => '</center>',
        'firstPageCssClass' => 'hidden',
        'prevPageLabel' => '«',
        'nextPageLabel' => '»',
        'lastPageCssClass' => 'hidden',
        'maxButtonCount'=>'4',
        'htmlOptions' => array("class" => 'pagination'),
    ),
));
?>
<?php echo CHtml::link('<img src="/images/icons/shop.png"> Магазины', array('index'), array('class' => 'block')); ?>
