} } $Combo_Dept = ArrayHelper::map(Dept::find()->orderBy('SORT')->asArray()->all(), 'DEP_NM', 'DEP_NM'); ?> <div style="padding:10px;"> <?php echo GridView::widget(['id' => 'ro-grd-index', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'kartik\\grid\\SerialColumn', 'contentOptions' => ['class' => 'kartik-sheet-style'], 'width' => '20px', 'header' => 'No.', 'headerOptions' => ['class' => 'kartik-sheet-style']], ['attribute' => 'KD_SA', 'hAlign' => 'left', 'vAlign' => 'middle', 'group' => true], ['label' => 'Tanggal Pembuatan', 'attribute' => 'CREATED_AT', 'hAlign' => 'left', 'vAlign' => 'middle', 'group' => true, 'filterType' => \kartik\grid\GridView::FILTER_DATE_RANGE, 'filterWidgetOptions' => ['attribute' => 'parentro.CREATED_AT', 'presetDropdown' => TRUE, 'convertFormat' => true, 'pluginOptions' => ['id' => 'tglro', 'format' => 'Y/m/d', 'separator' => 'TO', 'opens' => 'left']]], ['label' => 'Pengajuan', 'group' => true, 'attribute' => 'EMP_NM', 'hAlign' => 'left', 'vAlign' => 'middle'], ['label' => 'Department', 'group' => true, 'attribute' => 'dept.DEP_NM', 'hAlign' => 'left', 'vAlign' => 'middle', 'filter' => $Combo_Dept], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{tambahEdit}{delete}{approved}', '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); }, 'approved' => function ($url, $model) { return tombolApproval($url, $model); }]], ['label' => 'Notification', 'mergeHeader' => true, 'format' => 'raw', 'hAlign' => 'center', 'value' => function ($model) { return statusProcessRo($model); }]], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'sa-grd-index']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [['content' => tombolCreate() . tombolBarang() . tombolKategori()], '{toggleData}'], 'panel' => ['type' => GridView::TYPE_INFO, 'heading' => "List Sales Order"]]); ?> <?php $this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\t\r\n\t\t\t\$('#new-sa').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-sa', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-book"></div><div><h4 class="modal-title">Entry Sales Order</h4></div>', 'size' => 'modal-md', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(131, 160, 245, 0.5)']]); Modal::end(); $this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\t\r\n\t\t\t\$('#add-sa').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-sa', 'header' => '<h4 class="modal-title">Entry Sales Order</h4>', 'size' => 'modal-lg', 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(230, 251, 225, 1);']]); 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>
use yii\bootstrap\Modal; use lukisongroup\widget\models\NotulenModul; use lukisongroup\hrd\models\Employe; use yii\helpers\ArrayHelper; /** * LIST Agenda * PERIODE 23-22 * @author wawan * @since 1.2 */ $actionClass = 'btn btn-info btn-xs'; $actionLabel = 'Update'; $attDinamikNotulen = []; /*GRIDVIEW ARRAY FIELD HEAD*/ $headColomnNotulen = [['ID' => 0, 'ATTR' => ['FIELD' => 'DESCRIPTION', 'SIZE' => '300px', 'label' => 'DESCRIPTION', 'align' => 'left', 'warna' => '159, 221, 66, 1']], ['ID' => 1, 'ATTR' => ['FIELD' => 'DATE_LINE', 'SIZE' => '20px', 'label' => 'TimeLine', 'align' => 'left', 'warna' => '159, 221, 66, 1']], ['ID' => 2, 'ATTR' => ['FIELD' => 'namePic', 'SIZE' => '20px', 'label' => 'Pic', 'align' => 'left', 'warna' => '159, 221, 66, 1']]]; $gvHeadColomnNotulen = ArrayHelper::map($headColomnNotulen, 'ID', 'ATTR'); /*GRIDVIEW NUMBER*/ $attDinamikNotulen[] = ['class' => 'kartik\\grid\\SerialColumn', 'width' => '5px', 'header' => 'No.', 'hAlign' => 'center', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'tahoma', 'font-size' => '8pt', 'background-color' => 'rgba(0, 95, 218, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '5px', 'font-family' => 'tahoma', 'font-size' => '8pt']], 'pageSummaryOptions' => ['style' => ['border-right' => '0px']]]; /*GRIDVIEW ARRAY ROWS*/ foreach ($gvHeadColomnNotulen as $key => $value[]) { $attDinamikNotulen[] = ['attribute' => $value[$key]['FIELD'], 'label' => $value[$key]['label'], 'filter' => true, 'hAlign' => 'right', 'vAlign' => 'middle', 'noWrap' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => $value[$key]['SIZE'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(' . $value[$key]['warna'] . ')']], 'contentOptions' => ['style' => ['width' => $value[$key]['SIZE'], 'text-align' => $value[$key]['align'], 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '8pt']]]; } /*SET GRID VIEW LIST EVENT*/ $gvNutulen = GridView::widget(['dataProvider' => $dataProvider_agenda, 'filterRowOptions' => ['style' => 'background-color:rgba(255, 221, 66, 1); align:center'], 'columns' => $attDinamikNotulen, 'floatOverflowContainer' => true, 'floatHeader' => true, 'id' => 'gv-agenda-notulen', 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-agenda-notulen']], 'panel' => ['heading' => "<span class='fa fa-edit'><b> LIST Agenda</b></span>", 'type' => 'info', 'showFooter' => false], 'toolbar' => [['content' => tombolCreate($id)]], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => true]); ?> <?php echo $gvNutulen; ?>
/* * max String Disply * @author ptrnov <*****@*****.**> */ 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]];
$content = Html::a($label1, $url1, $options1); return $content; } function tombolCreate() { $title1 = Yii::t('app', 'Customers'); $options1 = ['id' => 'modcus', 'data-toggle' => "modal", 'data-target' => "#createcus", 'class' => 'btn btn-success btn-sm']; $icon1 = '<i class="glyphicon glyphicon-plus"></i>'; $label1 = $icon1 . ' ' . $title1; $url1 = Url::toRoute(['/mastercrm/customers-crm/createcustomers']); //,'kd'=>$kd]); $content = Html::a($label1, $url1, $options1); return $content; } if (Helper::checkRoute('createcustomers')) { $button_create = tombolCreate(); } else { $button_create = ""; } /** * New|Change|Reset| Password Login * @author ptrnov <*****@*****.**> * @since 1.1 */ function tombolKota() { $title1 = Yii::t('app', 'Kota'); $options1 = ['id' => 'password']; $icon1 = '<span class="fa fa-shield fa-md"></span>'; $label1 = $icon1 . ' ' . $title1; $url1 = Url::toRoute(['/mastercrm/customers-crm/index-city']);
return substr($model->SIG3_NM, 0, 16); } else { return substr($model->SIG3_NM, 0, 14) . '..'; } }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '125px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(0, 95, 218, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '125px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{tambahEdit}{delete}{approved}', '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); }, 'approved' => function ($url, $model) { return tombolApproval($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(0, 95, 218, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', '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 statusProcessPo($model); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '50px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(0, 95, 218, 0.3)']]]]; $gridLisPo = GridView::widget(['id' => 'po-list', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => $gridColumns, 'filterRowOptions' => ['style' => 'background-color:rgba(0, 95, 218, 0.3); align:center'], 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'po-list']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [['content' => tombolCreate() . tombolBarangUmum() . tombolBarangProdak() . tombolBarangSupplier() . tombolBarangCustomer()]], 'panel' => ['heading' => "<span class='fa fa-shopping-cart fa-xs'><b> LIST PURCHASE ORDER</b></span>"]]); ?> <div class="container-full"> <div style="padding-left:15px; padding-right:15px"> <div> <?php /*SHOW GRID VIEW*/ echo $gridLisPo; ?> </div> </div> <!-- Modal --> <div class="modal fade" id="new-po" tabindex="-1" role="dialog" aria-labelledby="create-poLabel">
}, 'hAlign' => 'left', 'vAlign' => 'middle', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{review}{view}{delete}', 'dropdownOptions' => ['class' => 'pull-right dropup'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['review' => function ($url, $model) { return review($url, $model); }, 'view' => function ($url, $model, $key) { return tombolview($url, $model); // return '<li>' . Html::a('<span class="fa fa-eye fa-dm"></span>'.Yii::t('app', 'View'), // ['/master/term-customers/view-term-cus','id'=>$model->ID_TERM],[ // // 'data-toggle'=>"modal", // // 'data-target'=>"#modal-create", // 'data-title'=> $model->ID_TERM, // ]). '</li>' . PHP_EOL; }, 'delete' => function ($url, $model) { return delete($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '150px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '150px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]]]; ?> <div class="container-full"> <div style="padding-left:15px; padding-right:15px"> <?php echo $grid = GridView::widget(['id' => 'gv-customers', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'filterRowOptions' => ['style' => 'background-color:rgba(97, 211, 96, 0.3); align:center'], 'columns' => $gridColumns, 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-customers']], 'toolbar' => ['{export}'], 'panel' => ['heading' => '<h3 class="panel-title">TERM PLAN</h3>', 'before' => tombolCreate(), 'showFooter' => false], 'export' => ['target' => GridView::TARGET_BLANK], 'exportConfig' => [GridView::PDF => ['filename' => 'kategori' . '-' . date('ymdHis')], GridView::EXCEL => ['filename' => 'kategori' . '-' . date('ymdHis')]]]); ?> </div> </div> <?php $this->registerJs("\n \$.fn.modal.Constructor.prototype.enforceFocus = function() {};\n \$('#confirm-permission-alert').on('show.bs.modal', function (event) {\n //var button = \$(event.relatedTarget)\n //var modal = \$(this)\n //var title = button.data('title')\n //var href = button.attr('href')\n //modal.find('.modal-title').html(title)\n //modal.find('.modal-body').html('')\n /* \$.post(href)\n .done(function( data ) {\n modal.find('.modal-body').html(data)\n }); */\n }),\n", $this::POS_READY); Modal::begin(['id' => 'confirm-permission-alert', 'header' => '<div style="float:left;margin-right:10px">' . Html::img('@web/img_setting/warning/denied.png', ['class' => 'pnjg', 'style' => 'width:40px;height:40px;']) . '</div><div style="margin-top:10px;"><h4><b>Permmission Confirm !</b></h4></div>', 'size' => Modal::SIZE_SMALL, 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(142, 202, 223, 0.9)']]); echo "<div>You do not have permission for this module.\n <dl>\n <dt>Contact : itdept@lukison.com</dt>\n </dl>\n </div>"; Modal::end(); $this->registerJs("\n \$.fn.modal.Constructor.prototype.enforceFocus = function(){};\n \$('#modal-create').on('show.bs.modal', function (event) {\n var button = \$(event.relatedTarget)\n var modal = \$(this)\n var title = button.data('title')\n var href = button.attr('href')\n //modal.find('.modal-title').html(title)\n modal.find('.modal-body').html('<i class=\"fa fa-spinner fa-spin\"></i>')\n \$.post(href)\n .done(function( data ) {\n modal.find('.modal-body').html(data)\n });\n })\n", $this::POS_READY); Modal::begin(['id' => 'modal-create', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-book"></div><div><h4 class="modal-title">Create TIPRO </h4></div>', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(97, 211, 96, 0.3)']]); Modal::end();
} } /*STATUS TERM*/ $attDinamik[] = ['label' => 'STATUS', 'mergeHeader' => true, 'format' => 'raw', 'hAlign' => 'center', 'value' => function ($model) { return statusTerm($model); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '80px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(249, 215, 100, 1)']]]; /*GRIDVIEW ARRAY ACTION*/ $actionClass = 'btn btn-info btn-xs'; $actionLabel = 'Action'; $attDinamik[] = ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{review}', 'dropdownOptions' => ['class' => 'pull-right dropup', 'style' => ['disable' => true]], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'dropdownButton' => ['class' => $actionClass, 'label' => $actionLabel, 'caret' => '<span class="caret"></span>'], 'buttons' => ['view' => function ($url, $model) { return tombolView($url, $model); }, 'review' => function ($url, $model) { return tombolReview($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt', 'background-color' => 'rgba(249, 215, 100, 1)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '9pt']]]; /*GRID VIEW BASE*/ $gvPlanTerm = GridView::widget(['id' => 'plan-term', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'filterRowOptions' => ['style' => 'background-color:rgba(126, 189, 188, 0.9); align:center'], 'columns' => $attDinamik, 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'plan-term']], 'panel' => ['heading' => '<h3 class="panel-title" style="font-family: verdana, arial, sans-serif ;font-size: 9pt;">TERM DATA</h3>', 'type' => 'info'], 'toolbar' => [['content' => tombolCreate()]], 'responsive' => true]); ?> <div class="content" > <!-- HEADER !--> <div class="row" style="font-family: verdana, arial, sans-serif ;font-size: 8pt;padding-bottom:20px;"> <!-- HEADER !--> <div class="col-md-12"> <?php echo $gvPlanTerm; ?> </div> </div> </div><!-- Body !--> <?php /*
}, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'SUBMIT_QTY', 'refreshGrid' => true, 'label' => 'PREMIT QTY/Pcs', 'hAlign' => 'right', 'vAlign' => 'middle', 'editableOptions' => ['header' => 'PREMIT QTY/Pcs', 'inputType' => \kartik\editable\Editable::INPUT_MONEY, 'size' => 'xs'], 'format' => ['decimal', 2], 'pageSummaryFunc' => GridView::F_SUM, 'pageSummary' => true, 'value' => function ($model) { return round($model['SUBMIT_QTY'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'SUBMIT_PRICE', 'refreshGrid' => true, 'label' => 'PREMIT PRICE/Pcs', 'editableOptions' => ['header' => 'PREMIT PRICE/Pcs', 'inputType' => \kartik\editable\Editable::INPUT_MONEY, 'size' => 'xs'], 'hAlign' => 'right', 'vAlign' => 'middle', 'format' => ['decimal', 2], 'value' => function ($model) { return round($model['SUBMIT_PRICE'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'SUBMIT_SUB_TOTAL', 'label' => 'PREMIT SUB.TOTAL', 'hAlign' => 'right', 'vAlign' => 'middle', 'format' => ['decimal', 2], 'pageSummaryFunc' => GridView::F_SUM, 'pageSummary' => true, 'value' => function ($model) { return round($model['SUBMIT_SUB_TOTAL'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '100px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['attribute' => 'STATUS', 'label' => 'STT', 'hAlign' => 'center', 'vAlign' => 'middle', 'mergeHeader' => true, 'contentOptions' => ['style' => 'width: 50px'], 'format' => 'html', 'value' => function ($model, $key, $index, $widget) { return statusItems($model); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(247, 245, 64, 0.6)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{approve}{reject}{delete}', 'dropdownOptions' => ['class' => 'pull-right dropup'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['approve' => function ($url, $model) { return tombolApproval($url, $model); }, 'reject' => function ($url, $model) { return tombolReject($url, $model); }, 'delete' => function ($url, $model) { return tombolDelete($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '30px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '30px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]]]; $_gvSoDetail = GridView::widget(['id' => 'gv-so-detail-md-inbox', 'dataProvider' => $aryProviderSoDetail, 'filterRowOptions' => ['style' => 'background-color:rgba(97, 211, 96, 0.3); align:center'], 'showPageSummary' => true, 'beforeHeader' => [['columns' => [['content' => 'Sales Order Detail', 'options' => ['colspan' => 8, 'class' => 'text-center success']], ['content' => 'Approval ', 'options' => ['colspan' => 3, 'class' => 'text-center success']], ['content' => 'Action Status ', 'options' => ['colspan' => 2, 'class' => 'text-center success']]], 'options' => ['class' => 'skip-export']]], 'columns' => $soDetailColumn, 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-so-detail-md-inbox']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [['content' => tombolViewPrice() . ' ' . tombolViewStock() . ' ' . tombolCreate($id_so)]], 'panel' => ['type' => GridView::TYPE_SUCCESS, 'heading' => false, 'before' => 'SO NO : ' . $kode_SO, 'after' => false, 'footer' => '<div>' . $soHeaderData['ISI_MESSAGES'] . '</div>']]); $profile = Yii::$app->getUserOpt->Profile_user(); ?> <div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt;"> <div class="col-md-12"> <div class="col-md-3" style="float:left"> <div class="row" > <dl> <dt style="width:300px; float:left;font-family: verdana, arial, sans-serif ;font-size: 11pt;"> PT. Efenbi Sukses Makmur </dt> <dt style="width:100px; float:left;"></dt> <dt style="width:200px; float:left;"> Ruko Demansion Blok C12
} } /** * COLUMN DATA. */ $columnList = [['class' => 'kartik\\grid\\SerialColumn', 'contentOptions' => ['class' => 'kartik-sheet-style'], 'width' => '10px', 'header' => 'No.', 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(221, 235, 29, 0.8)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'judulRoad', 'label' => 'Road Sales', 'hAlign' => 'left', 'vAlign' => 'middle', 'filter' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '300px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(221, 235, 29, 0.8)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '300px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'IMG_NAME', 'label' => 'Image Name', 'hAlign' => 'left', 'vAlign' => 'middle', 'filter' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '300px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(221, 235, 29, 0.8)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '300px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'IMGBASE64', 'format' => 'raw', 'value' => function ($model) { return Html::img($model->IMGBASE64, ['width' => '120', 'height' => '120']); }, 'label' => 'DESCRIPTION', 'hAlign' => 'left', 'vAlign' => 'middle', 'filter' => true, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '500px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(221, 235, 29, 0.8)']], 'contentOptions' => ['style' => ['text-align' => 'left', 'width' => '500px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'STATUS', 'label' => 'Status', 'mergeHeader' => true, 'format' => 'raw', 'hAlign' => 'center', 'value' => function ($model) { return statusList($model); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '70px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(221, 235, 29, 0.8)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '70px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]]]; /* * GRIDVIEW ROAD LIST * @author ptrnov [piter@lukison] * @since 1.2 */ $_gvRoadimage = GridView::widget(['id' => 'gv-road-image-list', 'dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'filterRowOptions' => ['style' => 'background-color:rgba(214, 255, 138, 1); align:center'], 'columns' => $columnList, 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-road-image-list']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [''], 'panel' => ['type' => GridView::TYPE_INFO, 'heading' => "<span class='fa fa-list-ol fa-xs'><b> List Sales Road Image</b></span>", 'type' => 'info', 'before' => tombolCreate() . ' ' . tombolRefresh()], 'floatOverflowContainer' => true, 'floatHeader' => true]); Modal::begin(['id' => 'modal-road-image', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-plus"></div><div><h4 class="modal-title">' . Html::encode('Road Image') . '</h4></div>', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(90, 171, 255, 0.7)']]); echo "<div id='modalContentroadimage'></div>"; Modal::end(); ?> <div class="sales-road-image-index"> <?php echo $_gvRoadimage; ?> </div <?php
}, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'SUBMIT_QTY', 'refreshGrid' => true, 'label' => 'PREMIT QTY/Pcs', 'hAlign' => 'right', 'vAlign' => 'middle', 'editableOptions' => ['header' => 'PREMIT QTY/Pcs', 'inputType' => \kartik\editable\Editable::INPUT_MONEY, 'size' => 'xs'], 'group' => true, 'format' => ['decimal', 2], 'pageSummaryFunc' => GridView::F_SUM, 'pageSummary' => true, 'value' => function ($model) { return round($model['ID'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['class' => 'kartik\\grid\\EditableColumn', 'attribute' => 'SUBMIT_PRICE', 'refreshGrid' => true, 'label' => 'PREMIT PRICE/Pcs', 'editableOptions' => ['header' => 'PREMIT PRICE/Pcs', 'inputType' => \kartik\editable\Editable::INPUT_MONEY, 'size' => 'xs'], 'hAlign' => 'right', 'vAlign' => 'middle', 'format' => ['decimal', 2], 'value' => function ($model) { return round($model['SUBMIT_PRICE'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]], ['attribute' => 'SUBMIT_SUB_TOTAL', 'label' => 'PREMIT SUB.TOTAL', 'hAlign' => 'right', 'vAlign' => 'middle', 'format' => ['decimal', 2], 'pageSummaryFunc' => GridView::F_SUM, 'pageSummary' => true, 'value' => function ($model) { return round($model['SUBMIT_SUB_TOTAL'], 0, PHP_ROUND_HALF_UP); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(74, 206, 231, 1)']], 'contentOptions' => ['style' => ['text-align' => 'right', 'width' => '120px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']], 'pageSummaryOptions' => ['style' => ['font-family' => 'tahoma', 'font-size' => '8pt', 'text-align' => 'right', 'border-left' => '0px']]], ['attribute' => 'STATUS', 'label' => 'Status', 'hAlign' => 'center', 'vAlign' => 'middle', 'mergeHeader' => true, 'contentOptions' => ['style' => 'width: 100px'], 'format' => 'html', 'value' => function ($model, $key, $index, $widget) { return statusItems($model); }, 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '50px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(247, 245, 64, 0.6)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '50px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '8pt', 'background-color' => 'rgba(247, 245, 64, 0.6)']]], ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{approve}{reject}{delete}', 'dropdownOptions' => ['class' => 'pull-right dropup'], 'dropdownButton' => ['class' => 'btn btn-default btn-xs'], 'buttons' => ['approve' => function ($url, $model) { return tombolApproval($url, $model); }, 'reject' => function ($url, $model) { return tombolReject($url, $model); }, 'delete' => function ($url, $model) { return tombolDelete($url, $model); }], 'headerOptions' => ['style' => ['text-align' => 'center', 'width' => '140px', 'font-family' => 'verdana, arial, sans-serif', 'font-size' => '7pt', 'background-color' => 'rgba(97, 211, 96, 0.3)']], 'contentOptions' => ['style' => ['text-align' => 'center', 'width' => '140px', 'height' => '10px', 'font-family' => 'tahoma, arial, sans-serif', 'font-size' => '7pt']]]]; $_gvSoDetail = GridView::widget(['id' => 'gv-so-detail-md-inbox', 'dataProvider' => $aryProviderSoDetail, 'filterRowOptions' => ['style' => 'background-color:rgba(97, 211, 96, 0.3); align:center'], 'showPageSummary' => true, 'columns' => $soDetailColumn, 'pjax' => true, 'pjaxSettings' => ['options' => ['enablePushState' => false, 'id' => 'gv-so-detail-md-inbox']], 'hover' => true, 'responsive' => true, 'responsiveWrap' => true, 'bordered' => true, 'striped' => '4px', 'autoXlFormat' => true, 'export' => false, 'toolbar' => [['content' => tombolCreate($cust_kd, $kode_so, $user_id, $cust_nmx, $tgl)]], 'panel' => ['type' => GridView::TYPE_SUCCESS, 'heading' => false, 'before' => 'SO NO : ' . $kode_so, 'after' => false, 'footer' => '<div>' . $soHeaderData['ISI_MESSAGES'] . '</div>']]); $profile = Yii::$app->getUserOpt->Profile_user(); ?> <div class="container-fluid" style="font-family: verdana, arial, sans-serif ;font-size: 8pt;"> <div class="col-md-12"> <div class="col-md-3" style="float:left"> <div class="row" > <dl> <dt style="width:300px; float:left;font-family: verdana, arial, sans-serif ;font-size: 11pt;"> PT EFENBI SUKSES MAKMUR </dt> <dt style="width:100px; float:left;"></dt> <dt style="width:200px; float:left;"> Ruko Demansion Blok C12