• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP formatDuit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中formatDuit函数的典型用法代码示例。如果您正苦于以下问题:PHP formatDuit函数的具体用法?PHP formatDuit怎么用?PHP formatDuit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了formatDuit函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: mysql_num_rows

$jumlah = mysql_num_rows($hasil);
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                            <tr class='head'>\n                                <td width='90px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>\n                                <td width='40px'><div align='center'><font size='2' face='Verdana'><strong>No.</strong></font></div></td>\n                                <td width='260px'><div align='center'><font size='2' face='Verdana'><strong>Tgl.Angsur</strong></font></div></td>\n                                <td width='260px'><div align='center'><font size='2' face='Verdana'><strong>Besar Angsuran</strong></font></div></td>\n                            </tr>";
    $i = 1;
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi' title='{$baris['2']}, {$baris['3']}, {$baris['4']}, {$baris['5']}, {$baris['6']}, {$baris['7']}, {$baris['8']}'>\n                                <td>\n                                    <center>";
        ?>
                                    <a href="?act=BayarPinjam&action=HAPUS&nop=<?php 
        print $baris[1];
        ?>
&no_detail=<?php 
        print $baris[0];
        ?>
" onClick="if (!confirm('Anda yakin menghapus data history pinjam ini?')) return false;">[hapus]</a>
                            <?php 
        echo "</center>\n                                </td>\n                                <td>{$i}</td>\n                                <td>{$baris['2']}</td>\n                                <td>" . formatDuit($baris[3]) . "</td>\n                           </tr>";
        $i++;
    }
    echo "</table>";
} else {
    echo "<b>Data Bayar Peminjaman masih kosong !</b>";
}
?>
        </div>
        </form>
        <?php 
if ($_GET['action'] == "HAPUS") {
    Hapus(" detailpinjam_koperasi ", " no_detail ='" . $_GET['no_detail'] . "'", "?act=BayarPinjam&action=TAMBAH&nop=" . $_GET['nop']);
}
if (mysql_num_rows($hasil) != 0) {
    echo "Data : {$jumlah} <a target=_blank href=/penggajian/pages/pinjam/LaporanDetailPinjam.php?&id={$id}>| Laporan |</a> ";
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:bayarpinjam.php


示例2: Hapus

    }
    echo "</table>";
} else {
    echo "<b>Data Bagian Karyawan masih kosong !</b>";
}
?>
    
    </div>
    <?php 
if ($_GET['action'] == "HAPUSAKTE") {
    Hapus(" set_akte  ", " pendapatan_akte ='" . $_GET['pendapatan_akte'] . "' and tahun='{$tahun}' and bulan='{$bulan}' ", "?act=ListAkte");
}
if ($_GET['action'] == "HAPUSPENERIMA") {
    Hapus(" pembagian_akte ", " id ='" . $_GET['id'] . "'", "?act=ListAkte");
}
if (mysql_num_rows($hasil) != 0) {
    echo "<br/>Data : {$jumlah}, Ttl Prosen : " . $prosen . "%, Ttl Bagian : " . formatDuit($ttl);
}
?>
    </div>
</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:listakte.php


