Beispiel #1
0
	$xform->group_begin('Data Peminjam');
		$s='<button title="Cari" class="btn" style="margin-right:4px" onclick="sirkulasi_member_add()"><div class="bi_srcb">&nbsp;</div></button>';
		$xform->fi('Peminjam',iText('smember','','width:250px;margin-right:4px','ID atau nama member','onkeyup="sirkulasi_member_cari(event)"').$s);
		hiddenval('member_id',0);
		hiddenval('member_tipe',0);
		hiddenval('sirkulasi_form',1);
	echo '<div id="datamember" class="xrowl" style="margin-top:10px">';
	require_once(APPDIR.'sirkulasi_datamember.php');
	echo '</div>';
	
	$xform->col_begin('50%');
	$xform->set_labelw(150);
	$xform->group_begin('Periode Peminjaman');
		$xform->fi('Tanggal peminjaman',inputTanggal('tanggal1',$data['tanggal1']));
		$xform->fi('Tanggal pengembalian',inputTanggal('tanggal2',$data['tanggal2']));
	$xform->group_begin('Catatan Peminjaman',160);
	$xform->set_labelw(150);
		$xform->fi('Keterangan',iTextarea('keterangan','','width:250px',5));

$xform->table_end(0);

$xform->table_begin();
	
	$xform->col_begin(); $xform->group_unflowdiv();
	$xform->group_begin('Daftar barang yang dipinjam',160); // Grup field
	echo '<div id="data_peminjaman_buku" style="width:700px;max-height:180px;height:180px;overflow:auto">';
		require_once(APPDIR.'peminjaman_buku_tabel.php');
	echo '</div>';
	
$xform->table_end();
?>
Beispiel #2
0
 to </td></tr>
			<tr><td>&nbsp;</td><td><?php 
echo inputTanggal('tanggal2', $tgl, "hitungHari()");
?>
 ( <span id="htnghari"><?php 
echo $dif;
?>
</span> day(s) )</td></tr>
			<tr><td>&nbsp;</td><td><i>Day off remaining after take this day off: <span id="htnghari2" style="color:<?php 
echo $scuti <= 0 ? "#ff0000" : "inherit";
?>
"><?php 
echo $scuti;
?>
 day(s)</span></i></td></tr>
			<tr valign="top"><td width="100px">Note:</td><td><?php 
echo iTextarea("keterangan", "", "width:100%", 5);
?>
</td></tr>
		</table>
		<br/>
		<br/>
		<table cellspacing="0" cellpadding="3px" width="100%"><tr>
			<td align="center">
				<input type="button" class="btn" onclick="close_fform()" value="Batal"/>
				<input type="button" class="btnx" value="Simpan" onclick="emp_addcuti()"/>
			</td>
		</tr></table>
	</div>
</div>
</td></tr></table>
Beispiel #3
0
    $sx = str_replace('f', '', $opt);
    // Form dimension
    $fwidth = $opt != 'df' ? 400 : 500;
    $lwidth = 150;
    $ptop = 150;
    $rwidth = "width:" . ($fwidth - $lwidth - 18) . "px";
    // Preprocessing form
    if ($opt == 'uf' || $opt == 'df') {
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
    }
    app_form_head($mdialog[$opt]);
    if ($opt == 'af' || $opt == 'uf') {
        $okbtn = $opt == 'af' ? "Simpan" : "OK";
        $nobtn = " Batal ";
        $gd = 'true';
        // Add or Edit form
        app_form_fi(ucfirst(strtolower($idata)), iText($fmod, $r, $rwidth));
        app_form_fa('Keterangan', iTextarea('keterangan', $r, $rwidth, 3));
    } else {
        if ($opt == 'df') {
            $okbtn = "Ya";
            $nobtn = "Tidak";
            $gd = 'false';
            // Delete form
            $dcf = app_form_del_w($r[$fmod]);
            app_form_dlg($dcf);
        }
    }
    app_form_foot();
}
Beispiel #4
0
        // Add or Edit form
        ?>
			<tr><td width="100px">Publisher name:</td><td><?php 
        echo iText('name', $r['name'], $iTextFw);
        ?>
</td></tr>
			<tr valign="top"><td width="100px">Address:</td><td><?php 
        echo iTextarea('address', $r['address'], $iTextFw, 2);
        ?>
</td></tr>
			<tr><td width="100px">Phone:</td><td><?php 
        echo iText('phone', $r['phone'], $iTextFw);
        ?>
