示例#1
18
?>

            <?php 
if ($model->scenario === $model::SCENARIO_ADMIN) {
    echo $form->field($model, 'active')->checkbox([], false);
}
?>

        </p>
        <?php 
$this->endBlock();
?>


        <?php 
echo TabsX::widget(['encodeLabels' => false, 'items' => [['label' => 'Contact', 'content' => $this->blocks['main']]]]);
?>
        <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']);
?>
        </div><div class="clearfix"></div>
    </div>

    <?php 
ActiveForm::end();
示例#2
2
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']);
?>
 /** 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]);
 }
示例#4
0
	<!-- 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 !-->
示例#5
0
文件: index.php 项目: ptrnov/WND-W
<?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>
示例#6
0
 * 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>
示例#7
0
<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>
示例#8
0
<?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]);
示例#9
0
$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:&nbsp; <?php 
echo Html::button($servername . '&nbsp;<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('&Uuml;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>
示例#10
0
    <?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>
示例#11
0
文件: view.php 项目: jslight/helpdesk
                '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
0
 * 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>
示例#13
0
}, '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  <*****@*****.**>
 * @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  <*****@*****.**>
 * @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)
示例#14
0
    <?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) {
            ?>
示例#15
0
?>
    <?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>
示例#16
0
<?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>
示例#17
0
文件: view.php 项目: jslight/helpdesk
       ],
   ]) */
?>
    </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>
示例#18
0
<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']]);
?>

    
示例#19
0
 public function run()
 {
     parent::run();
     $this->registerClientScipt();
 }
示例#20
0
文件: view.php 项目: minpppst/rsc
            <?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();
示例#21
0
文件: view.php 项目: jslight/helpdesk
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>
示例#22
0
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>


示例#23
0
?>
    <?php 
$this->endBlock();
?>


    <?php 
$this->beginBlock('Travels');
?>
    <?php 
Pjax::begin(['id' => 'location-invoice-travels-pjax', 'linkSelector' => '#location-invoice-travels-pjax a[data-sort]', 'enablePushState' => !Yii::$app->request->isAjax]);
?>
    <?php 
