Example #1
0
?>
</h2>
        <ul class="content-block-link">
            <?php 
foreach ($publikasi_satu_kategori as $data) {
    ?>
              <li>
                  <a href="<?php 
    echo base_url('main/publikasidetail/' . $data->id_journal_category . '/' . $data->id . '/' . post_slug($data->judul));
    ?>
"><?php 
    echo $data->judul;
    ?>
</a>
                  <br /><small><span>Tanggal Publish: <?php 
    echo indo_tgl($data->tanggal);
    ?>
</span></small>
              </li>
            <?php 
}
?>
        </ul>
        <h2>Kategori Lainnya</h2>
        <ul class="news-on-detail">
            <?php 
foreach ($publikasi_lain as $i => $data) {
    ?>
              <li>
                  <div class="circleBase2 type2"> <?php 
    echo ++$i;
function indo_time($time, $jam = false)
{
    // time = Y-m-d H:i:s
    $split = explode(' ', $time);
    $data = indo_tgl($split[0]) . " ";
    if ($jam = true) {
        $data .= $split[1];
    }
    return $data;
}
 function load_rencana_penggunaan_jt($bulan)
 {
     $awal = $bulan . '-01';
     $tgl = explode("-", $bulan);
     $last = mktime(0, 0, 0, $tgl[1] + 1, date("01"), $tgl[0]);
     $akhir = date("Y-m-d", $last);
     $begin = new DateTime($awal);
     $end = new DateTime($akhir);
     $interval = DateInterval::createFromDateString('1 day');
     $period = new DatePeriod($begin, $interval, $end);
     $result = [];
     foreach ($period as $data) {
         $sas = $this->db->query("select SUBSTR(sas,1,5) as sas from tb_rencana_penggunaan_jt where tanggal = '" . $data->format("Y-m-d") . "'")->row();
         $result[] = array('date' => $data->format("Y-m-d"), 'tanggal' => indo_tgl($data->format("Y-m-d")), 'hari' => get_day($data->format("Y-m-d")), 'rencana' => isset($sas->sas) ? $sas->sas : '00:00');
     }
     return $result;
 }
        });
    }

</script>

<title>Daily Program | Flight Recorder</title>
</head>
<?php 
echo $this->load->view('message');
?>
<body>
<center><?php 
echo strtoupper($title);
?>
<br/><?php 
echo strtoupper(get_day($tanggal)) . ', ' . strtoupper(indo_tgl($tanggal));
?>
</center>


<div id='box'>
    <div id="holder">
        <div class="boxes">
            <table style="min-width: 100%;" class="daily-program">
                <tr>
                    <th width="10%" style="text-align: center;"><?php 
echo datefmysql($tanggal);
?>
</th>
                <th width="80%">
                    <div id="trackWrapper">
Example #5
0
echo currency($value->nominal);
?>
</td></tr>
            <tr><td>Jenis Transaksi</td><td>:</td><td><?php 
echo $value->jenis;
?>
</td></tr>
        </table>

        <br/>
        <table align="right" width="100%">
            <tr><td width="100%"  colspan="3" align="right"><?php 
echo $attr->kabupaten;
?>
, <?php 
echo indo_tgl($value->tanggal);
?>
</td> </tr>
            <tr><td width="33%" align="center">Mengetahui<br/>Kepala Sekolah Madrasah</td><td width="33%">&nbsp;</td><td width="33%" align="center">Bendahara</td> </tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td align="center">( <?php 
echo $attr->kepala;
?>
 )</td><td></td><td align="center">( <?php 
echo $attr->bendahara;
?>
 )</td></tr>
        </table>
    </div>
Example #6
0
 function program_plan($tanggal = NULL, $alternatif = NULL)
 {
     date_default_timezone_set('UTC');
     $data['title'] = 'Daily Program';
     //$tanggal = $this->uri->segment(3);
     if ($tanggal !== NULL) {
         //$date  = DateTime::createFromFormat('Y-m-d', $tanggal)->format('Y-m-d');
         $date = $tanggal;
     } else {
         $date = date("Y-m-d");
     }
     if ($alternatif !== NULL) {
         $alt = $alternatif;
     } else {
         $alt = '1';
     }
     //echo $date;
     //$date = date("Y-m-d");
     $this->load->model('m_masterdata');
     $data['jenis_latihan'] = $this->db->get('tb_jenis_latihan')->result();
     $data['kode_latihan'] = $this->m_masterdata->get_kode_latihan();
     $data['data'] = $this->m_transaksi->get_daily_program($date, $alt);
     $data['crew'] = $this->m_transaksi->get_crew_daily_program_plan($date);
     $data['config'] = $this->m_transaksi->get_daily_configuration($date);
     $data['pesawat'] = $this->m_transaksi->get_daily_pesawat_plan($date);
     $data['time_range'] = $this->m_transaksi->get_time_range($date);
     $data['tanggal'] = $date;
     $check = $this->db->get_where('tb_daily_time', array('tanggal' => $date))->num_rows();
     echo '<link rel="shortcut icon" href="' . base_url('assets/images/favicon2.png') . '" />';
     if (!preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])\$/", $date)) {
         echo '<link rel="stylesheet" href="' . base_url('assets/css/daily-program.css') . '" media="all" />
             <link rel="stylesheet" type="text/css" href="' . base_url('assets/css/base.css') . '" media="screen" />';
         echo "<title>Daily Program | Flight Recorder</title>";
         echo "<br/><br/><br/><center style='background: yellow; padding: 10px;'>Oops, format tanggal tidak valid, format: yyyy-mm-dd</center>";
         die;
     }
     if ($check === 0) {
         echo '<link rel="stylesheet" href="' . base_url('assets/css/daily-program.css') . '" media="all" />
             <link rel="stylesheet" type="text/css" href="' . base_url('assets/css/base.css') . '" media="screen" />';
         echo "<title>Daily Program | Flight Recorder</title>";
         echo "<br/><br/><br/><center style='background: yellow; padding: 10px;'>Oops, <u>Setting range waktu</u> untuk tanggal " . indo_tgl($date) . " masih kosong, silahkan tambahkan pada menu jadwal harian</center>";
     } else {
         $this->load->view('transaksi/daily-program-report', $data);
     }
 }
