<?php $this->title = 'База номеров'; ?> <div id="mobileNumberIndexView"> <?php echo Html::pageHeader($this->title); ?> <?php echo $this->render('_search', ['model' => $searchModel]); ?> <?php echo ExportMenu::widget(['dataProvider' => $exportDataProvider, 'exportConfig' => [ExportMenu::FORMAT_PDF => false], 'target' => ExportMenu::TARGET_SELF, 'showConfirmAlert' => false, 'formatter' => ['class' => \yii\i18n\Formatter::className(), 'nullDisplay' => ''], 'columns' => ['number', ['label' => 'Сотрудник', 'content' => function ($model) { return $model->owner ? $model->owner->fullName : ""; }], 'comment'], 'filename' => 'База сотовых номеров']); ?> <?php Pjax::begin(['formSelector' => 'form#numberSearchForm', 'id' => 'pjaxContainerForGridView']); ?> <?php echo $this->render('_gridview', ['dataProvider' => $dataProvider]); ?> <?php Pjax::end(); ?>
<?php /** * mobiles * Created: 18.02.16 14:40 * @copyright Copyright (c) 2016 OSKR NIAEP */ /** * @var \yii\data\ActiveDataProvider $dataProvider */ ?> <?php echo \yii\grid\GridView::widget(['dataProvider' => $dataProvider, 'tableOptions' => ['class' => 'table table-hover'], 'formatter' => ['class' => \yii\i18n\Formatter::className(), 'nullDisplay' => '-'], 'columns' => ['number', 'employee', 'limit', 'expenditure', ['attribute' => 'overrun', 'content' => function ($model) { return is_null($model['overrun']) ? 0 : $model['overrun']; }], 'comment']]);
$base['components']['user'] = ['class' => 'canis\\web\\User', 'enableAutoLogin' => false, 'identityClass' => 'cascade\\server\\models\\User', 'loginUrl' => ['/user/login']]; } if (!isset($base['components']['fileStorage'])) { $base['components']['fileStorage'] = ['class' => FileStorage::className()]; } if (!isset($base['components']['view'])) { $base['components']['view'] = ['class' => View::className()]; } if (!isset($base['components']['response'])) { $base['components']['response'] = ['class' => Response::className()]; } if (!isset($base['components']['log'])) { $base['components']['log'] = []; } if (!isset($base['components']['log']['traceLevel'])) { $base['components']['log']['traceLevel'] = YII_DEBUG ? 3 : 0; } if (!isset($base['components']['log']['targets'])) { $base['components']['log']['targets'] = []; $base['components']['log']['targets'][] = ['class' => FileTarget::className(), 'levels' => ['error', 'warning']]; } if (!isset($base['components']['formatter'])) { $base['components']['formatter'] = ['class' => I18nFormatter::className(), 'dateFormat' => 'MM/dd/yyyy']; } if (YII_DEBUG) { if (!isset($base['components']['errorHandler'])) { $base['components']['errorHandler'] = []; } $base['components']['errorHandler']['discardExistingOutput'] = false; } return $base;
/** * @return Formatter formatter instance */ public function getFormatter() { if (!is_object($this->_formatter)) { if ($this->_formatter === null) { $this->_formatter = Yii::$app->getFormatter(); } else { $this->_formatter = Instance::ensure($this->_formatter, Formatter::className()); } } return $this->_formatter; }
<?php ContainerLoader::end(); ?> </ul> </div> </div> </div> <?php echo Html::a("Назад", 'javascript:history.go(-1)', ['class' => "btn btn-primary"]); ?> <div> <p class="h3"><?php echo $model->header(); ?> </p> <?php echo ExportMenu::widget(['dataProvider' => $model->itemsDataProvider(), 'columns' => $model->itemsColumns(), 'target' => ExportMenu::TARGET_SELF, 'showConfirmAlert' => false, 'formatter' => ['class' => \yii\i18n\Formatter::className(), 'nullDisplay' => '', 'decimalSeparator' => ',', 'thousandSeparator' => ''], 'filename' => $model->header(), 'exportConfig' => [ExportMenu::FORMAT_HTML => false, ExportMenu::FORMAT_PDF => false]]); ?> <?php echo GridView::widget(['dataProvider' => $model->itemsDataProvider(), 'columns' => $model->itemsColumns(), 'formatter' => ['class' => \yii\i18n\Formatter::className(), 'nullDisplay' => ''], 'tableOptions' => ['class' => 'table table-striped table table-hover']]); ?> </div> <?php echo Html::a("Назад", 'javascript:history.go(-1)', ['class' => "btn btn-primary"]);
use romkaChev\yandexFotki\models\AlbumPhotosCollection; use romkaChev\yandexFotki\models\AlbumsCollection; use romkaChev\yandexFotki\models\Author; use romkaChev\yandexFotki\models\Image; use romkaChev\yandexFotki\models\options\album\CreateAlbumOptions; use romkaChev\yandexFotki\models\options\album\DeleteAlbumOptions; use romkaChev\yandexFotki\models\options\album\GetAlbumPhotosOptions; use romkaChev\yandexFotki\models\options\album\GetAlbumsOptions; use romkaChev\yandexFotki\models\options\album\UpdateAlbumOptions; use romkaChev\yandexFotki\models\options\photo\CreatePhotoOptions; use romkaChev\yandexFotki\models\options\photo\DeletePhotoOptions; use romkaChev\yandexFotki\models\options\photo\UpdatePhotoOptions; use romkaChev\yandexFotki\models\options\tag\DeleteTagOptions; use romkaChev\yandexFotki\models\options\tag\GetTagPhotosOptions; use romkaChev\yandexFotki\models\options\tag\UpdateTagOptions; use romkaChev\yandexFotki\models\Photo; use romkaChev\yandexFotki\models\Point; use romkaChev\yandexFotki\models\Tag; use romkaChev\yandexFotki\models\TagPhotosCollection; use romkaChev\yandexFotki\validators\AddressBindingValidator; use romkaChev\yandexFotki\validators\AlbumValidator; use romkaChev\yandexFotki\validators\AuthorValidator; use romkaChev\yandexFotki\validators\ImageValidator; use romkaChev\yandexFotki\validators\PhotoValidator; use romkaChev\yandexFotki\validators\PointValidator; use romkaChev\yandexFotki\validators\TagValidator; use romkaChev\yandexFotki\YandexFotki; use yii\httpclient\Client; use yii\i18n\Formatter; return ['id' => 'testApp', 'basePath' => __DIR__, 'vendorPath' => __DIR__ . '/../../../vendor', 'aliases' => ['@web' => '/', '@webroot' => __DIR__ . '/../runtime', '@vendor' => __DIR__ . '/../../../vendor'], 'components' => ['yandexFotki' => ['class' => YandexFotki::className(), 'apiBaseUrl' => 'http://api-fotki.yandex.ru/api', 'serviceBaseUrl' => 'http://fotki.yandex.ru', 'login' => null, 'oauthToken' => null, 'apiHttpClient' => Client::className(), 'serviceHttpClient' => Client::className(), 'albums' => AlbumComponent::className(), 'photos' => PhotoComponent::className(), 'tags' => TagComponent::className(), 'formatter' => Formatter::className(), 'factory' => ['class' => Factory::className(), 'addressBindingModel' => AddressBinding::className(), 'albumModel' => Album::className(), 'albumsCollectionModel' => AlbumsCollection::className(), 'albumPhotosCollectionModel' => AlbumPhotosCollection::className(), 'authorModel' => Author::className(), 'photoModel' => Photo::className(), 'tagModel' => Tag::className(), 'tagPhotosCollectionModel' => TagPhotosCollection::className(), 'pointModel' => Point::className(), 'imageModel' => Image::className(), 'getAlbumsOptions' => GetAlbumsOptions::className(), 'getAlbumPhotosOptions' => GetAlbumPhotosOptions::className(), 'createAlbumOptions' => CreateAlbumOptions::className(), 'updateAlbumOptions' => UpdateAlbumOptions::className(), 'deleteAlbumOptions' => DeleteAlbumOptions::className(), 'createPhotoOptions' => CreatePhotoOptions::className(), 'updatePhotoOptions' => UpdatePhotoOptions::className(), 'deletePhotoOptions' => DeletePhotoOptions::className(), 'getTagPhotosOptions' => GetTagPhotosOptions::className(), 'updateTagOptions' => UpdateTagOptions::className(), 'deleteTagOptions' => DeleteTagOptions::className(), 'addressBindingValidator' => AddressBindingValidator::className(), 'albumValidator' => AlbumValidator::className(), 'authorValidator' => AuthorValidator::className(), 'pointValidator' => PointValidator::className(), 'photoValidator' => PhotoValidator::className(), 'imageValidator' => ImageValidator::className(), 'tagValidator' => TagValidator::className()]]]];
/** * @inheritdoc */ public function getFormatter() { $this->preProcessConfigurableItem('formatter', Formatter::className()); return $this->formatter; }