<table border="0" width="100%" align="center" cellpadding="3" style="font-size:13px;">
        <tr>
            <td width="53%">&nbsp;</td>
            <td width="14%">Dikeluarkan di</td>
            <td width="3%" width="5%"><center>:</center></td>
            <td><b class="bold"><?php 
echo $model->kotaAsal->provinsi->nama;
?>
</b></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td class="bawah">Tanggal</td>
            <td class="bawah" width="5%"><center>:</center></td>
            <td class="bawah"><b class="bold"><?php 
echo MyHelper::Formattgl(date('Y-m-d'));
?>
</b></td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
            <td>&nbsp;</td>
            <td colspan="3" align="center">Pejabat Pembuat Komitmen,</td>
        </tr>
        <tr><td style="padding-left:100;padding-top:-50px;"><img src="<?php 
echo Url::to(['simpel-keg/qrcode', 'id' => $model->id_kegiatan]);
?>
" width="150px"/></td></tr>

    
        <tr>
    </div>
</div>
<br/>
<div id="datadinasGridview">
   <?php 
echo GridView::widget(['dataProvider' => $dataArsip, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'Tanggal', 'headerOptions' => ['width' => '200'], 'value' => function ($data) {
    return substr($data['tgl_mulai'], 8, 2) . ' -  ' . substr($data['tgl_selesai'], 8, 2) . '  ' . \common\components\MyHelper::BacaBulan(substr($data['tgl_mulai'], 5, 2)) . '  ' . substr($data['tgl_mulai'], 0, 4);
}], 'mak', ['header' => 'Maksud', 'format' => 'html', 'contentOptions' => ['style' => 'width:490px; z-index:200;'], 'value' => function ($data) {
    return $data->nama_keg;
}], ['header' => 'Negara', 'format' => 'html', 'value' => function ($data) {
    if ($data->negara == 1) {
        return 'Dalam Negri';
    } else {
        return 'Luar Negri';
    }
}], ['header' => 'Anggaran (Rp)/
                                                         Jum Personil', 'contentOptions' => ['style' => 'width:140px; z-index:200;'], 'format' => 'html', 'value' => function ($data) {
    return MyHelper::CountAng($data['id_kegiatan']);
}], ['class' => 'yii\\grid\\ActionColumn', 'contentOptions' => ['style' => 'width:190px; z-index:200;'], 'header' => 'Actions', 'template' => '{pass}', 'buttons' => ['pass' => function ($url, $model) {
    return Html::a(' <button type="button" class="btn btn-danger data-placement="top">
                                                                           <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> Back
                                                                          </button>', Yii::$app->urlManager->createUrl(['simpel-keg/editkeg', 'id' => $model->id_kegiatan]), ['title' => Yii::t('yii', 'Proses'), 'data-confirm' => Yii::t('yii', 'Apakah Anda Yakin Ingin Melakukan Proses?')]);
}]]]]);
?>
</div>

</div>
</div>
</div>
<?php 
Pjax::end();
          
            <?php 
echo $form->field($model, 'renc_tgl_selesai')->widget(DatePicker::classname(), ['options' => ['value' => $result['renc_tgl_selesai'], 'placeholder' => 'Pilih Tanggal'], 'pluginOptions' => ['autoclose' => true, 'format' => 'yyyy-m-d']])->label('Sampai Keberangkatan');
?>
        
            </div>
                <?php 
switch ($result['jenis_detail_id']) {
    case "3":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "4":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-DN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
    case "5":
        echo $form->field($model, 'no_reg')->textInput(['readOnly' => true, 'require' => true, 'value' => str_pad($dat, 4, "0", STR_PAD_LEFT) . '/SPPD-LN/BU/' . \common\components\MyHelper::Romawi(date('m')) . '/' . date('Y')])->label('No. Kwitansi');
        break;
}
?>

                
            <?php 
echo $form->field($model, 'nip_ppk')->hiddenInput(['readonly' => true, 'rows' => 6, 'value' => HelperUnit::Ppk(HelperUnit::ParentUnit($_GET['unit']))])->label(false);
?>

        </div>
    </div>


    <div class="modal-footer">
        <div class="row">
            Mengetahui/Menyetujui: <br> 
            Pejabat Pembuat Komitmen, <br><br><br><br><br>
            <center>
            <p class="bold"><u><?php 
    echo $model->ppk->nama_cetak;
    ?>
 </u> </p> 
           <p align="center"> NIP. <?php 
    echo $model->ppk->nip;
    ?>
