PHP Classes

File: attachmanager_views_examples/_filelist.php

Recommend this page to a friend!
  Classes of Insolita   Ext Imperavi   attachmanager_views_examples/_filelist.php   Download  
File: attachmanager_views_examples/_filelist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Ext Imperavi
Integrates the Imperavi editor in YII applications
Author: By
Last change:
Date: 2 years ago
Size: 1,271 bytes
 

Contents

Class file image Download
<?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>