本文整理汇总了PHP中appmod_use函数的典型用法代码示例。如果您正苦于以下问题:PHP appmod_use函数的具体用法?PHP appmod_use怎么用?PHP appmod_use使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了appmod_use函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: appmod_use
<?php
appmod_use('keu/kategori', 'keu/rekening', 'psb/proses', 'psb/kelompok', 'aka/angkatan', 'aka/tahunajaran');
$fmod = 'modul';
$xtable = new xtable($fmod, 'modul pembayaran');
$kmod = gpost('kategori', 1);
$kategori = kategori_r();
// Page Selection Bar
$PSBar = new PSBar_2(140);
$PSBar->begin();
$PSBar->selection('Kategori pembayaran', iSelect('kategori', $kategori, $kmod, $PSBar->selws, $fmod . "_get()"));
$PSBar->end();
$s = '<button class="btn" title="Tambah data modul pembayaran" style="float:left;margin-right:4px" onclick="E(\'reftipe\').value=0;modul_form(\'af\')"><div class="bi_add">Modul pembayaran</div></button>';
$xtable->btnbar_f($s);
// Query
$db = new xdb("keu_modul", "*", "kategori='{$kmod}'", "nama");
$t = $db->query();
$xtable->ndata = mysql_num_rows($t);
if ($xtable->ndata > 0) {
// Table head
$xtable->head('Nama Pembayaran', 'Kode Rekening', 'Keterangan');
while ($r = mysql_fetch_array($t)) {
$xtable->row_begin();
$xtable->td($r['nama'], 300);
$s = '<b>Kas:</b> ' . rekening_name($r['rek1']);
if ($r['rek2'] != 0) {
$s .= '<br/><b>Pendapatan:</b> ' . rekening_name($r['rek2']);
}
if ($r['rek3'] != 0) {
$s .= '<br/><b>Piutang:</b> ' . rekening_name($r['rek3']);
}
示例2: appmod_use
<?php
appmod_use('aka/siswa', 'aka/kelas', 'aka/pelajaran', 'aka/rapor');
$opt = gpost('opt');
$cid = gpost('cid', 0);
/* Load App libraries */
require_once DBFILE;
require_once LIBDIR . 'common.php';
require_once MODDIR . 'date.php';
$dept = gpost('departemen');
$departemen = departemen_r($dept);
$proses = proses_r($pros, $dept);
// cell($a,$w=0,$c=1,$r=1,$al='',$b=-1,$bg='',$s='',$atr='')
$pros = gpost('proses');
$query = mysql_query("SELECT aka_mutasi.tanggal,aka_mutasi.departemen, aka_mutasi.keterangan, aka_siswa.nisn,aka_siswa.nama, aka_jenismutasi.nama as njenis \n\t\t\t\t\t\t\tFROM aka_mutasi\n\t\t\t\t\t\t\tJOIN aka_siswa ON aka_siswa.replid=aka_mutasi.replid\n JOIN aka_jenismutasi ON aka_jenismutasi.replid=aka_mutasi.replid\n WHERE aka_mutasi.departemen='{$dept}'");
$token = doc_decrypt($token);
$doc = new doc();
$doc->dochead("Laporan Mutasi Siswa " . gets('kelompok'), 7);
$doc->nl();
$doc->row_blank(7);
//$t=dbQSql($token);
$no = 1;
$doc->head('No{C}', '@Tanggal', '@NISN', '@Angkatan', '@Nama', '@Jenis Mutasi', '@Keterangan');
while ($r = mysql_fetch_array($query)) {
$doc->nl();
$doc->cell($no++, 20, 'c');
$doc->cell(fftgl($r['tanggal']), 80);
$doc->cell($r['nisn'], 30);
$doc->cell($r['siswa'], 80);
$doc->cell($r['njenis'], 50);
$doc->cell($r['keterangan'], 50);
示例3: gpost
<?php
require_once MODDIR . 'fform/fform.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('aka/tahunajaran', 'aka/pelajaran');
// form Module
$fmod = 'guru';
$dbtable = 'aka_guru';
$fform = new fform($fmod, $opt, $cid);
$inp = app_form_gpost('tahunajaran', 'pegawai', 'pelajaran', 'aktif', 'keterangan');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
//db operation : add , update, delete
$q = false;
if ($opt == 'a') {
// add
$q = dbInsert($dbtable, $inp);
$y = mysql_query("SELECT * FROM admin WHERE pegawai='" . $inp['pegawai'] . "'");
// $y=mysql_query("SELECT * FROM admin WHERE pegawai='".$inp['pegawai']."'");
if (mysql_num_rows($y) == 0) {
$y = mysql_query("SELECT hrd_pegawai.nip,hrd_pegawai.nama FROM hrd_pegawai WHERE hrd_pegawai.replid='" . $inp['pegawai'] . "'");
$u = mysql_fetch_array($y);
$q = mysql_query("INSERT INTO admin SET app='gur', nama='" . $u['nama'] . "', uname='" . $u['nip'] . "', passwd='" . md5('admin') . "', pegawai='" . $inp['pegawai'] . "', level='2'");
}
} else {
if ($opt == 'u') {
// edit
$q = dbUpdate($dbtable, $inp, "replid='{$cid}'");
示例4: gpost
<?php
require_once MODDIR . 'fform/fform.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('keu/inventory');
// form Module
$fmod = "inventory_brg";
$dbtable = "keu_brg";
$fform = new fform($fmod, $opt, $cid, 'barang');
$inp = app_form_gpost('kelompokbrg', 'kode', 'nama', 'tanggal', 'unit', 'satuan', 'keterangan');
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);
示例5: gpost
<?php
require_once MODDIR . 'fform/fform.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('aka/jenismutasi');
// form Module
$fmod = 'mutasi';
$dbtable = 'aka_mutasi';
$fform = new fform($fmod, $opt, $cid);
$inp = app_form_gpost('jenismutasi', 'siswa', 'tanggal', 'keterangan');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
$q = false;
if ($opt == 'a') {
// add
$q = dbInsert($dbtable, $inp);
$q = dbQSql("UPDATE aka_siswa SET aktif='3' WHERE replid='" . $inp['siswa'] . "'");
} else {
if ($opt == 'u') {
// edit
$q = dbUpdate($dbtable, $inp, "siswa='{$cid}'");
} else {
if ($opt == 'd') {
// delete
$q = dbDel($dbtable, "siswa='{$cid}'");
$q = dbQSql("UPDATE aka_siswa SET aktif='1' WHERE replid='{$cid}'");
}
}
示例6: appmod_use
<?php
appmod_use('aka/tahunajaran', 'aka/guru', 'aka/presensi');
$opt = gpost('opt');
$cid = gpost('cid', 0);
$fmod = 'presensiguru';
$xtable = new xtable($fmod, 'presensi');
$xtable->noopt = true;
$xtable->search_keyon('nama=>hrd_pegawai.nama:LIKE-0');
$dept = gpost('departemen');
$departemen = departemen_r($dept);
if (count($departemen) > 0) {
$tajar = gpost('tahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
$tanggal = gpost('tanggal');
if ($tanggal == '') {
$tanggal = date("Y-m-d");
}
$tgl = explode("-", $tanggal);
$dim = cal_days_in_month(CAL_GREGORIAN, intval($tgl[1]), intval($tgl[0]));
$tgl_f = $tgl[0] . "-" . $tgl[1] . "-1";
$tgl_c = date("Y-m-d");
$tgl_l = $tgl[0] . "-" . $tgl[1] . "-" . $dim;
$tgl_cm = $tgl[0] . "-" . $tgl[1] . "-";
$t0 = date('Y-m-d', strtotime('- 1 day', strtotime($tanggal)));
$t1 = date('Y-m-d', strtotime('+ 1 day', strtotime($tanggal)));
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
示例7: appmod_use
<?php
appmod_use('keu/rekening');
$tahunbuku = tahunbuku_getaktifid();
$fmod = 'transaksi';
$xtable = new xtable($fmod);
$xtable->row_strip = false;
//$xtable->search_keyon('nama=>aka_siswa.nama:LIKE|aka_siswa.nis:EQ-0,1');
$xtable->search_keyon('cari=>keu_transaksi.nomer:EQ|keu_transaksi.uraian:LIKE-1,2');
$xtable->pageorder = "keu_transaksi.tanggal,keu_transaksi.ct";
$tanggal1 = gpost('tanggal1', date("Y-m") . "-1");
$tgl = explode("-", date("Y-m-d"));
$dim = cal_days_in_month(CAL_GREGORIAN, intval($tgl[1]), intval($tgl[0]));
$tanggal2 = gpost('tanggal2', date("Y-m") . "-" . $dim);
$ct_jurnaldetil = gpost('ct_jurnaldetil', 1);
$ct_umum = gpost('ct_umum', 1);
$ct_pemasukan = gpost('ct_pemasukan', 1);
$ct_pengeluaran = gpost('ct_pengeluaran', 1);
$ct_siswa = gpost('ct_siswa', 1);
$ct_calonsiswa = gpost('ct_calonsiswa', 1);
$ct_barang = gpost('ct_barang', 1);
$w = "";
$sel = 0;
if ($ct_umum != 0) {
if ($w != "") {
$w .= " OR ";
}
$w .= "keu_transaksi.jenis='" . JT_UMUM . "'";
$sel++;
}
if ($ct_pemasukan != 0) {
示例8: appmod_use
<?php
appmod_use('aka/guru', 'aka/tingkat', 'aka/siswa');
$gid = guru_SID();
$opt = gpost('opt');
$fmod = 'daftarnilai';
$xtable = new xtable($fmod, 'penilaian');
//$xtable->pageorder="aka_penilaian.replid";
$xtable->tbl_width = '800px';
$xtable->noopt = true;
$xtable->disabletextselection();
$pel = gpost('pelajaran');
$pelajaran = guru_pelajaran_r($pel);
$kls = gpost('kelas');
$kelas = guru_kelas_r($kls);
$peni = gpost('penilaian');
$penilaian = guru_penilaian_r($peni, $pel, $kls);
$t = mysql_query("SELECT * FROM aka_penilaian WHERE replid='{$peni}' LIMIT 0,1");
$dpeni = mysql_fetch_array($t);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
if (count($pelajaran) > 0) {
$PSBar->selection('Pelajaran', iSelect('pelajaran', $pelajaran, $pel, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('pelajaran', $pel);
hiddenval('kelas', $kel);
hiddenval('penilaian', $peni);
echo '<div class="warnbox" style="float:left">Tidak ada pelajaran yang diajar.</div>';
$PSBar->pass = false;
示例9: gpost
<?php
require_once MODDIR . 'fform/fform.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('keu/kategori', 'keu/rekening', 'aka/angkatan', 'aka/tahunajaran', 'aka/siswa');
// form Module
$fmod = 'modul';
$dbtable = 'keu_modul';
$fform = new fform($fmod, $opt, $cid, 'Modul pembayaran');
$inp = app_form_gpost('kategori', 'reftipe', 'refid', 'nama', 'rek1', 'rek2', 'rek3', 'keterangan', 'nominal', 'cicilan');
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
$q = false;
if ($opt == 'a') {
// add
$q = dbInsert($dbtable, $inp);
if ($q) {
$modid = mysql_insert_id();
$refid = $inp['refid'];
$pemb = array('modul' => $modid, 'siswa' => 0, 'nominal' => 0, 'cicilan' => 0);
if ($inp['reftipe'] == RT_USP) {
$piut = 0;
// Set pembayaran uang pangkal
$t = mysql_query("SELECT aka_siswa.replid,aka_siswa.sumnet,aka_siswa.angsuran FROM aka_siswa WHERE aka_siswa.angkatan='{$refid}'");
while ($r = mysql_fetch_array($t)) {
$pemb['siswa'] = $r['replid'];
$pemb['nominal'] = $r['sumnet'];
$pemb['cicilan'] = $r['angsuran'];
示例10: require_once
<?php require_once(MODDIR.'xform/xform.php'); require_once(MODDIR.'control.php');
appmod_use('aka/siswa');
$opt=gpost('opt'); $cid=gpost('cid',0); $mtipe=gpost('mtipe',0);
hiddenval('member_id',$cid);
hiddenval('member_tipe',$mtipe);
$fmod='sirkulasi_peminjaman_form_member_get';
$xform=new xform($fmod);
if($mtipe!=0){
$lbls='float:left;width:80px;margin-right:4px';
$fs='float:left;width:150px;margin-right:4px';
echo '<div style="float:left;margin-right:6px;width:62px;height:92px;margin-top:2px">';
$xform->photof($cid.'-'.$mtipe,'member',60,90,'h');
echo '</div>';
echo '<div style="float:left;width:280px">';
if($mtipe==1){
$db=siswa_db_byID($cid);
$t=$db->go();
$r=mysql_fetch_array($t);
echo '<div class="xrowl">';
echo '<div class="sfont" style="font-size:14px;float:left:margin-right:4px;width:324px"><b>'.$r['nama'].'</b></div>';
echo '</div>';
echo '<div class="xrowl">';
echo '<div class="sfont" style="'.$lbls.'">ID member:</div>';
echo '<div class="sfont" style="'.$fs.'">'.$r['nis'].'</div>';
echo '</div>';
echo '<div class="xrowl">';
示例11: appmod_use
<?php
appmod_use('aka/pelajaran', 'aka/tahunajaran', 'aka/tingkat', 'aka/kelas', 'aka/siswa');
$gid = guru_pegawaiId();
$fmod = 'penilaian';
$xtable = new xtable($fmod);
$dept = gpost('departemen');
$departemen = departemen_r($dept);
if (count($departemen) > 0) {
$tajar = gpost('tahunajaran');
$tahunajaran = tahunajaran_r($tajar, $dept);
$ting = gpost('tingkat');
$tingkat = tingkat_r($ting, $dept);
$kel = gpost('kelas');
$kelas = kelas_r($kel, $ting);
$pel = gpost('pelajaran');
$pelajaran = pelajaran_r_pegawai($pel, $gid);
// Query
$db = siswa_db_bykelas($kel);
$t = $db->query();
// echo "SELECT aka_guru.*,hrd_pegawai.nip,hrd_pegawai.nama FROM aka_guru LEFT JOIN hrd_pegawai ON aka_guru.pegawai=hrd_pegawai.replid WHERE aka_guru.pelajaran='$pel' ORDER BY hrd_pegawai.nama";
$xtable->ndata = mysql_num_rows($t);
// Page Selection Bar
$PSBar = new PSBar_2();
$PSBar->begin();
$PSBar->selection_departemen($fmod, $dept);
if (count($tahunajaran) > 0) {
$PSBar->selection('Tahun ajaran', iSelect('tahunajaran', $tahunajaran, $tajar, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('tahunajaran', $tajar);
示例12: gpost
<?php
require_once MODDIR . 'fform/fform.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('aka/semester', 'aka/tingkat', 'aka/tahunajaran', 'aka/pelajaran');
// form Module
$fmod = 'rpp';
$dbtable = 'aka_rpp';
$fform = new fform($fmod, $opt, $cid, '!RPP');
$guru = guru_SID();
$pel = gpost('pelajaran');
$ting = gpost('tingkat');
$unit = gpost('unit');
$deskripsi = gpost('deskripsi');
if ($opt == 'a' || $opt == 'u' || $opt == 'd' || $opt == 'm') {
$q = false;
if ($opt == 'a') {
// add
$q = dbInsert($dbtable, $inp);
$q = mysql_query("INSERT INTO aka_rpp SET guru='{$guru}',pelajaran='{$pel}',tingkat='{$ting}',unit='{$unit}',deskripsi='{$deskripsi}'");
} else {
if ($opt == 'u') {
// edit
$q = mysql_query("UPDATE aka_rpp SET unit='{$unit}',deskripsi='{$deskripsi}' WHERE replid='{$cid}'");
} else {
if ($opt == 'd') {
// delete
示例13: appmod_use
<?php
appmod_use('sar');
$spage = gpost('spage');
if ($spage == 'katalog') {
require_once VWDIR . 'inventory_katalog.php';
} else {
if ($spage == 'katalog_unit') {
require_once VWDIR . 'inventory_katalog_unit.php';
} else {
$fmod = 'inventaris';
$lok = gpost('lokasi');
$lokasi = lokasi_r($lok);
$PSBar = new PSBar_2();
// Page selection bar
$PSBar->begin();
if (count($lokasi) > 0) {
$PSBar->selection('lokasi', iSelect('lokasi', $lokasi, $lok, $PSBar->selws, $fmod . "_get()"));
} else {
$PSBar->end();
hiddenval('lokasi', $lok);
lokasi_warn();
exit;
}
$PSBar->end();
// xtable Query
$xtable = new xtable($fmod, 'Grup barang');
$db = new xdb("sar_grup", "", "lokasi='{$lok}'");
$t = $xtable->use_db($db, $xtable->pageorder_sql('kode', 'nama'));
$xtable->btnbar_begin();
//$xtable->btnbar_add();
示例14: appmod_use
<?php
require_once MODDIR . 'xform/xform.php';
require_once MODDIR . 'control.php';
appmod_use('hrd/status');
$opt = gpost('opt');
$cid = gpost('cid', 0);
$fmod = 'pegawai';
$xform = new xform($fmod, $opt, $cid);
$status = status_opt();
if ($opt == 'uf') {
// Nilai field editan
$t = mysql_query("SELECT * FROM hrd_pegawai WHERE replid='{$cid}' LIMIT 0,1");
$data = mysql_fetch_array($t);
$ttl = 'Edit';
} else {
// Nilai field default
$data = array();
//$data['halaman']=1;
//$data['pengarang']='-';
//$data['tahunterbit']=date("Y");
$ttl = 'Tambah';
}
$xform->title($ttl . ' Data Pagawai');
$xform->table_begin();
$xform->col_begin();
//$xform->set_fieldw(280);
$xform->group_begin('Data Pribadi');
$xform->fi('NIP', iText('nip', $data['nip'], $xform->fieldws));
$xform->fi('Nama', iText('nama', $data['nama'], $xform->fieldws));
$xform->fi('Tempat lahir', iText('tmplahir', $data['tmplahir'], $xform->fieldws));
示例15: session_start
<?php
session_start();
require_once MODDIR . 'fform/fform.php';
require_once MODDIR . 'xtable/xtable.php';
$opt = gpost('opt');
$cid = gpost('cid');
if ($cid == '') {
$cid = 0;
}
appmod_use('keu/rekening', 'keu/budget');
require_once MODDIR . 'control.php';
$sesid = session_id();
// form Module
$fmod = "transaksi";
$dbtable = "keu_transaksi";
$fform = new fform($fmod, $opt, $cid);
if ($opt == 'a' || $opt == 'u' || $opt == 'd') {
//add, update, delete
$q = false;
if ($opt == 'a') {
// add
$jt = gpost('trans_jenis');
$no = gpost('trans_nomer');
$nobukti = gpost('trans_nobukti');
$ct = gpost('trans_ct');
$tgl = gpost('trans_tanggal');
$bud = gpost('budget');
if ($jt == JT_UMUM) {
$urai = gpost('uraian');
$jur = array();