本文整理汇总了PHP中fform::dlg方法的典型用法代码示例。如果您正苦于以下问题:PHP fform::dlg方法的具体用法?PHP fform::dlg怎么用?PHP fform::dlg使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类fform
的用法示例。
在下文中一共展示了fform::dlg方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: farray
$r = farray('nis', 'nisn');
$r['departemen'] = gpost('departemen');
$r['tahunajaran'] = gpost('tahunajaran');
$r['kelas'] = gpost('kelas');
}
$fform->reg['title_af'] = '<idata>';
$fform->reg['title_uf'] = 'Edit <idata>';
$fform->reg['title_df'] = 'Batalkan <idata>';
$fform->dimension(350);
$fform->head();
if ($opt == 'af' || $opt == 'uf') {
require_once MODDIR . 'control.php';
// Add or Edit form
$pros = gpost('proses');
$tp = mysql_query("SELECT angkatan FROM psb_proses WHERE replid='{$pros}'");
$rp = mysql_fetch_array($tp);
$fform->fl('Departemen', departemen_name($r['departemen']));
$fform->fl('Angkatan', angkatan_name($rp['angkatan']));
$fform->fl('Tahun ajaran', tahunajaran_name($r['tahunajaran']));
$fform->fl('Kelas', kelas_name($r['kelas']));
$fform->fi('No Induk', iText('nis', $r['nis'], 'width:120px'));
$fform->fi('NISN', iText('nisn', $r['nisn'], $fform->rwidths));
} else {
if ($opt == 'df') {
// Delete form
$fform->reg['btnlabel_d_y'] = ' Ya ';
$fform->dlg('Batalkan penempatan siswa <b>' . $r['nama'] . '</b>?');
}
}
$fform->foot();
}
示例2: gpost
$aktif = gpost('aktif');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
$q = false;
// edit
if ($aktif == 1) {
$q = mysql_query("UPDATE keu_tahunbuku SET aktif='0'");
if ($q) {
$q = mysql_query("UPDATE keu_tahunbuku SET aktif='1' WHERE replid='{$cid}'");
}
} else {
$q = mysql_query("UPDATE keu_tahunbuku SET aktif='0' WHERE replid='{$cid}'");
}
$fform->notif($q);
} else {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
$fform->reg['title_uf'] = 'Ubah Status Tahun Buku';
$fform->reg['btnlabel_u_y'] = ' Ya ';
$fform->reg['btnlabel_u_n'] = 'Tidak';
$fform->head();
require_once MODDIR . 'control.php';
// Add or Edit form
if ($r['aktif'] == '1') {
$fform->dlg('Non-aktifkan tahun buku <b>' . $r['nama'] . '</b>?', $s);
hiddenval('aktif', 0);
} else {
$fform->dlg('Aktifkan tahun buku <b>' . $r['nama'] . '</b>, dan non aktifkan tahun buku lainnya?', $s);
hiddenval('aktif', 1);
}
$fform->foot();
}
示例3: fform
<?php require_once(MODDIR.'fform/fform.php'); $opt=gpost('opt');$cid=gpost('cid');if($cid=='')$cid=0;
// form Module
$fmod="katalog_buku_daftar_cek";
$dbtable="pus_buku";
$fform=new fform($fmod,$opt,$cid,'Buku');
$data=gpost('data');
if($opt=='d'){ $q=false;
$d=explode(",",$data);
$n=count($d);
for($i=0;$i<$n;$i++){
$cid=$d[$i];
$q=dbDel($dbtable,"replid='$cid'");
}
$fform->notif($q);
} else {
$fform->head();
if($opt=='df'){ // Delete form
$d=explode(",",$data);
$n=count($d);
$fform->dlg('Apakah anda yakin untuk menghapus '.$n.' buku yang dipilih?');
} $fform->foot();
}
?>
示例4: gpost
$dept = gpost('departemen');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
$q = false;
// edit
if ($aktif == 1) {
$q = mysql_query("UPDATE aka_tahunajaran SET aktif='0' WHERE departemen='{$dept}'");
if ($q) {
$q = mysql_query("UPDATE aka_tahunajaran SET aktif='1' WHERE replid='{$cid}'");
}
} else {
$q = mysql_query("UPDATE aka_tahunajaran SET aktif='0' WHERE replid='{$cid}'");
}
$fform->notif($q);
} else {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
$fform->reg['title_uf'] = 'Ubah Status Tahun Ajaran';
$fform->reg['btnlabel_u_y'] = ' Ya ';
$fform->reg['btnlabel_u_n'] = 'Tidak';
$fform->head();
require_once MODDIR . 'control.php';
// Add or Edit form
if ($r['aktif'] == '1') {
$fform->dlg('Non-aktifkan tahun ajaran <b>' . $r['tahunajaran'] . '</b>?', $s);
hiddenval('aktif', 0);
} else {
$fform->dlg('Aktifkan tahun ajaran <b>' . $r['tahunajaran'] . '</b>, dan non aktifkan tahun ajaran lainnya?', $s);
hiddenval('aktif', 1);
}
$fform->foot();
}
示例5: if
<?php require_once(MODDIR.'xform/xform.php'); require_once(MODDIR.'fform/fform.php'); require_once(MODDIR.'xtable/xtable.php');
$opt=gpost('opt');
if($opt=='a'){
$q=mysql_query("UPDATE pus_stockhist SET status='3' WHERE status='2' LIMIT 1");
if($q) echo "1";
else echo "0";
}
else if($opt=='af'){
$fmod="stocktake_cek_done";
$fform=new fform($fmod,'af',$cid,'Cari siswa');
$fform->reg['title_af']='<idata>';
$fform->reg['btnlabel_a_y']=' Ya ';
$fform->reg['btnlabel_a_n']='Tidak';
$fform->yes_act='stocktake_cek_done(\'a\')';
$fform->dimension(500);
$tbl=stocktake_ctable();
$ncek_y=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='Y'"));
$ncek=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl));
$fform->head('Akhiri pengecekan item');
if($ncek_y<$ncek){
$fform->dlg(($ncek-$ncek_y).' item belum dicek. Apakah anda yakin untuk melajutkan ke proses berikutnya?');
} else {
$fform->dlg('Akhiri pengecekan item dan lanjutkan ke proses berikutnya?');
}
$fform->foot();
}
?>
示例6: if
$fform->head('Akhiri pemberian catatan');
if($ncek_y<$ncek){
$fform->dlg(($ncek-$ncek_y).' item hilang tanpa keterangan. Apakah anda yakin untuk menyelesaikan proses stock opname?');
} else {
$fform->dlg('Akhiri pemberian catatan item dan selesaikan proses stock opname?');
}
$fform->foot();
}
else if($opt=='df'){
$fmod="stocktake_note_done";
$fform=new fform($fmod,'df',$cid,'Cari siswa');
$fform->reg['title_af']='<idata>';
$fform->reg['btnlabel_d_y']=' Ya ';
$fform->reg['btnlabel_d_n']='Tidak';
$fform->yes_act='stocktake_note_done(\'d\')';
$fform->dimension(500);
$tbl=stocktake_ctable();
$ncek_y=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='N' AND note<>''"));
$ncek=mysql_num_rows(mysql_query("SELECT * FROM ".$tbl." WHERE cek='N'"));
$fform->head('Kembali ke Proses Pengecekan');
//if($ncek_y<$ncek){
// $fform->dlg(($ncek-$ncek_y).' item hilang tanpa keterangan. Apakah anda yakin untuk menyelesaikan proses stock opname?');
//} else {
$fform->dlg('Kembali ke proses pengecekan item?');
//}
$fform->foot();
}
?>
示例7: gpost
$tajar = gpost('tahunajaran');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
$q = false;
// edit
if ($aktif == 1) {
$q = mysql_query("UPDATE aka_semester SET aktif='0' WHERE tahunajaran='{$tajar}'");
if ($q) {
$q = mysql_query("UPDATE aka_semester SET aktif='1' WHERE replid='{$cid}'");
}
} else {
$q = mysql_query("UPDATE aka_semester SET aktif='0' WHERE replid='{$cid}'");
}
$fform->notif($q);
} else {
// Prepocessing form
$r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
$fform->reg['title_uf'] = 'Ubah Status Semester';
$fform->reg['btnlabel_u_y'] = ' Ya ';
$fform->reg['btnlabel_u_n'] = 'Tidak';
$fform->head();
require_once MODDIR . 'control.php';
// Add or Edit form
if ($r['aktif'] == '1') {
$fform->dlg('Non-aktifkan semester <b>' . $r['nama'] . '</b>?', $s);
hiddenval('aktif', 0);
} else {
$fform->dlg('Aktifkan semester <b>' . $r['nama'] . '</b>, dan non aktifkan semester lainnya?', $s);
hiddenval('aktif', 1);
}
$fform->foot();
}