</td></tr>
			<tr valign="top"><td width="100px">Note:</td><td><?php 
        echo iTextarea('note', $r['note'], $iTextFw, 2);
        ?>
</td></tr>
		<?php 
    } else {
        if ($opt == 'df') {
            $okbtn = "Yes";
            $nobtn = "   No   ";
            $gd = 'false';
            // Delete form
            ?>
			<tr><td><p class="line150">Are you sure you want to delete "<b><?php 
            echo $r['name'];
            ?>
</b>"? All books which published by "<?php 
            echo $r['name'];
Beispiel #5
0
<td><?php 
echo iText('hinfo5', $emph['info5'], $rwidth);
?>
</td></tr>
			<tr><td>&nbsp;</td><?php 
echo tdLabel("Date of last physical examination", "", $lwidth);
?>
<td><?php 
echo iText('hinfo6', $emph['info6'], $rwidth);
?>
</td></tr>
			<tr valign="top"><td>&nbsp;</td><?php 
echo tdLabel("Have you ever been hospitalized for more than a month? If yes, please explain the circumstances", "", $lwidth);
?>
<td><?php 
echo iTextarea('hinfo7', $emph['info7'], $rwidth, 5);
?>
</td></tr>
		</table>
		<?php 
$tgi = dbSel("*", "emp_ginfo", "W/empid='{$dcid}'");
$empgi = dbFAx($tgi);
?>
		<table class="stable" cellspacing="0" cellpadding="2px" width="875px">			
			<tr><td>&nbsp;</td><td colspan="2"></td></tr> <!-- Separator -->
			<tr height="30px" valign="top"><td width="20px"><b>E.</b></td><td colspan="2"><strong>General Information</strong></td></tr><?php 
$rwidth = "width:838px";
$gilbl = array('', 'Have you ever applied for any position in this institution:', 'Do you have any friends or relatives working in this institutions (please specify):', 'Have you ever taken any work related test? What were they called (list the names/types of the test if known)? When and where were they taken:', 'Whet level would you like to teach and what level have you thaught (teachers only):', 'What are your ultimate goals professionally and what are your plans for reaching those goal:', 'Do you own a house:', 'Do you own a vehicle (please specify):', 'Do you play any musical instruments (plase specify):', 'Do you have a habit of smoking, drinking, drug abuse, or gambling:', 'Have you ever been arrested, cited, or convicted of any crime? If yes, please describe the circumstances surrounding the crime(s). Indicate the year and place in which the crime occured:', 'Are you willing to follow all our rules and procedures, icluding our morality, uniform, and Christianity guidelines:', 'Are you willing to work overtime if required:', 'When can you start:', 'Approximate salary expected:');
for ($i = 1; $i < count($gilbl); $i++) {
    ?>
			<tr><td>&nbsp;</td><td colspan="2"><?php 
Beispiel #6
0
<?php require_once(MODDIR.'fform/fform.php'); $opt=gpost('opt');$cid=gpost('cid');if($cid=='')$cid=0;

// form Module
$fmod='stocktake_note';
$dbtable=stocktake_ctable();
$fform=new fform($fmod,$opt,$cid);

$inp=app_form_gpost('note');

if($opt=='a'||$opt=='u'||$opt=='d'){ $q=false;
	$q=dbUpdate($dbtable,$inp,"replid='$cid'");
	//$fform->notif($q);
	if($q) echo nl2br($inp['note']);
	else echo "-0-";
} else {
	$r=dbSFA("*",$dbtable,"W/replid='$cid'");
	$t1=mysql_query("SELECT pus_katalog.judul FROM pus_buku LEFT JOIN pus_katalog ON pus_katalog.replid=pus_buku.katalog WHERE pus_buku.replid='".$r['buku']."' LIMIT 0,1");
	$r1=mysql_fetch_array($t1);
	
	$fform->head();
	if($opt=='af' || $opt=='uf'){ require_once(MODDIR.'control.php'); // Add or Edit form
	
		$fform->fc('Tambahkan catatan untuk item:');
		$fform->fl('Barkode',$r['barkode']);
		$fform->fl('Judul',buku_judul($r1['judul']));
		$fform->fa('Keterangan',iTextarea('note',$r['note'],$fform->rwidths,3));
	
	}
	$fform->foot();
} ?>
Beispiel #7
0
} else {
    $keluarga['tglnikah'] = '0000-00-00';
    $keluarga['kakek-nama'] = '';
    $keluarga['nenek-nama'] = '';
}
$xform->group_begin('Data Keluarga &nbsp;(opsional)');
$xform->fi('Tanggal perkawinan orang tua', inputDate('keluarga-tglnikah', $keluarga['tglnikah']));
$xform->fi('Nama Kakek', iText('keluarga-kakek-nama', $keluarga['kakek-nama'], $xform->fieldws));
$xform->fi('Nama Nenek', iText('keluarga-nenek-nama', $keluarga['nenek-nama'], $xform->fieldws));
$xform->col_begin('50%');
$xform->group_begin('Foto Siswa');
$xform->fphoto($data['replid']);
$xform->group_begin('Riwayat Kesehatan Siswa', 170);
$xform->fi('Golongan darah', iSelect('darah', goldarah_r(), $data['darah']));
$xform->fi('Penyakit yang pernah diderita', iTextarea('kesehatan', $data['kesehatan'], $xform->fieldws, 5));
$xform->fi('Catatan kesehatan', iTextarea('ketkesehatan', $data['ketkesehatan'], $xform->fieldws, 5));
if ($opt == 'uf') {
    $t = mysql_query("SELECT * FROM psb_calonsiswa_kontakdarurat WHERE calonsiswa='" . $data['replid'] . "'");
    $darurat = mysql_fetch_array($t);
} else {
    $darurat['nama'] = '';
    $darurat['hubungan'] = '';
    $darurat['telpon'] = '';
}
$xform->group_begin('Kontak Darurat (selain orang tua)');
$xform->fi('Nama', iText('kontakdarurat-nama', $darurat['nama'], $xform->fieldws));
$xform->fi('Hubungan', iText('kontakdarurat-hubungan', $darurat['hubungan'], $xform->fieldws));
$xform->fi('Nomor yang dapat dihubungi', iText('kontakdarurat-telpon', $darurat['telpon'], 'width:120px'));
if ($opt == 'uf') {
    $t = mysql_query("SELECT * FROM psb_calonsiswa_saudara WHERE calonsiswa='" . $data['replid'] . "'");
    $sesid = session_id();
Beispiel #8
0
if($opt=='a'||$opt=='u'||$opt=='d'){ $q=false;
	if($opt=='a'){ // add
		$q=dbInsert($dbtable,$inp);
	}
	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('No ID member',iText('nid',$r['nid'],$fform->rwidths));
		$fform->fi('Nama',iText('nama',$r['nama'],$fform->rwidths));
		$fform->fi('Kontak',iText('kontak',$r['kontak'],$fform->rwidths));
		$fform->fa('Alamat',iTextarea('alamat',$r['alamat'],$fform->rwidths,3));
	
	} else if($opt=='df'){ // Delete form 
	
		$fform->dlg_del($r['nama']);
		
	} $fform->foot();
} ?>
Beispiel #9
0
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
        $r = farray('judul', 'penyelenggara', 'tempat', 'tgl1', 'tgl2', 'pembicara', 'peserta', 'jenistraining');
    }
    $fform->ptop = 50;
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fi('Judul', iText('judul', $r, $fform->rwidths));
        $fform->fi('Penyelenggara', iText('penyelenggara', $r, $fform->rwidths));
        $fform->fi('Tempat', iText('tempat', $r, $fform->rwidths));
        $fform->fi('Tanggal', inputDate('tgl1', $r));
        $fform->fi('', inputDate('tgl2', $r));
        $fform->fi('Pembicara', iText('pembicara', $r, $fform->rwidths));
        $fform->fi('Jenis training', iSelect('jenistraining', jenistraining_r($a), $r));
        $fform->fa('Peserta', iTextarea('peserta', $r, $fform->rwidths, 5));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['judul']);
        }
    }
    $fform->foot();
}
exit;
?>