示例3: formatDuit

            if (empty($baris25[6])) {
                $pajak = 0;
            } else {
                $pajak = $baris25[6];
            }
            $ttlpajak = $ttlpajak + $pajak;
            if (empty($baris25[7])) {
                $pribadi = 0;
            } else {
                $pribadi = $baris25[7];
            }
            $ttlpribadi = $ttlpribadi + $pribadi;
            if (empty($baris25[8])) {
                $lain = 0 + $alpha;
            } else {
                $lain = $baris25[8] + $alpha;
            }
            $ttllain = $ttllain + $lain;
            $ttlditerima = $ttlgaji - ($jamsostek + $dansos + $simwajib + $angkop + $angla + $telpri + $pajak + $pribadi + $lain);
            $ttlttlditerima = $ttlttlditerima + $ttlditerima;
            echo "\n                                     <table>\n                                       <TR class='isi'>\n                                         <TD width='100px'>Jamsostek</TD>\n                                         <TD width='100px'>Dana Sosial</TD>\n                                         <TD width='100px'>Simp.Wajib</TD>\n                                         <TD width='100px'>Ang.Koperasi</TD>\n                                         <TD width='100px'>Ang.Lain</TD>\n                                         <TD width='100px'>Telp.Pribadi</TD>\n                                         <TD width='100px'>Pajak</TD>\n                                         <TD width='100px'>Pribadi</TD>\n                                         <TD width='100px'>Potongan Lain</TD>\n                                       </TR>\n\t\t\t\t       <TR class='isi'>\n                                         <TD>" . formatDuit($jamsostek) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($dansos) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($simwajib) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($angkop) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($angla) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($telpri) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($pajak) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($pribadi) . "&nbsp;</TD>\n                                         <TD>" . formatDuit($lain) . "&nbsp;</TD>\n                                     </table>\n\t\t\t\t  </td>\n                                  <TD><font size='2' color='green'><i>" . formatDuit($ttlditerima) . "</i></font></TD>\n                               </tr>";
        }
        $ttlttlindex = $ttlindexjaga + $ttltotal;
        echo "<tr class='head'>\n                         <td COLSPAN='4'><div align='right'>Total Gaji {$barisbid['0']} :&nbsp; </div></td>\n                         \n                         <td width='100px'><div align='center'><font size='2' color='green'><i>" . formatDuit($ttlttlgaji) . "</i></font></div></td>\n                         <td>\n                                     <table>\n\t\t\t\t       <TR class='isi5'>\n                                         <TD width='100px'>" . formatDuit($ttljamsostek) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttldansos) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttlsimwajib) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttlangkop) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttlangla) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttltelpri) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttlpajak) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttlpribadi) . "&nbsp;</TD>\n                                         <TD width='100px'>" . formatDuit($ttllain) . "&nbsp;</TD>\n                                     </table>\n\t\t\t </td>\n                         <TD><font size='2' color='green'><i>" . formatDuit($ttlttlditerima) . "</i></font>&nbsp;</TD>\n                    </tr>\n                  </table>";
    }
    $semuanya = $semuanya + $ttlttlditerima;
}
echo "&nbsp;&nbsp;&nbsp;<h3 class=title><b><font color='999999'>Total Seluruh Gaji Karyawan : " . formatDuit($semuanya) . "</font></b><h3>";
?>
    </body>
</html>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:LaporanLampiran2.php


示例4: bukaquery

$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='900px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\r\n                    <tr class='head'>\r\n                        <td width='80px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>\r\n                        <td width='200px'><div align='center'><font size='2' face='Verdana'><strong>Tingkat Pendidikan</strong></font></div></td>\r\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Index Pendidikan</strong></font></div></td>\r\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Gapok Ms Krj <1th</strong></font></div></td>\r\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Gapok Ms Krj 1-<3th</strong></font></div></td>\r\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Gapok Ms Krj >=3th</strong></font></div></td>\r\n                    </tr>";
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi'>\r\n\t\t\t\t\t\t        <td>\r\n                                    <center>\r\n                                       <a href=?act=InputPendidikan&action=UBAH&tingkat=" . str_replace(" ", "_", $baris[0]) . ">[edit]</a>";
        ?>
                                        <a href="?act=ListPendidikan&action=HAPUS&tingkat=<?php 
        print $baris[0];
        ?>
" onClick="if (!confirm('Anda yakin menghapus data Pendidikan <?php 
        print $baris[0];
        ?>
?')) return false;">[hapus]</a>
                            <?php 
        echo "</center>\r\n                               </td>\r\n                                <td>{$baris['0']}</td>\r\n                                <td>{$baris['1']}</td>\r\n                                <td>" . formatDuit($baris[2]) . "</td>\r\n                                <td>" . formatDuit($baris[3]) . "</td>\r\n                                <td>" . formatDuit($baris[4]) . "</td>\r\n                             </tr>";
    }
    echo "</table>";
} else {
    echo "<b>Data Pendidikan masih kosong !</b>";
}
?>
   
    
    <?php 
if ($_GET['action'] == "HAPUS") {
    Hapus(" pendidikan ", " tingkat ='" . $_GET['tingkat'] . "' ", "?act=ListPendidikan");
}
?>
    </div>
    <?php 
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:listpendidikan.php


