本文整理汇总了PHP中statusProcessRo函数的典型用法代码示例。如果您正苦于以下问题:PHP statusProcessRo函数的具体用法?PHP statusProcessRo怎么用?PHP statusProcessRo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了statusProcessRo函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
}
}
$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>
示例2: rgba
Modal::begin(['id' => 'add-new-item', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-pencil-square-o"></div><div><h4 class="modal-title">Add New Item</h4></div>', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(131, 160, 245, 0.5)']]);
Modal::end();
/* Items Detail View
* JS Modal New Add Items
* @author ptrnov <piter@lukison.com>
* @since 1.1
*/
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\r\n\t\t\t\$('#item-detailview').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)\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\r\n\t\t", $this::POS_READY);
Modal::begin(['id' => 'item-detailview', 'header' => '<div style="float:left;margin-right:10px" class="fa fa-2x fa-pencil-square-o"></div><div><h4 class="modal-title">Card Detal Items</h4></div>', 'headerOptions' => ['style' => 'border-radius:5px; background-color: rgba(131, 160, 245, 0.5)']]);
Modal::end();
/*SIGN AUTHOR1*/
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\r\n\t\t\t\$('#ro-auth1-sign').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)\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\r\n\t", $this::POS_READY);
Modal::begin(['id' => 'ro-auth1-sign', 'header' => '<div style="float:left;margin-right:10px">' . Html::img('@web/img_setting/login/login1.png', ['class' => 'pnjg', 'style' => 'width:100px;height:70px;']) . '</div><div style="margin-top:10px;"><h4><b>Signature Authorize</b></h4></div>', 'size' => Modal::SIZE_SMALL, 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(230, 251, 225, 1)']]);
Modal::end();
/*SIGN AUTHOR2*/
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\r\n\t\t\t\$('#ro-auth2-sign').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)\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\r\n\t", $this::POS_READY);
Modal::begin(['id' => 'ro-auth2-sign', 'header' => '<div style="float:left;margin-right:10px">' . Html::img('@web/img_setting/login/login1.png', ['class' => 'pnjg', 'style' => 'width:100px;height:70px;']) . '</div><div style="margin-top:10px;"><h4><b>Signature Authorize</b></h4></div>', 'size' => Modal::SIZE_SMALL, 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(230, 251, 225, 1)']]);
Modal::end();
/*SIGN AUTHOR3*/
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\r\n\t\t\t\$('#ro-auth3-sign').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)\r\n\t\t\t\t\t});\r\n\t\t\t\t}),\r\n\t", $this::POS_READY);
Modal::begin(['id' => 'ro-auth3-sign', 'header' => '<div style="float:left;margin-right:10px">' . Html::img('@web/img_setting/login/login1.png', ['class' => 'pnjg', 'style' => 'width:100px;height:70px;']) . '</div><div style="margin-top:10px;"><h4><b>Signature Authorize</b></h4></div>', 'size' => Modal::SIZE_SMALL, 'headerOptions' => ['style' => 'border-radius:5px; background-color:rgba(230, 251, 225, 1)']]);
Modal::end();
/*
* Button Modal Confirm Popup
* @author ptrnov [piter@lukison]
* @since 1.2
*/
$this->registerJs("\r\n\t\t\t\$.fn.modal.Constructor.prototype.enforceFocus = function() {};\r\n\t\t\t\$('#confirm-permission-alert').on('show.bs.modal', function (event) {\r\n\t\t\t\t//var button = \$(event.relatedTarget)\r\n\t\t\t\t//var modal = \$(this)\r\n\t\t\t\t//var title = button.data('title')\r\n\t\t\t\t//var href = button.attr('href')\r\n\t\t\t\t//modal.find('.modal-title').html(title)\r\n\t\t\t\t//modal.find('.modal-body').html('')\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)\r\n\t\t\t\t\t}); */\r\n\t\t\t\t}),\r\n\t", $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.\r\n\t\t\t\t<dl>\r\n\t\t\t\t\t<dt>Contact : itdept@lukison.com</dt>\r\n\t\t\t\t\t<dt style='width:70px; float:left;'>Status RO</dt>\r\n\t\t\t\t\t<dd>:" . statusProcessRo($roHeader) . "</dd>\r\n\t\t\t\t</dl>\r\n\t\t\t</div>";
Modal::end();