Ejemplo n.º 1
0
 public static function getWeekNum($date)
 {
     $tahun = date("Y", strtotime($date));
     $bulan = date("m", strtotime($date));
     $arrOfWeek = Tanggal::weekOfMonth($tahun, $bulan);
     //return "JML".count($arrOfWeek);
     $num = 0;
     foreach ($arrOfWeek as $week) {
         //echo $week[0]." ++ ".$date." ++ ".$week[1]."<br>";
         if (strtotime($week[0]) <= strtotime($date) && strtotime($date) <= strtotime($week[1])) {
             return $num;
         }
         $num++;
     }
     return -1;
 }
Ejemplo n.º 2
0
 public function proses()
 {
     $setting_model = new Setting_model();
     $data = array();
     $data['idsharingproduct'] = $setting_model->_getId('sharingproduct');
     $data['idrefbarang'] = $this->input->post('idrefbarang');
     $data['jumlah_barang'] = $this->input->post('jumlah_barang');
     $data['idrefstore_pengirim'] = $_SESSION['user']['idrefstore'];
     $data['idrefstore_penerima'] = $this->input->post('idrefstore_penerima');
     $data['status_konfirmasi'] = 'N';
     $data['tanggal_kirim'] = Tanggal::sqlDate($this->input->post('tanggal_kirim'));
     $sharingproduct = $this->orm->sharingproduct();
     $ress = $sharingproduct->insert($data);
     Message::_set(isset($ress['idsharingproduct']) ? TRUE : FALSE, 'Berhasil', 'Gagal');
     redirect('sharing/sharing');
 }
Ejemplo n.º 3
0
 public function proses()
 {
     $idrefjenisreport = $this->input->post('idrefjenisreport', TRUE);
     $dari = Tanggal::fieldDateSlashFromWest($this->input->post('datedari', TRUE));
     $sampai = Tanggal::fieldDateSlashFromWest($this->input->post('datesampai', TRUE));
     $format = $this->input->post('format');
     if ($idrefjenisreport == 1 && $format == 'pdf') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/transaksi/pengadaan/cetakDaftar/' . $dari . '/' . $sampai . '">';
     }
     if ($idrefjenisreport == 1 && $format == 'excel') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/transaksi/pengadaan/cetakDaftarExcel/' . $dari . '/' . $sampai . '">';
     }
     if ($idrefjenisreport == 2 && $format == 'pdf') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/transaksi/deliveryorder/cetakDaftar/' . $dari . '/' . $sampai . '">';
     }
     if ($idrefjenisreport == 2 && $format == 'excel') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/transaksi/deliveryorder/cetakDaftarExcel/' . $dari . '/' . $sampai . '">';
     }
     if ($idrefjenisreport == 3 && $format == 'pdf') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/stock/mutasistock/cetakPDF/' . $dari . '/' . $sampai . '/0">';
     }
     if ($idrefjenisreport == 3 && $format == 'excel') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/stock/mutasistock/cetakExcel/' . $dari . '/' . $sampai . '/0">';
     }
     if ($idrefjenisreport == 4 && $format == 'pdf') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/stock/stockcontrol/cetakPDF/' . $dari . '/' . $sampai . '/0">';
     }
     if ($idrefjenisreport == 4 && $format == 'excel') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_inventory/index.php/stock/stockcontrol/cetakPDF/' . $dari . '/' . $sampai . '/0">';
     }
     if ($idrefjenisreport == 5 && $format == 'pdf') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_Sales/index.php/quotation/quotation/cetakDaftar/' . $dari . '/' . $sampai . '/">';
     }
     if ($idrefjenisreport == 5 && $format == 'excel') {
         echo '<META HTTP-EQUIV="refresh" CONTENT="0; ' . 'URL=' . base_url() . 'ORP_Sales/index.php/quotation/quotation/cetakDaftar/' . $dari . '/' . $sampai . '/">';
     }
 }