</p>
           </center>
        </td>
        <td width="">
        <p style="padding-top:-400px"> Jakarta, <?php 
    echo \common\components\MyHelper::Formattgl($mode->tgl_kembali);
    ?>
</p> <br> 
            Pelaksana SPD, <br><br><br><br><br>
             <center>
            <b class="bold"><u><?php 
    echo $mode->pegawai->nama_cetak;
    ?>
</u> <br> 
            NIP. <?php 
    echo $mode->pegawai_id;
    ?>
</b>
        </center>
        </td>
    </tr>
    ?>
</td>
                </tr>
                <tr>
                    <td width="30%">
                    </td>
                    <td style="padding-top: -10px" align="left">
                      <i>Please of Insurance</i>
                    </td>
                </tr>
                <tr>
                    <td width="30%"></td>
                    <td style="padding-top:10px;"> <u><b>Tanggal<br/>  <i> Date of Inssuance</i> </td>
               <td style="padding-top: -10px;padding-left: -30px;" >:</td>
                <td style="padding-left: -15px;"><?php 
    echo \common\components\MyHelper::Formattgl(date('Y-m-d'));
    ?>
</td>
                </tr>
                <tr>
                    <td width="65%" style="padding-left: 65px;"><img src="<?php 
    echo Url::to(['simpel-personil/qrcod', 'id' => $mode->id_personil]);
    ?>
" width="150px"/></td>
                    <td style="padding-top:-80px;"colspan="3"><br/><u><b>Pejabat Pembuat Komitmen<br/>Authorizing Officer</b></u><br/><br/><br/><br/><br/></td>

                </tr>

                <tr>
                    <td width="30%"></td>
                    <td style="padding-top:-20px;" colspan="3">
                        <td align="center" width="300"><?php 
    echo $data->keg->kotaTujuan->nama;
    ?>
</td>
                        <td align="center" width="300">
                        <?php 
    //$count = \backend\models\SimpelPersonil::find()->where('id_kegiatan='.$data->id_kegiatan.' and pegawai_id='.$data->pegawai_id);
    if ($data->id_kegiatan > 0) {
        $count = Yii::$app->db->createCommand("SELECT count(pegawai_id) from simpel_personil where id_kegiatan=" . $data->id_kegiatan . " and pegawai_id=" . $data['pegawai_id'])->queryScalar();
        echo $count;
    }
    ?>
                        </td>
                        <td align="center" width="300">
                        <?php 
    echo substr($data->tgl_berangkat, 8, 2) . ' s/d ' . substr($data->tgl_kembali, 8, 2) . '  ' . \common\components\MyHelper::BacaBulan(substr($data->tgl_berangkat, 5, 2)) . '  ' . substr($data->tgl_berangkat, 0, 4);
    ?>
                        </td>
                    </tr>
                    <?php 
    $no++;
}
?>
                </table>
            </div>
            <?php 
echo LinkPager::widget(['pagination' => $pages]);
?>
        </div>
    </div>
        <tr>
            <td>Selama</td>
            <td>:</td>
            <td>
                <?php 
$data1 = $model->tgl_berangkat;
$data2 = $model->tgl_kembali;
$selisih = abs(strtotime($data2) - strtotime($data1)) / (60 * 60 * 24);
echo $selisih + 1 . '  Hari';
?>
            </td>


        </tr>
        <tr>
            <td>Tangal</td>
            <td>:</td>
            <td><?php 
echo MyHelper::Formattgl($model->tgl_berangkat);
?>
 s/d <?php 
echo MyHelper::Formattgl($model->tgl_kembali);
?>
</td>

        </tr>
    </table>
    <p>Dengan ini dinyatakan <b>ASLI,</b> Sesuai dari subbag. Perjalanan Dinas - Biro Umum</p>

</center>
Exemple #8
0
                            </a>
                        </li>
                        <li class="hidden-md hidden-lg">
                            <a href="./index.php.html">
                                <i class="gi gi-stopwatch fa-fw"></i>
                            </a>
                        </li>
                    </ul>
                   

                    <ul class="nav navbar-nav-custom pull-right">
                       
                          <li>
                            <br/>
                            <i class="fa fa-calendar fa-fw"></i> <?php 
