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(); }
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(); }