当前位置: 首页>>代码示例>>PHP>>正文


PHP TabsX::widget方法代码示例

本文整理汇总了PHP中kartik\tabs\TabsX::widget方法的典型用法代码示例。如果您正苦于以下问题:PHP TabsX::widget方法的具体用法?PHP TabsX::widget怎么用?PHP TabsX::widget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kartik\tabs\TabsX的用法示例。


在下文中一共展示了TabsX::widget方法的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']);
?>
开发者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: isInArray

$tabSchedulingSales = TabsX::widget(['id' => 'sales-plan-scdl', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false, 'pluginEvents' => ["tabsX.click" => 'function() { 
							var aryidx = [];
								
							setTimeout(function() {								
								/*
								* find array by ptrnov
								* @author ptr.nov [ptr.nov@gmail.com]
								*/
								function isInArray(findValue) {
									//Tab load by js
									if((window.location.href).indexOf("?") != -1) {
										var queryString = (window.location.href).substr((window.location.href).indexOf("?") + 1); 
										aryidx = (queryString.split("="))[1];
									}
									//add Tab normal
									//array1=[0,1,4];
									array1=[10,11,14];
									ary = array1.concat(aryidx);
									//alert(ary);
									for(var i=0; i<ary.length; i++) {
										if (ary[i] == findValue) return true;
									}
									
								};
								
								/*
								* GET Eelemet ul li 
								* @author ptr.nov [ptr.nov@gmail.com]
								*/
								var idx = $("ul li.active").index();
									/* $.get("/master/draft-plan/get-tab?tab="+idx, function( data ) {
										 var data = $.parseJSON(data);
										cnt=(data);
										localStorage.setItem("draftplan_tabstt"+idx,data);
									}); */
									
									if(isInArray(idx) != true){
										//alert(isInArray(idx));
										//set URL by ?tab=idx
										document.location.href = "/master/draft-plan?tab="+idx;
									}else{	
										//alert(cnt);
										 // alert(localStorage.getItem("draftplan_tabstt"+idx));
										 /* $("#gv-new-id-container").dataTable( {
										  "ajax": {
											"url": "/master/draft-plan/get-tab-isi?tab="+idx,
											"dataSrc": "tableData"
										  }
										} ); */
										 
										 
										/* $.get("/master/draft-plan/get-tab?tab="+idx, function( data ) {
											 //alert(data);
											 $("ul li.active").attr(data);
											 $("#example").dataTable(
										}); */
										
										
										//test Dev Tab2 
										 // var elem = document.getElementById("scdl-plan");
										 // var list = elem.getElementsByTagName("button")[2];
										 
										 // alert(list.innerHTML);
										 //alert(list[2].innerHTML)
										
										
										/* $("#scdl-plan").dataTable( {
										  "ajax": {
											"url": "/master/draft-plan/get-tab-isi?tab="+idx,
											"dataSrc": "tableData"
										  }
										} ); */
										 //$("#scdl-plan").load();
										 //alert("ok");
										 //$("sales-plan-scdl-tab2").load();
										// $("sales-plan-scdl-tab").tab("show");
										/* function load() { 
										  var elem = document.getElementById("scdl-plan");
										  var list = elem.getElementsByTagName("button")[2];
										  list.onclick = donothing1;
										  list.addEventListener("click",donothing1); 
										}  */
										
										//document.addEventListener("DOMContentLoaded", load, false);
										
									};
									
							}, 1);							
				 }']]);
开发者ID:adem-team,项目名称:advanced,代码行数:89,代码来源:index.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 [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>
开发者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:

       ],
   ]) */
?>
    </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) . '&nbsp;&nbsp;' . 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

示例9: 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

示例10: 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)
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:_buat.php

示例11: 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>
开发者ID:adem-team,项目名称:advanced,代码行数:31,代码来源:index.php

示例12: 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

示例13: 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

示例14: 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

示例15: elseif

    $tab0 = true;
    $tab1 = false;
    $tab2 = false;
    $tab3 = false;
    $tab4 = false;
} elseif ($tab == 1) {
    $tab0 = false;
    $tab1 = true;
    $tab2 = false;
    $tab3 = false;
    $tab4 = false;
} elseif ($tab == 2) {
    $tab0 = false;
    $tab1 = false;
    $tab2 = true;
    $tab3 = false;
    $tab4 = false;
}
$items = [['label' => ' Weekly Detail Stock', 'content' => '', 'linkOptions' => ['data-url' => \yii\helpers\Url::to(['/master/review-visit/tab-weekly-stock'])], 'active' => true], ['label' => ' Weekly Detail Request', 'content' => '', 'linkOptions' => ['data-url' => \yii\helpers\Url::to(['/master/review-visit/tab-weekly-ro'])]], ['label' => ' Weekly Detail Reture', 'content' => '']];
$tabReviewVisitWeekly = TabsX::widget(['id' => 'weekly-tab', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
?>
<div class="row">
	<div  class="col-lg-12" >		
		<?php 
echo $tabReviewVisitWeekly;
?>
	</div>
</div>


开发者ID:adem-team,项目名称:advanced,代码行数:28,代码来源:_indexWeekly.php


注:本文中的kartik\tabs\TabsX::widget方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。