示例5: formatDuit

        if ($angla != 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>Angsuran Lain</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($angla) . "</td>\n\t\t\t\t       </TR>";
        }
        if ($telpri != 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>Telepon Pribadi</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($telpri) . "</td>\n\t\t\t\t       </TR>";
        }
        if ($pajak != 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>Pajak</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($pajak) . "</td>\n\t\t\t\t       </TR>";
        }
        if ($pribadi != 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>Pribadi</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($pribadi) . "</td>\n\t\t\t\t       </TR>";
        }
        if ($lain - $alpha > 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>{$ktg}</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($lain - $alpha) . "</td>\n\t\t\t\t       </TR>";
        }
        if ($alpha != 0) {
            echo "\n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>Kurang Jaga</TD><td width='3px'>:</td><td width='140px'>" . formatDuit($alpha) . "</td>\n\t\t\t\t       </TR>";
        }
        echo "<TR class='isi6'>\n                                            <TD width='130px'>&nbsp;&nbsp;&nbsp;<i>Jumlah Potongan </i></TD>\n\t\t\t\t\t    <td width='3px'>:</td>\n\t\t\t\t\t    <td width='140px' align=right><i>" . formatDuit($jamsostek + $dansos + $simwajib + $angkop + $angla + $telpri + $pajak + $pribadi + $lain) . "</i></td>\n\t\t\t\t\t </TR> \n                                         \n\t\t\t\t       <TR class='isi6'>\n                                         <TD width='130px'>&nbsp;&nbsp;&nbsp;<i>TOTAL JM DITERIMA</i></TD>\n\t\t\t\t\t <td width='3px'>:</td>\n\t\t\t\t\t <td width='140px' align=right><font size='2px' face='Arial' color='777777'><i>" . formatDuit($ttlditerima) . "</i></font></td>\n\t\t\t\t      </TR>\n                                      <TR class='isi6'>\n                                         <TD width='130px' colspan='3'>&nbsp;&nbsp;&nbsp;<i>" . Terbilang($ttlditerima) . "</i></td>\n\t\t\t\t      </TR>\n\t\t\t\t      <TR class='isi6'>\n                                         <TD width='130px'></TD><td></td><td><center>Yogyakarta, " . date('d-m-Y') . "</center> </td>\n\t\t\t\t      </TR>\n\t\t\t\t      <TR class='isi6'>\n                                         <TD width='130px'><center>Penerima</center></TD>\n\t\t\t\t\t <td width='3px'>&nbsp;</td>\n\t\t\t\t\t <td width='140px'><center>Pengelola</center></td>\n\t\t\t\t      </TR>\n\t\t\t\t      <TR class='isi6'>\n                                         <TD width='130px'>&nbsp;</TD>\n\t\t\t\t\t <td width='3px'>&nbsp;</td>\n\t\t\t\t\t <td width='140px'>&nbsp;</td>\n\t\t\t\t      </TR>\n\t\t\t\t      <TR class='isi6'>\n                                         <TD width='130px'>&nbsp;</TD>\n\t\t\t\t\t <td width='3px'>&nbsp;</td>\n\t\t\t\t\t <td width='140px'>&nbsp;</td>\n\t\t\t\t      </TR>\n\t\t\t\t      <TR class='isi6'>\n                                         <TD width='130px'><center>( {$baris['2']} )</center></TD>\n\t\t\t\t\t <td width='3px'>&nbsp;</td>\n\t\t\t\t\t <td width='140px'><center>( dr Lily T S Siagian )</center></td>\n\t\t\t\t      </TR>\n\t\t\t\t      </table>\n\t\t\t\t      <center><font size='1px' face='Arial' color='777777'><i><b>..Terima kasih atas kerjasamanya <br>dalam memberikan pelayanan yang berkualitas..</b></i></font></center>\n\n                                        <center><font face='Arial' size='3' color='777777'>Rincian Tindakan</font></center>";
        $_sql30 = "select tindakan.tgl,tindakan.nm_pasien,tindakan.kamar,master_tindakan.nama\n                                              from master_tindakan,tindakan\n                                              where tindakan.tnd=master_tindakan.id and\n                                              tindakan.id='{$baris['0']}'\n                                              and tgl like '%" . $tahun . "-" . $bulan . "%' ";
        echo "<table width='270px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                                               <tr class='isi6'>\n                                                   <td width='50px'><div align='center'><font size='1' face='Arial'>Tgl</font></div></td>\n                                                   <td width='50px'><div align='center'><font size='1' face='Arial'>Nm.Pasien</font></div></td>\n                                                   <td width='50px'><div align='center'><font size='1' face='Arial'>Kamar</font></div></td>\n                                                   <td width='50px'><div align='center'><font size='1' face='Arial'>Tindakan</font></div></td>\n                                                 </tr>";
        $hasil30 = bukaquery($_sql30);
        while ($baris30 = mysql_fetch_array($hasil30)) {
            echo "<TR class='isi6'>\n                                                   <td>" . date("Y-m-d", $baris30[0]) . "</td>\n                                                    <td>{$baris30['1']}</td>\n                                                    <td>{$baris30['2']}</td>\n                                                    <td>{$baris30['3']}</td>\n                                                 </tr>";
        }
        echo " \n                                      </table>\n                                      \n                                     </td>\n                                     </tr>\n                                     </table>";
    }
}
?>
    </body>