Ejemplo n.º 4
0
         $add = (int) $mon->getDueDate('SK', $value->getId());
         $due_date = $mon->cekNextDay($value->getStart(), false, $add / 24);
         $tgl = explode(' ', $due_date);
         echo '<font color=red>batas waktu : ' . Tanggal::tgl_indo($tgl[0]) . ' ' . $tgl[1] . '</font>';
     }
     echo '</td>';
     echo '<td width=50%' . $value->getTipeSurat() . ' <font color=green>[' . $value->getUserCreate() . ']</font> 
     </br><a href="' . URL . 'suratkeluar/detil/' . $value->getId() . '" title="klik disini untuk melihat detil surat!" class=tip>' . $value->getAlamat() . '</br><i>' . $value->getPerihal() . '</i></a></b></font></td>';
 } else {
     echo '<td width=20%> ' . Tanggal::tgl_indo($value->getTglSurat()) . '</br>' . $no_surat . '</br>';
     if (!$arsip->isHasBeenArchived($value->getId(), 'SK')) {
         $mon = new Monitoring_Model();
         $add = (int) $mon->getDueDate('SK', $value->getId());
         $due_date = $mon->cekNextDay($value->getStart(), false, $add / 24);
         $tgl = explode(' ', $due_date);
         echo '<font color=red>batas waktu : ' . Tanggal::tgl_indo($tgl[0]) . ' ' . $tgl[1] . '</font>';
     }
     echo '</td>';
     echo '<td width=50%>' . $value->getTipeSurat() . ' <font color=green><i>[' . $value->getUserCreate() . ']</i></font> 
     </br><a href="' . URL . 'suratkeluar/detil/' . $value->getId() . '" title="klik disini untuk melihat detil surat!" class=tip>' . $value->getAlamat() . '</br><i>' . $value->getPerihal() . '</i></a></td>';
 }
 //echo '<td>' . $value['tgl_terima'] . '</td>';
 //echo '<td>' . $value['tgl_surat'] . '</td>';
 //echo '<td>' . $value['asal_surat'] . '</td>';
 //echo '<td>' . $value['perihal'] . '</td>';
 echo '<td width=30%>';
 if (Auth::isRole($role, 2)) {
     echo '<a href="' . URL . 'suratkeluar/edit/' . $value->getId() . '" title="ubah data surat" class=tip><input class="btn btn-green" type=button value=Ubah></a> 
         <a href="' . URL . 'suratkeluar/remove/' . $value->getId() . '" title="hapus data surat" class=tip><input class="btn btn-danger" type=button value=Hapus onclick="return selesai()"></a> ';
 }
 if (!Auth::isRole($role, 5) and !Auth::isRole($role, 4)) {
     if ($jns_elem == 1) {
         echo "<td>Tunjangan Hidup</td>";
     } else {
         if ($jns_elem == 2) {
             echo "<td>Tunjangan Buku</td>";
         } else {
             if ($jns_elem == 3) {
                 echo "<td>Tunjangan Skripsi/TA/Tesis</td>";
             } else {
                 echo "<td>Nama biaya tidak terdaftar</td>";
             }
         }
     }
 }
 if ($jns_elem == 1) {
     echo "<td>" . Tanggal::bulan_indo($bulan) . " " . $val4->get_thn() . "</td>";
     /* if ($bulan==1){
        echo "<td>Januari ".$val4->get_thn()."</td>";
        } else if ($bulan==2) {
        echo "<td>Februari ".$val4->get_thn()."</td>";
        } else if ($bulan==3) {
        echo "<td>Maret ".$val4->get_thn()."</td>";
        } else if ($bulan==4) {
        echo "<td>April ".$val4->get_thn()."</td>";
        } else if ($bulan==5) {
        echo "<td>Mei ".$val4->get_thn()."</td>";
        } else if ($bulan==6) {
        echo "<td>Juni ".$val4->get_thn()."</td>";
        } else if ($bulan==7) {
        echo "<td>Juli ".$val4->get_thn()."</td>";
        } else if ($bulan==8) {
Ejemplo n.º 6
0
                <div class="text">
                    <div class="text">
                        <b>Direktorat :</b> <?php 
    echo $row->nama_dir;
    ?>
 <br/>
                        <b>Bagian :</b> <?php 
    echo $row->nama_bagian;
    ?>
 <br/>
                        <b>Kategori :</b> <?php 
    echo $row->nama_kategoridata;
    ?>
 <br/>
                        <b>Tgl Data :</b> <?php 
    echo Tanggal::formatindo($row->tgl_data);
    ?>
 <br/>
                        <b>Deskripsi :</b> <?php 
    echo $row->desk;
    ?>
                        <p class="muted">Original File : <a href="#"></b> <?php 
    echo $row->nama_file;
    ?>
</a></p>                                                        
                    </div>
                                                                                                                                
                </div>
            </div>
        </div>
        <?php 
Ejemplo n.º 7
0
				<tbody style="text-align: center">
                                    <?php 
$no = 1;
foreach ($this->d_cuti as $v) {
    ?>
					<tr>
						<td><?php 
    echo $no;
    ?>
</td>
                        <td style="text-align: left"><?php 
    echo $v->get_no_surat_cuti();
    ?>
</td>
                        <td><?php 
    echo Tanggal::tgl_indo($v->get_tgl_surat_cuti());
    ?>
</td>
                        <td><?php 
    echo $v->get_prd_mulai();
    ?>
</td>
						<td><?php 
    echo $v->get_prd_selesai();
    ?>
</td>
                        <td style="text-align: left"><?php 
    echo $v->get_jenis_cuti();
    ?>
</td>
						<td style="text-align: left"><?php 
Ejemplo n.º 8
0
<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require 'libs/phplot/phplot.php';
$data = $this->data;
$lebar = $this->lebar;
//var_dump($lebar);
$plot = new PHPlot($lebar, 250);
$plot->SetImageBorderType('plain');
$plot->SetPlotType('bars');
$plot->SetDataType('text-data');
$plot->SetDataValues($data);
# Main plot title:
$plot->SetTitle('PENYELESAIAN SURAT BULAN ' . strtoupper(Tanggal::bulan_indo(date('m'))));
$plot->SetBackgroundColor('#eeeeff');
$plot->SetDataColors(array('green', 'red', 'blue', 'grey'));
# Make a legend for the 4 data sets plotted:
$plot->SetLegend(array('SM selesai', 'SM belum selesai', 'SK selesai', 'SK belum selesai'));
//$plot->SetLegendPosition(0, 0, 'image', 0, 0, 5, 5);
//$plot->SetShading(0);
# Turn off X tick labels and ticks because they don't apply here:
$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');
$plot->DrawGraph();
Ejemplo n.º 9
0
    foreach ($this->notifsm as $value) {
        foreach ($value as $val) {
            echo "<tr><td>" . Tanggal::tgl_indo($val['tgl_terima']) . "</br>{$val['no_agenda']}</td>\r\n                    <td>{$val['no_surat']} | " . Tanggal::tgl_indo($val['tgl_surat']) . "</br>\r\n                    <font color=grey><b>{$val['asal_surat']}</b></font></br>{$val['perihal']}</td><td><a href=" . URL . "suratmasuk/detil/{$val['id_suratmasuk']}><input type=button class=btn value=DETIL></a></td></tr>";
        }
    }
    ?>
    </table>
</div>
<?php 
}
?>
</br>
<hr>
</br>
<?php 
if (count($this->notifsk) > 0) {
    ?>
<div id="table-wrapper" style="overflow:scroll; max-height:400px;">
    <table class="CSSTableGenerator">
        <tr><td colspan="3">Surat Keluar</td></tr>
        <?php 
    foreach ($this->notifsk as $value) {
        foreach ($value as $val) {
            echo "<tr><td>" . Tanggal::tgl_indo($val['tgl_surat']) . "</td>\r\n                    <td>{$val['tipe']} | {$val['no_surat']}</br>\r\n                    <font color=grey><b>{$val['tujuan']}</b></font></br>{$val['perihal']}</td><td><a href=" . URL . "suratkeluar/detil/{$val['id_suratkeluar']}><input type=button class=btn value=DETIL></a></td></tr>";
        }
    }
    ?>
    </table>
</div>
<?php 
}
Ejemplo n.º 10
0
         $tgl = explode(' ', $due_date);
         echo '<font color=red>batas waktu : ' . Tanggal::tgl_indo($tgl[0]) . ' ' . $tgl[1] . '</font>';
     }
     echo '</td>';
     echo '<td width=50%><b><font color=blue><a href="' . URL . 'suratmasuk/detil/' . $value->getId() . '" title="klik disini untuk melihat detil surat" class=tip>' . $value->getNomor() . '</a> || ' . Tanggal::tgl_indo($value->getTglSurat()) . '</br>' . $value->getAlamat() . '</br><i>' . $value->getPerihal() . '</i></font></b></td>';
 } else {
     echo '<td width=20%><input type=checkbox id=cek name=cek[] value=' . $value->getId() . ' onchange=cek();> ' . Tanggal::tgl_indo($value->getTglTerima()) . '</br>' . $value->getAgenda() . '</br>';
     if (!$arsip->isHasBeenArchived($value->getId(), 'SM')) {
         $mon = new Monitoring_Model();
         $add = (int) $mon->getDueDate('SM');
         $due_date = $mon->findNextHour($value->getStart(), $add);
         $tgl = explode(' ', $due_date);
         echo '<font color=red>batas waktu : ' . Tanggal::tgl_indo($tgl[0]) . ' ' . $tgl[1] . '</font>';
     }
     echo '</td>';
     echo '<td width=50%><a href="' . URL . 'suratmasuk/detil/' . $value->getId() . '" title="klik disini untuk melihat detil surat" class=tip>' . $value->getNomor() . '</a> || ' . Tanggal::tgl_indo($value->getTglSurat()) . '</br>' . $value->getAlamat() . '</br><font color=grey><i>' . $value->getPerihal() . '</i></font></td>';
 }
 //echo '<td>' . $value['tgl_terima'] . '</td>';
 //echo '<td>' . $value['tgl_surat'] . '</td>';
 //echo '<td>' . $value['asal_surat'] . '</td>';
 //echo '<td>' . $value['perihal'] . '</td>';
 echo '<td halign=center width=30%>';
 if (Auth::isRole($role, 2) and Auth::isBagian($bagian, 1)) {
     echo '<a href="' . URL . 'suratmasuk/edit/' . $value->getId() . '" title="ubah data surat" class=tip><input class="btn btn-green" type=button value=ubah></a> 
         <a href="' . URL . 'suratmasuk/hapus/' . $value->getId() . '" title="hapus data surat" class=tip><input class="btn btn-danger" type=button value="hapus" onclick="return selesai(\'' . $value->getAgenda() . '\');"></a>';
 }
 if (Auth::isRole($role, 1) or Auth::isRole($role, 4)) {
     echo '<a href="' . URL . 'suratmasuk/disposisi/' . $value->getId() . '" title="rekam disposisi" class=tip><input class="btn write" type=button value=disposisi></a>';
 }
 if (Auth::isRole($role, 5)) {
     echo '<a title="cetak disposisi" class=tip><input class="btn print" type=button value="disposisi" onclick="cetakdisposisi(' . $value->getId() . ');"></a> ';
Ejemplo n.º 11
0
 public function get_status_change_pb(SuratTugas $st, $tgl_lapor, $tgl_sel_st)
 {
     //        $tgl_lapor = $pb->get_tgl_lapor();
     //        $tgl_sel_st = $st->get_tgl_selesai();
     $lulus_dini = Tanggal::check_before_a_date($tgl_lapor, $tgl_sel_st);
     $jst = $st->get_jenis_st();
     /*
      * 1 belum lulus
      * 2 belum lulus dengan perpanjangan 1
      * 3 belum lulus dengan perpanjangan 2
      * 4 belum lulus cuti
      * 5 lulus -> X
      * 6 lulus lebih dini -> X
      * 7 lulus perpanjangan 1 -> X
      * 8 lulus perpanjangan 2 -> X
      * 9 tidak lulus
      * cek
      */
     $status = null;
     switch ($jst) {
         case 1:
             $status = $lulus_dini ? 6 : 5;
             break;
         case 2:
             $status = 7;
             break;
         case 3:
             $status = 8;
             break;
         case 4:
             $status = $lulus_dini ? 6 : 5;
             break;
         default:
             $status = 5;
     }
     return $status;
 }
