Beispiel #1
0
echo "<font face=arial size=3pt>{$bcf15['kd_manifest']}</font>";
echo "<font face=arial size=3pt>{$bcf15['tahun']}</font>";
?>
   <font face="arial" size="3pt">Tanggal :       <?php 
echo tglindo($bcf15['bcf15tgl']);
?>
 </font></td>
                                                <td valign="top" align="center" width="20%"> <?php 
$query1 = "SELECT count(*) as jumlah FROM bcf15,tpp where bcf15.idtpp=tpp.idtpp and suratpengantarno={$id} and tahun={$tahun}";
$query = mysql_query($query1);
$data = mysql_fetch_array($query);
$jumlah = $data['jumlah'];
echo "<font face=arial size=3pt>{$jumlah}</font>";
echo "<br>";
echo ' (';
echo rp_satuan($jumlah);
echo ') Lembar';
?>
   </td> 
                                                <td valign="top" width="30%"><font face="arial" size="3pt">Disampaikan dengan hormat kepada Saudara untuk penyelesaian lebih lanjut sesuai dengan peraturan Menteri Keuangan Nomor : 62/PMK.04/2011 tanggal 30 Maret 2011</font></td>
                                            </tr>
                                        </table>
                                        <table border="0" width="100%" >
                                            <tr>
                                                <td height="20"></td>
                                            </tr>
                                            <tr>
                                                <td width="60%"></td>
                                                <td align="left"><font face="arial" size="3pt"><?php 
echo $bcf15['plh'];
?>
Beispiel #2
0
function getTerbilang($angka, $debug)
{
    // $angka = str_replace('Rp. ','');
    $angka = str_replace(".", ",", '75.900.500');
    // $angka = str_replace(".",",",$angka);
    list($angka, $desimal) = explode(",", $angka);
    $panjang = strlen($angka);
    for ($b = 0; $b < $panjang; $b++) {
        $myindex = $panjang - $b - 1;
        $a_bil[$b] = substr($angka, $myindex, 1);
    }
    if ($panjang > 9) {
        $bil = $a_bil[9];
        if ($panjang > 10) {
            $bil = $a_bil[10] . $bil;
        }
        // var_dump($bil);exit();
        if ($panjang > 11) {
            $bil = $a_bil[11] . $bil;
        }
        if ($bil != "" && $bil != "000") {
            $terbilang .= rp_satuan($bil, $debug) . " milyar";
        }
    }
    if ($panjang > 6) {
        $bil = $a_bil[6];
        if ($panjang > 7) {
            $bil = $a_bil[7] . $bil;
        }
        if ($panjang > 8) {
            $bil = $a_bil[8] . $bil;
        }
        if ($bil != "" && $bil != "000") {
            $terbilang .= rp_satuan($bil, $debug) . " juta";
        }
    }
    if ($panjang > 3) {
        $bil = $a_bil[3];
        if ($panjang > 4) {
            $bil = $a_bil[4] . $bil;
        }
        if ($panjang > 5) {
            $bil = $a_bil[5] . $bil;
        }
        if ($bil != "" && $bil != "000") {
            $terbilang .= rp_satuan($bil, $debug) . " ribu";
        }
    }
    $bil = $a_bil[0];
    if ($panjang > 1) {
        $bil = $a_bil[1] . $bil;
    }
    if ($panjang > 2) {
        $bil = $a_bil[2] . $bil;
    }
    //die($bil);
    if ($bil != "" && $bil != "000") {
        $terbilang .= rp_satuan($bil, $debug);
    }
    return trim($terbilang);
}