</html>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:SlipDokter.php


示例6: bukaquery

$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='600px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                            <tr class='head'>\n                                <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>\n                                <td width='180px'><div align='center'><font size='2' face='Verdana'><strong>Status Keanggotaan</strong></font></div></td>\n                                <td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Biaya Jamsostek</strong></font></div></td>\n                            </tr>";
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi'>\n                                <td>\n                                    <center>\n\t\t\t\t\t                <a href=?act=DetailJamsostek&action=UBAH&stts=" . str_replace(" ", "_", $baris[0]) . "&biaya=" . $baris[1] . ">[edit]</a>";
        ?>
                                    <a href="?act=DetailJamsostek&action=HAPUS&stts=<?php 
        print $baris[0];
        ?>
" onClick="if (!confirm('Anda yakin menghapus data status keanggotaan jamsostek <?php 
        print $baris[0];
        ?>
?')) return false;">[hapus]</a>
                            <?php 
        echo "</center>\n                                </td>\n                                <td>{$baris['0']}</td>\n                                <td>" . formatDuit($baris[1]) . "</td>\n                           </tr>";
    }
    echo "</table>";
} else {
    echo "<b>Data Status Keanggotaan Jamsostek masih kosong !</b>";
}
?>
        </div>
        </form>
        <?php 
if ($_GET['action'] == "HAPUS") {
    Hapus(" jamsostek ", " stts ='" . $stts . "' ", "?act=DetailJamsostek&action=TAMBAH&stts={$stts}");
}
if (mysql_num_rows($hasil) != 0) {
    $hasil1 = bukaquery("SELECT stts,biaya from jamsostek ORDER BY stts ");
    $jumlah1 = mysql_num_rows($hasil1);
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:detailjamsostek.php


示例7: bukaquery

        <tr class="head">
             <td width="31%">Nama</td><td width="">:</td>
             <td width="67%"><?php 
echo $baris2[1];
?>
</td>
        </tr>               
   </table>

  <?php 
$_sql = "select nop, id, jml_angsur, pinjaman, pokok,\n                    jasa, setoran, tgl_pinjam, stts from pinjam_koperasi\n                    where id='{$id}'";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                    \n                    <tr class='head'>\n                        <td width='120px'><div align='center'><font size='2' face='Verdana'><strong>JMl.Angsur</strong></font></div></td>\n                         <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Pinjaman</strong></font></div></td>\n                         <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Pokok</strong></font></div></td>\n                         <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Jasa</strong></font></div></td>\n                         <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Setoran</strong></font></div></td>\n                         <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Tgl.Pinjam</strong></font></div></td>\n                         <td width='140px'><div align='center'><font size='2' face='Verdana'><strong>Status Pinjam</strong></font></div></td>\n                     </tr>";
    $_sql2 = "select stts from pinjam_koperasi where\n                               stts='Belum Lunas' and id='{$baris['0']}' ";
    $hasil2 = bukaquery($_sql2);
    $jumlah2 = mysql_num_rows($hasil2);
    $status = "Tidak Ada Pinjaman";
    if ($jumlah2 != 0) {
        $status = "Ada Pinjaman";
    }
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi'>\n                                <td>{$baris['2']}</td>\n                                <td>" . formatDuit($baris[3]) . "</td>\n                                <td>" . formatDuit($baris[4]) . "</td>\n                                <td>" . formatDuit($baris[5]) . "</td>\n                                <td>" . formatDuit($baris[6]) . "</td>\n                                <td>{$baris['7']}</td>\n                                <td>{$baris['8']}</td>\n                             </tr>";
    }
    echo "</table>";
    echo "<h3 class=title><font color='999999'>Jumlah Data : {$jumlah} </font></h3>";
}
?>
    </body>
