$items = app\controllers\ServerViewController::getServersMenu("/index.php?r=server-view%2Fres_disk&id=", $id); $this->registerJs('var autoRefresh = setInterval( function () { window.location.reload(); }, 60000); // this will reload page after every 1 minute. '); date_default_timezone_set('Europe/Berlin'); ?> <div class="site-index"> <div class="body-content"> <?php echo Html::beginTag('div', ['class' => 'dropdown']); ?> <h4>Server: <?php echo Html::button($servername . ' <span class="caret"></span></button>', ['type' => 'button', 'class' => 'btn btn-default', 'data-toggle' => 'dropdown']); echo DropdownX::widget(['items' => $items]); echo Html::endTag('div'); ?> </h4> <?php echo Html::beginTag('div', ['style' => 'text-align: right;']); echo Html::a('Übersicht', Url::toRoute(['/server-view/index', 'id' => $id])); echo Html::endTag('div'); $cont = $this->render('_disk', ['dataset_0' => $dataset_0, 'dataset_1' => $dataset_1, 'dataset_2' => $dataset_2, 'dataset_3' => $dataset_3, 'dataset_4' => $dataset_4, 'dataset_5' => $dataset_5, 'dataset_6' => $dataset_6, 'dataset_7' => $dataset_7, 'dataset_8' => $dataset_8, 'dataset_9' => $dataset_9, 'cntrs' => $cntrs, 'id' => $id, 'servername' => $servername]); echo TabsX::widget(['items' => [['label' => '<i class="glyphicon glyphicon-flash"></i> Cpu', 'content' => '', 'url' => \yii\helpers\Url::toRoute(['res_cpu', 'id' => $id])], ['label' => '<i class="glyphicon glyphicon-oil"></i> Memory', 'content' => '', 'url' => \yii\helpers\Url::toRoute(['res_mem', 'id' => $id])], ['label' => '<i class="glyphicon glyphicon-floppy-disk"></i> Disk', 'content' => $cont, 'url' => \yii\helpers\Url::toRoute(['res_disk', 'id' => $id]), 'active' => true], ['label' => '<i class="glyphicon glyphicon-transfer"></i> Network', 'content' => '', 'url' => \yii\helpers\Url::toRoute(['res_net', 'id' => $id])], ['label' => '<i class="glyphicon glyphicon-king"></i> Sessions', 'content' => '', 'url' => \yii\helpers\Url::toRoute(['res_sess', 'id' => $id])]], 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]); ?> </div> </div>
?> <?php } ?> </h1> <div class="row"> <div class="col-md-4"> <?php echo TreeWidget::widget(['treeDataRoute' => ['/shop/backend-filter-sets/getTree'], 'changeParentAction' => '/backend/category/move', 'reorderAction' => '/backend/category/reorder', 'contextMenuItems' => ['open' => ['label' => 'Open', 'icon' => 'fa fa-folder-open', 'action' => ContextMenuHelper::actionUrl(['/shop/backend-filter-sets/index'], ['category_id' => 'id'])]]]); ?> </div> <div class="col-md-8" id="filter-sets"> <?php echo Html::beginTag('div', ['class' => 'dropdown']); echo Html::button(Yii::t('app', 'Add property') . ' <span class="caret"></span></button>', ['type' => 'button', 'class' => 'btn btn-default', 'data-toggle' => 'dropdown']); echo DropdownX::widget(['items' => $propertiesDropdownItems]); echo Html::endTag('div'); ?> <?php if ($selectedCategory !== null) { ?> <?php $filterSets = $selectedCategory->filterSets(); $filterSetsByGroup = []; foreach ($filterSets as $item) { $property = \app\models\Property::findById($item->property_id); if (!isset($filterSetsByGroup[$property->property_group_id])) { $filterSetsByGroup[$property->property_group_id] = []; } $filterSetsByGroup[$property->property_group_id][] = $item;