echo GridView::widget(['id' => 'location-invoice-travels-grid', 'dataProvider' => $travels, 'showFooter' => $travels->totalCount > 0, 'rowOptions' => function ($m) {
    /** @var $m common\models\Travel */
    return ['class' => $m->needsUpdate() ? 'danger' : ''];
}, '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, 'bordered' => true, 'items' => [['label' => '<small><span class="glyphicon glyphicon-list-alt"></span> Closed Tickets (' . $tickets->totalCount . ')</small>', 'content' => $this->blocks['Tickets']], ['label' => '<small><span class="glyphicon glyphicon-road"></span> Travels (' . $travels->totalCount . ')</small>', 'content' => $this->blocks['Travels'], 'linkOptions' => $needsUpdate ? ['class' => 'bg-danger'] : []]]]);
?>
</div>
示例#24
0
文件: view.php 项目: minpppst/rsc
$distribucionPresupuestaria = '<p>' . Html::a($icons['crear'] . ' Agregar', ['proyecto-alcance/create', 'proyecto' => $model->id], ['class' => 'btn btn-success']) . '</p>' . '<div class="well">No hay datos.</div>';
?>

<div class="accion-centralizada-view">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <span><?php 
echo Html::encode("Acción Centralizada #" . $this->title);
?>
</span>
        </div>
        <div class="panel-body">

            <!-- TABS -->
            <?php 
echo TabsX::widget(['options' => ['class' => 'nav-justified', 'containerOptions' => ['id' => 'contenedorTabs']], 'items' => [['label' => 'Datos Básicos', 'content' => $datos_basicos, 'active' => true], ['label' => 'Acciones Especificas', 'content' => $accionEspecifica]], 'pluginOptions' => ['enableCache' => false]]);
?>
  
        </div>
    </div>
  
    <div class="btn-group">
        <?php 
echo Html::a($icons['volver'] . ' Volver', ['accion-centralizada/index'], ['class' => 'btn btn-primary']);
?>
       
    </div>
</div>
   

<!-- Ventana modal -->
示例#25
0
     */
    return substr($model->CREATED_AT, 0, 10);
}, 'filterType' => \kartik\grid\GridView::FILTER_DATE_RANGE, 'filterWidgetOptions' => ['attribute' => 'CREATED_AT', 'presetDropdown' => TRUE, 'convertFormat' => true, 'pluginOptions' => ['id' => 'tglpo', 'format' => 'Y/m/d', 'separator' => ' - ', 'opens' => 'right']], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '90px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '90px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['attribute' => 'dept.DEP_NM', 'label' => 'Department', 'filter' => $Combo_Dept, 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '200px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '200px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['attribute' => 'SIG1_NM', 'label' => 'Created', 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['attribute' => 'SIG2_NM', 'label' => 'Checked', 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['attribute' => 'SIG3_NM', 'label' => 'Approved', 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '130px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{tambahEdit}{delete}{review}', 'dropdownOptions' => ['class' => 'pull-right dropup'], 'buttons' => ['view' => function ($url, $model) {
    return tombolView($url, $model);
}, 'tambahEdit' => function ($url, $model) {
    return tombolEdit($url, $model);
}, 'delete' => function ($url, $model) {
    return tombolDelete($url, $model);
}, 'review' => function ($url, $model) {
    return tombolReview($url, $model);
}], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['label' => 'Notification', 'mergeHeader' => true, 'format' => 'raw', 'hAlign' => 'center', 'value' => function ($model) {
    return statusProcessRo($model);
}, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]]], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'ro-grd-inbox']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [['content' => tombolCreate() . tombolBarang() . tombolKategori()], '{toggleData}'], 'panel' => ['type' => GridView::TYPE_DANGER, 'heading' => "<span class='fa fa-cart-plus fa-xs'><b> LIST SALES ORDER</b></span>"]]);
?>


	<?php 
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\t\r\n\t\t\t\$('#new-so').on('show.bs.modal', function (event) {\r\n\t\t\t\tvar button = \$(event.relatedTarget)\r\n\t\t\t\tvar modal = \$(this)\r\n\t\t\t\tvar title = button.data('title') \r\n\t\t\t\tvar href = button.attr('href') \r\n\t\t\t\tmodal.find('.modal-title').html(title)\r\n\t\t\t\tmodal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\r\n\t\t\t\t\$.post(href)\r\n\t\t\t\t\t.done(function( data ) {\r\n\t\t\t\t\t\tmodal.find('.modal-body').html(data)\t\t\t\t\t\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\t\t\t\r\n\t\t", $this::POS_READY);
Modal::begin(['id' => 'new-so', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-book"></div><div><h4 class="modal-title">Entry Items Sales Order</h4></div>', 'size' => 'modal-md', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(97, 211, 96, 0.3)']]);
Modal::end();
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\t\r\n\t\t\t\$('#add-ro').on('show.bs.modal', function (event) {\r\n\t\t\t\tvar button = \$(event.relatedTarget)\r\n\t\t\t\tvar modal = \$(this)\r\n\t\t\t\tvar title = button.data('title') \r\n\t\t\t\tvar href = button.attr('href') \r\n\t\t\t\tmodal.find('.modal-title').html(title)\r\n\t\t\t\tmodal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\r\n\t\t\t\t\$.post(href)\r\n\t\t\t\t\t.done(function( data ) {\r\n\t\t\t\t\t\tmodal.find('.modal-body').html(data)\t\t\t\t\t\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\t\t\t\r\n\t\t", $this::POS_READY);
Modal::begin(['id' => 'add-ro', 'header' => '<h4 class="modal-title">Entry Request Order</h4>', 'size' => 'modal-lg', 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(97, 211, 96, 0.3);']]);
Modal::end();
$this->registerJs("\r\n\t\t\t\$(document).on('click', '[data-toggle-active]', function(e){\r\n\t\t\te.preventDefault();\r\n\r\n\t\t\tvar id = \$(this).data('toggle-active');\r\n\r\n\t\t\t\$.ajax({\r\n\t\t\t\turl: '/purchasing/sales-order/approved&id=' + id,\r\n\t\t\t\ttype: 'POST',\r\n\t\t\t\tsuccess: function(result) {\r\n\r\n\t\t\t\t\tif (result == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Success\r\n\t\t\t\t\t\t\$.pjax.reload({container:'#grid-pjax'});\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// Fail\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t});\r\n\t\t", $this::POS_READY);
?>
<div style="padding:10px;">
	<?php 
$items = [['label' => '<i class="fa fa-sign-in fa-lg"></i>  Outbox', 'content' => $outboxSo, 'active' => true], ['label' => '<i class="fa fa-sign-out fa-lg"></i>  Inbox', 'content' => $inboxSo]];
echo TabsX::widget(['id' => 'tab-index-ro', 'items' => $items, 'position' => TabsX::POS_ABOVE, 'bordered' => true, 'encodeLabels' => false]);
?>
</div>
示例#26
0
<?php

use yii\helpers\Html;
use kartik\tabs\TabsX;
use yii\helpers\Url;
$items = [['label' => '<i class="glyphicon glyphicon-book"></i> ' . Html::encode('Event'), 'content' => $this->render('_detail', ['model' => $model])]];
echo TabsX::widget(['items' => $items, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false, 'bordered' => true, 'sideways' => true, 'class' => 'tes', 'pluginEvents' => []]);
示例#27
0
/**
 * @var $this  View
 * @var $title string
 * @var $code  string
 */
AwesomeBootstrapCheckboxAsset::register($this);
$this->title = $title;
$this->params['breadcrumbs'][] = $this->title;
$items = [];
if (Yii::$app->session->hasFlash('alert')) {
    echo Alert::widget(Yii::$app->session->getFlash('alert'));
}
?>
<div class="navatech-setting">
	<div class="col-sm-12">
		<?php 
if (YII_ENV_DEV) {
    ?>
			<p class="pull-right">
				<?php 
    echo Html::a(Yii::t('setting', 'Setting'), ['config/index'], ['class' => 'btn btn-primary']);
    ?>
			</p>
		<?php 
}
?>
		<?php 
echo TabsX::widget(['items' => Setting::getItems($code), 'bordered' => true, 'position' => TabsX::POS_ABOVE, 'encodeLabels' => false]);
?>
	</div>
</div>
示例#28
0
    $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>


示例#29
0
echo Html::button('<span class="glyphicon glyphicon-plus-sign"></span>', ["data-toggle" => "collapse", "data-target" => "#corpo-info", "style" => "float:right;", "id" => "btn-fecha_info"]);
?>
        </div>
        <div id="corpo-info" class="panel-body collapse"> 
            <?php 
echo DetailView::widget(['model' => $obj, 'condensed' => true, 'bordered' => true, 'hover' => true, 'enableEditMode' => false, 'mode' => DetailView::MODE_VIEW, 'attributes' => [['columns' => [['attribute' => 'groupid', 'value' => $obj->groupid], ['attribute' => 'curriculumid', 'value' => $obj->curriculum->curricularcomponent->name . '/' . $obj->curriculum->curricularcomponent->curricularcomponentversion], 'classid']], ['columns' => [['attribute' => 'curso', 'value' => $obj->curriculum->course->course->course->name . '/' . $obj->curriculum->course->course->courseversion], ['attribute' => 'learningperiodid', 'value' => $obj->learningperiod->periodid]]]]]);
?>
        </div>
    </div>

    <div class="panel panel-primary">

        <div class="panel-body">
            <div class="acdfrequenceenroll-form">
                <?php 
echo TabsX::widget(['items' => [['label' => 'Conteúdo das Aulas', 'content' => $this->render('_conteudo_aula', ['dataProvider' => $dataProvider, 'groupid' => $groupid, 'searchConteudo' => $searchConteudo, 'horas' => $hora]), 'active' => true], ['label' => 'Frequência dos alunos', 'content' => $this->render('_filtro_frequencia', ['search' => $search, 'groupid' => $groupid, 'hora' => $hora])]]]);
?>



            </div>



        </div>
    </div>

<?php 
//GridView::widget([
//   'dataProvider' => $dataProvider,
//   'filterModel' => $searchModel,
示例#30
0
$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);							
				 }']]);