echo MyHelper::GetDayName(date('l')) . ' ' . MyHelper::Formattgl(date('Y-m-d'));
?>
 <i class="fa fa-clock-o fa-fw pull-right"></i>&nbsp;&nbsp;
                        </li>
                        
                        <li>
                            <br/>
                            <div id="txt"></div>
                        </li>
                        <li class="dropdown">
                            <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
                                <?php 
echo Html::img('@web/theme/img/User-Icon.png');
?>
<i class="fa fa-angle-down"></i>
                            </a>
<?php

use yii\grid\GridView;
use yii\widgets\Pjax;
use yii\helpers\Html;
use yii\helpers\Url;
Pjax::begin(['id' => 'searchingdinas']);
echo GridView::widget(['dataProvider' => $dataSerasi, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['attribute' => 'Tanggal', 'headerOptions' => ['width' => '200'], 'value' => function ($data) {
    return substr($data['renc_tgl_mulai'], 8, 2) . ' -  ' . substr($data['renc_tgl_selesai'], 8, 2) . '  ' . \common\components\MyHelper::BacaBulan(substr($data['renc_tgl_mulai'], 5, 2)) . '  ' . substr($data['renc_tgl_mulai'], 0, 4);
}], 'nama_detail', ['class' => 'yii\\grid\\ActionColumn', 'contentOptions' => ['style' => 'width:143px; z-index:200;'], 'header' => 'Actions', 'template' => '{update}', 'buttons' => ['update' => function ($url, $model) {
    return Html::button('<span class="glyphicon glyphicon-chevron-right"></span>Lanjut Proses', ['value' => Url::to(['mak-tahun/po', 'id' => $model['detail_id']]), 'class' => 'modalButtonn btn btn-info', 'title' => 'view dokumen']);
}]]]]);
Pjax::end();
 public function actionDpejabat($id)
 {
     $user = Pegawai::find()->where(['nip' => $id])->one();
     $array = ['nip_ttd' => $user->nip, 'nama_ttd' => $user->nama, 'jab_ttd' => \common\components\MyHelper::Jab($user->struk_id)];
     return json_encode($array);
 }
Exemple #11
0
            <table class="table  table-bordered">
                <thead>
                    <tr>
                        <th rowspan="2"> No. </th>
                        <th rowspan="2"> UNIT KERJA /  MAK </th>
                        <th rowspan="2"> PAGU </th>
                        <th colspan="13"> R E A L I S A S I</th>
                        <th rowspan="2"> S I S A </th>
                        <th rowspan="2" 0=""> % </th>
                    </tr>
                    <tr>
                        <?php 
for ($i = 1; $i <= 12; $i++) {
    ?>
                            <th><?php 
    echo \common\components\MyHelper::BacaBulan($i);
    ?>
</th>
                        <?php 
}
?>
                        <th>Jumlah</th>
                    </tr>
                    <tr>
                        <?php 
