当前位置: 首页>>代码示例>>PHP>>正文


PHP fform::fi方法代码示例

本文整理汇总了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();
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:kelompok.php

示例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();
}
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:semester.php

示例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) . '&nbsp;' . 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']);
     }
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:daftarbuku.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:kriteria.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:katalog_pengarang.php

示例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') . ' &nbsp;&nbsp;&nbsp;satuan:&nbsp;&nbsp;' . 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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:inventory_brg.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:setting.php

示例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') . ' &nbsp;%');
        $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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:discount.php

示例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') . ' &nbsp;&nbsp;&nbsp;satuan:&nbsp;&nbsp;' . 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']);
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:penerimaan.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:grup.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:golongan.php

示例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();
}
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:posisi.php

示例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">&nbsp;</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]);
     }
 }
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:sks.php

示例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();
} ?>
开发者ID:nickohappy7,项目名称:sister,代码行数:31,代码来源:katalog_bahasa.php

示例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) {
开发者ID:epiii,项目名称:siadu-epiii,代码行数:31,代码来源:transaksi2.php


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