本文整理汇总了PHP中rupiah_format函数的典型用法代码示例。如果您正苦于以下问题:PHP rupiah_format函数的具体用法?PHP rupiah_format怎么用?PHP rupiah_format使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rupiah_format函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rupiah_format
$calculate += $total;
}
$shop .= '
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="3"><font face="Verdana" size="1"><b>Shopping Cart</b></font></td>
</tr>
<tr>
<td><font face="Verdana" size="1">Keranjang</font></td>
<td><font face="Verdana" size="1">:</font></td>
<td><font face="Verdana" size="1">' . $jumlah . ' item</font></td>
</tr>
<tr>
<td><font face="Verdana" size="1">Total</font></td>
<td><font face="Verdana" size="1">:</font></td>
<td><font face="Verdana" size="1">' . rupiah_format($calculate) . '</font></td>
</tr>
</table>
<p align="left"><font face="Verdana" size="1"><a href="' . $url_situs . '/shop.html" title="">Detail</a></font>
';
} else {
$shop .= '
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="3"><font face="Verdana" size="1"><b>Shopping Cart</b></font></td>
</tr>
<tr>
<td><font face="Verdana" size="1">Keranjang</font></td>
<td><font face="Verdana" size="1">:</font></td>
<td><font face="Verdana" size="1"> Kosong</font></td>
</tr>
示例2:
$grandsubdiscount+=$subdiscount;
$grandtotal+=$subtotal;
$grandrugilaba+=$rugilaba;
$grandsubtotalbayar+=$subtotalbayar;
}
}
}
echo '
<tr class="border" align="right">
<td colspan="11"><b>Grand Total :</b></td>
<td>'.$grandjumlah.'</td>
<td></td>
<td>'.rupiah_format($grandtotal).'</td>
<td>'.rupiah_format($grandsubtotalbayar).'</td>
<td>'.rupiah_format($grandrugilaba).'</td>
<td></td>
</tr>';
echo '</table>';
}
/****************************/
echo "</body</html>";
/*
if (isset($_GET['tglmulai'])){
echo "<script language=javascript>
window.print();
</script>";
}
*/
?>
示例3:
<td>'.getnamabarang($kodebarang).'</td>
<td>'.rupiah_format($harga).'</td>
<td>'.$jumlah.'</td>
<td>'.cekdiscountpersen($subdiscount).'</td>
<td>'.rupiah_format($subtotal).'</td>
<td>'.$user.'</td>
</tr>';
$no++;
$grandtotal+=$subtotal;
}
}
echo '
<tr class="border" align="right">
<td colspan="10"><b>Grand Total :</b></td>
<td>'.rupiah_format($grandtotal).'</td>
<td></td>
</tr>';
/*
echo '
<tr class="border" align="right">
<td colspan="12"><b>Grand Netto :</b></td>
<td>'.rupiah_format($tnetto).'</td>
<td></td>
</tr>';*/
echo '</table>';
}
/****************************/
echo "</body</html>";
if (isset($_GET['tglmulai'])){
示例4: search
function search($args)
{
$keyword = isset($args['keyword']) ? $args['keyword'] : '';
$negative_id = isset($args['negative_id']) ? $args['negative_id'] : '';
$sort = isset($args['sort']) ? $args['sort'] : 0;
$category_id = isset($args['category_id']) ? $args['category_id'] : 0;
$this->db->select('voucher_id, title, display_price, display_normal_price');
$this->db->from('voucher');
$this->db->where('status', VOUCHER_STATUS_PUBLISHED);
$this->db->where('start_date <= ', date('Y-m-d'));
$this->db->where('end_date >= ', date('Y-m-d'));
if ($keyword) {
$this->db->like('title', $keyword);
}
if ($negative_id) {
$this->db->where_not_in('voucher_id', $negative_id);
}
if ($category_id) {
$this->db->where('category_id', $category_id);
}
switch ($sort) {
case VOUCHER_SORT_NEWEST:
$this->db->order_by("create_time", "desc");
break;
}
$rs = $this->db->get()->result();
$results = array();
foreach ($rs as $k => $row) {
$result = array();
$result['voucher_id'] = $row->voucher_id;
$result['title'] = $row->title;
$result['price_fmt'] = rupiah_format($row->display_price);
$result['normal_price_fmt'] = rupiah_format($row->display_normal_price);
$result['price'] = $row->display_price;
$result['normal_price'] = $row->display_normal_price;
$result['discount'] = ($result['normal_price'] - $result['price']) / $result['normal_price'] * 100;
$result['image_url'] = $this->get_primary_picture($result['voucher_id']);
$result['sold'] = $this->get_item_sold($result['voucher_id']);
array_push($results, $result);
}
return $results;
}
示例5: rupiah_format
echo "<tr><td>Jamsostek</td><td>:</td><td>" . rupiah_format($jamsostek) . "</td></tr>";
echo "<tr><td>Pot. karena Terlambat</td><td>:</td><td>" . rupiah_format($pterlambat) . "</td></tr>";
echo "<tr><td>Pot. Pinjaman</td><td>:</td><td>" . rupiah_format($ppinjaman) . "</td></tr>";
echo "<tr><td>Pot. Lain lain</td><td>:</td><td>" . rupiah_format($plain) . "</td></tr>";
echo "</table>";
echo "</td></tr>";
echo "</td></tr>";
echo "<tr><td>";
echo "<table align=\"left\" width='100%' cellspacing=\"1\" cellpadding=\"4\">";
echo "<tr><td></td><td></td><td></td></tr>";
echo "<tr><td>Total Gaji Bruto</td><td>:</td><td> " . rupiah_format($gajibruto) . "</td>";
echo "</table>";
echo "</td><td>";
echo "<table align=\"left\" width='100%' cellspacing=\"1\" cellpadding=\"4\">";
echo "<tr><td></td><td></td><td></td></tr>";
echo "<tr><td>Total Gaji Bersih</td><td>:</td><td> " . rupiah_format($gajibersih) . "</td>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td>";
echo "<table align=\"left\" width='100%' cellspacing=\"1\" cellpadding=\"4\">";
echo "<tr><td></td><td></td><td></td></tr>";
echo "<tr align='center'><td>TTD<br><br><br><br>(Pihak Sekolah)</td><td></td><td></td>";
echo "</table>";
echo "</td><td>";
echo "<table align=\"left\" width='100%' cellspacing=\"1\" cellpadding=\"4\">";
echo "<tr><td></td><td></td><td></td></tr>";
echo "<tr align='center'><td>Karyawan<br><br><br><br>({$nama})</td><td></td><td></td>";
echo "</table>";
echo "</td></tr>";
echo "</table>";
echo "</body</html>";
示例6:
<tr>
<td class="border">'.$no.'</td>
<td class="border">'.getjenjangbarang($datad["kodebarang"]).'</td>
<td class="border">'.$datad["kodebarang"].'</td>
<td class="border">'.getnamabarang($datad["kodebarang"]).'</td>
<td class="border">'.$datad["jumlah"].'</td>
<td class="border">'.rupiah_format($datad["harga"]).'</td>
<td class="border">'.cekdiscountpersen($datad["subdiscount"]).'</td>
<td class="border">'.rupiah_format($datad["subtotal"]).'</td>
</tr>';
$no++;
}
echo '
<tr class="border">
<td colspan="7" align="right"><b>Total</b></td>
<td >'.rupiah_format($total).'</td>
</tr>';
/*
echo '
<tr class="border">
<td colspan="7" align="right"><b>Discount</b></td>
<td >'.cekdiscountpersen($discount).'</td>
</tr>';
echo ' <tr class="border">
<td colspan="7" align="right"><b>Grand Total</b></td>
<td >'.rupiah_format($netto).'</td>
</tr>
';
*/
echo '</table>';
}
示例7: datetimes
$bayar = $datab['bayar'];
//$cetak = '<a href="cetak_slip.php?id='.$idphoto.'&idkary='.$idkary.'" target="new"onclick="return confirm(\'Apakah Anda Ingin Mencetak Penggajian Ini ?\')" style="color:blue"><span class="btn btn-warning">Slip</span></a>';
$sisabayar = $pinjaman - $bayar;
if (!$bayar) {
$bayar = '0';
}
echo '
<tr align="left">
<td class="text-center">' . $no . '</td>
<td>' . $nama . '</td>
<td>' . datetimes($tgl, false, false) . '</td>
<td>' . rupiah_format($pinjaman) . '</td>
<td>' . rupiah_format($bayar) . '</td>
<td>' . rupiah_format($sisabayar) . '</td>
</tr>';
$no++;
$tsisabayar += $sisabayar;
$tpinjaman += $pinjaman;
$tbayar += $bayar;
}
echo '
<tr align="left">
<td colspan="3"><div align="right"><b>Total</b></div></td>
<td><b>' . rupiah_format($tpinjaman) . '</b></td>
<td><b>' . rupiah_format($tbayar) . '</b></td>
<td><b>' . rupiah_format($tsisabayar) . '</b></td></tr>';
echo '</table>';
echo "</body</html>";
if (isset($_GET['tgl1'])) {
echo "<script language=javascript>\nwindow.print();\n</script>";
}
示例8:
<td style="width:100px;padding:5px;text-align:center;font-weight:bold;border-top:thin solid #cccccc;border-right:thin solid #cccccc;">Jumlah</td>
<td style="width:100px;padding:5px;text-align:center;font-weight:bold;border-top:thin solid #cccccc;">Total</td>
</tr>
<tr style="background: #FFFFFF;">
<td valign="top" style="padding:3px;text-align:center;border-top:thin solid #cccccc; border-right:thin solid #cccccc;"><img src="'.$url_situs.'/mod/katalog/images/thumb/'.$gambar.'" alt="'.$judul.'" style="max-height:100px; max-width:100px" /></td>
<td valign="top" style="padding:3px;border-top:thin solid #cccccc; border-right:thin solid #cccccc;">'.$judul.'<br />Harga : '.rupiah_format($harga).'</td>
<td valign="top" style="padding:3px;text-align:center;border-top:thin solid #cccccc;border-right:thin solid #cccccc;"><input type="hidden" name="harga" size="4" value="'.$harga.'">';
$tengah .= '<select name="jumlah">';
$tengah .= '<option value="'.$jumlah_iwan.'"selected="true">'.$jumlah_iwan.'</option>';
$tengah .= '<option value="1">1</option>';
$tengah .= '<option value="2">2</option>';
$tengah .= '<option value="3">3</option>';
$tengah .= '<option value="4">4</option>';
$tengah .= '<option value="5">5</option>';
$tengah .= '</select>';
//<input type="text" name="jumlah" size="4" value="'.$jumlah_iwan.'">
$tengah .= '</td>
<td valign="top" style="padding:3px;text-align:center;border-top:thin solid #cccccc;">'.rupiah_format($total).'</td>
</tr>
<tr style="background: #FFFFFF;">
<td colspan="4" valign="top" style="padding:3px;text-align:right;border-top:thin solid #cccccc; border-right:thin solid #cccccc;"><input type="submit" value="Edit" name="submit"></td>
</tr>
</tbody>
</table>
</form>';
}
}
echo $tengah;
?>
示例9: mysql_query
<th width="20%">Aksi</th>
</tr>
</thead>';
$admin .= '<tbody>';
$s = mysql_query("SELECT * FROM `hrd_penggajian`where karyawan='{$id}'");
while ($datas = mysql_fetch_array($s)) {
$idphoto = $datas['id'];
$gajibersih = $datas['gajibersih'];
$bulan = $datas['bulan'];
$tahun = $datas['tahun'];
$idbayar = $datas['idbayar'];
$urutan = $no + 1;
$cetak = '<a href="cetak_slip.php?id=' . $idphoto . '&idkary=' . $idkary . '&idbayar=' . $idbayar . '" target="new"onclick="return confirm(\'Apakah Anda Ingin Mencetak Penggajian Ini ?\')" style="color:blue"><span class="btn btn-info">Cetak Slip</span></a>';
$admin .= '
<tr align="left">
<td>
' . $tahun . '
</td>
<td>
' . getbulan($bulan) . '
</td>
<td>
' . rupiah_format($gajibersih) . '
</td>
<td>' . $cetak . '
</td></tr>';
}
$admin .= '</table>';
}
}
echo $admin;
示例10: confirm
if ($LevelAkses == 'Administrator') {
$pub = '';
$deleted = '<a href="?pilih=bukuoperasional&mod=yes&aksi=deltagihan&id=' . $data2['id'] . '" onclick="return confirm(\'tagihan ini akan dihapus, Apakah Anda Ingin Menghapus Data Ini ?\')" style="color:red"><img src="images/delete.gif"></a>';
$edit = '';
} else {
$deleted = '';
$edit = '';
}
$admin .= '
<tr>
<td style="text-align:left;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . $data2[1] . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . $data2[3] . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . $data2[5] . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . $data2[6] . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . $data2[7] . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . rupiah_format($data2[8]) . '</td>
<td style="text-align:center;padding:5px;border-right:1px solid #ccc;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;width:5px;">' . $deleted . ' ' . $edit . '</td>
</tr>';
$totkt += $data2[5];
$tottt = $data2[6];
$totpt += $data2[7];
$totrt += $data2[8];
$datatt = $data2[6];
}
$admin .= '<tr align="right"><td colspan="2"><b></b></td><td></td><td></td><td></td><td></td><td></td></tr></table>';
/*$admin .='<tr align="right"><td colspan="2"><b>Saldo tagihan</b></td><td>'.$totkt.'</td><td>'.$tottt.'</td><td>'.$totpt.'</td><td>'.rupiah_format($totrt).'</td><td></td></tr></table>';*/
$totkt = '';
$totpt = '';
$totrt = '';
if ($datatt > 0) {
$admin .= '
示例11: empty
$warna = empty($warna) ? 'bgcolor="#f2f2f2"' : '';
$td = $no % 2;
$idk = $data['idk'];
$kota = $data['kota'];
$pengirim = $data['pengirim'];
$ongkir = $data['ongkir'];
$deleted = ' - <a href="admin.php?pilih=ongkir&mod=yes&aksi=hapus_ongkir&idk=' . $idk . '" onclick="return confirm(\'Ongkos Kirim ini akan di hapus! Anda yakin ?\')" style="color:red">Hapus</a>';
if ($td == 0) {
$bgcolor = 'bgcolor="#f2f2f2"';
} else {
$bgcolor = '';
}
$tengah .= '<tr ' . $bgcolor . '>
<td style="text-align:center; padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;">' . $no . '</td>
<td style="padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;"><b>' . $kota . '</b></td>
<td style="padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;">' . rupiah_format($ongkir) . '</td>
<td style="text-align:center; padding:4px 10px 4px 10px; border-bottom:1px solid #DFDFDF;"><a class="image" href="admin.php?pilih=ongkir&mod=yes&aksi=edit_ongkir&idk=' . $idk . '">Edit</a> ' . $deleted . '</td>
</tr>';
$no++;
}
if ($jumlah > $limit) {
$tengah .= '
<tr>
<td colspan="4" valign="top" style="background:#ffffff; text-align:center; padding:4px 10px 4px 10px;">';
if (empty($_GET['offset']) and !isset($_GET['offset'])) {
$offset = 0;
}
if (empty($_GET['pg']) and !isset($_GET['pg'])) {
$pg = 1;
}
if (empty($_GET['stg']) and !isset($_GET['stg'])) {
示例12: while
<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th>Kode</th>
<th>Gaji Pokok</th>
<th width="30%">Aksi</th>
</tr>
</thead>';
$admin .= '<tbody>';
$hasil = $koneksi_db->sql_query("SELECT * FROM hrd_golongan");
while ($data = $koneksi_db->sql_fetchrow($hasil)) {
$nama = $data['nama'];
$gajipokok = $data['gajipokok'];
$admin .= '<tr>
<td>' . $nama . '</td>
<td>' . rupiah_format($gajipokok) . '</td>
<td><a href="?pilih=penggajian&mod=yes&aksi=golongan&aksi2=del&id=' . $data['id'] . '" onclick="return confirm(\'Apakah Anda Yakin Ingin Menghapus Data Ini ?\')"><span class="btn btn-danger">Hapus</span></a> <a href="?pilih=penggajian&mod=yes&aksi=golongan&aksi2=edit&id=' . $data['id'] . '"><span class="btn btn-warning">Edit</span></a></td>
</tr>';
}
$admin .= '</tbody>
</table>';
$admin .= '</div>';
}
###################################
# Edit Karyawan
###################################
if ($_GET['aksi'] == "setting_penggajian") {
$id = int_filter($_GET['id']);
$s = $koneksi_db->sql_query("SELECT * FROM hrd_karyawan WHERE id={$id}");
$datas = $koneksi_db->sql_fetchrow($s);
$nama = $datas['nama'];
示例13: int_filter
$tengah .= "Yang dicari <b>\"{$query}\"</b>";
$tengah .= '</div>';
$offset = int_filter(@$_GET['offset']);
$pg = int_filter(@$_GET['pg']);
$stg = int_filter(@$_GET['stg']);
$hasil2 = $koneksi_db->sql_query("SELECT * FROM katalog WHERE ((judul LIKE '%{$query}%' OR ket LIKE '%{$query}%' OR harga LIKE '%{$query}%')AND publikasi=1) ORDER By id LIMIT {$offset},{$limit}");
$tengah .= '<div class="border">';
$tengah .= "Ditemukan <b>" . $jumlah . "</b> produk mengandung kata: <b>{$query}</b>";
$tengah .= '</div>';
$tengah .= '<div class="borderdetail"><table width="100%" border="0" cellpadding="0" cellspacing="5"><tr>';
while ($data = $koneksi_db->sql_fetchrow($hasil2)) {
$id = $data['id'];
$judul = $data['judul'];
$gambar = $data['gambar'];
$harga = $data['harga'] == '' ? '<a href="#" title="Call Me: +6231 9900 1100"><span class="callme">Call Me</span></a>' : '
<span class="hargakatalog">' . rupiah_format($data['harga']) . '</span>';
$urutan = $no + 1;
$detail = '<a href="' . get_link($id, $judul, "produk") . '" title="' . $judul . '"><span class="detail">Detail</span></a>';
$beli = '<a href="' . $url_situs . '/' . get_link($id, $judul, "pesan-produk") . '" title="Buy Now"><span class="beli">Beli</span></a>';
$tengah .= '<td valign="top" align="center" class="borderkatalog">
<div class="imgkatalog"><img src="' . $url_situs . '/mod/katalog/images/thumb/' . $gambar . '" alt="' . $judul . '"/></div><div class="namakatalog">
' . $judul . '</div><br>
' . $harga . '<br><br>
' . $detail . '
' . $beli . '
</td>';
if ($urutan % 3 == 0) {
$tengah .= '</tr>';
}
$no++;
}
示例14:
</tr>';
/*
echo '
<tr class="border">
<td colspan="7" align="right"><b>Discount</b></td>
<td >'.cekdiscountpersen($discount).'</td>
</tr>';
echo ' <tr class="border">
<td colspan="7" align="right"><b>Grand Total</b></td>
<td >'.rupiah_format($netto).'</td>
</tr>
';
*/
echo ' <tr class="border">
<td colspan="6" align="right"><b>Bayar</b></td>
<td >'.rupiah_format($bayar).'</td>
</tr>
';
echo '</table>';
}
echo'</td></tr></table>';
/****************************/
echo "</body</html>";
if (!isset($_GET['lihat'])){
echo "<script language=javascript>
window.print();
</script>";
}
?>
示例15: while
$hasil2 = $koneksi_db->sql_query("SELECT * FROM bukukas WHERE user ='{$_POST['cabang']}'");
} else {
$hasil2 = $koneksi_db->sql_query("SELECT * FROM bukukas WHERE user ='{$user}'");
}
while ($data2 = $koneksi_db->sql_fetchrow($hasil2)) {
$totaldebet += int_filter($data2[3]);
$totalkredit += int_filter($data2[4]);
}
$saldo = $totaldebet - $totalkredit;
//////////////////////////////////
$admin .= '
<tr>
<td style="text-align:right;width:10px;padding:5px;border-left:1px solid #ccc;border-top:1px solid #ccc;border-bottom:1px solid #ccc;" valign="top" colspan="3">Total</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . rupiah_format($totaldebet) . '</td>
<td style="text-align:right;padding:5px;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;">' . rupiah_format($totalkredit) . '</td>
<td style="text-align:center;padding:5px;border-right:1px solid #ccc;border-top:1px solid #ccc;border-left:1px solid #ccc;border-bottom:1px solid #ccc;width:5px;">' . rupiah_format($saldo) . '</td>
</tr>';
$admin .= "</table>";
$admin .= '</div>';
$no = 1;
}
}
}
////////////////////////////////////////////////////////////////////////////////
if ($_GET['aksi'] == "delbukukas") {
global $koneksi_db;
$id = int_filter($_GET['id']);
$koneksi_db->sql_query("DELETE FROM bukukas WHERE id='{$id}'");
$admin .= '<div class="sukses">Berhasil menghapus Buku Kas</div>';
if ($LevelAkses == 'Administrator') {
header("location:admin.php?pilih=bukukas&mod=yes&aksi=laporanbukukas");