<?php
/**
* ?????? ????????? ?????? ??????????? ??????
* @var \yii\web\View $this
* @var \yii\data\ActiveDataProvider $dataProvider
**/
$files = $dataProvider->getModels();
$fcnt = $dataProvider->getCount();
$pages = $dataProvider->getPagination();
$pages->route = '/route/to/filelist/action';
?>
<p class="text-info">
<b>???????? ?? ??????? ????? ???
?????? ????? ???????!</b>
</p>
<div id="redactor_imagepjax">
<?php if ($fcnt == 0): ?>
??? ?? ?????? ???????????? ?????
<?php else: ?>
<table class="table table-bordered table-condensed table-striped table-hover">
<tr>
<td>????????</td>
<td>??????</td>
<td>????</td>
</tr>
<?php
foreach ($files as $file) {
echo $this->render('_fileitem', ['file' => $file]);
}
?>
</table>
<?php echo \yii\widgets\LinkPager::widget(
[
'pagination' => $pages,
'linkOptions' => ['data-pjaxtarget_file' => 1]
]
)?>
<?php endif; ?>
</div>
|