</html>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:LaporanDetailPinjam.php


示例8: while

$ttllembur = 0;
$ttlhr = 0;
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='998px' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                            <tr class='head'>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Proses</strong></font></div></td>\n                                <td width='120px'><div align='center'><font size='2' face='Verdana'><strong>JMl.Angsur</strong></font></div></td>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Pinjaman</strong></font></div></td>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Pokok</strong></font></div></td>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Jasa</strong></font></div></td>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Setoran</strong></font></div></td>\n                                <td width='110px'><div align='center'><font size='2' face='Verdana'><strong>Tgl.Pinjam</strong></font></div></td>\n                                <td width='140px'><div align='center'><font size='2' face='Verdana'><strong>Status Pinjam</strong></font></div></td>\n                            </tr>";
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi' title='{$baris['2']}, {$baris['3']}, {$baris['4']}, {$baris['5']}, {$baris['6']}, {$baris['7']}, {$baris['8']}'>\n                                <td>\n                                    <center>\n                                     <a href=?act=BayarPinjam&action=TAMBAH&nop=" . str_replace(" ", "_", $baris[0]) . ">[Detail]</a>";
        ?>
                                    <a href="?act=DetailPinjam&action=HAPUS&nop=<?php 
        print $baris[0];
        ?>
&id=<?php 
        print $baris[1];
        ?>
" onClick="if (!confirm('Anda yakin menghapus data history pinjam ini?')) return false;">[hapus]</a>
                            <?php 
        echo "</center>\n                                </td>\n                                <td>{$baris['2']}</td>\n                                <td>" . formatDuit($baris[3]) . "</td>\n                                <td>" . formatDuit($baris[4]) . "</td>\n                                <td>" . formatDuit($baris[5]) . "</td>\n                                <td>" . formatDuit($baris[6]) . "</td>\n                                <td>{$baris['7']}</td>\n                                <td>{$baris['8']}</td>\n                           </tr>";
    }
    echo "</table>";
} else {
    echo "<b>Data Peminjaman masih kosong !</b>";
}
?>
        </div>
        </form>
        <?php 
if ($_GET['action'] == "HAPUS") {
    Hapus(" pinjam_koperasi ", " nop ='" . $_GET['nop'] . "'", "?act=DetailPinjam&action=TAMBAH&id=" . $_GET['id']);
}
if (mysql_num_rows($hasil) != 0) {
    echo "Data : {$jumlah} <a target=_blank href=/penggajian/pages/pinjam/LaporanDetailPinjam.php?&id={$id}>| Laporan |</a> ";
}
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:detailpinjam.php


示例9: formatDuit

        $jml = $jml + $ttl;
        echo "<tr class='isi' title='{$baris['1']} {$baris['2']}'>\r\n                                <td>\r\n                                    <center>\r\n                                        <a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>[Update]</a>\r\n                                    </center>\r\n                               </td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['1']}</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['2']}</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['3']}</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['4']}</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['5']}</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[6]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[7]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[8]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[9]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[10]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[11]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[12]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[13]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($baris[14]) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>" . formatDuit($ttl) . "</a></td>\r\n                                <td><a href=?act=InputPotongan&action=UBAH&id={$baris['0']}>{$baris['15']}</a></td>\r\n                             </tr>";
    }
    echo "</table>";
} else {
    echo "<b>Data potongan masih kosong !</b>";
}
?>
    </div>
	</form>
         <?php 
