本文整理匯總了PHP中fform::ffval方法的典型用法代碼示例。如果您正苦於以下問題:PHP fform::ffval方法的具體用法?PHP fform::ffval怎麽用?PHP fform::ffval使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類fform
的用法示例。
在下文中一共展示了fform::ffval方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: dbDel
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
$s = '<button class="find21" title="Cari siswa" style="float:left;margin-top:2px" onclick="pendataan_saudara_getsiswa()"></button>';
//$fform->fi('Nama',iText('psnama',$r['nama'],'float:left;margin-right:4px;width:'.($fform->fwidth-$fform->lwidth-48).'px').$s);
//function ffval($id,$v='',$v1='',$act='',$ttl='Cari')
$fform->fi('Nama', $fform->ffval('psnama', $r['nama'], $r['nama'], 'pendataan_saudara_popup()', 'Cari siswa'));
$fform->fi('Tanggal lahir', inputDate('pstgllahir', $r['tgllahir']));
$fform->fi('Sekolah', iText('pssekolah', $r['sekolah'], $fform->rwidths));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['nama']);
}
}
$fform->foot();
}
示例2: dbDel
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
$s = '<button class="find21" title="Cari siswa" style="float:left;margin-top:2px" onclick="pendataan_saudara_getsiswa()"></button>';
//$fform->fi('Nama',iText('psnama',$r['nama'],'float:left;margin-right:4px;width:'.($fform->fwidth-$fform->lwidth-48).'px').$s);
//function ffval($id,$v='',$v1='',$act='',$ttl='Cari')
$fform->fi('Nama', $fform->ffval('psnama', $r['nama'], $r['nama'], 'pendataan_saudara_siswa_get(0)', 'Pilih siswa', 0));
$fform->fi('Tanggal lahir', inputDate('pstgllahir', $r['tgllahir']));
$fform->fi('Sekolah', iText('pssekolah', $r['sekolah'], $fform->rwidths));
} else {
if ($opt == 'df') {
// Delete form
$fform->dlg_del($r['nama']);
}
}
$fform->foot();
}