Ejemplo n.º 12
0
                    <br/>
                    <br/>
                    <br/> 
                    <br/> 
                    <br/> 
                    <?php 
echo $this->pj->nama_pejabat;
?>
<br/>
                    <?php 
echo "NIP " . $this->pj->nip_pejabat;
?>
                </td>
                <td class="td2" width="30%" align="right">
                    Jakarta, &nbsp; &nbsp; &nbsp; &nbsp;   <?php 
echo Tanggal::bulan_indo($this->elemen->get_bln()) . " " . $this->elemen->get_thn();
?>
<br />
                    Lunas dibayar,<br/>
                    <?php 
echo $this->bdr->nama_jabatan;
?>
<br/>
                    <br/>
                    <br/>
                    <br/> 
                    <br/> 
                    <br/> 
                    <?php 
echo $this->bdr->nama_pejabat;
?>
Ejemplo n.º 13
0
                        }
                    }
                },
                yAxis: {
                    title: {
                        text: 'Jumlah Barang'
                    },
                    labels: {
                        formatter: function () {
                            return this.value;
                        }
                    }
                },
                tooltip: {
                    pointFormat: '{series.name} sebanyak <b>{point.y:,.0f}</b><br/>Pada tanggal {point.x} <?php 
echo Tanggal::getBulan(date("m")) . ' ' . date("Y");
?>
'
                },
                plotOptions: {
                    area: {
                        pointStart: 1,
                        marker: {
                            enabled: false,
                            symbol: 'circle',
                            radius: 3,
                            states: {
                                hover: {
                                    enabled: true
                                }
                            }
Ejemplo n.º 14
0
    ?>
</option>
            </select>
            <div id="wperkgo" class="error"></div>
            <label>Perkiraan Go</label>
            <select name="bln_go" id="bln_go" type="text">
                <?php 
    for ($i = 1; $i <= 12; $i++) {
        if (isset($this->d_ubah)) {
            if ($perk_go[0] == $i) {
                echo "<option value={$i} selected>" . Tanggal::bulan_indo($i) . "</option>";
            } else {
                echo "<option value={$i}>" . Tanggal::bulan_indo($i) . "</option>";
            }
        } else {
            echo "<option value={$i}>" . Tanggal::bulan_indo($i) . "</option>";
        }
    }
    ?>
            </select>
            <select name="thn_go" id="thn_go" type="text">
                <option value="<?php 
    echo $this->curr_year;
    ?>
" <?php 
    echo isset($this->d_ubah) ? $perk_go[1] == $this->curr_year ? 'selected' : '' : '';
    ?>
><?php 
    echo $this->curr_year;
    ?>
</option>
            <th>Jurusan</th>
            <th>Masa TB</th>
            <th>Status</th>
        </thead>

        <?php 
$no = 1;
foreach ($this->d_pb as $v) {
    $tmp = explode(";", $v->get_st());
    echo "<tr>";
    echo "<td style=\"text-align: center\">" . $no . "</td>";
    //echo "<td><a href=".URL."penerima/profil/".$v->get_kd_pb().">".$v->get_nip()."</a></td>";
    echo "<td>" . $v->get_nip() . "</br>" . $v->get_nama() . "</td>";
    echo "<td>" . Golongan::golongan_int_string($v->get_gol()) . "</br>" . $v->get_unit_asal() . "</td>";
    echo "<td>" . $v->get_jur() . "</td>";
    echo "<td>dari : " . Tanggal::tgl_indo($tmp[0]) . "</br>sampai : " . Tanggal::tgl_indo($tmp[1]) . "</td>";
    echo "<td>" . $v->get_status() . "</td>";
    echo "</tr>";
    $no++;
}
?>
    </table>
</body>
</html>
<script type="text/javascript">
    function cetak(){
		window.print();
		window.onfocus = function() { window.close(); }
	}
</script>
Ejemplo n.º 16
0
            <ul class=links>
                <li> <a <?php 
echo $menu == 'dashboard' ? 'class="menu_bold"' : '';
?>
 href="<?php 
echo site_url('home/dashboard');
?>
">Dashboard</a> </li>
                <li> <a <?php 
echo $menu == 'report' ? 'class="menu_bold"' : '';
?>
 href="<?php 
echo site_url('home/report');
?>
"> Laporan </a> </li>
                <li> <a <?php 
echo $menu == 'setting' ? 'class="menu_bold"' : '';
?>
 href="<?php 
echo site_url('home/setting');
?>
">Setting </a> </li>
                <li>Last Login : <h3><?php 
echo Tanggal::formatDateTime($lastlogs['logstime']);
?>
 </h3> </li>
            </ul>
            <div class=clear></div>
        </div>
    </div>
</aside>
Ejemplo n.º 17
0
    </br>
    </br>
</form></div>
        </br>
        <hr>
<!--</td><td width="50%">-->
<!--<div class="span6"><div id="form-wrapper"><form method="POST" action="<?php 
echo !$this->ket ? URL . 'admin/rekamLibur' : URL . 'admin/updateLibur';
?>
">
        <div id="warning"></div>
        <h3>Rekam/ Ubah Data Hari Libur</h3>
        <hr>
        </br>
        <label>Tanggal</label></br><input id="tgl" type="text" name="tgl" value="<?php 
echo @Tanggal::tgl_indo($this->tgl);
?>
" readonly></br>
    <label>Keterangan</label></br><input type="text" name="ket" value="<?php 
echo !$this->ket ? '' : $this->ket;
?>
"></br></br>
    <input type="submit" class="btn" name="submit" value="SIMPAN" >
    <?php 
if ($this->ket != false) {
    ?>
            <input type="button" class="btn" name="hapus" value="HAPUS" onclick="hapusEvent(document.getElementById('tgl').value)">
        <?php 
}
?>
    </br>
Ejemplo n.º 18
0
    $sth->execute();
    $data = $sth->fetchAll(PDO::FETCH_OBJ);
    foreach ($data as $val) {
        $nmbag = $val->bagian;
    }
    return strtoupper($nmbag);
}
$pdf = new PDF('P', 'cm', 'A4');
$pdf->Open();
$pdf->SetAutoPageBreak(true, 4);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Arial', 'B', 14);
$pdf->Cell(18.8, 0.4, '', 0, 1, 'C');
$pdf->Cell(18.8, 0.4, 'DAFTAR EKSPEDISI SURAT MASUK', 0, 1, 'C');
$date = Tanggal::tgl_indo(date('Y-m-d'));
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(18.8, 0.4, 'Bengkulu, ' . $date, 0, 1, 'C');
$pdf->Cell(18.8, 0.6, '', 0, 1, 'C');
//$pdf->Cell(18.8, 0.4, '', 0, 1, 'C');
//$pdf->Cell(18.8, 0.4, '', 0, 1, 'C');
$pdf->SetFont('Arial', 'B', 10);
$pdf->Cell(2, 0.7, 'NO URUT', 'RLBT', 0, 'C');
$pdf->Cell(5, 0.7, 'NO SURAT', 'RLBT', 0, 'C');
$pdf->Cell(7, 0.7, 'ASAL SURAT', 'RLBT', 0, 'C');
$pdf->Cell(4.8, 0.7, 'PARAF PENERIMA', 'RLBT', 1, 'C');
if (count($this->data) > 0) {
    $no = 1;
    $pdf->SetFont('Arial', '', 9);
    //nama satker maks 35 karakter
    foreach ($this->data as $key => $val) {
Ejemplo n.º 19
0
 private function cekFilterKey($data = array())
 {
     //        var_dump($data);
     if ($data[0] == 'in') {
         $this->filter = $data[1];
         return true;
     } else {
         if ($data[0] == 'after') {
             $this->after = Tanggal::ubahFormatTanggal($data[1]);
             return true;
         } else {
             if ($data[0] == 'before') {
                 $this->before = Tanggal::ubahFormatTanggal($data[1]);
                 return true;
             }
         }
     }
     return false;
 }
Ejemplo n.º 20
0
echo StatusPB::status_int_string($this->d_pb->get_status());
?>
"></li>
                            <?php 
//if($this->d_pb->get_status()<5) {
?>
                            <li><input class="lihat" type="button" value="Tidak lulus" id="off" title="ubah status tidak lulus"/></li>
                            <?php 
//}
?>
                        </ul>
			
                        <label class="isian">Tanggal Lapor Selesai TB :</label>

                        <input type="text" id="datepicker" name="tgl_lapor" value="<?php 
echo isset($this->tgl_lapor) ? $this->tgl_lapor : (($this->d_pb->get_tgl_lapor() == '0000-00-00' or $this->d_pb->get_tgl_lapor() == '') ? '' : Tanggal::ubahFormatToDatePicker($this->d_pb->get_tgl_lapor()));
?>
"/>

			<div class="error" id="wskl"></div>
			<label class="isian">Unggah SKL :</label>
			<!--input type="file" id="skl" name="skl" /-->
			<ul class="inline">
				<li><input type="file" id="SKL" name="sklinput"  onChange="Handlechange();"/>
<!--				<input class="unggah" type="text" id="filename" disabled /></li>
				<li><input class="lihat" type="button" value="Pilih..." id="fakeBrowse" onclick="HandleBrowseClick();"/>
				</li>-->
<!--				<li><input type="button" class="lihat" onclick="view_file('<?php 
echo $this->d_pb->get_skl();
?>
','skl');" value="Lihat SKL"></li>-->
Ejemplo n.º 21
0
    function cetakPDF($tanggal_dari, $tanggal_sampai, $idRefBarang1 = 0)
    {
        ini_set('memory_limit', '512M');
        $this->output->enable_profiler(FALSE);
        $this->load->library('TCPDF');
        $stock = new stock_model();
        $store = $this->orm->refstore->where('idrefstore', $_SESSION['user']['idrefstore'])->fetch();
        $image_store = ($store['image_file'] == "" or $store['image_file'] == NULL) ? "./front_assets/img/bizon_inventory.jpg" : "./uploads/stores/" . $store['image_file'];
        if ($idRefBarang1 != 0) {
            $data = $stock->_loadMutasiStock($tanggal_dari, $tanggal_sampai, $idRefBarang1);
        } else {
            $data = $stock->_loadMutasiStock($tanggal_dari, $tanggal_sampai);
        }
        // print_r(json_encode($data)); exit;
        // create new PDF document
        $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, 'A4', true, 'UTF-8', false);
        // set document information
        $pdf->SetCreator(WEB_TITLE);
        $pdf->SetAuthor($this->session->userdata('username'));
        $pdf->SetTitle("Laporan Surat Jalan");
        $pdf->SetSubject('Laporan Surat Jalan');
        $pdf->tanggal_dari = $tanggal_dari;
        $pdf->tanggal_sampai = $tanggal_sampai;
        // set header and footer fonts
        $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
        $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
        // set default monospaced font
        $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
        //set margins
        $pdf->SetMargins(5, 10, 5);
        $pdf->SetHeaderMargin(5);
        $pdf->SetFooterMargin(5);
        //set auto page breaks
        $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
        //set image scale factor
        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
        // ---------------------------------------------------------
        // set default font subsetting mode
        $pdf->setFontSubsetting(true);
        // Set font
        // dejavusans is a UTF-8 Unicode font, if you only need to
        // print standard ASCII chars, you can use core fonts like
        // helvetica or times to reduce file size.
        // use the font
        $pdf->SetFont("Times", '', 11, '', false);
        // Add a page
        // This method has several options, check the source code documentation for more information.
        $pdf->AddPage('L');
        // Set some content to print
        $html = '	
<body> ';
        $no = 1;
        $html .= '
             <table><tr><td>
<h3>Daftar Delivery Order - ' . $store['nama'] . '</h3>
</td><td style="text-align:right">
<img src="' . $image_store . '" width="150"><br/></td></tr></table>
             <table width="100%">
  <tr>
    <td width="100%"  style="text-align: center; vertical-align:text-top;"><h2>LAPORAN MUTASI STOCK</h2>
    <p><b>PERIODE : ' . Tanggal::formatDate(Tanggal::sqlDate($tanggal_dari)) . ' s/d ' . Tanggal::formatDate(Tanggal::sqlDate($tanggal_sampai)) . '</b></p>
    </td>
  </tr> 
 
  </table>
  <table cellpadding="5" cellspacing="1" class="border" border="1" width="100%">
  <tr style="text-align:center"><td width="70">No</td><td width="400">Nama Barang</td><td width="90">Stock Awal</td><td width="90">Barang Masuk</td><td width="90">Barang Keluar</td><td width="90">Saldo</td><td width="100">Satuan</td></tr>
  ';
        if (!empty($data)) {
            foreach ($data as $row) {
                $idrefbarang = $row['idrefbarang'];
                $row['jumlahKirim'] = $stock->_getJumlahKirim($idrefbarang, $tanggal_dari, $tanggal_sampai);
                $row['jumlahTerima'] = $stock->_getJumlahTerima($idrefbarang, $tanggal_dari, $tanggal_sampai);
                // $saw = $master->_getSaldoAwalBarang($idBarang, $tanggal_dari, $tanggal_sampai, $row['idTransaksiBarang']);
                $kirim = $row['jumlahKirim'] == null ? 0 : $row['jumlahKirim'];
                $terima = $row['jumlahTerima'] == null ? 0 : $row['jumlahTerima'];
                $saldo = $row['stockawal'];
                $saldo = $saldo + $terima;
                $saldo = $saldo - $kirim;
                $html .= '<tr>' . '<td class="border" style="text-align: center;" > ' . $no . ' </td>' . '<td class="border"  style="text-align: left;"> ' . $row['namabarang'] . '</td>' . '<td class="border" style="text-align: right;"> ' . $row['stockawal'] . ' </td>' . '<td class="border" style="text-align: right;"> ' . $terima . ' </td>' . '<td class="border" style="text-align: right;"> ' . $kirim . '</td>' . '<td class="border" style="text-align: right;"> ' . $saldo . '</td>' . '<td class="border" style="text-align: right;"> ' . $row['namasatuan'] . '</td></tr>';
                $no++;
            }
        }
        $html .= '</table>';
        $html .= '<br/> <br/> <br/> <hr/> <div style="text-align: center"> Akhir Laporan </div> </body>';
        //print_r($html); exit;
        // Print text using writeHTMLCell()
        $pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true);
        // ---------------------------------------------------------
        // Close and output PDF document
        // This method has several options, check the source code documentation for more information.
        $pdf->Output("Laporan Mutasi Stock {$tanggal_dari} _ {$tanggal_sampai}.pdf", 'I');
        //============================================================+
        // END OF FILE
        //============================================================+
    }
 public function updst()
 {
     if (Session::get('role') != 2) {
         $this->datast();
     }
     $st = new SuratTugas($this->registry);
     $kd_st = $_POST['kd_st'];
     $jur = $_POST['jur'];
     $jenis = $_POST['jns_st'];
     $st_lama = $_POST['st_lama'];
     $nomor = $_POST['no_st'];
     $tgl_st = $_POST['tgl_st'];
     $tgl_mulai = $_POST['tgl_mulai'];
     $tgl_selesai = $_POST['tgl_selesai'];
     $th_masuk = $_POST['th_masuk'];
     $pemb = $_POST['pemb'];
     $data = array('KD_JUR' => $jur, 'KD_PEMB' => $pemb, 'KD_JENIS_ST' => $jenis, 'KD_ST_LAMA' => $st_lama, 'NO_ST' => $nomor, 'TGL_ST' => Tanggal::ubahFormatTanggal($tgl_st), 'TGL_MUL_ST' => Tanggal::ubahFormatTanggal($tgl_mulai), 'TGL_SEL_ST' => Tanggal::ubahFormatTanggal($tgl_selesai), 'THN_MASUK' => $th_masuk);
     if ($_FILES['fupload']['name'] != '') {
         //            $upload = $this->registry->upload;
         $this->registry->upload->init('fupload');
         $this->registry->upload->setDirTo('files/st/');
         $nama = array($nomor, $tgl_st);
         $this->registry->upload->changeFileName($this->registry->upload->getFileName(), $nama);
         $data['FILE_ST'] = $this->registry->upload->getFileTo();
         if (file_exists('files/st/' . $data['FILE_ST'])) {
             unlink('files/st/' . $data['FILE_ST']);
         }
         $this->registry->upload->uploadFile();
     }
     $st->set_kd_st($kd_st);
     $st->update_st($data);
     $ref = " no ST " . $nomor;
     ClassLog::write_log('surat_tugas', 'ubah', $ref);
     header('location:' . URL . 'surattugas/datast');
 }
Ejemplo n.º 23
0
             break;
         case 'lulus':
             $jenis = 'Pegawai TB dari ';
             $judul_notif = 'MASA TUGAS BELAJAR';
             $pesan = $jenis . " " . $v['univ'] . " - " . $v['jurusan'] . " " . $v['tahun_masuk'] . " selesai bulan " . $v['bulan'] . " " . $v['tahun'];
             break;
         case 'kontrak':
             $jenis = 'Tagihan Kontrak ';
             $judul_notif = 'PEMBAYARAN KONTRAK';
             $pesan = $jenis . " " . $v['univ'] . " - " . $v['jurusan'] . " " . $v['tahun_masuk'] . " bulan " . $v['bulan'] . " " . $v['tahun'];
             break;
     }
     $jatuh_tempo = "01 " . $v['bulan'] . " " . $v['tahun'];
     $tmp = explode('-', $v['jatuh_tempo']);
     if (count($tmp) > 2) {
         $jatuh_tempo = Tanggal::tgl_indo($v['jatuh_tempo']);
     }
     if ($v['status'] == 'proses') {
         $img = 'public/icon/purges.png';
     } else {
         $img = 'public/icon/notices.png';
     }
     echo "<ul class='inline noti pic'>";
     echo "<div class='detail'>";
     echo "<h4>{$jatuh_tempo} : <a style='color: #49afcd' href=''>{$judul_notif}</a></h4>";
     echo "<div class='noti'>{$pesan}</div>";
     echo "</div>";
     echo "<div class='flag'><img class='noti pic' src='{$img}'></div></ul>";
 }
 ?>
 