echo '<table cellspacing="10px" cellpadding="0" border="0" width="100%" style="border:1px solid rgba(0, 0, 0, .3);background:#fcfcff;margin-bottom:10px">';
echo '<tr valign="top">';
	echo '<td width="370px">';
		echo '<div class="sfont" style="margin-top:0px;height:24px;width:100%"><b>Data peminjam:</b></div>';
		$xform->set_fieldw(290);
		$xform->set_labelw(80);
		$s='<button title="Cari" class="btn" style="margin-right:4px" onclick="sirkulasi_peminjaman_form_member_list_open()"><div class="bi_srcb">&nbsp;</div></button>';
			$xform->fi('Peminjam',iText('smember','','width:200px;margin-right:4px','ID atau nama member','onkeyup="sirkulasi_member_cari(event)"').$s);
			//hiddenval('member_id',0);
			//hiddenval('member_tipe',0);
			//hiddenval('sirkulasi_form',1);
		echo '<div id="box_sirkulasi_peminjaman_form_member" class="xrowl" style="margin-top:10px">';
			require_once(APPDIR.'sirkulasi_peminjaman_form_member_get.php');
		echo '</div>';
	echo '</td>';
	echo '<td>';
		echo '<div class="sfont" style="float:left;margin-top:0px;height:24px;width:100%"><b>Waktu peminjaman:</b></div>';
		$xform->set_fieldw(200);
		$xform->set_labelw(150);
		$xform->fi('Tanggal peminjaman',inputTanggal('tanggal1',$data['tanggal1']));
		$xform->fi('Tanggal pengembalian',inputTanggal('tanggal2',$data['tanggal2']));
		echo '<div class="sfont" style="float:left;margin-top:10px;height:24px;width:100%"><b>Catatan peminjaman:</b></div>';
		$xform->set_fieldw(200);
		$xform->set_labelw(150);
		$xform->fi('Keterangan',iTextarea('keterangan','','width:190px',3));

	echo '</td>';