Example #7
0
    ?>
</td><td align="center"><?php 
    echo $data->jumlah;
    ?>
</td></tr>
<?php 
}
?>
</table>
<br/>
<br/>
<table width="100%" align="right">
    <tr><td align="right"><?php 
echo $label->kota;
?>
, <?php 
echo indo_tgl(date("Y-m-d"));
?>
</td></tr>
    <tr><td align="right">&nbsp;</td></tr>
    <tr><td align="right">&nbsp;</td></tr>
    <tr><td align="right"><?php 
echo $apa->nama;
?>
</td></tr>
    <tr><td align="right"><?php 
echo $apa->no_sipa;
?>
</td></tr>
</table>
</body>
echo time_formation($night_instruktor_lm);
?>
</td>
        </tr>
        <?php 
$day_first_total = detik(time_formation($day_first_lm) . ':00');
$day_dual_total = detik(time_formation($day_dual_lm) . ':00');
$nig_first_total = detik(time_formation($night_first_lm) . ':00');
$nig_dual_total = detik(time_formation($night_dual_lm) . ':00');
$first_total = detik(time_formation($flight_lm) . ':00');
$inst_sim_total = detik(time_formation($instrumen_lm_sim) . ':00');
$inst_act_total = detik(time_formation($instrumen_lm_act) . ':00');
$inst_fly_day = detik(time_formation($day_instruktor_lm) . ':00');
$inst_fly_night = detik(time_formation($night_instruktor_lm) . ':00');
foreach ($data as $key => $v) {
    $prethel = explode(' ', indo_tgl(get_safe('bulan')));
    $tgl = explode('-', $v->tanggal);
    $nrp1 = $v->nrp1;
    $nrp2 = $v->nrp2;
    $dff = $v->day_first;
    // day flying first pilot
    $dfd = $v->day_dual;
    // day flying dual pilot (Pilot belakang)
    $nff = $v->night_first;
    $nfd = $v->night_dual;
    if ($v->nrp2 !== '') {
        if ($v->id_instruktor_day === $v->id_nrp2) {
            // jika instrukturnya duduk di depan
            $nrp1 = $v->nrp2;
            $nrp2 = $v->nrp1;
            $dff = $v->day_dual;
?>
</td>
    </tr>
    <tr>
        <td colspan="2" align="center"></td><td colspan="3"></td><td colspan="3">Tanggal <?php 
echo indo_tgl(date("Y-m-d"));
?>
</td>
    </tr>
    <tr><td colspan="8"></td></tr>
</table>
<table>
    <tr><td colspan="8" align="center"><b>LAPORAN JAM TERBANG</b></td></tr>
</table>
<!-- REKAP JAM OPS DAN LAT <?php 
echo strtoupper(substr(indo_tgl(get_safe('bulan') . '-01'), 2, 50));
?>
 -->
<table border="1" width="100%">
    <thead>
        <tr>
            <th width="3%" rowspan="3">No.</th>
            <th width="30%" rowspan="3">Kegiatan</th>
            <th width="40%" colspan="5">F-16</th>
            <th width="10%" rowspan="3">Ket</th>
        </tr>
        <tr>
            <th rowspan="2">RENC</th>
            <th colspan="2">JUMLAH</th>
            <th rowspan="2">TOTAL</th>
            <th rowspan="2">%</th>
Example #10
0
</td>
                    </tr>
                    <?php 
    }
}
?>
            </tbody>
        </table>

        <br/>
        <table align="right" width="100%">
            <tr><td width="100%"  colspan="3" align="right"><?php 
echo $attr->kabupaten;
?>
, <?php 
echo isset($values->tanggal) ? indo_tgl($values->tanggal) : indo_tgl(date("Y-m-d"));
?>
</td> </tr>
            <tr><td width="33%" align="center">Mengetahui<br/>Kepala Madrasah</td><td width="33%">&nbsp;</td><td width="33%" align="center">Bendahara</td> </tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td align="center">( <u><?php 
echo $attr->kepala;
?>
</u> )<br/><?php 
echo $attr->nip_kepala;
?>
</td><td></td><td align="center">( <u><?php 
echo $attr->bendahara;
?>
<?php

header_excel('jam-terbang-penerbang-' . get_safe('tanggal') . '.xls');
?>
<table>
    <tr>
        <td colspan="16" align="center">REKAP JAM TERBANG PENERBANG BULAN <?php 
echo strtoupper(substr(indo_tgl(get_safe('tanggal') . '-01'), 2, 50));
?>
</td>
    </tr>
</table>
<table border="1" width="100%">
    <thead>
        <tr>
            <th rowspan="2">No.</th>
            <th colspan="2" rowspan="2">Tanggal</th>
            <th colspan="4">HARIAN</th>
            <th colspan="3">BULANAN</th>
            <th colspan="3">TAHUNAN</th>
            <th colspan="3">SORTY</th>
        </tr>
        <tr>
            <th class="left">SAS</th>
            <th class="left">LAKS</th>
            <th colspan="2" class="left">+ / -</th>
            <th colspan="2"> + / -</th>
            <th> TOTAL</th>
            <th colspan="2"> + / -</th>
            <th> TOTAL</th>
            <th>HRN</th>