Ejemplo n.º 1
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)) {
Ejemplo n.º 2
0
echo Yii::$app->request->csrfToken;
?>
">
                <input id="searchQuery" type="text" class="form-control" placeholder="masukkan nama, tipe atau nomor seri dinas">
                <span class="input-group-btn">
                    <button class="btn btn-success" type="button"><i class="glyphicon glyphicon-search"></i></button>
                </span>
            </div>
        </form>
    </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?')]);
Ejemplo n.º 3
0
                        <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>
Ejemplo n.º 4
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>
Ejemplo n.º 5
0
            </p>
        </td>
        <td width="104" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
              <p><br/>
             <?php 
    echo \common\components\MyHelper::Hari($mode->tgl_berangkat);
    ?>
 s/d  <?php 
    echo \common\components\MyHelper::Hari($mode->tgl_kembali);
    ?>
            </p>
        </td>
        <td width="104" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
            <p><br/>
             <?php 
    echo substr($mode['tgl_berangkat'], 8, 2) . ' -  ' . substr($mode['tgl_kembali'], 8, 2) . '  ' . \common\components\MyHelper::BacaBulan(substr($mode['tgl_berangkat'], 5, 2)) . '  ' . substr($mode['tgl_berangkat'], 0, 4);
    ?>
            </p>
        </td>
        <td width="104" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
            <p><br/>

            </p>
        </td>
        <td width="104" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">
            <p><br/>

            </p>
        </td>
        <td width="125" style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in">
            <p><br/>
  <?php 
    echo MyHelper::Gole($data->pegawai->gol_id);
    ?>
 </td>
            <td rowspan="3" width="100" align="center"><?php 
    echo \common\components\Myhelper::Negara($model->negara_tujuan);
    ?>
  </td>
            <td rowspan="3" 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 \common\components\MyHelper::BacaBulan(substr($data->tgl_kembali, 6, 2));
    ?>
 <?php 
    echo substr($data->tgl_kembali, 0, 4);
    ?>
</td>
            <td rowspan="3" align="center">
               
            <?php 
    $a = substr($data->tgl_kembali, 8, 2);
    $b = substr($data->tgl_berangkat, 8, 2);
    echo $a - $b + 1;
    ?>
</td>
        
            <td rowspan="3" align="center">