<?php use app\components\LanguageHelper; $arrayParams = ['MainSearch' => ['region' => $region]]; $indexLink = LanguageHelper::getLinks('index', $arrayParams); $arrayParams['excel'] = true; $excelLink = LanguageHelper::getLinks('excel', $arrayParams); ?> <h3><a href="<?php echo $indexLink['url']; ?> "><?php echo $indexLink['label']; ?> </a></h3> <button class="btn btn-default"><a href="<?php echo $excelLink['url']; ?> "><?php echo $excelLink['label']; ?> </a></button> <hr> <ul class="nav nav-tabs"> <?php $first = true; foreach ($tabs as $tab) { ?> <li role="presentation" class="<?php echo $first ? 'active' : ''; ?>
use app\models\TrashMan; use app\models\TrashCountSummer; use app\models\TrashCountWinter; use app\models\Paper; use app\models\TrashRelation; use app\models\TrashRecycle; use app\models\Person; use app\components\LanguageHelper; use app\models\Main; use app\models\RubberItems; /* @var $this yii\web\View */ $this->title = 'Trash: Data'; $arrayParams = ['MainSearch' => ['region' => $region]]; $chartLink = LanguageHelper::getLinks('chart', $arrayParams); $tableLink = LanguageHelper::getLinks('table', $arrayParams); $addLink = LanguageHelper::getLinks('add', $arrayParams); $model = new Main(); $width = '300px'; ?> <style> .grid-view th { white-space: normal; } .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td { padding: 3px !important; } </style> <h3> <a class="btn btn-primary" href="<?php echo $chartLink['url']; ?>
/** * Created by PhpStorm. * User: karen * Date: 1/24/16 * Time: 8:45 PM */ $this->title = 'Trash: Charts'; use yii\web\JqueryAsset; use app\assets\ChartAsset; use yii\web\View; use app\components\LanguageHelper; //ChartAsset::register($this); $this->registerJsFile('js/charts.js', ['depends' => [JqueryAsset::className(), ChartAsset::className()]]); $seasons = ['summer' => 'Մոտավոր աղբի քանակը ամռանը', 'winter' => 'Մոտավոր աղբի քանակը ձմռանը']; $arrayParams = ['MainSearch' => ['region' => $region]]; $indexLink = LanguageHelper::getLinks('index', $arrayParams); ?> <h3><a href="<?php echo $indexLink['url']; ?> "><?php echo $indexLink['label']; ?> </a></h3> <div class="col-sm-12"> <?php foreach ($totals as $season => $seasonValues) { ?> <div class="col-sm-6"> <h2><?php