echo '</tr>';
echo '</table>';
?>
Beispiel #11
0
	<div id="fformbozf" class="fformbox" style="width:400px">
		<div class="sfont" style="text-align:center;color:#ffffff;border-radius:5px 5px 0 0;background:#6a92e5;padding:6px 0 6px 0;">
			<b>Give Reward<br/></b>
		</div>
		<div style="text-align:left;padding:15px 15px;width:370px">
			<table class="stable" cellspacing="0" cellpadding="4px" width="370px">
			<tr><td width="100px">Reward:</td><td><?php 
echo iText('rw_reward', '', "width:250px");
?>
</td></tr>
			<tr><td width="100px">By:</td><td><?php 
echo iText('rw_rewardby', '', "width:250px");
?>
</td></tr>
			<tr valign="top"><td>Description:</td><td><?php 
echo iTextarea('rw_description', '', "width:250px", 2);
?>
</td></tr>
			<tr><td>Date:</td><td><?php 
echo inputDate('rw_date', date("Y-m-d"));
?>
</td></tr>
			<tr><td>Attachment:</td><td>
				<iframe id="imgframe2" name="imgframe" scrolling="no" style="border:none;display:;height:25px;width:230px;overflow:hidden;margin:0;padding:0" src="rwform.php?name=<?php 
echo $r['fname'];
?>
"></iframe>
			</td></tr>
			</table>
			<input type="hidden" id="rw_file" value=""/>
			<table cellspacing="0" cellpadding="3px" width="370px" style="margin-top:30px"><tr>
Beispiel #12
0
			<tr><td>&nbsp;</td><td><?php 
echo inputTanggal('tanggal2', $r['date2'], "hitungHarix(" . ($scuti + $r['count']) . ")");
?>
 ( <span id="htnghari"><?php 
echo $r['count'];
?>
</span> day(s) )</td></tr>
			<tr><td>&nbsp;</td><td><i>Day off remaining after take this day off: <span id="htnghari2" style="color:<?php 
echo $scuti <= 0 ? "#ff0000" : "inherit";
?>
"><?php 
echo $scuti;
?>
 day(s)</span></i></td></tr>
			<tr valign="top"><td width="100px">Note:</td><td><?php 
echo iTextarea("keterangan", $r['note'], $s = "width:100%", $r = 5);
?>
</td></tr>
		</table>
		<br/>
		<br/>
		<table cellspacing="0" cellpadding="3px" width="100%"><tr>
			<td align="center">
				<input type="button" class="btn" onclick="close_fform()" value="Batal"/>
				<input type="button" class="btnx" value="Update" onclick="emp_updatecuti(<?php 
echo $dcid;
?>
)"/>
			</td>
		</tr></table>
	</div>