Ejemplo n.º 24
0
    echo $row->deskripsi;
    ?>
" href="<?php 
    echo base_url('asset/fileupload/img/' . $row->nfile);
    ?>
"><img src="<?php 
    echo base_url('asset/fileupload/img/' . $row->nfile);
    ?>
" height="120" width="120" class="img-thumbnail"/></a>
                    </div>
                    <div class="info">
                        <a href="#" class="name"><?php 
    echo $row->deo_id;
    ?>
</a> <span class="muted"><?php 
    echo Tanggal::formatindo($row->deo_tg);
    ?>
</span>  <a href="<?php 
    echo base_url('kategoridata/deletefile/' . $row->id_img);
    ?>
" class="delete">Hapus</a>
                        <div class="text">
                            <input type="hidden" name="id_img[<?php 
    echo $i;
    ?>
]" value="<?php 
    echo $row->id_img;
    ?>
">
                            <input type="text" name="deskripsi[<?php 
    echo $i;
Ejemplo n.º 25
0
    public function Header()
    {
        $store = $this->store;
        $image_store = ($store['image_file'] == "" or $store['image_file'] == NULL) ? "./front_assets/img/bizon_inventory.jpg" : "./uploads/stores/" . $store['image_file'];
        $html = '
<style>
    table {
        letter-spacing:5px;
        padding-top:1px;
    }      
</style>  
<table><tr><td>
<h3>Delivery Order - ' . $store['nama'] . '</h3>
</td><td style="text-align:right">
<img src="' . $image_store . '" width="150"><br/></td></tr></table>
<table width="100%">
    <tr>
        <td colspan="6" width="99%"><br/></td>
    </tr>
    <tr>
        <td colspan="2" rowspan="2" style="text-align: left; vertical-align:text-top;"><h2></h2></td>
        <td colspan="2" rowspan="2" style="text-align: left; vertical-align:text-top;"></td>
        <td colspan="1" rowspan="1"  style="text-align: left; vertical-align:text-top;"></td>
        <td colspan="1" rowspan="1"  style="text-align: left; vertical-align:text-top;"> ' . $this->nomorDO . '</td>
    </tr>
    <tr>
        <td colspan="1" rowspan="1"  style="text-align: left; vertical-align:text-top;"></td>
        <td colspan="1" rowspan="1"  style="text-align: left; vertical-align:text-top;"> ' . Tanggal::fieldDate($this->tanggalDO) . '</td>
    </tr>
   

</table>

<table width="100%"><tr><td width="68%"></td><td width="50%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $this->namaPelanggan . '<br/><br/></td></tr></table> <br/> <br/>


';
        $this->writeHTML($html, true, 0, true, true);
    }
