本文整理汇总了PHP中fRp函数的典型用法代码示例。如果您正苦于以下问题:PHP fRp函数的具体用法?PHP fRp怎么用?PHP fRp使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fRp函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: budget_opt
function budget_opt($s=1,$i=0){
$tbuku=tahunbuku_getaktifid();
$res=Array();
if($s==1)$res[0]='';
$sql="SELECT * FROM keu_budget WHERE tahunbuku='$tbuku' ORDER BY nama";
$t=mysql_query($sql); while($r=mysql_fetch_array($t)){
$sisa=budget_getnominal($r['replid'])-budget_getuses($r['replid']);
$res[$r['replid']]=$r['nama'].($i!=1?'':' (sisa anggaran: '.fRp($sisa).')');
}
return $res;
}
示例2: iTextC
function iTextC($d='',$v='',$s='',$p='',$cb='',$at=''){ $bc=""; $bc2="";
if($cb!=""){$n=preg_match("/onblur=\".+\"/", $cb,$m);
if($n>0){
$bc=str_replace("\"","",$m[0]);
$bc=";".str_replace("onblur=","",$bc);
$cb=str_replace($m[0],"",$cb);
}}
if($cb!=""){$n=preg_match("/onfocus=\".+\"/", $cb,$m);
if($n>0){
$bc2=str_replace("\"","",$m[0]);
$bc2=";".str_replace("onfocus=","",$bc2);
$cb=str_replace($m[0],"",$cb);
}}
if(is_array($v)) $v=$v[$d];
if(!is_numeric($v)) $v=0;
if($p==''){
if(defined('ITEXTC_SHOW_NUL')){
if(ITEXTC_SHOW_NUL==0) $p='Rp';
}
}
return "<input type=\"text\" class=\"iText\"".(($d=="")?"":" id=\"".$d."\" name=\"".$d."\" ").(($s=="")?"style=\"width:150px\"":" style=\"".$s."\" ")." value=\"".fRp($v)."\" ".(($p=="")?"":" placeholder=\"".$p."\" ").($cb==""?"":" ".$cb." ").($at==""?"":" ".$at." ")."onfocus=\"this.className='iTextx';ufRpt(this);".$bc2."\" onblur=\"this.className='iText';fRpt(this)".$bc."\"/>";
}
示例3: while
$xtable->btnbar_add();
} else {
echo '<div class="infobox" style="float:left;margin-left:40px">Kuota periode pendaftaran ini telah penuh.</div>';
}
$xtable->btnbar_print();
$xtable->search_box();
$xtable->btnbar_end();
if ($xtable->ndata > 0) {
$xtable->head_addrow('@Nomor pendaftaran{2,100px}', '@Nama{2}', 'Uang pangkal{R,2}', 'Discount{C,1,3}', 'Denda{R,2}', 'Uang pangkal net{R,2,90px}', 'Angsuran{R}');
$xtable->head_addrow('Subsidi{R}', 'Saudara{R}', 'Tunai{R}', '!x bulan{R}');
$xtable->head_multi();
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$xtable->td($r['nopendaftaran'], 100);
$xtable->td($r['nama']);
$xtable->td(fRp($r['sumpokok']), 90, 'r');
$xtable->td(fRp($r['disctb']), 90, 'r');
$xtable->td(fRp($r['discsaudara']), 90, 'r');
$xtable->td(fRp($r['disctunai']), 90, 'r');
$xtable->td(fRp($r['denda']), 90, 'r');
$xtable->td(fRp($r['sumnet']), 90, 'r');
$xtable->td(fRp($r['angsuran']) . '<br/>x ' . $r['jmlangsur'] . ' bulan', 90, 'r');
$xtable->opt($r['replid'], 'v', 'u', 'd');
$xtable->row_end();
}
$xtable->foot();
}
}
} else {
departemen_warn(1);
}
示例4: hiddenval
$tglSearch .= '<button style="float:left;margin-left:30px;margin-right:4px" class="btnz" onclick="transaksi_get()">';
$tglSearch .= '<div class="">Tampilkan »</div>';
$tglSearch .= '</button>';
$t .= $tglSearch;
$t .= '</div>';
$xtable->btnbar_f('print', 'srcbox', $t . '<br>', $s);
hiddenval('modul', $modid);
hiddenval('pembayaran', 0);
if ($xtable->ndata > 0) {
$xtable->head('@No pendaftaran', '@Nama', 'Biaya pendaftaran{R}', 'Jumlah dibayar{R}', '@Tanggal pembayaran', '@Status');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$xtable->td($r['nopendaftaran'], 120);
$xtable->td($r['nama']);
$xtable->td(fRp($r['nominal']), 110, 'r');
$xtable->td(fRp($r['jmlbayar']), 110, 'r');
if ($r['lunas'] == '1') {
$s = '<div style="padding:2px;border-radius:2px;background:#00d000;color:#fff;width:96px;margin:auto"><b>Sudah bayar</b></div>';
} else {
$s = '<button class="btn" title="Klik untuk transaksi pembayaran." onclick="E(\'pembayaran\').value=' . $r['replid'] . ';pembayaran_form(\'af\')" style="width:100px">Belum bayar</button>';
}
$xtable->td(fftgl($r['tglbayar']), 140);
$xtable->td($s, 110, 'c');
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata_cust('Tidak ditemukan data pembayaran.');
}
// End of Tabel transaksi
} else {
示例5: notifbox
?>
</div>
<?php
notifbox();
if ($xtable->ndata > 0) {
// Table head
$xtable->head(' ', 'Kelompok', 'tanggal pendaftaran~C', 'Biaya pendaftaran{R}', 'Calon Siswa~C', 'Siswa Diterima~C', 'Keterangan');
$k = 0;
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$q = mysql_query("SELECT replid FROM psb_calonsiswa WHERE kelompok='" . $r['replid'] . "'");
$n = mysql_num_rows($q);
$q = mysql_query("SELECT replid FROM psb_calonsiswa WHERE kelompok='" . $r['replid'] . "' AND status<>0");
$n1 = mysql_num_rows($q);
$xtable->td('<div style="margin:auto;width:14px;height:14px;background:' . $bcolor[$k++] . '"></div>', 20, 'c');
$xtable->td($r['kelompok'], 300);
$xtable->td(fftgl($r['tglmulai']) . (fftgl($r['tglselesai']) != '-' ? '<br/>s/d ' . fftgl($r['tglselesai']) : ''), 180, 'c');
$xtable->td(fRp($r['biaya']), 120, 'r');
$xtable->td($n, 100, 'c');
$xtable->td($n1, 100, 'c');
$xtable->td(nl2br($r['keterangan']));
$xtable->opt_ud($r['replid']);
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata();
}
} else {
departemen_warn(1);
}
示例6: foreach
$aktiva = 0;
$pasiva = 0;
// Aktiva
echo '<tr height="20px">', '<td style="font-size:11px" ><b>Aktiva :</b></td>', '<td></td>', '<td></td>', '</tr>';
foreach ($rekaktiva as $rek => $r) {
echo '<tr height="20px">', '<td style="font-size:11px" >' . $rekaktiva[$rek]['nama'] . '</td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($rekaktiva[$rek]['nominal'], 1, 1, 1) . '</td>', '<td></td>', '</tr>';
$aktiva += $rekaktiva[$rek]['nominal'];
}
echo '<tr height="20px" style="background:#eaeaea">', '<td style="font-size:11px" ><i>Total Aktiva:</i></b></td>', '<td></td>', '<td style="font-size:11px" width="120px" align="right"><b>' . fRp($aktiva, 1, 1, 1) . '</b></td>', '</tr>';
echo '<tr height="10px">', '<td></td>', '<td></td>', '<td></td>', '</tr>';
// pasiva
echo '<tr height="20px">', '<td style="font-size:11px" ><b>Pasiva :</b></td>', '<td></td>', '<td></td>', '</tr>';
foreach ($rekpasiva as $rek => $r) {
echo '<tr height="20px">', '<td style="font-size:11px" >' . $rekpasiva[$rek]['nama'] . '</td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($rekpasiva[$rek]['nominal'], 1, 1, 1) . '</td>', '<td></td>', '</tr>';
$pasiva += $rekpasiva[$rek]['nominal'];
}
echo '<tr height="20px">', '<td style="font-size:11px" >Laba bersih</td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($lababersih, 1, 1, 1) . '</td>', '<td></td>', '</tr>';
$pasiva += $lababersih;
echo '<tr height="20px" style="background:#eaeaea">', '<td style="font-size:11px" ><i>Total pasiva:</i></b></td>', '<td></td>', '<td style="font-size:11px" width="120px" align="right"><b>' . fRp($pasiva, 1, 1, 1) . '</b></td>', '</tr>';
echo '</table>';
} else {
$xtable->nodata_cust('Tidak ada data transaksi.');
}
} else {
$xtable = new xtable($fmod);
$xtable->nodata_cust('Tidak ada data transaksi.');
}
} else {
$xtable = new xtable($fmod);
$xtable->nodata_cust('Silahkan pilih laporan transaksi.');
}
示例7: fRp
$xtable->td(fRp($kredit, 0), 100, 'r', $s);
$xtable->row_end();
$saldo = $saldo_awal + $debet - $kredit;
//$saldo=$saldo<0?-$saldo:$saldo;
$xtable->row_begin();
$s = '';
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('SALDO AWAL', '', '', $s);
$xtable->td(fRp($saldo_awal, 0), 100, 'r', $s);
$xtable->td('', 100, 'r', $s);
$xtable->row_end();
$xtable->row_begin();
$s = '';
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('', '', '', $s);
$xtable->td('SALDO AKHIR', '', '', $s);
if ($saldo < 0) {
$xtable->td('<span style="color:#ff0000">(' . fRp(-$saldo, 0) . ')</span>', 100, 'r', $s);
} else {
$xtable->td(fRp($saldo, 0), 100, 'r', $s);
}
$xtable->td('', 100, 'r', $s);
$xtable->row_end();
$xtable->foot();
}
echo '</div>';
示例8: foreach
$beban = 0;
// Pendapatan
echo '<tr height="20px">', '<td style="font-size:11px" ><b>Pendapatan :</b></td>', '<td></td>', '<td></td>', '</tr>';
foreach ($rekpendapatan as $rek => $r) {
echo '<tr height="20px">', '<td style="font-size:11px" >' . $rekpendapatan[$rek]['nama'] . '</td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($rekpendapatan[$rek]['nominal'], 1, 1, 1) . '</td>', '<td></td>', '</tr>';
$pendapatan += $rekpendapatan[$rek]['nominal'];
}
echo '<tr height="20px" style="background:#eaeaea">', '<td style="font-size:11px" ><i>Total Pendapatan:</i></b></td>', '<td></td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($pendapatan, 1, 1, 1) . '</td>', '</tr>';
echo '<tr height="10px">', '<td></td>', '<td></td>', '<td></td>', '</tr>';
// Beban
echo '<tr height="20px">', '<td style="font-size:11px" ><b>Beban :</b></td>', '<td></td>', '<td></td>', '</tr>';
foreach ($rekbeban as $rek => $r) {
echo '<tr height="20px">', '<td style="font-size:11px" >' . $rekbeban[$rek]['nama'] . '</td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($rekbeban[$rek]['nominal'], 1, 1, 1) . '</td>', '<td></td>', '</tr>';
$beban += $rekbeban[$rek]['nominal'];
}
echo '<tr height="20px" style="background:#eaeaea">', '<td style="font-size:11px" ><i>Total Beban:</i></b></td>', '<td></td>', '<td style="font-size:11px" width="120px" align="right">' . fRp($beban, 1, 1, 1) . '</td>', '</tr>';
echo '<tr height="10px">', '<td></td>', '<td></td>', '<td><div style="margin-top:4px;padding-top:4px;margin-left:10px;width:110px;border-top:1px solid #666"></div></td>', '</tr>';
$lababersih = $pendapatan - $beban;
echo '<tr height="20px" style="background:#eaeaea">', '<td style="font-size:11px" ><i><b>Laba Bersih:</b></i></td>', '<td></td>', '<td style="font-size:11px" width="120px" align="right"><b>' . fRp($lababersih, 1, 1, 1) . '</b></td>', '</tr>';
echo '</table>';
} else {
$xtable->nodata_cust('Tidak ada data transaksi.');
}
} else {
$xtable = new xtable($fmod);
$xtable->nodata_cust('Tidak ada data transaksi.');
}
} else {
$xtable = new xtable($fmod);
$xtable->nodata_cust('Silahkan pilih laporan transaksi.');
}
示例9: dbQSql
// $xtable->row_begin();
$xtable->row_begin($r['replid']);
$t2 = dbQSql("SELECT * FROM keu_pembayaran WHERE modul='{$modid}' AND siswa='" . $r['replid'] . "'");
$r2 = dbFA($t2);
$dibayar = 0;
$t3 = dbQSql("SELECT * FROM keu_transaksi WHERE pembayaran='" . $r2['replid'] . "'");
while ($r3 = dbFA($t3)) {
$dibayar += $r3['nominal'];
// print_r($r3);exit();
}
if ($fid == 0) {
$fid = $r['replid'];
}
$xtable->td($r['nis'], 40);
$xtable->td($r['nama']);
$xtable->td(fRp($r2['nominal'] - $dibayar), 80, 'r');
if (admin_isoperator()) {
$s = '<button class="btn" title="Proses" onclick="E(\'siswa\').value=' . $r['replid'] . ';pembayaran_proses_get()"><div class="bi_arrow2b"> </div></button>~36px';
} else {
$s = '<div style="height:23px;width:36px"></div>';
}
$xtable->opt($r['replid'], $s);
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata_cust('Tidak ada data siswa.');
}
$xform->table_end(0);
hiddenval('siswa_list_num', $xtable->ndata);
hiddenval('siswa_list_firstid', $fid);
示例10: fRp
?>
</td></tr>
<tr height="24px"><td width="100px">Total aset:</td><td><?php
echo fRp(grup_aset($grup));
?>
</td></tr>
</table>
</div>
<?php
if ($xtable->ndata > 0) {
// Table head
$xtable->head('@kode', '@nama barang', 'jenis', 'Jumlah unit~R', 'Aset~R', 'penyusutan<br/>per tahun~R', 'keterangan', '{40px}');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$n = mysql_num_rows(mysql_query("SELECT replid FROM sar_barang WHERE katalog='" . $r['replid'] . "'"));
$xtable->td($r['kode'], 80);
$xtable->td($r['nama'], 200);
$xtable->td(jenis_name($r['jenis']), 200);
$xtable->td($n, 80, 'r');
$xtable->td(fRp(katalog_aset($r['replid'])), 100, 'r');
$xtable->td($r['susut'] . ' %', 120, 'r');
$xtable->td(nl2br($r['keterangan']));
$xtable->opt($r['replid'], 'v');
//'<button class="btn" title="Tambah unit barang baru." onclick="katalog_unit_add(\'<id>\')"><div class="bi_add">Unit</div></button>~50');
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata();
}
}
示例11: mysql_query
from
keu_jurnal kj,
keu_rekening kr
where
kj.rek=kr.replid and
kj.transaksi=' . $res['replid'] . '
order by
kj.kredit asc';
$exe2 = mysql_query($sql2);
$out .= '<table class="isi" >';
while ($res2 = mysql_fetch_assoc($exe2)) {
$out .= '<tr>
<td width="200px">' . $res2['nama'] . '</td>
<td width="60px">' . $res2['kode'] . '</td>
<td width="80px">' . fRp($res2['debet']) . '</td>
<td width="80px">' . fRp($res2['kredit']) . '</td>
</tr>';
}
$out .= '</table>';
// end of detil jurnal --------
$out .= '</td>';
$out .= '</tr>';
$nox++;
}
}
$out .= '</table><br>';
echo $out;
#generate html -> PDF ------------
$out2 = ob_get_contents();
ob_end_clean();
$mpdf = new mPDF('c', 'A4', '');
示例12: iTextC
}
?>
<input type="hidden" id="<?php
echo 'tbiaya' . $r['replid'] . '_' . $h['replid'];
?>
" value="<?php
echo $biaya;
?>
" />
</td>
<td width="150px" align="right">
<?php
if (admin_isoperator()) {
echo iTextC('spp' . $r['replid'] . '_' . $h['replid'], $spp, 'float:right;width:150px;text-align:right');
} else {
echo fRp($spp);
}
?>
<input type="hidden" id="<?php
echo 'tspp' . $r['replid'] . '_' . $h['replid'];
?>
" value="<?php
echo $spp;
?>
" />
</td>
</tr>
<?php
$tfield .= '~biaya' . $r['replid'] . '_' . $h['replid'];
$tfield2 .= '~spp' . $r['replid'] . '_' . $h['replid'];
$tfield3 .= '~daftar' . $r['replid'] . '_' . $h['replid'];
示例13: fRp
$xtable->td('<b>' . fRp($debet, 0) . '</b>', 100, 'r', $s);
$xtable->td('<b>' . fRp($kredit, 0) . '</b>', 100, 'r', $s);
$xtable->row_end();
$saldo = $debet - $kredit;
$saldo = $saldo < 0 ? -$saldo : $saldo;
$xtable->row_begin();
$xtable->td();
$xtable->td();
$xtable->td();
$xtable->td();
if ($debet >= $kredit) {
$xtable->td('<b>' . fRp($saldo, 0) . '</b>', 100, 'r');
$xtable->td();
} else {
$xtable->td();
$xtable->td('<b>' . fRp($saldo, 0) . '</b>', 100, 'r');
}
$xtable->row_end();
$xtable->foot();
}
echo '</div>';
}
} else {
$xtable = new xtable($fmod);
$xtable->btnbar_begin();
echo '<div style="visibility:hidden">';
$xtable->search_box();
echo '</div>';
$xtable->btnbar_end();
$xtable->nodata_cust('Tidak data transaksi.');
}
示例14: appmod_use
<?php
require_once MODDIR . 'xform/xform.php';
require_once MODDIR . 'control.php';
appmod_use('aka/tahunajaran', 'aka/tingkat', 'aka/kelas', 'aka/siswa');
$modul = gpost('modul');
$reftipe = gpost('reftipe');
$refid = gpost('refid');
$siswaid = gpost('siswa', 0);
$pemb = pembayaran_getdatabysubj($modul, $siswaid);
hiddenval('pembayaran', $pemb['replid']);
$db = siswa_db_byID($siswa);
$t = $db->query();
$siswa = mysql_fetch_array($t);
$fmod = 'pembayaran_data';
$xform = new xform($fmod);
$xform->table_begin();
$xform->col_begin();
$s = '<button title="Edit data pembayaran" onclick="pembayaran_data_form(\'uf\',' . $pemb['replid'] . ')" style="float:left;margin-left:100px" class="btn"><div class="bi_edit">Edit</div></button>';
$xform->group_begin('Pembayaran yang harus dilunasi ', 100, 150);
echo '<div class="xrowl"><div class="xlabel" style="width:100px">Pembayaran:</div><div class="xlabel" style="position:relative;height:20px;width:px">' . $pemb['modul']['nama'] . '<div style="position:absolute;top:-32px;right:-80px">' . $s . '</div></div></div>';
$xform->fl('Jml pembayaran', fRp($pemb['nominal']));
$xform->fl('Besar cicilan', fRp($pemb['cicilan']));
$xform->fl('Status', $pemb['lunas'] == 1 ? '<span style="color:#00a000"><b>Lunas</b></span>' : '<span style="color:#ff8000"><b>Belum lunas</b></span>');
if ($pemb['keterangan'] != '') {
echo '<div class="xrowl" style="margin-top:4px"><div class="infobox" style="float:left;width:100%">Perubahan terakhir pada ' . fftgl($pemb['tanggal']) . '. Keterangan: <i style="float:none !important">' . $pemb['keterangan'] . '.</i></div></div>';
}
$xform->table_end(0);
示例15: xtable
<?php
$fmod = 'discount';
$xtable = new xtable($fmod);
$xtable->btnbar_f('add');
// Query
$t = mysql_query("SELECT * FROM psb_disctunai ORDER BY nilai");
$xtable->ndata = mysql_num_rows($t);
if ($xtable->ndata > 0) {
// Table head
$xtable->head('Diskon (%)~C', 'Diskon (Tunai)~C', 'Keterangan~C');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$xtable->td($r['nilai'], 100, 'c');
$xtable->td(fRp($r['nilai2']), 100);
// $xtable->td($r['nilai2']);
$xtable->td($r['keterangan']);
$xtable->opt_ud($r['replid']);
$xtable->row_end();
}
$xtable->foot();
} else {
$xtable->nodata();
}