本文整理汇总了PHP中kartik\tabs\TabsX类的典型用法代码示例。如果您正苦于以下问题:PHP TabsX类的具体用法?PHP TabsX怎么用?PHP TabsX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TabsX类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if ($model->hasLabor()) {
?>
<?php
$this->beginBlock('Labor');
?>
<p>
<?php
echo $form->field($model->labor, 'hours')->input('number', ['maxlength' => true, 'min' => 0.25, 'step' => 0.25]);
?>
</p>
<?php
$this->endBlock();
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => 'Labor', 'content' => $this->blocks['Labor']]]]);
?>
<?php
}
?>
<hr/>
<div class="btn-group pull-right">
<?php
echo Html::submitButton('<span class="glyphicon glyphicon-check"></span> ' . ($model->isNewRecord ? 'Create' : 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success btn-xs' : 'btn btn-info btn-xs']);
?>
<?php
echo Html::a('<span class="glyphicon glyphicon-remove"></span> Cancel', Url::previous(), ['class' => 'btn btn-default btn-xs hideModalButton']);
?>
示例2: run
/** Render widget */
public function run()
{
$model = $this->behavior->getSeo() ? $this->behavior->getSeo() : new SeoAttributes();
if ($this->templateType == 'minimum-minimorum') {
$items = [['label' => '<i class="glyphicon glyphicon-home"></i> Main', 'content' => $this->render('main', ['seoform' => $this->form, 'model' => $model]), 'active' => true]];
} else {
$items = [['label' => '<i class="glyphicon glyphicon-home"></i> Main', 'content' => $this->render('main', ['seoform' => $this->form, 'model' => $model]), 'active' => true], ['label' => '<i class="glyphicon glyphicon-king"></i> Schema.org', 'content' => $this->render('schema_org', ['seoform' => $this->form, 'model' => $model]), 'headerOptions' => []], ['label' => '<i class="glyphicon glyphicon-king"></i> Open Graph Tags', 'content' => $this->render('open_graph_tags', ['seoform' => $this->form, 'model' => $model, 'behavior' => $this->behavior, 'view' => $this->getView()]), 'headerOptions' => []], ['label' => '<i class="glyphicon glyphicon-king"></i> Twitter', 'content' => $this->render('twitter_card', ['seoform' => $this->form, 'model' => $model]), 'headerOptions' => []]];
}
echo TabsX::widget(['items' => $items, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]);
}
示例3: ucwords
<!-- HEADER !-->
<div class="row">
<div class="col-lg-12">
<!-- HEADER !-->
<div class="col-md-1" style="float:left;">
<?php
echo Html::img('@web/upload/lukison.png', ['class' => 'pnjg', 'style' => 'width:100px;height:70px;']);
?>
</div>
<div class="col-md-9" style="padding-top:15px;">
<h3 class="text-center"><b> <?php
echo 'TERM - ' . ucwords($model[0]->NmCustomer);
?>
</b></h3>
</div>
<div class="col-md-12">
<hr style="height:10px;margin-top: 1px; margin-bottom: 1px;color:#94cdf0">
</div>
<!-- DATA !-->
<?php
$contentData = $this->render('_reviewData', ['model' => $model, 'dataProvider' => $dataProvider, 'dataProviderBudget' => $dataProviderBudget]);
$contentChart = $this->render('_reviewChart');
$items = [['label' => '<i class="fa fa-mortar-board fa-lg"></i> TERM DATA', 'content' => $contentData, 'options' => ['id' => 'term-data']], ['label' => '<i class="fa fa-bar-chart fa-lg"></i> TERM CHART', 'content' => '', 'options' => ['id' => 'term-chart']]];
echo TabsX::widget(['id' => 'tab-term-plan', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]);
?>
</div>
</div>
</div><!-- Body !-->
示例4:
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\bootstrap\ActiveForm;
use kartik\tabs\TabsX;
/* @var $this yii\web\View */
/* @var $model app\models\system\Dashboard */
?>
<div class="panel panel-default">
<?php
$content1 = 'test ahhhhhhhhhhhhhhhhhhh';
$items = [['label' => '<i class="glyphicon glyphicon-home"></i> Prodak', 'content' => $content1, 'active' => true], ['label' => '<i class="glyphicon glyphicon-home"></i> SDM', 'content' => 'asdasd'], ['label' => '<i class="glyphicon glyphicon-home"></i> Seles Order', 'content' => 'asdasd'], ['label' => '<i class="glyphicon glyphicon-home"></i> Distributor', 'content' => 'asdasd'], ['label' => '<i class="glyphicon glyphicon-home"></i> Customer', 'content' => 'asdasd'], ['label' => '<i class="glyphicon glyphicon-home"></i> Asset', 'content' => 'asdasd']];
echo TabsX::widget(['items' => $items, 'position' => TabsX::POS_ABOVE, 'height' => TabsX::SIZE_TINY, 'bordered' => true, 'encodeLabels' => false, 'align' => TabsX::ALIGN_LEFT]);
?>
</div>
示例5: elseif
* Issue : PO Online/ import PO detail. NKA
* Author piter novian [ptr.nov@gmail.com]
*/
$_indexSalesPoLastImport = $this->render('_indexImportSalesPoListData', ['gvRows' => $gvRows, 'searchModelViewImport' => $searchModelViewImport, 'dataProviderViewImport' => $dataProviderViewImport]);
/**
* List data Import.
* Status : Fixed.
* Issue : PO Online/ import PO detail. NKA
* Author piter novian [ptr.nov@gmail.com]
*/
$_indexSalesPoWeekly = $this->render('_indexImportSalesPoWeekly');
if ($tab == 0) {
$tab0 = true;
$tab1 = false;
} elseif ($tab == 1) {
$tab0 = false;
$tab1 = true;
}
$items = [['label' => '<i class="fa fa-map-marker fa-2x"></i> Import Po-Sales', 'content' => $_indexImportSalesPo, 'active' => $tab0], ['label' => '<i class="fa fa-list-ol fa-2x"></i> Latest Import Data', 'content' => $_indexSalesPoLastImport, 'active' => $tab1], ['label' => '<i class="fa fa-list-ol fa-2x"></i> Wekly Data', 'content' => $_indexSalesPoWeekly, 'active' => $tab1]];
$tabSalesPoImport = TabsX::widget(['id' => 'tab-sales-po-import-id', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
?>
<div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt">
<div class="row">
<div class="col-lg-12" >
<?php
echo $tabSalesPoImport;
?>
</div>
</div>
</div>
示例6: foreach
<div class="deductions-index">
<?php
$username = Yii::$app->user->identity->username;
$users = User::find()->all();
$scholars = Scholar::find()->all();
$allowances = Allowance::find()->all();
foreach ($users as $user) {
foreach ($scholars as $scholar) {
foreach ($allowances as $allowance) {
if ($user->username == $username && $user->id == $scholar->scholar_user_id && $allowance->allowance_area == $scholar->allowance_allowance_area) {
echo '<strong><h3 style="margin-top:150px">Current Allowance Received: Php <strong>' . $allowance->allowance_amount . '</h3><strong><h3>Current School Location: <strong>' . $allowance->allowance_area . '</h3><br><br></strong>';
}
}
}
}
?>
<?php
// echo $this->render('_search', ['model' => $searchModel]);
?>
<?php
$items = [['label' => '<i class="glyphicon glyphicon-thumbs-down"></i> Deduction Records', 'content' => GridView::widget(['dataProvider' => $dataProvider1, 'filterModel' => $searchModel1, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'deduction_date', 'deduction_amount', 'deduction_remark']]), 'active' => true], ['label' => '<i class="glyphicon glyphicon-thumbs-up"></i> Incentive Records', 'content' => GridView::widget(['dataProvider' => $dataProvider2, 'filterModel' => $searchModel2, 'showOnEmpty' => false, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'scholar_allowance_allowance_area', 'incentive_amount', 'incentive_remark', 'incentive_date']]), 'active' => false]];
echo TabsX::widget(['items' => $items, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]);
?>
</div>
示例7:
<?php
use kartik\helpers\Html;
use kartik\tabs\TabsX;
use ptrnov\fusionchart\Chart;
use ptrnov\fusionchart\ChartAsset;
use yii\helpers\Url;
ChartAsset::register($this);
$indexTermTab1 = $this->render('indexTermTab1');
$indexTermTab2 = $this->render('indexTermTab2');
$items = [['label' => '<i class="fa fa-mortar-board fa-lg"></i>TERM DATA', 'content' => $indexTermTab1, 'active' => true, 'options' => ['id' => 'term-data']], ['label' => '<i class="fa fa-bar-chart fa-lg"></i> SELL CONTRIBUTING', 'content' => $indexTermTab2, 'options' => ['id' => 'sell-chart']]];
echo TabsX::widget(['id' => 'dashboard-term-plan', 'items' => $items, 'sideways' => true, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]);
示例8: setInterval
$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>
示例9:
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'name')->textInput();
?>
<?php
echo $form->field($model, 'url')->widget(\sibds\widgets\translitInput::className(), ['fromField' => 'name']);
?>
<?php
echo $form->field($model, 'image')->widget(\sibds\widgets\InputFile::className());
?>
<?php
echo \kartik\tabs\TabsX::widget(['items' => [['label' => 'Основные данные', 'content' => $this->render('forms/_main', ['form' => $form, 'model' => $model]), 'active' => true], ['label' => 'Аннотация', 'content' => $this->render('forms/_annotation', ['form' => $form, 'model' => $model])], ['label' => 'Конфигурации', 'content' => $this->render('forms/_settings', ['form' => $form, 'model' => $model])]], 'bordered' => true, 'encodeLabels' => false]);
?>
<?php
echo \sibds\form\FormFooter::widget(['model' => $model]);
?>
<?php
ActiveForm::end();
?>
</div>
示例10: elseif
* Status : Fixed.
* Issue : PO Online/ import PO detail. NKA
* Author piter novian [ptr.nov@gmail.com]
*/
$_indexFrequency = $this->render('_indexFrequency');
if ($tab == 0) {
$tab0 = true;
$tab1 = false;
$tab2 = false;
} elseif ($tab == 1) {
$tab0 = false;
$tab1 = true;
$tab2 = false;
} elseif ($tab == 2) {
$tab0 = false;
$tab1 = false;
$tab2 = true;
}
$items = [['label' => '<i class="fa fa-map-marker fa-2x"></i> PO Sales Distributor', 'content' => $_indexDistibutorPo, 'active' => $tab0], ['label' => '<i class="fa fa-list-ol fa-2x"></i> PO Sales NKA', 'content' => $_indexNKAPo, 'active' => $tab1], ['label' => '<i class="fa fa-list-ol fa-2x"></i> Import Frequency', 'content' => $_indexFrequency, 'active' => $tab2]];
$tabSalesDashboard = TabsX::widget(['id' => 'tab-sales-dashboard-id', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
?>
<div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt">
<div class="row">
<div class="col-lg-12" >
<?php
echo $tabSalesDashboard;
?>
</div>
</div>
</div>
示例11: Tickets
'value' => 'ticket.priority',
],
[
'attribute' => 'body',
'format' => 'note',
'header' => 'Note',
//'headerOptions' => ['class' => 'primary'],
],
'labor.hours:decimal',
[
'class' => 'yii\grid\ActionColumn',
'controller' => 'note',
'template' => '{update}',
'buttonOptions' => ['class' => 'showModalButton'],
],
],
]) */
?>
<?php
/*Pjax::end();*/
?>
<?php
$this->endBlock();
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'bordered' => true, 'items' => [['label' => '<small><span class="glyphicon glyphicon-globe"></span> ' . $model->invoice->location->fullName . '</small>', 'content' => $this->blocks['Location']], ['label' => '<small><span class="glyphicon glyphicon-paperclip"></span> Tickets (' . $notes->totalCount . ')</small>', 'content' => $this->blocks['Tickets'], 'active' => true]]]);
?>
</div>
示例12: SignCreated
}, 'sendPo' => function ($url, $model) use($poHeader) {
return tombolSendPo($url, $model, $poHeader);
}]]], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-so-detail'], 'refreshGrid' => true, 'neverTimeout' => true], 'panel' => ['heading' => false], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false]);
/*
* GRID VIEW CREATE PO -> BY REQUEST ORDER
* @author ptrnov <piter@lukison.com>
* @since 1.1
*/
$gvROSendPO = GridView::widget(['id' => 'gv-ro-detail', 'dataProvider' => $dataProviderRo, 'filterModel' => $searchModel, 'columns' => [['attribute' => 'KD_RO', 'label' => 'Kode RO', 'hAlign' => 'left', 'vAlign' => 'middle', 'format' => 'raw', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'tahoma', 'font-size' => '8pt', 'background-color' => 'rgba(0, 95, 218, 0.3)']], 'contentOptions' => ['style' => ['width' => '150px', 'font-family' => 'tahoma', 'font-size' => '8pt']], 'pageSummaryOptions' => ['style' => ['border-left' => '0px', 'border-right' => '0px']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{sendPo}', 'dropdownOptions' => ['class' => 'pull-right dropup'], 'buttons' => ['view' => function ($url, $model) {
return tombolView($url, $model);
}, 'sendPo' => function ($url, $model) use($poHeader) {
return tombolSendPo($url, $model, $poHeader);
}]]], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-ro-detail'], 'refreshGrid' => true, 'neverTimeout' => true], 'panel' => ['heading' => false], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false]);
//echo $gvROSendPO;
$items = [['label' => '<div style="font-family: tahoma ;font-size:8pt;">Request Order</div>', 'content' => $gvROSendPO, 'active' => true], ['label' => '<div style="font-family: tahoma ;font-size:8pt;">Seles Order</div>', 'content' => $gvSOSendPO]];
$tabRoSo = TabsX::widget(['id' => 'tab-emp', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
/*
* MODAL SELECT REQUEST ORDER
* @author ptrnov <piter@lukison.com>
* @since 1.1
*/
$this->registerJs("\n\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\n\t\t\$('#ro-sendpo').on('show.bs.modal', function (event) {\n\t\t\tvar button = \$(event.relatedTarget)\n\t\t\tvar modal = \$(this)\n\t\t\tvar title = button.data('title') \n\t\t\tvar href = button.attr('href') \n\t\t\tmodal.find('.modal-title').html(title)\n\t\t\tmodal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\n\t\t\t\$.post(href)\n\t\t\t\t.done(function( data ) {\n\t\t\t\t\tmodal.find('.modal-body').html(data)\n\t\t\t\t});\n\t\t\t});\n\t", $this::POS_READY);
Modal::begin(['id' => 'ro-sendpo', 'header' => '<h4 class="modal-title">...</h4>', 'size' => Modal::SIZE_LARGE]);
//echo '...';
Modal::end();
/*
* SIGNATURE AUTH1 | CREATED
* Status Value Signature1 | PurchaseOrder
* Permission Edit [BTN_SIGN1==1] & [Status 0=process 1=CREATED]
*/
function SignCreated($poHeader)
示例13: foreach
<?php
$form = ActiveForm::begin();
?>
<?php
echo $form->field($model, 'title')->textInput(['maxlength' => 250]);
?>
<?php
echo $form->field($model, 'name')->textInput(['maxlength' => 250]);
?>
<span class="control-label" style="display:block;margin-bottom: 10px;"><b>Права группы</b></span>
<?php
echo \kartik\tabs\TabsX::widget(['encodeLabels' => false, 'items' => $tabs, 'containerOptions' => ['class' => 'responsive']]);
?>
<div class="row user_rights">
<?php
foreach (Yii::$app->params['modules'] as $key => $item) {
if ($item['rights']) {
?>
<div class="rights_block">
<h5><?php
print Html::encode($item['title']);
?>
</h5>
<?php
foreach ($item['rights'] as $key_right => $right) {
?>
示例14: function
?>
<?php
$this->endBlock();
?>
<?php
$this->beginBlock('Total');
?>
<?php
echo DetailView::widget(['model' => $model, 'options' => ['class' => 'table table-striped table-bordered detail-view', 'style' => 'page-break-inside: avoid'], 'attributes' => [['label' => 'Merchandise', 'format' => 'currency', 'value' => $purchaseTotal], ['label' => 'Hourly Labor', 'format' => 'currency', 'value' => $billableLaborTotal], ['label' => 'Travel Fees', 'format' => 'currency', 'value' => $travelFeeTotal], ['attribute' => 'adjustment', 'format' => 'currency', 'visible' => function ($m) {
return !empty($m->adjustment);
}], ['label' => '', 'value' => ''], ['attribute' => 'total', 'format' => 'currency']]]);
?>
<?php
$this->endBlock();
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => '<h4>Tickets</h4>', 'content' => $this->blocks['Tickets']]]]);
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => '<h4>Travels</h4>', 'content' => $this->blocks['Travels']]]]);
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => '<h4>Total</h4>', 'content' => $this->blocks['Total']]]]);
?>
</div>
示例15:
<?php
use kartik\helpers\Html;
use kartik\tabs\TabsX;
use ptrnov\fusionchart\Chart;
use ptrnov\fusionchart\ChartAsset;
use yii\helpers\Url;
ChartAsset::register($this);
$_indexSalesMdChart = $this->render('_indexSalesMdChart');
$_indexSalesMdIssue = $this->render('_indexSalesMdIssue', ['searchModelIssue' => $searchModelIssue, 'dataProviderIssue' => $dataProviderIssue]);
$items = [['label' => '<i class="fa fa-eye fa-2x"></i> Issue', 'content' => $_indexSalesMdIssue, 'active' => true], ['label' => '<i class="fa fa-area-chart fa-2x"></i> Chart', 'content' => $_indexSalesMdChart]];
$tabSalesMd = TabsX::widget(['id' => 'id-tab-salesmd', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'height' => '100%', 'bordered' => false, 'encodeLabels' => false, 'align' => TabsX::ALIGN_LEFT]);
?>
<div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt; padding-top:-150px">
<div class="row" >
<?php
echo $tabSalesMd;
?>
</div>
</div>