public function getTglIndo() { $tanggal = substr($this->getTime(), 8, 2); $bulan = getBulan(substr($this->getTime(), 5, 2)); $tahun = substr($this->getTime(), 0, 4); return $tanggal . ' ' . $bulan . ' ' . $tahun; }
function tanggal($tgl) { $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $tanggal . " " . $bulan . " " . $tahun; }
function tgl_amerika($tgl) { $tanggal = getTanggal(substr($tgl, 8, 2)); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $bulan . ' ' . $tanggal . ', ' . $tahun; }
}function tgl_indo5($tgl){ //from 2012-09-29 --> 29 Sep 2012 $tahun = substr($tgl,0,4); $bulan = getBulan(substr($tgl,5,2)); $bulan = substr($bulan,0,3); $tanggal = substr($tgl,8,2); return $tanggal.' '.$bulan.' '.$tahun; }function tgl_indo6($tgl){ //from 09 Sep 2012 --> 2012-05-09
function tgl_indo($tgl) { $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $tanggal . ' ' . $bulan . ' ' . $tahun; }
function tgl_indo5($tgl){ //2012-01-29 $tahun = substr($tgl,0,4); $tahun = substr($tgl,2,2); $bulan = getBulan(substr($tgl,5,2)); $bulan = substr($bulan,0,3); $tanggal = substr($tgl,8,2); return $tanggal.' '.$bulan.' '.$tahun; }
function tgl_indo2($tgl) { $pisah = explode(" ", $tgl); $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $tanggal . ' ' . $bulan . ' ' . $tahun . ' ' . $pisah[1]; }
function generate_tanggal($tgl) { $get = explode("-", $tgl); $get_tanggal = explode("/", $get[0]); $tanggal = $get_tanggal[0]; $bulan = getBulan($get_tanggal[1]); $tahun = $get_tanggal[2]; return $tanggal . ' ' . $bulan . ' ' . $tahun; }
function tgl_indo($str_time) { $tgl = date('Y-m-d', $str_time); $waktu = date('H:i:s', $str_time); $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $tanggal . ' ' . $bulan . ' ' . $tahun . ' - ' . $waktu; }
function DateTmIndShort($tgl) { if ($tgl) { $tgl = set_date_normal($tgl); $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); return $tanggal . ' ' . $bulan . ' ' . $tahun . ''; } }
function generate_tanggal($tgl) { $get_tanggal = gmdate('d/m/Y-H:i:s', $tgl); $get = explode("-", $get_tanggal); $get_tanggal = explode("/", $get[0]); $get_waktu = $get[1]; $tanggal = $get_tanggal[0]; $bulan = getBulan($get_tanggal[1]); $tahun = $get_tanggal[2]; return $tanggal . ' ' . $bulan . ' ' . $tahun . ' - ' . $get_waktu; }
function tgl_indo($tgl) { if (substr($tgl, 5, 1) == " ") { $tanggal = substr("00" . substr($tgl, 4, 1), -2); $tahun = substr($tgl, 6, 4); } else { $tanggal = substr($tgl, 4, 2); $tahun = substr($tgl, 7, 4); } $bulan = substr($tgl, 0, 3); $bln = getBulan($bulan); return $tanggal . ' ' . $bln . ' ' . $tahun; }
<script src="<?php echo site_url('assets'); ?> /hichart/modules/exporting.js"></script> <script type="text/javascript"> $(function () { $('#laba').highcharts({ data: { table: document.getElementById('isi_laba') }, chart: { type: 'column' }, title: { text: 'Pinjaman - <?php echo getBulan(substr($fulldate, 5, 2)) . ' ' . substr($fulldate, 0, 4); ?> ' }, yAxis: { allowDecimals: false, title: { text: 'Rupiah' } }, tooltip: { formatter: function() { return '<b>'+ this.point.name.toLowerCase() +'</b><br/>'+ this.point.y +' '+ 'Rupiah'; } },
}, function() { $(this).toggleClass("highlight"); } ); }); </script> <div id='dalam_content' align='center'> <h2>PERAMALAN</h2> <form action="modul/lap_peramalan/cetak.php" method="post" target="_blank"> <table> <tr> <td> Bulan <?php echo getBulan(date("m", strtotime("+1 month"))); ?> </td> </tr> <tr> <td align="center"> <label>Per</label> 6 Bulan </td> </tr> </table> </form> </div> <div id="tampil_data1"></div>
</div> <div class="col-xs-6 col-sm-2"> <div> <select class="form-control" name="bulan" id="bulan" style="width: 100%"> <?php for ($i = 1; $i <= 12; $i++) { $select = $i == date('n') ? 'selected' : ''; ?> <option value="<?php echo $i; ?> " <?php echo $select; ?> ><?php echo getBulan($i); ?> </option> <?php } ?> </select> </div> </div> <div class="col-xs-6 col-sm-2"> <div> <select name="merkid" id="merkid" class="form-control col-sm-10"> <option value="">Pilih</option> <?php if (count($merk) > 0) { foreach ($merk as $value) {
<h3>IM Events</h3> </header> <section class="listing-cont"> <ul> <?php $replace = new Replace(); $this->db->order_by('id_event', 'desc'); $query = $this->db->get_where('event', array('publish' => 'publish'), 5); foreach ($query->result() as $row) { ?> <li class="item event-item"> <div class="event-date"> <span class="date"><?php echo substr($row->tanggal, 8, 2); ?> </span> <span class="month"><?php echo substr(getBulan(substr($row->tanggal, 5, 2)), 0, 3); ?> </span> </div> <div class="event-detail"> <h4><a href="<?php echo base_url('event') . "/" . $row->id_event . "/" . $replace->CleanUrl($row->title); ?> "><?php echo $row->title; ?> </a></h4> <span class="event-dayntime meta-data"><?php echo $row->jam; ?> </span> </div> <div class="to-event-url">
$d_detail_kelas = mysql_fetch_object($q_detail_kelas); $nama_kelas = $d_detail_kelas->nama_kelas; } while ($data = mysql_fetch_object($q_jumlah_absensi)) { if ($data->absen == 'hadir') { $jumlah_hadir++; } elseif ($data->absen == 'sakit') { $jumlah_sakit++; } elseif ($data->absen == 'izin') { $jumlah_izin++; } } ?> <h3><?php echo $kelas == 'empty' ? "Tingkat: " . $tingkat : "Kelas: " . $nama_kelas; echo "<br>Bulan: " . getBulan($bulan) . "<br>Tahun: " . $tahun; ?> </h3> <table class="table table-striped table-hover table-bordered" id="sample_editable_2"> <thead> <tr> <th>Jumlah Sakit</th> <th>Jumlah Izin</th> </tr> </thead> <tbody> <tr> <td><?php echo $jumlah_sakit; ?>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SISTER::Keu - ' . $mnu . '</title> </head>'; // pr($_GET); $out = $rekArr = ''; $departemen = isset($_GET['li_departemenS']) && $_GET['li_departemenS'] != '' ? ' AND departemen=' . $_GET['li_departemenS'] : ''; $tingkat = isset($_GET['li_tingkatS']) && $_GET['li_tingkatS'] != '' ? ' AND tingkat=' . $_GET['li_tingkatS'] : ''; $tahunajaran = isset($_GET['li_tahunajaranS']) && $_GET['li_tahunajaranS'] != '' ? ' AND getTahunAjaran(t.tanggal)=' . $_GET['li_tahunajaranS'] : ''; $semester = isset($_GET['li_semesterS']) && $_GET['li_semesterS'] != '' ? ' AND getSemester(t.tanggal)=' . $_GET['li_semesterS'] : ''; $bulan = isset($_GET['li_bulanS']) && $_GET['li_bulanS'] != '' ? ' AND MONTH(t.tanggal)=' . $_GET['li_bulanS'] : ''; $dept = getField('nama', 'departemen', 'replid', $_GET['li_departemenS']); $ting = getField('tingkat', 'aka_tingkat', 'replid', $_GET['li_tingkatS']); $thn = getField('tahunajaran', 'aka_tahunajaran', 'replid', $_GET['li_tahunajaranS']); $sem = getField('semester', 'aka_semester', 'replid', $_GET['li_semesterS']); $bln = getBulan($_GET['li_bulanS']); // pr($bln); $out .= '<body> <table width="100%"> <tr> <td width="39%"> <img width="100" src="../../images/logo.png" alt="" /> </td> <td> <b>' . $mnu . '</b> </td> </tr> </table><br />'; $out .= '<table width="100%" xclass="isi"> <tr> <td width="15%">Departemen</td>
<section id="primary" class="content-full-width"> <div class="container"> <?php $p = new Paging(); $nov = 1; $batas = 12; $posisi = $p->cariPosisi($batas); $tableevt = new PoTable('event'); $dataevents = $tableevt->findAllLimit(startevt, "DESC", "{$posisi},{$batas}"); foreach ($dataevents as $dataevent) { $idevt = $dataevent->id_event; $startevt = $dataevent->startevt; $startevt = explode(' ', $startevt); $startsth = substr($startevt[0], 0, 4); $startshr = substr($startevt[0], 8, 2); $startbshr = substr(getBulan(substr($startevt[0], 5, 2)), 0, 3); $endevt = $dataevent->endevt; $endevt = explode(' ', $endevt); ?> <?php if ($nov % 3 == 1) { ?> <div class="column dt-sc-one-third first"> <?php } else { ?> <div class="column dt-sc-one-third"> <?php } ?> <!-- **Blog-post - Starts** -->
<div class="row"> <div class="col-md-3"> </div> <div class="col-md-3"> <div class="widget widget-default widget-item-icon"> <div class="widget-item-left"> <i class="fa fa-refresh"></i> </div> <div class="widget-data"> <div class="widget-int num-count"><?php echo count($permohonan_bulan_ini); ?> </div> <div class="widget-title">Analisis</div> <div class="widget-subtitle">Bulan <?php echo getBulan(date('m')); ?> </div> </div> </div> </div> <div class="col-md-3"> <div class="widget widget-default widget-item-icon"> <div class="widget-item-left"> <i class="fa fa-database"></i> </div> <div class="widget-data"> <div class="widget-int num-count"><?php echo count($analisis); ?> </div>
</tr> <?php $style = ''; foreach ($query_list->result_array() as $r) { /*$getdep=GetValue("id_department", "employee", array("id"=> "where/".$r['id_employee'])); //print_mz($dep); if($dep){if(in_array($getdep,$dep)){$style.='';}else{$style.='style="display:none;"'; }}*/ echo "<tr {$style} id='listz-" . $r['id'] . "' >"; echo "<td class='box_delete'><input type='checkbox' class='delete' id='del" . $r['id'] . "' value='" . $r['id'] . "'></td>"; foreach ($list as $s) { if ($s == "title") { $r[$s] = GetValue("title", "department", array("id" => "where/" . GetValue("id_department", "employee", array("id" => "where/" . $r['id_employee'])))); } elseif ($s == "employee") { $r[$s] = GetValue("name", "employee", array("id" => "where/" . GetValue("id", "employee", array("id" => "where/" . $r['id_employee'])))); } elseif ($s == 'bulan') { $r['bulan'] = getBulan($r['bulan']) . ' ' . $r['tahun']; } echo "<td>" . $r[$s] . "</td>"; } echo "<td class='action'>"; hak_edit1($this->session->userdata('webmaster_grup'), $filename, 1, $r['id']); echo "</tr>"; } ?> </table> </div> </div> </div> <script src="<?php echo assets_url('modules/js/attendance.js');
echo " </select>\n <br/>Periode Laporan : Bulan :\n <select name=bulanLaporan>"; $dataBulan = getMonth(); while ($bulan = mysql_fetch_array($dataBulan)) { echo "<option value={$bulan['bulan']}>" . getBulanku($bulan[bulan]) . "</option>"; } echo "</select>, Tahun :\n <select name=tahunLaporan>"; $dataTahun = getYear(); while ($tahun = mysql_fetch_array($dataTahun)) { echo "<option value={$tahun['tahun']}>{$tahun['tahun']}</option>"; } echo "</select>\n <input type=submit value=Lihat>\n </form>\n "; if ($_GET[action] == 'lihatlaporan') { // ------------------------------------------------------------------- $detail = getDetailSupplier($_POST[supplierId]); $detailSupplier = mysql_fetch_array($detail); echo "<hr/>\n <br/>Nama Supplier : {$detailSupplier['namaSupplier']}\n <br/>Alamat Supplier : {$detailSupplier['alamatSupplier']}\n <br/>Periode : " . getBulan($_POST[bulanLaporan]) . " - {$_POST['tahunLaporan']}"; $pembelian = getDataPembelian($_POST[supplierId], $_POST[bulanLaporan], $_POST[tahunLaporan]); $jmlPembelian = mysql_num_rows($pembelian); if ($jmlPembelian != 0) { ?> <br/><br/> <table class="tabel"> <tr> <th>No</th> <th>No Nota</th> <th>Tgl Pembelian</th> <th>No Invoice</th> <th>Nominal</th> <th>Detail</th> </tr> <?php
/** * @param $tgl * @param bool $waktu * @param bool $bln_only * @return string */ function tanggal_format_indonesia($tgl, $waktu = FALSE, $bln_only = FALSE) { $tanggal = substr($tgl, 8, 2); $bulan = getBulan(substr($tgl, 5, 2)); $tahun = substr($tgl, 0, 4); $jam = substr($tgl, 11, 2); $menit = substr($tgl, 14, 2); $separator = empty($jam) ? '' : ':'; $r_wkt = $waktu == FALSE ? '' : $jam . $separator . $menit; $tanggal_formatted = $tanggal . ' ' . $bulan . ' ' . $tahun . ' ' . $r_wkt; if ($bln_only) { $tanggal_formatted = $bulan . ' ' . $tahun; } return $tanggal_formatted; }
<th width="10%">Bulan</th> <th width="15%">Jumlah Fpt</th> </tr> <?php if (count($data) > 0) { $no = 1; $total = 0; foreach ($data as $value) { ?> <tr> <td><?php echo $no; ?> </td> <td><?php echo getBulan($value['bulan']); ?> </td> <td><?php echo $value['jumlah']; ?> </td> </tr> <?php $total += $value['jumlah']; $no++; } } ?> <tr> <th width="2%" colspan="2" style="text-align: right">TOTAL</th>
<?php //include "../config/koneksi.php"; include "../config/fungsi_indotgl.php"; //include "css_bootstrap.php"; $bulan = $_POST['bulan']; $tahun = $_POST['tahun']; $namabulan = getBulan($bulan); /*$kal = "CAL_GREGORIAN"; $jumlah_hari = cal_days_in_month(CAL_GREGORIAN, 12, 2014); */ echo "\n<section class='content'>\n<div class='row'>\n<div class='col-md-12'>\n<table border='0' width='100%'>\n\t<tr>\n\t\t<td width='40%'>\n\t\t\n\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<td rowspan='4'>\n\t\t\t\t\t\t<img src='../img/logo_pp3.png' />\n\t\t\t\t\t</td>\n\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td> <b> PT. PELABUHAN INDONESIA III (Persero) </b> </td>\n\t\t\t\t</tr>\n\t\t\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td> Tanggal Cetak : {$tanggal}</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t\t<td width='60%' align='left'>\n\t\t\t<b> LAPORAN REKAPITULASI PENERIMAAN GRATIFIKASI</b>\n\t\t\t<br>\n\t\t\tBulan <b> {$namabulan} </b>\n\t\t\t\n\t\t\tTahun <b> {$tahun} </b>\n\t\t</td>\n\t</tr>\n</table>\n<br>\n<table width='100%'>\n\t<tr>\n\t\t<td width='20%'> Nama Laporan </td>\n\t\t<td> : </td>\n\t\t<td> Laporan Penerimaan Gratifikasi</td>\n\t</tr>\n\t<tr>\n\t\t<td> Bulan / Tahun </td>\n\t\t<td> : </td>\n\t\t<td> {$namabulan} / {$tahun}</td>\n\t</tr>\n\t\n</table>\n<br> \n\n<div class='box'>\n\t\n\t<div class='box-body no-padding'>\n\t\t<table class='table table-hover' width='100%'>\n\t\t\n\t\t\t<tr style='background-color:#808080; color:#fff' align='center'>\n\t\t\t\t<th rowspan='2'>No.</th>\n\t\t\t\t<th colspan='2'> Pelapor</th>\n\t\t\t\t<th colspan='2'>Pemberi</th>\n\t\t\t\t<th rowspan='2'>Tgl. Penerimaan</th>\n\t\t\t\t<th rowspan='2'>Tgl. Pelaporan</th>\n\t\t\t\t<th rowspan='2'>Jenis Penerimaan</th>\n\t\t\t\t<th rowspan='2'>Nilai Eq Rp</th>\n\t\t\t\t<th rowspan='2'>Ref</th>\n\t\t\t</tr>\n\t\t\t<tr style='background-color:#808080; color:#fff' align='center'>\n\t\t\t\t<th>Nama</th>\n\t\t\t\t<th>Jabatan</th>\n\t\t\t\t<th>Nama</th>\n\t\t\t\t<th>Jabatan / Hubungan</th>\n\t\t\t\t\n\t\t\t</tr>\n\t\t\t\n\t\t\t\n\t\t"; /* $sql_lap="SELECT * FROM VW_PERIKSA WHERE TO_CHAR(TO_DATE(TGL_INPUT,'DD-MM-YYYY HH24:MI:SS'),'MM') = '$bulan' AND TO_CHAR(TO_DATE(TGL_INPUT,'DD-MM-YYYY HH24:MI:SS'),'YYYY') = '$tahun' ORDER BY TGL_INPUT ASC "; $stmt_lap= oci_parse($conn, $sql_lap) or die("Query gagal"); oci_execute($stmt_lap,OCI_DEFAULT); $no = 1; while ( $rs_lap = oci_fetch_array($stmt_lap,OCI_BOTH) ) { $avab = ( ($jumlah_hari - $rs_lap['SLS_D_JAM']) / $jumlah_hari ) * 100; $HASIL = ROUND($avab,2); echo " <tr> <td> $no </td>
/** * Created by PhpStorm. * User: phi314 * Date: 12/7/15 * Time: 11:40 AM */ ob_start(); session_start(); require_once '../lib/connection.php'; require_once '../lib/unleashed.lib.php'; require_once '../lib/login.php'; if (!empty($_GET['bulan'])) { $bulan = escape($_GET['bulan']); $q = mysql_query("SELECT transaksi.*, siswa.nama as nama_siswa, pembayaran.nama as nama_pembayaran FROM transaksi\n JOIN siswa ON siswa.id = transaksi.id_siswa\n JOIN pembayaran ON pembayaran.id = transaksi.id_pembayaran\n WHERE MONTH(transaksi.tanggal)='{$bulan}' ORDER BY transaksi.tanggal ASC"); if (mysql_num_rows($q) != 0) { $nama_bulan = getBulan($bulan); $file = 'laporan_transaksi_bulan_' . $nama_bulan . '_' . date('YmdHis') . '.xls'; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename={$file}"); ?> <table> <thead> <tr> <th colspan="6">Transaksi Bulan <?php echo $nama_bulan; ?> </th> </tr> </thead> </table>
for ($i = 0; $i < $count_rmse; $i++) { $yt = 0; for ($j = 0; $j < $n; $j++) { $yt = $yt + $array_bulan[$j + $i]; } // peramalan modal $pm = !empty($array_bulan[$n + $i]) ? $array_bulan[$n + $i] : 0; $yt = round($yt / $n, 3); $error = $pm - $yt; $error = round($error, 3); $error_quadrat = !empty($array_bulan[$n + $i]) ? round($error * $error) : 0; $error_quadrat_total = $error_quadrat_total + $error_quadrat; ?> <tr> <td><?php echo getBulan($array_bulan_default[$no_bulan++]['bulan']); ?> </td> <td><?php echo $pm; ?> </td> <td><?php echo $yt; ?> </td> <td><?php echo $pm == 0 ? 0 : $error; ?> </td> <td><?php
<tr> <td width="200px">BIDANG</td> <td width="50px">:</td> <td width="350px">PERIZINAN USAHA</td> <td width="400px"></td> </tr> <tr> <td><?php echo strtoupper($filter_type); ?> </td> <td>:</td> <td colspan="2"> <?php if ($filter_type == 'bulan') { echo getBulan($tgl_bulan); } else { echo getTglBulan($tgl_awal) . ' s/d ' . getTglBulan($tgl_akhir); } ?> </td> </tr> <tr> <td>JENIS IZIN</td> <td>:</td> <td><?php echo getNamaIzin($jenis_perizinan); ?> </td> </tr> </table>