Beispiel #13
0
        }
    }
    $fform->notif($q);
} else {
    if ($opt == 'uf' || $opt == 'df') {
        // Prepocessing form
        $r = dbSFA("*", $dbtable, "W/replid='{$cid}'");
    } else {
        $r = farray('nama', 'tanggal1', 'tanggal2', 'keterangan', 'efektif');
        $r['efektif'] = 0;
    }
    $fform->ptop = 60;
    $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('Tahun ajaran',tahunajaran_name($r['tahunajaran']));
        //$fform->fi('Nama Kegiatan',iText('nama',$r['nama'],$fform->rwidths));
        $fform->fi('Tanggal', inputTanggal('tanggal1', $r['tanggal1']));
        $fform->fi('sampai', inputTanggal('tanggal2', $r['tanggal2']));
        $fform->fi('', iCheckx('efektif', 'Hari efektif', $r['efektif'], 'margin:6px 0px'));
        $fform->fa('Uraian kegiatan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 8));
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}
Beispiel #14
0
        ?>
</td></tr>
			<tr><td>Date:</td><td><?php 
        echo inputDate('date1', $r['date1']);
        ?>
 to </td></tr>
			<tr><td>&nbsp;</td><td><?php 
        echo inputDate('date2', $r['date2']);
        ?>
</td></tr>
			<tr><td>Speaker:</td><td><?php 
        echo iText('speaker', $r['speaker'], $iTextFw);
        ?>
</td></tr>
			<tr valign="top"><td>Participant:</td><td><?php 
        echo iTextarea('participant', $r['participant'], $iTextFw, 3);
        ?>
</td></tr>
			<tr><td>Certified:</td><td><label style="padding:0;margin:0"><input style="padding:0;margin:0" <?php 
        echo isCheck("Y", $r['certified']);
        ?>
 type="checkbox" id="certified" name="certified"/> Certified</label></td></tr>
			<tr><td>Attachment:</td><td>
				<iframe id="imgframe2" name="imgframe" scrolling="no" style="border:none;display:;height:25px;width:230px;overflow:hidden;margin:0;padding:0" src="trform.php?name=<?php 
        echo $r['fname'];
        ?>
"></iframe>
			</td></tr>
			<input type="hidden" id="pf_train_file" value="" />
			<input type="hidden" id="pf_train_current_file" value="<?php 
        echo $r['file'];
Beispiel #15
0
        ?>
</td></tr>
			<tr><td>Date:</td><td><?php 
        echo inputDate('date1', $r['date1']);
        ?>
 to </td></tr>
			<tr><td>&nbsp;</td><td><?php 
        echo inputDate('date2', $r['date2']);
        ?>
</td></tr>
			<tr><td>Speaker:</td><td><?php 
        echo iText('speaker', $r['speaker'], "width:400px");
        ?>
</td></tr>
			<tr valign="top"><td>Participant:</td><td><?php 
        echo iTextarea('participant', $r['participant'], "width:400px", 3);
        ?>
</td></tr>
		<?php 
    } else {
        if ($opt == 'df') {
            $okbtn = "Yes";
            $nobtn = "   No   ";
            $gd = 'false';
            // Delete form
            ?>
			<tr><td><p class="line150">Are you sure you want to delete "<b><?php 
            echo $r['title'];
            ?>
</b>"?</p></td></tr>
		<?php 
Beispiel #16
0
	<?php 
    if ($opt == 'af' || $opt == 'uf') {
        $okbtn = $opt == 'af' ? "Save" : "OK";
        $gd = 'true';
        // Add or Edit form
        ?>
		<tr><td width="100px">Publiser name:</td><td><?php 
        echo iText('name', stripslashes($r['name']), $iTextFw);
        ?>
</td></tr>
		<tr><td width="100px">Phone:</td><td><?php 
        echo iText('phone', $r['phone'], $iTextFw);
        ?>
</td></tr>
		<tr valign="top"><td width="100px">Address:</td><td><?php 
        echo iTextarea('address', $r['address'], $iTextFw, 3);
        ?>
</td></tr>
	<?php 
    } else {
        if ($opt == 'df') {
            $okbtn = "Yes";
            $nobtn = "   No   ";
            $gd = 'false';
            // Delete form
            ?>
		<tr><td><p class="line150">Are you sure you want to delete "<b><?php 
            echo $r['name'];
            ?>
</b>"?</p></td></tr>
	<?php 
Beispiel #17
0
			<tr><td width="<?php 
        echo $lwidth;
        ?>
px">Reward:</td><td><?php 
        echo iText('reward', $r['host'], $iTextFw);
        ?>
</td></tr>
			<tr><td width="<?php 
        echo $lwidth;
        ?>
px">By:</td><td><?php 
        echo iText('rewardby', $r['rewardby'], $iTextFw);
        ?>
</td></tr>
			<tr valign="top"><td>Description:</td><td><?php 
        echo iTextarea('description', $r['participant'], $iTextFw, 2);
        ?>
</td></tr>
			<tr><td>Date:</td><td><?php 
        echo inputDate('date', $r['date']);
        ?>
</td></tr>
			<tr><td>Attachment:</td><td>
				<button class="btn" onclick="pf_files('af')" style="margin-right:20px;margin-top:10px">
					<div style="background:url('<?php 
        echo IMGR;
        ?>
bi_afile.png') no-repeat;padding-left:16px">Attach a file</div>
				</button>
			</td></tr>
		<?php 
Beispiel #18
0
    $data['susut'] = 0;
    $ttl = 'Tambah';
}
$xform->title($ttl . ' data barang baru');
$xform->table_begin();
$xform->col_begin('50%');
// Kolom kiri lebar 50%
$xform->group_begin('Informasi Barang');
// Grup field
$xform->fl('Lokasi', '[' . lokasi_kode($lok) . '] ' . lokasi_name($lok));
$xform->fl('Grup barang', '[' . grup_kode($gru) . '] ' . grup_name($gru));
$xform->fi('Kode', iText('kode', $data, 'width:50px'));
$xform->fi('Nama barang', iText('nama', $data, $xform->fieldws));
$xform->fi('Jenis', iSelect('jenis', $jenis, $data));
$xform->fi('Penyusutan', iText('susut', $data, 'width:40px') . '<l>&nbsp;% per tahun</l>');
$xform->fi('Keterangan', iTextarea('keterangan', $data, $xform->fieldws, 5));
$xform->col_begin('50%');
// Kolom kanan lebar 50%
$xform->group_begin('Gambar Barang');
// Grup field
$xform->fphoto($data['replid'], 'katalog');
if ($opf == 'kat') {
    if ($xform->opt == 'uf') {
        $xform->back_act = 'katalog_form_view(' . $cid . ')';
    } else {
        $xform->back_act = 'katalog_get()';
    }
} else {
    if ($opf == 'uni') {
        if ($xform->opt == 'df') {
            $xform->back_act = 'katalog_get()';
Beispiel #19
0
        $r = app_form_gpost('departemen', 'tahunajaran', 'pegawai', 'pelajaran', 'aktif', 'keterangan');
        $r['pelajaran'] = gpost('spelajaran');
        $r['aktif'] = '1';
    }
    $fform->dimension(450);
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        //$fform->fl('Departemen',departemen_name($r['departemen']));
        //$fform->fl('Tahun ajaran',tahunajaran_name($r['tahunajaran']));
        //$fform->fi('Status',iSelect('aktif',array('1'=>'Aktif','0'=>'Tidak aktif'),$r['aktif']));
        //$fform->fa('Kode',iText('kode',$r['kode'],'width:40px'));
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fi('Mata Pelajaran', iSelect('pelajaran', pelajaran_opt(gpost('tahunajaran')), $r['pelajaran']));
        $fform->fi('Pegawai', app_form_getpegawai('pegawai', $r));
        $fform->fa('Keterangan', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
        hiddenval('aktif', 1);
    } else {
        if ($opt == 'df') {
            // Delete form
            if (0 > 0) {
                $fform->reg['dlg_del'] = 'Data <idata> masih digunakan. Apakah anda yakin untuk menghapus <idata> <data>?';
                $fform->dlg_delw($r['nama'], 'Data-data kelas dan siswa yang termasuk dalam tingkat ini juga akan dihapus. Data yang sudah dihapus tidak dapat dikembalikan.');
            } else {
                $fform->dlg_del($r['nama']);
            }
            //$fform->dlg_del($r['nilai']);
        }
    }
    $fform->foot();
}
Beispiel #20
0
            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}'");
        $r['passwd'] = '';
    } else {
        $r = farray('nama', 'keterangan', 'ufile', 'fname');
    }
    $fform->dimension(450, 120);
    $fform->head();
    if ($opt == 'af' || $opt == 'uf') {
        require_once MODDIR . 'control.php';
        // Add or Edit form
        $fform->fi('Judul', iText('nama', $r['nama'], $fform->rwidths));
        $fform->fa('Deskripsi', iTextarea('keterangan', $r['keterangan'], $fform->rwidths, 3));
        app_form_fu();
    } else {
        if ($opt == 'df') {
            // Delete form
            $fform->dlg_del($r['nama']);
        }
    }
    $fform->foot();
}