for ($i = 1; $i <= 18; $i++) {
    ?>
                            <th><?php 
    echo $i;
    ?>
</th>
 Rupiah </p> 
            </td>
           
        </tr>
    </tbody>
</table>

<br/>

    <table >
        <tbody>

            <tr>
                <td width="340"><br/></td>
                <td colspan=""><h5 style="font-weight: bold;">Jakarta, <?php 
    echo MyHelper::Formattgl($data->tgl_kembali);
    ?>
</h5><br/><br/></td>

            </tr>


            <tr>
                <td width="340"><h5 style="padding-top:-30px;" ><u>Telah dibayar sejumlah : </u></h5><br/> <h5 class="bold">Rp. <?php 
    echo number_format($count, 0, ',', '.');
    ?>
</h5></td>
                <td colspan=""><h5 ><u>Telah menerima jumlah uang sebesar : </u></h5><br/> <h5 class="bold" >Rp. <?php 
    echo number_format($count, 0, ',', '.');
    ?>
</h5> </td>
            <td align="right" class="kiri atas" valign="top">VI.</td>
            <td class="atas">Tiba di <br> <font size="1">(Tempat Kedudukan )</font></td>
            <td class="atas" valign="top" width="5%"><center>:</center></td>
            <td class="atas" valign="top" style="padding-left:-27px;" ><b class="bold"><?php 
    echo $model->kotaAsal->nama;
    ?>
</b></td>
            <td class="kiri atas" align="right" rowspan="2">&nbsp;</td>
            <td class="atas kanan" colspan="3" rowspan="2" align="justify">Telah diperiksa dengan keterangan bahwa perjalanan tersebut atas perintahnya dan semata-mata untuk kepentingan jabatan dalam waktu yang sesingkat-singkatnya.</td>
        </tr>
        <tr>
            <td align="right" class="kiri">&nbsp;</td>
            <td class="">Pada Tanggal</td>
            <td class="" width="5%"><center>:</center></td>
            <td class=""><b class="bold" style="padding-left:-107px;"><?php 
    echo MyHelper::Formattgl($model->tgl_mulai);
    ?>
</b></td>
        </tr>
        <tr>
            <td align="right" class="kiri">&nbsp;</td>
            <td class="" colspan="3">Pejabat Pembuat Komitmen,</td>
            <td class="kiri" align="right">&nbsp;</td>
            <td class="kanan" colspan="3">Pejabat Pembuat Komitmen,</td>
        </tr>
        <tr>
            <td align="right" class="kiri">&nbsp;</td>
            <td class="" colspan="3">&nbsp;</td>
            <td class="kiri" colspan="3" align="right">&nbsp;</td>
            <td class="kanan">&nbsp;</td>
        </tr>
Exemple #14
0
 *    ┃   ┻   ┃
 *    ┃       ┃
 *    ┗━┓   ┏━┛
 *        ┃   ┃   神兽保佑
 *        ┃   ┃   代码无BUG!
 *        ┃   ┗━━━┓
 *        ┃       ┣┓
 *        ┃       ┏┛
 *        ┗┓┓┏━┳┓┏┛
 *          ┃┫┫ ┃┫┫
 *          ┗┻┛ ┗┻┛
 */
use yii\grid\GridView;
use yii\helpers\Html;
use common\components\MyHelper;
$this->params['breadcrumbs'] = ['角色管理'];
?>
    <p>
        <?php 
echo Html::a('添加角色', 'create', ['class' => 'btn btn-sm btn btn-success']);
?>
    </p>

<?php 
echo GridView::widget(['dataProvider' => $dataprovider, 'columns' => [['class' => 'yii\\grid\\SerialColumn', 'header' => '编号'], 'name:text:名称', 'description:text:描述', 'ruleName:text:规则名称', 'createdAt:datetime:创建时间', ['class' => 'yii\\grid\\ActionColumn', 'header' => '操作', 'template' => '{view} {update} {delete}', 'buttons' => ['view' => function ($url, $model, $key) {
    return MyHelper::actionbutton(['rbac/assignauth', 'rolename' => $key], 'view', ['title' => '分配权限']);
}, 'update' => function ($url, $model, $key) {
    return MyHelper::actionbutton('update?id=' . $key, 'update');
}, 'delete' => function ($url, $model, $key) {
    return MyHelper::actionbutton('/rbac/deleterole?id=' . $key, 'delete');
}]]]]);
        </table>

                    </div>
                </div>
            </div>

            <div class="block block-primary">
                <div class="block-title block-primary">
                    <h2>Log Proses</h2>
                </div>
                <div class="wp-posts-index">
                    <?php 
echo GridView::widget(['dataProvider' => $dataLog, 'id' => 'il', 'columns' => [['header' => 'No', 'class' => 'yii\\grid\\SerialColumn'], ['header' => 'Akun', 'contentOptions' => ['style' => 'rowspan:2;width:143px; z-index:200;'], 'value' => 'user.username'], ['attribute' => 'Proses', 'format' => 'html', 'value' => function ($data) {
    return $data->nama_proses;
}], ['attribute' => 'Waktu ', 'format' => 'html', 'value' => function ($data) {
    return \common\components\MyHelper::indonesian_date($data->waktu);
}]]]);
?>

                    <?php 
$this->registerJs('
                                                        var gridview_id = "#il"; // specific gridview
                                                        var columns = [2]; // index column that will grouping, start 1 rowspan gridview

                                                        var column_data = [];
                                                            column_start = [];
                                                            rowspan = [];
                                                 
                                                        for (var i = 0; i < columns.length; i++) {
                                                            column = columns[i];
                                                            column_data[column] = "";
Exemple #16
0
                    <td width="80" align="center"><?php 
    echo $data->keg->mak;
    ?>
 </td>
                    <td align="center"><?php 
    echo $data->keg->kotaTujuan->nama;
    ?>
</td>
                    <td align="center"><?php 
    echo substr($data->tgl_berangkat, 8, 2);
    ?>
&nbsp;&nbsp;s/d&nbsp;&nbsp;<?php 
    echo substr($data->tgl_kembali, 8, 2);
    ?>
 &nbsp; <?php 
    echo MyHelper::BacaBulan(substr($data->tgl_kembali, 5, 2));
    ?>
 <?php 
    echo substr($data->tgl_kembali, 0, 4);
    ?>
</td>
                    <td align="center">
                        <?php 
    $pergi = substr($data->tgl_berangkat, 8, 2);
    $pulang = substr($data->tgl_kembali, 8, 2);
    $hitung = $pulang - $pergi + 1;
    echo $hitung . '  Hari';
    ?>
                    </td>
                    <?php 
    if (!empty($biaya)) {
    ?>
</td>
                            </tr>
                            <tr>
                                <td>NIP Penandatangan</td>
                                <td valign="top">:</td>
                                <td><?php 
    echo $key->pej->nip;
    ?>
</td>
                            </tr>
                             <tr>
                                <td>Jab Penandatangan</td>
                                <td valign="top">:</td>
                                <td><?php 
    echo \common\components\MyHelper::Jab($key->pej->struk_id);
    ?>
</td>
                            </tr>
                            
                            <tr>
                                <td>Jumlah DL Hari Kerja</td>
                                <td valign="top">:</td>
                                <td><?php 
    echo $key->uang_makan;
    ?>
  Hari</td>
                            </tr>


                        </tbody></table>
            <td width="20"> :</td>
            <td width="260" style="font-weight: bold;"> Jakarta</td>

        </tr>
       


    </tbody>
</table> 
<table>
    
    <tr>
        <td height="20" width="400"></td>

        <td width="300">Jakarta, <?php 
    echo MyHelper::Formattgl($model->tgl_selesai);
    ?>
<br/>
Yang bepergian,</td>
    </tr>
    <tr>
       
        <td height="20" width="400"></td>

        <td style="padding-top:10px;font-weight: bold;" align="center"width="400"><br/><br/><br/><br/><b><u>(<?php 
    echo $data->pegawai->nama_cetak;
    ?>
)</u><br/>NIP : <?php 
    echo $data->pegawai->nip;
    ?>
 </td>
Exemple #19
0
?>

<p>
    <?php 
echo \yii\helpers\Html::button('添加用户', ['class' => 'btn btn-sm btn-success', 'onclick' => '$("#md").modal();']);
?>
</p>
<?php 
echo \yii\grid\GridView::widget(['dataProvider' => $dataprovider, 'filterModel' => $searchmodel, 'columns' => ['id', ['attribute' => 'username', 'filter' => ['admin' => '系统管理员', 'demo' => '屌丝管理员', 'hello' => '嘻哈管理员']], 'password', ['header' => '角色', 'content' => function ($model) {
    $roles = Yii::$app->authManager->getRolesByUser($model->id);
    $roles = implode(',', array_keys($roles));
    return $roles;
}], ['header' => '操作', 'class' => 'yii\\grid\\ActionColumn', 'template' => '{view} {update} {delete}', 'buttons' => ['view' => function ($url, $model, $key) {
    return $key == 1 ? null : MyHelper::actionbutton('/rbac/assignrole?id=' . $key, 'view', ['title' => '查看/添加角色']);
}, 'delete' => function ($url, $model, $key) {
    return $key == 1 ? null : MyHelper::actionbutton($url, 'delete');
}]]]]);
?>
<script>
    <?php 
$this->beginBlock('js_end');
?>
    function sbmt() {
        $('#userform').submit();
    }
    function loadhtml(id)
    {
        $('.modal-body').load('/user/loadhtml',{id:id},function(){
            $('#md').modal();
        })
    }