appmod_use('aka/tahunajaran', 'aka/tingkat', 'aka/kelas', 'aka/siswa');
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
    $cid = 0;
}
$fmod = 'pendataan_saudara_siswa';
$fform = new fform($fmod);
$fform->fformid = '2';
$fform->reg['title_af'] = '<idata>';
$fform->reg['btnlabel_no'] = 'Tutup';
$fform->dimension(500);
$fform->ptop = 50;
$fform->head('Pilih Siswa');
//>>
$fform->box_begin();
$xtable = new xtable($fmod, 'siswa');
$xtable->search_keyon('nama=>aka_siswa.nama:LIKE-1', 'nis=>aka_siswa.nis:EQ-0');
$xtable->search_box_pos('l', '200px');
$dept = gpost('psdepartemen');
$departemen = departemen_r($dept);
$tajar = gpost('pstahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
$ting = gpost('pstingkat');
$tingkat = tingkat_r($ting, $dept);
$kls = gpost('pskelas');
$kelas = kelas_r($kls, $ting, 0, 1);
$PSBar = new PSBar_2(100);
$PSBar->begin();
$PSBar->selection('Departemen', iSelect('psdepartemen', $departemen, $dept, $PSBar->selws, $fmod . '_get()'));
if (count($tahunajaran) > 0) {