本文整理汇总了PHP中kartik\tabs\TabsX类的典型用法代码示例。如果您正苦于以下问题:PHP TabsX类的具体用法?PHP TabsX怎么用?PHP TabsX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了TabsX类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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']);
?>
开发者ID:jslight,项目名称:helpdesk,代码行数:31,代码来源:_form.php
示例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]);
}
开发者ID:porcelanosa,项目名称:yii2-seo-attributes,代码行数:11,代码来源:SeoWidget.php
示例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 !-->
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:review.php
示例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>
开发者ID:ptrnov,项目名称:WND-W,代码行数:17,代码来源:index.php
示例5: elseif
* Issue : PO Online/ import PO detail. NKA
* Author piter novian [[email protected]]
*/
$_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 [[email protected]]
*/
$_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>
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php
示例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>
开发者ID:seans888,项目名称:SMF-Project,代码行数:29,代码来源:index.php
示例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]);
开发者ID:adem-team,项目名称:advanced,代码行数:12,代码来源:_indexTerm.php
示例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>
开发者ID:klikar3,项目名称:BaseLine,代码行数:30,代码来源:res_disk.php
示例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>
开发者ID:sibds,项目名称:playground,代码行数:29,代码来源:_form.php
示例10: elseif
* Status : Fixed.
* Issue : PO Online/ import PO detail. NKA
* Author piter novian [[email protected]]
*/
$_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>
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php
示例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>
开发者ID:jslight,项目名称:helpdesk,代码行数:30,代码来源:view.php
示例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 <[email protected]>
* @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 <[email protected]>
* @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)
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_buat.php
示例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) {
?>
开发者ID:lenarx,项目名称:yii2-cms-rbac,代码行数:31,代码来源:_form.php
示例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>
开发者ID:jslight,项目名称:helpdesk,代码行数:31,代码来源:_pdf-template.php
示例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>
开发者ID:adem-team,项目名称:advanced,代码行数:23,代码来源:_indexSalesMd.php
示例16: c
<div class="card_container record-full transparent no-shadow fadeInUp animated" id="card_container" style="">
<div class="primary-context overflow-hidden">
<div class="avatar">
<i class="fa fa-flag-o"></i>
</div>
<div class="title">
<div class="head grand"><?php
echo c($action->tName);
?>
</div>
<div class="subhead"><?php
echo count($action->services);
?>
</div>
</div>
</div>
<div class="secondary-context avatar-padded cont col-md-6">
<p>Stan označava dio neke građevine koji služi za, u pravilu trajni, smještaj odnosno stanovanje pojedinca, porodice ili grupe osoba. Zgrada koja se većim dijelom sastoji od zasebnih stanova se naziva stambena zgrada.</p>
</div>
</div>
<?php
/* items */
$acts = ['label' => '<i class="fa fa-dot-circle-o"></i> Usluge', 'content' => $this->render('//services/queryResults/_actionResults.php', ['action' => $action])];
$acts_i = ['label' => '<i class="fa fa-tag"></i> ' . $action->tName . ' info', 'content' => 'Vrste/modeli predmeta:'];
$items_act = [$acts, $acts_i];
?>
<?php
echo TabsX::widget(['items' => $items_act, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false, 'containerOptions' => ['class' => 'tab_track']]);
?>
开发者ID:bokko79,项目名称:servicemapp,代码行数:29,代码来源:actions.php
示例17:
],
]) */
?>
</p>
<h3><?php
echo Html::encode($this->title);
?>
</h3>
<?php
echo DetailView::widget(['model' => $model, 'attributes' => ['amount:currency', 'reimbursed:boolean']]);
?>
<?php
$this->beginBlock('Receipt');
?>
<?php
echo DetailView::widget(['model' => $model, 'attributes' => [['attribute' => 'file_name', 'format' => 'raw', 'value' => Html::encode($model->file_name) . ' ' . Html::a('<span class="glyphicon glyphicon-download-alt"></span>', ['receipt', 'id' => $model->id, 'download' => true])], 'mimeType']]);
?>
<?php
echo Yii::$app->formatter->asFile($model, ['receipt', 'id' => $model->id]);
?>
<?php
$this->endBlock();
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'bordered' => true, 'items' => [['label' => '<small><span class="glyphicon glyphicon-paperclip"></span> Receipt</small>', 'content' => $this->blocks['Receipt']]]]);
?>
</div>
开发者ID:jslight,项目名称:helpdesk,代码行数:31,代码来源:view.php
示例18:
<?php
if ($model->aprobado == 1) {
echo Html::a($icons['aprobado'] . ' Aprobado', ['aprobar', 'id' => $model->id], ['id' => 'aprobar', 'class' => 'btn btn-success navbar-btn', 'role' => 'modal-remote', 'data-confirm' => false, 'data-method' => false, 'data-request-method' => 'post', 'data-confirm-title' => Yii::t('user', '¿Está seguro?'), 'data-confirm-message' => Yii::t('user', '¿Está seguro que desea marcar este proyecto como <b>"No Aprobado"</b>?')]);
} else {
echo Html::a($icons['no-aprobado'] . ' No Aprobado', ['aprobar', 'id' => $model->id], ['id' => 'aprobar', 'class' => 'btn btn-warning navbar-btn', 'role' => 'modal-remote', 'data-confirm' => false, 'data-method' => false, 'data-request-method' => 'post', 'data-confirm-title' => Yii::t('user', '¿Está seguro?'), 'data-confirm-message' => Yii::t('user', '¿Está seguro que desea marcar este proyecto como <b>"Aprobado"</b>?')]);
}
?>
</div>
</div>
<br><!-- Salto de linea -->
<!-- TABS -->
<?php
echo TabsX::widget(['options' => ['class' => 'nav-justified', 'containerOptions' => ['id' => 'contenedorTabs']], 'items' => [['label' => 'Datos Básicos', 'content' => $datos_basicos, 'active' => true], ['label' => 'Alcance e Impacto', 'content' => $alcanceImpacto, 'linkOptions' => ['data-url' => $model->alcance == null ? '' : Url::to(['proyecto-alcance/view', 'id' => $model->alcance->id])]], ['label' => 'Acciones Específicas', 'content' => $accionEspecifica, 'linkOptions' => ['data-url' => Url::to(['proyecto-accion-especifica/index', 'proyecto' => $model->id])]]], 'pluginOptions' => ['enableCache' => false]]);
?>
<div class="btn-group">
<?php
echo Html::a($icons['volver'] . ' Volver', ['proyecto/index'], ['class' => 'btn btn-primary']);
?>
</div>
</div>
<!-- Ventana modal -->
<?php
Modal::begin(["id" => "ajaxCrubModal", "footer" => "", "options" => ["tabindex" => false]]);
Modal::end();
开发者ID:minpppst,项目名称:rsc,代码行数:30,代码来源:view.php
示例19:
use yii\helpers\ArrayHelper;
use yii\bootstrap\Modal;
use yii\helpers\Json;
use yii\web\Request;
use kartik\daterange\DateRangePicker;
use kartik\tabs\TabsX;
use yii\widgets\ListView;
$this->title = 'Sales Order';
$this->params['breadcrumbs'][] = $this->title;
$this->sideCorp = 'Sales Order';
/* Title Select Company pada header pasa sidemenu/menu samping kiri */
$this->sideMenu = 'esm_customers';
/* kd_menu untuk list menu pada sidemenu, get from table of database */
$inboxSo = Yii::$app->controller->renderPartial('_indexInbox', ['apSoHeaderInbox' => $apSoHeaderInbox]);
$outboxSo = Yii::$app->controller->renderPartial('_indexOutbox', ['apSoHeaderOutbox' => $apSoHeaderOutbox]);
$historySo = Yii::$app->controller->renderPartial('_indexHistory', ['apSoHeaderHistory' => $apSoHeaderHistory]);
$items = [['label' => '<i class="fa fa-sign-out fa-lg"></i> Inbox', 'content' => $inboxSo, 'active' => true], ['label' => '<i class="fa fa-sign-in fa-lg"></i> Outbox', 'content' => $outboxSo], ['label' => '<i class="fa fa-sign-in fa-lg"></i> Historical', 'content' => $historySo]];
$_tabSalesmanOrder = TabsX::widget(['id' => 'tab-index-salesman-order', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
?>
<div class="content">
<div class="row" style="padding:10px;padding-left:3px ">
<div class="col-xs-12 col-sm-12 col-lg-12" style="font-family: tahoma ;font-size: 9pt;">
<?php
echo $_tabSalesmanOrder;
?>
</div>
</div>
</div>
开发者ID:adem-team,项目名称:advanced,代码行数:28,代码来源:index.php
示例20: function
echo GridView::widget(['id' => 'invoice-tickets-grid', 'dataProvider' => $tickets, 'showFooter' => $tickets->totalCount > 0, 'columns' => [['attribute' => 'id', 'value' => 'fullName', 'headerOptions' => ['class' => 'primary']], ['attribute' => 'bill_type_id', 'value' => 'billType'], ['attribute' => 'totalHours', 'format' => 'decimal', 'footer' => Yii::$app->formatter->asDecimal($laborTotal)], ['label' => 'Billable Labor', 'format' => 'currency', 'value' => function ($m) {
return $m->bill_type_id == $m::BILL_HOURLY ? $m->totalHours * \common\models\Labor::RATE : 0;
}, 'footer' => Yii::$app->formatter->asCurrency($billableLaborTotal)], ['attribute' => 'totalPurchases', 'format' => 'currency', 'footer' => Yii::$app->formatter->asCurrency($purchaseTotal)], ['class' => 'yii\\grid\\ActionColumn', 'controller' => 'ticket', 'template' => '{view}', 'buttonOptions' => ['class' => 'showModalButton']]]]);
?>
<?php
Pjax::end();
?>
<?php
$this->endBlock();
?>
<?php
$this->beginBlock('Travels');
?>
<?php
Pjax::begin(['id' => 'invoice-travels-pjax', 'linkSelector' => '#invoice-travels-pjax a[data-sort]', 'enablePushState' => !Yii::$app->request->isAjax]);
?>
<?php
echo GridView::widget(['id' => 'invoice-travels-grid', 'dataProvider' => $travels, 'showFooter' => $travels->totalCount > 0, 'columns' => ['schedule.start_time:date', ['attribute' => 'schedule.tech_id', 'value' => 'schedule.tech.name'], ['attribute' => 'miles', 'format' => 'decimal', 'footer' => Yii::$app->formatter->asDecimal($travelMilesTotal)], ['attribute' => 'fee', 'format' => 'boolean', 'footer' => Yii::$app->formatter->asCurrency($travelFeeTotal)], ['class' => 'yii\\grid\\ActionColumn', 'controller' => 'schedule', 'template' => '{view}', 'buttonOptions' => ['class' => 'showModalButton']]]]);
?>
<?php
Pjax::end();
?>
<?php
$this->endBlock();
?>
<?php
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => '<small><span class="glyphicon glyphicon-list-alt"></span> Tickets (' . $tickets->totalCount . ')</small>', 'content' => $this->blocks['Tickets']], ['label' => '<small><span class="glyphicon glyphicon-road"></span> Travels (' . $travels->totalCount . ')</small>', 'content' => $this->blocks['Travels']]]]);
?>
</div>
开发者ID:jslight,项目名称:helpdesk,代码行数:31,代码来源:view.php
注:本文中的kartik\tabs\TabsX类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论