Ejemplo n.º 26
0
?>
helper/pilihalamat/3<?php 
echo "/" . $this->data->getId();
?>
"><input type="button" name="" value="+"></a></br>
    </div><label>AGENDA</label><input id="agenda" type="text" size="6" name="no_agenda" value="<?php 
echo $this->data->getAgenda();
?>
"></br>
    <label>TANGGAL TERIMA</label><input id="tgl_terima" type="text" name="tgl_terima" value="<?php 
echo $this->data->getTglTerima();
?>
" readonly></br>
    <div id="wtgl"></div>
    <div><label>TANGGAL SURAT</label><input id="datepicker" type="text" name="tgl_surat" value="<?php 
echo Tanggal::ubahFormatToDatePicker($this->data->getTglSurat());
?>
" onchange="cekemptyfield(2,this.value)" readonly></br>
    </div><div id="wnosurat"></div>
    <div><label>NOMOR SURAT</label><input id="no_surat" type="text" size="40" name="no_surat" value="<?php 
echo $this->data->getNomor();
?>
" title="isikan nomor surat(*)" onkeyup="cekemptyfield(3,this.value)">
    <!--<label class="right"><?php 
echo $value['no_surat'];
?>
</label>--></br>
    </div><div id="whal"></div>
    <div><label>PERIHAL</label><textarea id="perihal" cols="30" rows="5" name="perihal" title="isikan perihal surat(*)" onkeyup="cekemptyfield(4,this.value);"><?php 
