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

PHP format_rupiah函数代码示例

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

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



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

示例1: table_debet

 public function table_debet()
 {
     $param = $this->input->post();
     $data = $this->mr->getDataDebet($param);
     $table = '';
     $i = 1;
     foreach ($data->result() as $key => $value) {
         if ($value->claimed == 'no') {
             $claimed = '<span class="label label-sm label-danger">Unclaimed</span>';
         } else {
             $claimed = '<span class="label label-sm label-success">Claimed</span>';
         }
         $table .= '
         <tr>
             <td width="50px">' . $i . '</td>
             <td>' . $value->bank . '</td>
             <td style="text-align:right;">' . format_rupiah($value->jumlah) . '</td>
             <td>' . $claimed . '</td>
         </tr>
         ';
         $i++;
     }
     $table_null = '
     <tr>
         <td colspan="10">Tidak ada data.</td>
     </tr>
     ';
     echo isset($value) ? $table : $table_null;
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:29,代码来源:claim.php


示例2: get_list_cashdraw

 function get_list_cashdraw($param = '')
 {
     $sql = "SELECT * FROM view_selling_cashdraw WHERE `date` = ? AND user_id = ?";
     $hasil = $this->db->query($sql, array($param['tgl_awal'], $param['pegawai']));
     $data = $hasil->result();
     $list = "";
     if ($data != null) {
         foreach ($data as $das => $value) {
             $selisih = $value->total_cash - $value->end_cash;
             $list .= '
                 <tr>
                     <td class="text-center">' . $value->cashdraw_no . '</td>
                     <td>' . format_rupiah($value->start_cash) . '</td>
                     <td>' . format_rupiah($value->omset) . '</td>
                     <td>' . format_rupiah($value->total_cash) . '</td>
                     <td>' . format_rupiah($value->end_cash) . '</td>
                     <td>' . format_rupiah($selisih) . '</td>
                     <td>' . $value->nama . '</td>
                     <td>' . $value->status . '</td>
                     <td class="text-center">
                         <a onclick="print(this.id)" id="' . $value->id . '" data-toggle="modal" href = "#modal-note"  title="Print" class="btn btn-xs btn-default"><i class="icon-print"></i> Print</a>
                     </td>
                 </tr>
             ';
         }
     } else {
         $list .= '
             <tr>
                 <td colspan="6">No data to view...</td>
             </tr>
         ';
     }
     return $list;
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:34,代码来源:mdl_validasi.php


示例3: product_detail

 public function product_detail()
 {
     $product = $this->product->get_product($_GET['id']);
     $product_related = $this->product->get_all_product('related', 'published', 'all_records', $product['id_product_category']);
     $total_product_related = $this->product->get_all_product('related', 'published', 'total_data', $product['id_product_category']);
     $brand = $this->brand->get_brand($product['id']);
     if (isset($_SESSION['user_type']) && isset($_SESSION[''])) {
         $user_name = '';
     } else {
         $user_name = '';
     }
     if ($product['status'] == 0) {
         $status = 'Belum Tersedia';
     } else {
         $status = 'Tersedia';
     }
     $this->view->assign('captcha_src', SITE_CAPTCHA_SRC);
     $this->view->assign('product_brand', $brand['name']);
     $this->view->assign('product_status', $status);
     $this->view->assign('product_name', $product['name']);
     $this->view->assign('product_price', format_rupiah($product['price']));
     $this->view->assign('product_description', $product['description']);
     $this->view->assign('product_img_thumb', $this->img_dir . 'thumb_' . $product['image']);
     $this->view->assign('product_img', $this->img_dir . $product['image']);
     $this->view->assign('total_product_related', $total_product_related);
     $this->view->assign('product_related', $product_related);
     parent::fetch('product/product_detail', 'module');
 }
开发者ID:asmari,项目名称:zcosp,代码行数:28,代码来源:site.php


示例4: FancyTable

 function FancyTable($header, $data)
 {
     // Colors, line width and bold font
     $this->SetFillColor(255, 165, 74);
     $this->SetTextColor(255);
     $this->SetDrawColor(128, 0, 0);
     $this->SetLineWidth(0.2);
     $this->SetFont('', 'B');
     // Header
     $w = array(10, 10, 35, 70, 30, 20, 10);
     for ($i = 0; $i < count($header); $i++) {
         $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
     }
     $this->Ln();
     // Color and font restoration
     $this->SetFillColor(224, 235, 255);
     $this->SetTextColor(0);
     $this->SetFont('');
     // Data
     $fill = false;
     foreach ($data as $row) {
         $this->Cell($w[0], 6, $row[0], 'LR', 0, 'L', $fill);
         $this->Cell($w[1], 6, $row[1], 'LR', 0, 'L', $fill);
         $this->Cell($w[2], 6, $row[2], 'LR', 0, 'L', $fill);
         $this->Cell($w[3], 6, $row[3], 'LR', 0, 'L', $fill);
         $this->Cell($w[4], 6, $row[4], 'LR', 0, 'L', $fill);
         $this->Cell($w[5], 6, format_rupiah($row[5]), 'LR', 0, 'R', $fill);
         $this->Cell($w[6], 6, $row[6], 'LR', 0, 'L', $fill);
         $this->Ln();
         $fill = !$fill;
     }
     // Closing line
     $this->Cell(array_sum($w), 0, '', 'T');
 }
开发者ID:nurullaeli07,项目名称:try,代码行数:34,代码来源:slip_pdf.php


示例5: get_list_produk

    function get_list_produk($reference)
    {
        $sql = "SELECT * FROM atombizz_retur_internal_tmp WHERE reference='{$reference}' order by id asc";
        $data = $this->db->query($sql);
        $list = '';
        $i = 1;
        foreach ($data->result() as $das) {
            $list .= '
				<tr>
					<td class="text-center">' . $i . '</td>
					<td>' . $das->product_name . '</td>
					<td>' . $das->quantity . '</td>
					<td>' . format_rupiah($das->hpp) . '</td>
					<td class="text-right">' . format_rupiah($das->sub_total) . '</td>
					<td class="text-center">
						<a onclick="actEdit(' . $das->id . ')" data-toggle="tooltip" title="Edit" class="btn btn-xs btn-default"><i class="icon-pencil"></i></a>
						<a onclick="actDel(' . $das->id . ')" data-toggle="tooltip" title="Delete" class="btn btn-xs btn-default"><i class="icon-remove"></i></a>
					</td>
				</tr>
			';
            $i++;
        }
        $list_null = '
			<tr>
				<td colspan="6">No data to view...</td>
			</tr>
		';
        return $list != '' ? $list : $list_null;
    }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:29,代码来源:mdl_retur_internal.php


示例6: saldo

 public function saldo()
 {
     $param = $this->input->post();
     $data = $this->mp->saldo($param);
     if ($data) {
         $data->saldo_show = format_rupiah($data->saldo);
         echo json_encode($data);
     } else {
         echo FALSE;
     }
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:11,代码来源:kasbon.php


示例7: diskon

 function diskon()
 {
     // diskon
     $harga = format_rupiah($r[harga]);
     $disc = $r[diskon] / 100 * $r[harga];
     $hargadisc = number_format($r[harga] - $disc, 0, ",", ".");
     $d = $r['diskon'];
     $hargatetap = "<span class='price'> <br /></span>&nbsp;\n                    <span style=\"color:#ff6600;font-size:14px;\"> Rp. <b>{$hargadisc},-</b></span>";
     $hargadiskon = "<span style='text-decoration:line-through;font-size:14px;' class='price'>Rp. {$harga} <br /></span>\n\t\t\t\t\t<div style='text-align=center;font-size:14px;'>&nbsp;diskon {$d}%</div> \n                    <span style=\"color:#ff6600;font-size:14px;\"> Rp. <b>{$hargadisc},-</b></span>";
     if ($d != 0) {
         $divharga = $hargadiskon;
     } else {
         $divharga = $hargatetap;
     }
 }
开发者ID:muhamadyunus,项目名称:UASRPL,代码行数:15,代码来源:diskon_stok.php


示例8: get_all_product

 public function get_all_product($view = '', $attr = '', $mode = '', $id_pcategory = '')
 {
     parent::model('select');
     $this->db->select();
     $this->db->table($this->db_table);
     if ($attr == 'published') {
         $this->db->where('publish = "Y"');
     } else {
         if ($attr == 'unpublished') {
             $this->db->where('publish = "N"');
         }
     }
     if ($view == 'featured') {
         $this->db->where_and('featured = "Y"');
     } else {
         if ($view == 'latest') {
             $this->db->order('created');
             $this->db->sort('DESC');
             $this->db->limit('5');
         } else {
             if ($view == 'related') {
                 $this->db->where_and('id_product_category = "' . $id_pcategory . '"');
                 $this->db->limit('5');
             }
         }
     }
     $query = $this->db->build();
     if ($mode == 'total_data') {
         return $this->db->num_rows($query);
     } else {
         if ($mode == 'all_records') {
             $no = 0;
             while ($product = $this->db->fetch_array($query)) {
                 $data[] = array('no' => $no, 'id' => $product['id'], 'id_user' => $product['id_user'], 'id_product_category' => $product['id_product_category'], 'id_product_brand' => $product['id_product_brand'], 'name' => $product['name'], 'image' => $product['image'], 'price' => format_rupiah($product['price']), 'stock' => $product['stock'], 'status' => $product['status'], 'description' => $product['description'], 'featured' => $product['featured'], 'meta_desc' => $product['meta_desc'], 'meta_key' => $product['meta_key'], 'publish' => $product['publish'], 'created' => $product['created'], 'updated' => $product['updated']);
                 $no++;
             }
             return $data;
         }
     }
 }
开发者ID:asmari,项目名称:zcosp,代码行数:40,代码来源:model.php


示例9: view_cart

 public function view_cart($mode = '')
 {
     parent::model('custom');
     $this->db->custom(' SELECT * FROM order_temp, product 
                         WHERE session_id = "' . session_id() . '" 
                         AND order_temp.id_product=product.id');
     $query = $this->db->build();
     $total = 0;
     $data = '';
     while ($cart = $this->db->fetch_array($query)) {
         $subtotal = $cart['price'] * $cart['qty'];
         $total = $total + $subtotal;
         $data[] = array('id' => $cart['id'], 'session_id' => $cart['session_id'], 'id_product' => $cart['id_product'], 'product_name' => $cart['name'], 'product_price' => format_rupiah($cart['price']), 'qty' => $cart['qty'], 'subtotal' => format_rupiah($subtotal));
     }
     if ($mode == 'totalbuy') {
         return format_rupiah($total);
     } else {
         if ($mode == 'totaldata') {
             return $this->db->num_rows($query);
         } else {
             return $data;
         }
     }
 }
开发者ID:asmari,项目名称:zcosp,代码行数:24,代码来源:model.php


示例10: saldo

 public function saldo()
 {
     $param = $this->input->post();
     $data = $this->mp->get_saldo($param['faktur']);
     echo format_rupiah($data);
 }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:6,代码来源:piutang.php


示例11: tanggal_format_indonesia

</td>
            <td><?php 
    echo $analisis->lab;
    ?>
</td>
            <td><?php 
    echo $analisis->jenis_conto;
    ?>
</td>
            <td><?php 
    echo $analisis->nama_pemohon;
    ?>
</td>
            <td><?php 
    echo tanggal_format_indonesia($analisis->tanggal_terima);
    ?>
</td>
            <td><?php 
    echo format_rupiah($analisis->biaya);
    ?>
</td>
            <td><?php 
    echo !$analisis->is_cancel ? 'PROSES' : 'CANCEL';
    ?>
</td>
        </tr>
    <?php 
}
?>
    </tbody>
</table>
开发者ID:phi314,项目名称:onix,代码行数:31,代码来源:permohonan_excel_v.php


示例12: foreach

                <th>Gaji</th>
                <th>TMT</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php 
if (count($daftar_gaji) > 0) {
    foreach ($daftar_gaji as $d) {
        ?>
            <tr id="t_<?php 
        echo $d['id_gaji'];
        ?>
">
                <td align="right">Rp <?php 
        echo format_rupiah($d['gaji']);
        ?>
</td>
                <td><?php 
        echo format_tanggal_tampilan($d['TMT']);
        ?>
</td>
                <td>
                    <a onclick="hapus(<?php 
        echo $d['id_gaji'];
        ?>
); return false;" href="#">Hapus</a>
                </td>
            </tr>
            <?php 
    }
开发者ID:erxn,项目名称:siemas,代码行数:31,代码来源:list_gaji.php


示例13: get_list_produk_retur_out

    function get_list_produk_retur_out($reference)
    {
        $sql = "SELECT * FROM atombizz_retur_out_detail WHERE reference='{$reference}' order by id asc";
        $data = $this->db->query($sql);
        $list = '';
        $i = 1;
        foreach ($data->result() as $das) {
            // $hpp = ($das->unit_price - ($das->unit_price*$das->disc_reg/100) + ($das->unit_price*$das->tax_amount/100));
            $subtotal = $das->hpp * $das->quantity;
            $list .= '
				<tr>
					<td class="text-center">' . $i . '</td>
					<td>' . $das->product_name . '</td>
					<td class="money">' . $das->quantity . '</td>
					<td>' . format_rupiah($das->hpp) . '</td>
					<td>' . format_rupiah($subtotal) . '</td>
					<td class="text-center">
						<a onclick="actEdit(' . $das->id . ')" data-toggle="tooltip" title="Edit" class="btn btn-xs btn-default"><i class="icon-pencil"></i></a>
						
					</td>
				</tr>
			';
            $i++;
        }
        $list_null = '
			<tr>
				<td colspan="6">No data to view...</td>
			</tr>
		';
        return $list != '' ? $list : $list_null;
    }
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:31,代码来源:mdl_retur.php


示例14: format_rupiah

    echo $rows->nama;
    ?>
</td>
			<td><a href='index.php?mod=invoice&pg=invoice_detail&id=<?php 
    echo $rows->noinvoice;
    ?>
'><?php 
    echo $rows->noinvoice;
    ?>
</a></td>
			<td><?php 
    echo $rows->tanggal;
    ?>
</td>
				<td><?php 
    echo format_rupiah($rows->totalbayar);
    ?>
</td>
		
			<td><?php 
    echo get_status_invoice($rows->transfer);
    ?>
</td>
			<td><?php 
    echo tglkirim($rows->tglkirim);
    ?>
				
				</td>
			
				<td>	
					
开发者ID:alimin002,项目名称:gisecommerce,代码行数:30,代码来源:invoice_view.php


示例15: mysql_query

                                <th>Jumlah</th>
                                <th>Pilih</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php 
$qpembayaran = mysql_query("SELECT * FROM pembayaran WHERE nama!='Topup' ORDER BY created_at DESC");
while ($pembayaran = mysql_fetch_object($qpembayaran)) {
    ?>
                            <tr>
                                <td><?php 
    echo $pembayaran->nama;
    ?>
</td>
                                <td><?php 
    echo format_rupiah($pembayaran->jumlah);
    ?>
</td>
                                <td>
                                    <form action="transaksi_create.php" method="post">
                                        <button class="btn btn-warning" name="id" value="<?php 
    echo $pembayaran->id;
    ?>
">Pilih</button>
                                        <input type="hidden" name="submit_type" value="add_session_id_pembayaran">
                                        <input type="hidden" name="key" value="bulbasaur">
                                    </form>
                                </td>
                            </tr>
                            <?php 
}
开发者ID:phi314,项目名称:bulbasaur,代码行数:31,代码来源:transaksi_choose.php


示例16: strtoupper

    ?>
</td>
                            <td><?php 
    echo strtoupper($row->id_type_analisis);
    ?>
</td>
                            <td><?php 
    echo $row->nama;
    ?>
</td>
                            <td><?php 
    echo $row->id_lab;
    ?>
</td>
                            <td><?php 
    echo format_rupiah($row->harga);
    ?>
</td>
                            <td><a href="<?php 
    echo base_url('type_analisis/detail/' . $row->id_type_analisis);
    ?>
" class="btn btn-info">Detail</a> </td>
                        </tr>
                    <?php 
}
?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
开发者ID:phi314,项目名称:onix,代码行数:31,代码来源:type_analisis_v.php


示例17: tanggal_format_indonesia

            </tr>
            <tr>
                <td><?php 
echo $r->kode;
?>
</td>
                <td><?php 
echo $r->nama_pembayaran;
?>
</td>
                <td><?php 
echo tanggal_format_indonesia($r->tanggal, TRUE);
?>
</td>
                <td><?php 
echo format_rupiah($r->jumlah);
?>
</td>
            </tr>
        </table>
    </div>

    <div class="footer">
        <div class="tandatangan">
            Petugas Tata Usaha,
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
开发者ID:phi314,项目名称:bulbasaur,代码行数:31,代码来源:detail_transaksi_export_pdf.php


示例18: foreach

$this->thoni_fpdf->SetAligns(array('C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'));
$this->thoni_fpdf->Row(array('No.', 'Tanggal', 'Referensi', 'Kode Produk', 'Nama Produk', 'Qty', 'Price', 'Subtotal'));
$no = 1;
$i = 0;
$total = 0;
$this->thoni_fpdf->SetFont('helvetica', '', 9);
foreach ($retur->result() as $key => $value) {
    $this->thoni_fpdf->SetAligns(array('C', 'C', 'L', 'C', 'C', 'C', 'C', 'R'));
    $this->thoni_fpdf->Row(array($no, $value->tgl, $value->referensi, $value->code_produk, $value->code_name, $value->qty, format_rupiah($value->price), format_rupiah($value->tot)));
    $total += $value->tot;
    $no++;
}
// $status = ($total < 0) ? '(Kurang)' : '(Kelebihan)';
$this->thoni_fpdf->SetWidths(array(21, 6));
$this->thoni_fpdf->SetAligns(array('C', 'R'));
$this->thoni_fpdf->Row(array('TOTAL ', format_rupiah(abs($total))));
//The first param should be the width of text area
//0 value will make the FPDF automate the width
//The second param is the line spacing for this paragraph
//The third param is the text
// $this->thoni_fpdf->WriteTag(19,0.7, $text, 1, "J", 0, 7);
/* setting posisi footer 3 cm dari bawah */
$this->thoni_fpdf->SetY(-3);
/* setting font untuk footer */
$this->thoni_fpdf->SetFont('helvetica', '', 9);
/* setting cell untuk waktu pencetakan */
$this->thoni_fpdf->Cell(19, 0.5, 'Printed on : ' . tanggalIndo(date('Y-m-d')) . ' | ' . date('H:i:s'), 0, 'LR', 'L');
// $this->thoni_fpdf->Cell(-5);
$this->thoni_fpdf->Cell(28, 0.5, 'Created by : Atombizz.', 0, 'LR', 'L');
/* setting cell untuk page number */
// $this->thoni_fpdf->Cell(24.5, 0.5, 'Page '.$this->thoni_fpdf->PageNo().'/{nb}',0,0,'R');
开发者ID:ahmadsm,项目名称:iwakkoicenter,代码行数:31,代码来源:print_stock.php


示例19: sum

$id_book = $_POST['id_book'];
$total = 0;
$count = "select sum(harga_sparepart) as total from detail_book where id_book='" . $id_book . "'";
$sql = "select detail_book.id_book, detail_book.id_sparepart, sparepart.nama_sparepart, detail_book.harga_sparepart from detail_book right join sparepart on detail_book.id_sparepart = sparepart.id_sparepart where detail_book.id_book = '" . $id_book . "'";
//            $sql = " select detail_book.id_book,user.nama,kendaraan.nama_kendaraan,booking.tanggal,servis.jenis_servis,servis.harga_servis,sparepart.nama_sparepart,sparepart.harga_sparepart,booking.status from detail_book natural join booking natural join servis natural join sparepart natural join user natural join kendaraan where detail_book.id_book='".$id_book."'";
$result = mysqli_query($db, $sql);
if (mysqli_num_rows($result) > 0) {
    // output data of each row
    while ($row = mysqli_fetch_assoc($result)) {
        $total = $total + $row['harga_sparepart'];
        echo "<tr>\n            <td>" . @$row['id_book'] . "</td>  \n            <td>" . @$row['id_sparepart'] . "</td>  \n            <td>" . @$row['nama_sparepart'] . "</td>  \n            <td>" . format_rupiah(@$row['harga_sparepart']) . "</td>\n            </tr>\n            ";
    }
} else {
    echo "0 results";
}
echo "<tr>\n            <td>SubTotal</td>\n            <td></td>\n            <td></td>\n            <td>" . format_rupiah($total) . "</td>\n            </tr>";
$query = "select detail_book.id_servis, servis.jenis_servis, detail_book.harga_servis from detail_book inner join servis on detail_book.id_servis = servis.id_servis  where detail_book.id_book='" . $id_book . "'";
$koneksi = mysql_connect('localhost', 'root', '');
mysql_select_db('suzuki');
$ambildata = mysql_query($query, $koneksi);
if (!$ambildata) {
    die('Gagal ambil data: ' . mysql_error());
}
$row = mysql_fetch_assoc($ambildata);
echo "ID servis :{$row['id_servis']}  <br> " . "jenis_servis : {$row['jenis_servis']} <br> " . "harga_servis : {$row['harga_servis']} <br> " . "Total Servis dan Sparepart =" . ($total1 = $row['harga_servis'] + $total . "<br>" . "--------------------------------<br>");
mysql_close($koneksi);
?>
          
        </tbody>            
                    </table>
                        
开发者ID:farichrr,项目名称:wp-suzuki,代码行数:30,代码来源:detail_servis_user.php


示例20: format_rupiah

?>
</td>
                        <td><?php 
echo format_rupiah($transaksi->jumlah);
?>
</td>
                        <td><?php 
echo tanggal_format_indonesia($transaksi->tanggal);
?>
</td>
                        <td><?php 
echo $transaksi->nama_pembayaran;
?>
</td>
                        <td><?php 
echo format_rupiah($transaksi->saldo);
?>
</td>
                    </tr>
                    </tbody>
                </table>
            </div><!-- /.Left col -->
        </div><!-- /.row (main row) -->
    </section><!-- /.content -->

<?php 
include 'inc/footer.php';
?>

<script type="text/javascript">
    // Your application has indicated there's an error
开发者ID:phi314,项目名称:bulbasaur,代码行数:31,代码来源:transaksi_success.php



注:本文中的format_rupiah函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP format_si函数代码示例发布时间:2022-05-15
下一篇:
PHP format_price函数代码示例发布时间: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