if (mysql_num_rows($hasil) != 0) {
    $hasil1 = bukaquery("SELECT pegawai.id, \r\n\t\t        pegawai.nik,\r\n\t\t\t\tpegawai.nama,\r\n\t\t\t\tpegawai.departemen,\r\n\t\t\t\tkeanggotaan.koperasi, \r\n\t\t\t\tkeanggotaan.jamsostek, \t\t\t\t \r\n\t\t\t\tpotongan.jamsostek, \r\n\t\t\t\tpotongan.dansos, \r\n\t\t\t\tpotongan.simwajib, \r\n\t\t\t\tpotongan.angkop, \r\n\t\t\t\tpotongan.angla, \r\n\t\t\t\tpotongan.telpri, \r\n\t\t\t\tpotongan.pajak, \r\n\t\t\t\tpotongan.pribadi, \r\n\t\t\t\tpotongan.lain, \r\n\t\t\t\tpotongan.ktg\r\n\t\t\t\tFROM keanggotaan, potongan\r\n\t\t\t\tRIGHT OUTER JOIN pegawai ON potongan.id = pegawai.id\r\n\t\t\t\tAND tahun like '%" . $tahun . "%'  and bulan like '%" . $bulan . "%' \r\n\t\t\t\tWHERE keanggotaan.id=pegawai.id and pegawai.nik like '%" . $keyword . "%' or\r\n\t\t\t\tkeanggotaan.id=pegawai.id and pegawai.nama like '%" . $keyword . "%' or\r\n\t\t\t\tkeanggotaan.id=pegawai.id and pegawai.departemen like '%" . $keyword . "%' or\r\n\t\t\t\tkeanggotaan.id=pegawai.id and keanggotaan.koperasi like '%" . $keyword . "%' or\r\n\t\t\t\tkeanggotaan.id=pegawai.id and keanggotaan.jamsostek like '%" . $keyword . "%'\r\n\t\t\t\torder by pegawai.id ASC ");
    $jumlah1 = mysql_num_rows($hasil1);
    $i = $jumlah1 / 19;
    $i = ceil($i);
    echo "Data : {$jumlah}, Jml.Ptg : " . formatDuit($jml) . " <a target=_blank href=/penggajian/pages/potongan/LaporanPotongan.php?&keyword={$keyword}>| Laporan |</a> ";
}
?>
    </div>
</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:listpotongan.php


示例10: formatDuit

        $ttljm = $ttljm + $baris[4];
        echo "<tr class='isi' title='{$baris['1']} {$baris['2']}'>\r\n                                <td>\r\n                                    <center>\r\n                                        <a href=?act=InputJasLa&action=TAMBAH&id={$baris['0']}>[Detail]</a>\r\n                                    </center>\r\n                               </td>\r\n                                <td><a href=?act=InputJasLa&action=TAMBAH&id={$baris['0']}>{$baris['1']}</a></td>\r\n                                <td><a href=?act=InputJasLa&action=TAMBAH&id={$baris['0']}>{$baris['2']}</a></td>\r\n                                <td><a href=?act=InputJasLa&action=TAMBAH&id={$baris['0']}>{$baris['3']}</a></td>\r\n                                <td><a href=?act=InputJasLa&action=TAMBAH&id={$baris['0']}>" . formatDuit($baris[4]) . "</a></td>\r\n                             </tr>";
    }
    echo "</table>";
} else {
    echo "<b>Data Jasa lain masih kosong !</b>";
}
?>
    </div>
	</form>
    <?php 