echo $this->data->getPerihal();
?>
Ejemplo n.º 27
0
  
                        <div class="activity fixed medium">
                            <div class=description>
                                <span>
                                </span>
                                <a>
                                    <?php 
    echo $row['namalengkap'];
    ?>
                                </a>

                                <?php 
    echo $row->refjenislogs['jenis'];
    ?>
 pada <?php 
    echo Tanggal::formatDateTime($row['logstime']);
    ?>

                            </div>
                        </div>
                    <?php 
}
?>
    

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

    <div class="push clear"></div>
Ejemplo n.º 28
0
 public function ikhtisarKlas()
 {
     $klas = $_POST['queryString'];
     $klas = str_replace("-", " ", $klas);
     $ikhtisar = new IkhtisharArsip();
     $id = $ikhtisar->getArsipByKlasifikasi($klas);
     echo "<div id=table-wrapper><h2 align=center><font color=black>DAFTAR IKHTISAR DOKUMEN/ARSIP</font></h2>";
     echo "<h3 align=center>KLASIFIKASI ARSIP : " . $klas . "</h3>";
     echo "</br><div id=chart-wrapper><table class=CSSTableGenerator>";
     echo "<tr><td><font color=black><b>No</b></font></td>\r\n            <td><font color=black><b>Uraian</b></font></td>\r\n            <td><font color=black><b>Tipe Surat</b></font></td>\r\n            <td><font color=black><b>Tipe Naskah</b></font></td>            \r\n            </tr>";
     $no = 1;
     foreach ($id as $val) {
         $tipe = $val->tipe == 'SM' ? 'Surat Masuk' : 'Surat Keluar';
         $lamp = new Lampiran_Model();
         $lampsurat = $lamp->getLampiranSurat($val->id_surat, $val->tipe);
         $lampiran = '';
         foreach ($lampsurat as $value) {
             $tgl = is_null($value['tanggal']) ? '' : Tanggal::tgl_indo($value['tanggal']);
             $lampiran .= $value['nomor'] . ' : ' . $tgl . '</br>' . $value['hal'] . '<hr>';
         }
         $tgl_surat = is_null($val->tgl_surat) ? '' : Tanggal::tgl_indo($val->tgl_surat);
         echo "<tr><td><font color=black><b>{$no}</b></font></td>\r\n            <td><font color=black><b>{$val->no_surat} : " . $tgl_surat . "</br>{$val->alamat}</b></font>";
         if ($lampiran != '') {
             echo '<hr><b>LAMPIRAN :</b></br>' . $lampiran;
         }
         echo "</td>\r\n            <td><font color=black><b>{$tipe}</b></font></td>\r\n            <td><font color=black><b>{$val->klas}</b></font></td>            \r\n            </tr>";
         $no++;
     }
 }
