本文整理汇总了PHP中fform::fi方法的典型用法代码示例。如果您正苦于以下问题:PHP fform::fi方法的具体用法?PHP fform::fi怎么用?PHP fform::fi使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fform
的用法示例。
在下文中一共展示了fform::fi方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dbSFA
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = array();
$r['departemen'] = gpost('departemen');
$r['proses'] = gpost('proses');
$r['kapasitas'] = 0;
$r['biaya'] = 0;
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Departemen', departemen_name(gpost('departemen')), $fform->rwidths);
$fform->fl('Proses', proses_name($r['proses']), $fform->rwidths);
$fform->fi('Nama kelompok', iText('kelompok', $r['kelompok'], $fform->rwidths));
$fform->fi('Tanggal dibuka', inputTanggal('tglmulai', $r['tglmulai']));
$fform->fi('Tanggal ditutup', inputTanggal('tglselesai', $r['tglselesai']));
$fform->fi('Biaya pendaftaran', iTextC('biaya', $r['biaya'], 'width:120px'));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['kelompok']);
} else {
if ($opt == 'hf') {
$fform->fh('Kelompok pendaftaran adalah pembagian tahap atau gelombang pendaftaran dalam satu periode penerimaan siswa baru.<br/>Contoh kelompok pendaftaran: "Early bird", "Reguler Gelombang 1", "Reguler Gelombang 2".');
}
}
}
$fform->foot();
示例2: dbSFA
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r['departemen'] = gpost('departemen');
$r['tahunajaran'] = gpost('tahunajaran');
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Departemen', departemen_name($r['departemen']));
$fform->fl('Departemen', tahunajaran_name($r['tahunajaran']));
$fform->fi('Semester', iText('nama', $r['nama'], 'width:100px'));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
if (intval($r['aktif']) == 1) {
$fform->reg['dlg_del'] = 'Semester ini masih aktif.<br/ >Apakah anda yakin untuk menghapus <idata> <data>?';
$fform->dlg_delw($r['nama']);
} else {
$fform->dlg_del($r['nama']);
}
//$fform->dlg_del($r['nilai']);
}
}
$fform->foot();
}
示例3: hiddenval
$sat = $r['satuan'];
$tingb = $r['tingkatbuku'];
$lokasi = lokasi_r($lok);
$satuan = satuan_r($sat);
$tingkatbuku = tingkatbuku_r($tingb);
}
$fform->ptop = 20;
$fform->head();
if ($opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
hiddenval('katalog', $r['katalog']);
$fform->fg('Data buku');
$fform->fl('Judul', '<b>' . buku_judul($rk['judul']) . '</b>');
hiddenval('nbuku', 0);
$fform->fi('ID buku', iText('idbuku', $r['idbuku'], $fform->rwidths, '', '', 'disabled'));
//hiddenval('idbuku',$r['idbuku']);
$fform->fi('Barkode', iText('barkode', $r['barkode'], $fform->rwidths, '', '', 'disabled'));
$fform->fi('Callnumber', iText('callnumber', $r['callnumber'], $fform->rwidths));
$fform->fi('Sumber', iRadio('sumber1', 'sumber', 0, 'Beli', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
$fform->fi('', iRadio('sumber2', 'sumber', 1, 'Pemberian', $r['sumber'], '', 'onclick="katalog_buku_getkode(' . $cid . ')"'));
$fform->fi('Harga', iSelect('satuan', $satuan, $sat) . ' ' . iText('harga', $r['harga'], 'width:120px'));
$fform->fi('Tanggal diperoleh', inputTanggal('tanggal', $r['tanggal']));
$fform->fg('Alokasi buku');
$fform->fi('Lokasi', iSelect('tlokasi', $lokasi, $lok, '', 'katalog_buku_getkode(' . $cid . ')'));
$fform->fi('Tingkat', iSelect('ttingkatbuku', $tingkatbuku, $tingb, '', 'katalog_buku_getkode(' . $cid . ')'));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['idbuku']);
}
示例4: dbUpdate
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
$q &= dbDel("psb_setbiaya", "krit='{$cid}'");
$q &= dbUpdate("psb_calonsiswa", array('kriteria' => 0), "kriteria='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama kriteria', iText('kriteria', $r['kriteria'], $fform->rwidths));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['kriteria']);
}
}
$fform->foot();
}
示例5: dbUpdate
if ($opt == 'u') {
// edit
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama', iText('nama', $r['nama'], $fform->rwidths));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['kode']);
}
}
$fform->foot();
}
示例6: dbSFA
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = farray('kode', 'nama', 'keterangan');
$r['kelompokbrg'] = gpost('kelompokbrg');
$r['tanggal'] = date("Y-m-d");
$r['unit'] = 1;
$r['satuan'] = 'unit';
}
$fform->dimension(400, 110);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fl('Jenis barang', kelompokbrg_name($r['kelompokbrg']));
$fform->fi('Kode', iText('kode', $r['kode'], 'width:100px'));
$fform->fi('Nama barang', iText('nama', $r['nama'], $fform->rwidths));
$fform->fi('Jumlah barang', iText('unit', $r['unit'], 'width:100px') . ' satuan: ' . iText('satuan', $r['satuan'], 'width:50px'));
$fform->fi('Tanggal diperoleh', inputTanggal('tanggal', $r['tanggal']));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['nama']);
}
}
$fform->foot();
}
示例7: dbDel
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
} else {
}
$fform->lwidth = 150;
$fform->fwidth = 500;
$fform->ptop = 100;
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fg('Ubah Password');
$fform->fi('Password lama', iText('oldpassword', '', $fform->rwidths));
$fform->fi('Password baru', iPswd('newpassword', '', $fform->rwidths));
$fform->fi('Ulangi password baru', iPswd('rnewpassword', '', $fform->rwidths));
} else {
if ($opt == 'df') {
// Delete form
$fform->reg['dlg_del'] = 'Apakah anda yakin untuk menghapus <idata> <data> bulan?';
$fform->dlg_del($r['cicilan']);
}
}
$fform->foot();
}
示例8: dbUpdate
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
// add n update form
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Diskon (%)', iText('nilai', $r['nilai'], 'width:40px') . ' %');
$fform->fi('Diskon (Rupiah)', iText('nilai2', $r['nilai2']));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['nilai']);
}
}
$fform->foot();
}
示例9: hiddenval
}
}
//jt_name($jtrans);
if ($opt != 'df') {
$fform->ptop = 30;
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
hiddenval('trans_pembayaran', $pid);
hiddenval('trans_jenis', $jtrans);
hiddenval('trans_nomer', $r['nomer']);
hiddenval('trans_ct', $r['ct']);
$fform->fl('<b>Nomor transaksi</b>', '<b><span id="box_trans_nomer">' . $no['nomer'] . '</span></b>');
$fform->fi('Tanggal', inputTanggal('trans_tanggal', $r['tanggal'], 'transaksi_getnomer()'));
$fform->fi('Rek. Kas/Bank', iSelect('rekkas', $rekasbank, $r['rekkas'], $fform->rwidths, 'transaksi_getnomer()'));
$fform->fg('pada');
$fform->fi('Rek. perkiraan', iSelect('rekitem', $rekening, $r['rekitem'], $fform->rwidths));
$fform->fa('Uraian', iTextArea('uraian', $r['uraian'], $fform->rwidths, 3));
$fform->fi('Kode', iText('kodebrg', $r['kodebrg'], 'width:100px'));
$fform->fi('Jumlah barang', iText('unit', $r['unit'], 'width:100px') . ' satuan: ' . iText('satuan', $r['satuan'], 'width:50px'));
$fform->fi('Nominal', iTextC('nominal', $r['nominal'], 'width:120px'));
} else {
if ($opt == 'df') {
// Delete form
$fform->rheight = '';
$fform->fc('Apakah anda yakin untuk menghapus data transaksi ini?');
$fform->fl('No. Transaksi', '<b>' . $r['nomer'] . '</b>');
$fform->fl('Tanggal', fftgl($r['tanggal']));
$fform->fl('Uraian', $r['uraian']);
示例10: dbDel
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
$r['passwd'] = '';
} else {
$r = farray('nama', 'uname', 'passwd', 'rpasswd', 'keterangan');
}
$fform->dimension(450, 120);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama anggota', iText('nama', $r['nama'], $fform->rwidths));
$fform->fi('User ID', iText('uname', $r['uname'], $fform->rwidths));
$fform->fi('Password', iPswd('passwd', $r['passwd'], $fform->rwidths));
$fform->fi('Konfirmasi password', iPswd('rpasswd', $r['rpasswd'], $fform->rwidths));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['uname']);
}
}
$fform->foot();
}
示例11: dbUpdate
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
$q &= dbDel("psb_setbiaya", "krit='{$cid}'");
$q &= dbUpdate("psb_calonsiswa", array('golongan' => 0), "golongan='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama golongan', iText('golongan', $r, $fform->rwidths));
$fform->fa('Keterangan', iTextarea('keterangan', $r, $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['golongan']);
}
}
$fform->foot();
}
示例12: dbUpdate
// edit
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "replid='{$cid}'");
}
}
}
$fform->notif($q);
} else {
if ($opt == 'uf' || $opt == 'df') {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = farray('posisi', 'keterangan');
}
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$fform->fi('Nama posisi', iText('posisi', $r['posisi'], $fform->rwidths));
$fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_delw($r['posisi'], 'Data posisi pada pegawai akan menjadi kosong.');
}
}
$fform->foot();
}
示例13: dbSFA
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
} else {
$r = farray('kelas', 'tingkat', 'kapasitas', 'wali', 'keterangan');
$r['tahunajaran'] = gpost('tahunajaran');
$r['tingkat'] = gpost('tingkat');
$r['kapasitas'] = 1;
}
$fform->dimension(450, 100);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$pelajaran = pelajaran_opt(gpost('tahunajaran'));
$fform->fl('Kelas', kelas_name(gpost('sks_kelas')));
$fform->fi('Mata pelajaran', iSelect('pelajaran', $pelajaran, $r['kelas']));
$s = '<button title="Cari" class="btn" style="float:left" onclick="sks_guru_formlist()"><div class="bi_srcb"> </div></button>';
$fform->fi('Guru', iText('sguru', $r['sguru'], 'float:left;margin-right:4px;width:' . ($fform->rwidth - 40) . 'px', '', 'readonly', 'onclick="sks_guru_formlist()"') . $s);
hiddenval('guru', $r['guru']);
if ($opt == 'af') {
$fform->fi('Jumlah jam', iText('njam', 1, 'width:40px;text-align:center'));
$fform->fi('', '<div title="Cek opsi ini jika pengajar mata pelajaran untuk semua adalah sama." style="margin-top:10px">' . iCheckx('salin', 'Tambahkan juga ke semua kelas lainnya.', 0) . '</div>');
} else {
hiddenval('njam', 1);
}
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r[$fmod]);
}
}
示例14: if
$q=dbInsert($dbtable,$inp);
if($q){
echo mysql_insert_id().';'.$inp['kode'].';'.$inp['nama'];
}
}
else if($opt=='u') { // edit
$q=dbUpdate($dbtable,$inp,"replid='$cid'");
}
else if($opt=='d'){ // delete
$q=dbDel($dbtable,"replid='$cid'");
}
$fform->notif($q);
} else {
if($opt=='uf'||$opt=='df'){ // Prepocessing form
$r=dbSFA("*",$dbtable,"W/replid='$cid'");
} else {
}
$fform->head();
if($opt=='af' || $opt=='uf'){ require_once(MODDIR.'control.php'); // Add or Edit form
$fform->fi('Kode',iText('kode',$r['kode'],"width:60px"));
$fform->fi('Bahasa',iText('nama',$r['nama'],$fform->rwidths));
$fform->fa('Keterangan',iTextarea('keterangan',$r['keterangan'],$fform->rwidths,3));
} else if($opt=='df'){ // Delete form
$fform->dlg_del($r['kode']);
} $fform->foot();
} ?>
示例15: hiddenval
$fform->idata = 'jurnal umum';
}
}
//jt_name($jtrans);
$budget = budget_opt(1, 1);
$fform->head();
if ($opt == 'af') {
require_once MODDIR . 'control.php';
// Add or Edit form
$no = transaksi_newnomer();
hiddenval('trans_jenis', $jtrans);
hiddenval('trans_nomer', $no['nomer']);
hiddenval('trans_ct', $no['ct']);
// form trans masuk
$fform->fl('<b>No. Jurnal</b>', '<b><span id="box_trans_nomer">' . $no['nomer'] . '</span></b>');
$fform->fi('<b>No. Bukti</b>', iText('trans_nobukti', '', 'width:300px'));
$fform->fi('Tanggal', inputTanggal('trans_tanggal', $r['tanggal'], 'transaksi_getnomer()'));
if ($jtrans == JT_UMUM) {
$rekening = rekening_opt();
$fform->fa('Uraian', iTextArea('uraian', $r['uraian'], $fform->rwidths, 3));
echo '<tr height=""><td id="box_transaksi_list" colspan="2"><div style="">';
$fmod = 'tpi_lain_transaksi_list';
$xtable = new xtable($fmod, 'siswa');
$xtable->noopt = true;
$xtable->row_strip = false;
//$xtable->tbl_width='';
$dsp = '';
$xtable->head('Rek. Perkiraan', 'Debet', 'Kredit');
// loop 3 combo box
for ($i = 1; $i <= 10; $i++) {
if ($i == 5) {