if (mysql_num_rows($hasil) != 0) {
    $hasil1 = bukaquery("SELECT pegawai.id,pegawai.nik,pegawai.nama,\r\n\t\t        pegawai.departemen,sum(bsr_jasa)\r\n                FROM jasa_lain right OUTER JOIN pegawai\r\n\t\t\t\tON jasa_lain.id=pegawai.id and thn='" . $tahun . "'\r\n                                and bln='" . $bulan . "'\r\n\t\t\t\twhere pegawai.nik like '%" . $keyword . "%' or\r\n\t\t\t\tpegawai.nama like '%" . $keyword . "%' or\r\n\t\t\t\tpegawai.departemen like '%" . $keyword . "%'\r\n\t\t\t\tgroup by pegawai.id order by pegawai.id ASC");
    $jumlah1 = mysql_num_rows($hasil1);
    $i = $jumlah1 / 19;
    $i = ceil($i);
    echo "Data : {$jumlah}, Ttl.Jasa lain : " . formatDuit($ttljm) . " ";
}
?>
    </div>
</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:listjasalain.php


示例11: Hapus

    }
    echo "</table>";
} else {
    echo "<b>Data Insentif  masih kosong !</b>";
}
?>
    
    </div>
    <?php 
if ($_GET['action'] == "HAPUSINSENTIF") {
    Hapus(" set_insentif  ", " pendapatan ='" . $_GET['pendapatan'] . "' and tahun='{$tahun}' and bulan='{$bulan}' ", "?act=ListInsentif");
}
if ($_GET['action'] == "HAPUSINDEX") {
    Hapus(" indexins ", " dep_id ='" . $_GET['dep_id'] . "'", "?act=ListInsentif");
}
if (mysql_num_rows($hasil) != 0) {
    echo "<br/>Data : {$jumlah}, Ttl Prosen : " . $prosen . "%, Ttl Insentif : " . formatDuit($ttl) . "  ";
}
?>
    </div>
</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:listinsentif.php


示例12: bukaquery

    <head>
        <link href="../../css/default.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
   <?php 
$keyword = $_GET['keyword'];
$_sql = "select pegawai.id,pegawai.nik,pegawai.nama,\n\t\t pegawai.departemen from pegawai\n\t\t where pegawai.stts_aktif<>'KELUAR' and pegawai.nik like '%" . $keyword . "%' or\n\t\t pegawai.stts_aktif<>'KELUAR' and pegawai.nama like '%" . $keyword . "%' or\n\t\t pegawai.stts_aktif<>'KELUAR' and pegawai.departemen like '%" . $keyword . "%'\n\t\t order by pegawai.id ASC ";
$hasil = bukaquery($_sql);
$jumlah = mysql_num_rows($hasil);
if (mysql_num_rows($hasil) != 0) {
    echo "<table width='100%' border='0' align='center' cellpadding='0' cellspacing='0' class='tbl_form'>\n                    <caption><h2 class=title><font color='999999'>Laporan Penerima Tunjangan</font></h2></caption>\n                    <tr class='head'>\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>NIK</strong></font></div></td>\n                        <td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Nama</strong></font></div></td>\n                        <td width='100px'><div align='center'><font size='2' face='Verdana'><strong>Departemen</strong></font></div></td>\n                        <td width='300px'><div align='center'><font size='2' face='Verdana'><strong>Tnj. Bulanan Diterima</strong></font></div></td>\n\t\t\t<td width='250px'><div align='center'><font size='2' face='Verdana'><strong>Tnj. Harian Diterima</strong></font></div></td>\n                    </tr>";
    while ($baris = mysql_fetch_array($hasil)) {
        echo "<tr class='isi'>\n                                <td>{$baris['1']}&nbsp;</td>\n                                <td>{$baris['2']}&nbsp;</td>\n                                <td>{$baris['3']}&nbsp;</td>\n                                <td>";
        $_sql2 = "select master_tunjangan_bulanan.nama,\n\t\t\t\t             master_tunjangan_bulanan.tnj\n\t\t\t\t\t     from pnm_tnj_bulanan,master_tunjangan_bulanan\n\t\t\t\t\t     where pnm_tnj_bulanan.id_tnj=master_tunjangan_bulanan.id\n\t\t\t\t\t     and pnm_tnj_bulanan.id='{$baris['0']}'";
        $hasil2 = bukaquery($_sql2);
        while ($baris2 = mysql_fetch_array($hasil2)) {
            echo "<table width='300px'><tr class='isi3'><td width='150px'>{$baris2['0']}&nbsp;</td><td>: " . formatDuit($baris2[1]) . "&nbsp;</td></tr></table>";
        }
        echo "&nbsp;\n\t\t\t\t</td>\n\t\t\t\t<td>";
        $_sql2 = "select master_tunjangan_harian.nama,\n\t\t\t\t             master_tunjangan_harian.tnj\n\t\t\t\t\t     from pnm_tnj_harian,master_tunjangan_harian\n\t\t\t\t\t     where pnm_tnj_harian.id_tnj=master_tunjangan_harian.id\n\t\t\t\t\t     and pnm_tnj_harian.id='{$baris['0']}'";
        $hasil2 = bukaquery($_sql2);
        while ($baris2 = mysql_fetch_array($hasil2)) {
            echo "<table width='300px'><tr class='isi3'><td width='150px'>{$baris2['0']}&nbsp;</td><td>: " . formatDuit($baris2[1]) . "&nbsp;</td></tr></table>";
        }
        echo "&nbsp;\n\t\t\t\t</td>\n                             </tr>";
    }
    echo "</table>";
}
?>
    </body>