Ejemplo n.º 29
0
    if (date('d-m-Y', strtotime($val->get_tgl_sp2d())) != "01-01-1970" && date('d-m-Y', strtotime($val->get_tgl_sp2d())) != "00-00-0000") {
        $tgl = date('d-m-Y', strtotime($val->get_tgl_sp2d()));
    }
    echo "<td>" . $val->get_no_sp2d() . " / " . $tgl . "</td>";
    echo "<td style='text-align: left'>" . $val->get_univ() . "</td>";
    //                    $this->jur->set_kode_jur($val->get_kd_jur());
    //                    $jur = $this->jur2->get_jur_by_id($this->jur2);
    echo "<td style='text-align: left'>" . $val->get_kd_jur() . "</td>";
    echo "<td>" . $val->get_thn_masuk() . "</td>";
    echo "<td>" . $val->get_jml_peg() . "</td>";
    $bulan = $val->get_bln();
    echo "<td>" . Tanggal::bulan_indo($bulan) . "</td>";
    echo "<td>" . $val->get_thn() . "</td>";
    echo "<td style='text-align: right'>" . number_format($val->get_total_bayar()) . "</td>";
    if (Session::get('role') == 2) {
        $ket = Tanggal::bulan_indo($bulan) . " " . $val->get_thn() . " Jurusan " . $val->get_kd_jur() . " " . $val->get_univ() . " " . $val->get_thn_masuk();
        echo "<td><a href=" . URL . "elemenBeasiswa/delJadup/" . $val->get_kd_d() . " onClick=\"return del('" . $ket . "');\" title='hapus'><i class=\"icon-trash\" ></i></a> &nbsp \r\n                        <a href=" . URL . "elemenBeasiswa/editJadup/" . $val->get_kd_d() . " title='ubah'><i class=\"icon-pencil\"></i></a> &nbsp\r\n                            <a href='#' onClick='cetak_jadup(" . $val->get_kd_d() . "); return false;' title='cetak'><i class=\"icon-print\"></i></a>\r\n                  </td>";
    }
    if (Session::get('role') == 3) {
        echo "<td><a href='#' onClick='cetak_jadup(" . $val->get_kd_d() . "); return false;' title='cetak'><i class=\"icon-print\"></i></a>\r\n              </td>";
    }
    echo "</tr>";
    $no++;
}
?>
</tbody>
</table>

<script>
    function del(ket){
		var txt = "Yakin data jadup bulan "+ket+" akan dihapus?";
Ejemplo n.º 30
0
    $d_st = explode(",", $v->get_st());
    $no_st = $d_st[0];
    $tgl_st = $d_st[1];
    $thn_masuk = $d_st[2];
    $d_jur = explode(",", $v->get_jur());
    $univ = $d_jur[1];
    $jur = $d_jur[0];
    $strata = $d_jur[2];
    ?>
					<tr>
						<td style="text-align: center"><?php 
    echo $no;
    ?>
</td>
                                                <td><?php 
    echo $no_st . "</br>" . Tanggal::tgl_indo($tgl_st);
    ?>
</td>
						<td style="text-align: center"><?php 
    echo $strata;
    ?>
</td>
						<td><?php 
    echo $univ;
    ?>
</td>
						<td><?php 
    echo $jur;
    ?>
</td>
						<td style="text-align: center"><?php