</html>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:LaporanTunjangan.php


示例13: Hapus

} else {
    echo "<b>Data Detail masih kosong !</b>";
}
?>
        </div>
        </form>
        <?php 
if ($_GET['action'] == "HAPUS") {
    Hapus(" tindakan ", " id ='" . $_GET['id'] . "' and tgl ='" . $_GET['tgl'] . "' and tnd ='" . $_GET['tnd'] . "' and nm_pasien ='" . str_replace("_", " ", $_GET['nm_pasien']) . "'", "?act=InputTindakanSpesialis&action=TAMBAH&id={$id}");
}
if (mysql_num_rows($hasil) != 0) {
    $hasil1 = bukaquery("select tindakan.tgl,\r\n                        tindakan.id,\r\n                        tindakan.tnd,\r\n                        master_tindakan.nama,\r\n                        tindakan.jm,\r\n                        tindakan.nm_pasien,\r\n                        tindakan.kamar,\r\n                        tindakan.diagnosa,\r\n                        tindakan.jmlh\r\n                        from tindakan inner join master_tindakan\r\n                        where tindakan.tnd=master_tindakan.id and tindakan.id='{$id}'\r\n\t\t\tand tgl like '%" . $tahun . "-" . $bulan . "%' ORDER BY tgl ASC");
    $jumlah1 = mysql_num_rows($hasil1);
    $i = $jumlah1 / 19;
    $i = ceil($i);
    echo "Data : {$jumlah}, Ttl.JM : " . formatDuit($ttljms) . " <a target=_blank href=/penggajian/pages/tindakan/laporandetailtindakandokter.php?&id={$id}>| Laporan |</a>  ";
}
?>
    </div>

</div>

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
开发者ID:FaddliLWibowo,项目名称:KhanzaMedia,代码行数:31,代码来源:inputtindakanspesialis.php


示例14: formatDuit

            $hakcuti = 0;
        } else {
            if ($baris[14] >= 1 && $baris[14] < 3) {
                $gapok = $baris4[1];
                $hakcuti = 12;
            } else {
                if ($baris[14] >= 3) {
                    $gapok = $baris4[2];
                    $hakcuti = 14;
                }
            }
        }
        $total = 0;
        if ($baris[11] == 0) {
            $total = $baris[7] + $masa_kerja + $baris[9] + $baris[10];
        } else {
            if ($baris[11] > 0) {
                $total = ($baris[7] + $masa_kerja + $baris[9] + $baris[10]) * ($baris[11] / 100);
            }
        }
        echo "<tr class='isi'>\t\t\t\t\t        \n                                 <td>{$baris['1']}&nbsp;</td>\n                                 <td>{$baris['2']}&nbsp;</td>\n                                 <td>{$baris['3']}&nbsp;</td>\n                                 <td>{$baris['4']}&nbsp;</td>\n                                 <td>{$baris['5']}&nbsp;</td>\n                                 <td>{$baris['6']}&nbsp;</td>\n                                 <td>{$baris['7']}&nbsp;</td>\n                     

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP formatErrorMsg函数代码示例发布时间:2022-05-15
下一篇:
PHP formatDateTime函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap