本文整理汇总了PHP中TampilkanTahunProdiProgram函数的典型用法代码示例。如果您正苦于以下问题:PHP TampilkanTahunProdiProgram函数的具体用法?PHP TampilkanTahunProdiProgram怎么用?PHP TampilkanTahunProdiProgram使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TampilkanTahunProdiProgram函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
$prodi = $w['ProdiID'];
} elseif ($prodi != $w['ProdiID']) {
$prodi = $w['ProdiID'];
if ($first == 0) {
fwrite($f, $div);
}
fwrite($f, chr(12));
fwrite($f, Headerxx($_SESSION['tahun'], $_prodi, $div, $maxcol, $hal));
$brs = 0;
$n = 1;
}
$isi = str_pad($n . '.', 5) . str_pad($w['PMBID'], 12) . str_pad($w['NIM'], 12) . str_pad($w['Nama'], 35) . str_pad($w['PRG'], 12) . str_pad($w['STT'], 10) . $_lf;
fwrite($f, $isi);
}
fwrite($f, $div);
//fwrite($f, str_pad('Halaman : '.$hal."/".$jumhal,10,' ').$_lf);
fwrite($f, str_pad("Dicetak oleh : " . $_SESSION['_Login'], 20, ' ') . str_pad("Dicetak Tgl : " . date("d-m-Y H:i"), 70, ' ', STR_PAD_LEFT) . $_lf . $_lf);
fwrite($f, str_pad("Akhir laporan", 90, ' ', STR_PAD_LEFT));
fwrite($f, chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, "baa.lap");
}
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$tahun = GetSetVar('tahun');
TampilkanJudul("Laporan Jumlah Mahasiswa Generate NIM");
TampilkanTahunProdiProgram('baa.lap.jumlahmhswnim', 'Daftar');
Daftar();
?>
示例2: fwrite
fwrite($f, str_pad("Hal. : " . $hal . '/' . $jumhal, $maxcol, ' ', STR_PAD_LEFT) . $_lf);
$hal++;
$brs = 1;
fwrite($f, chr(12) . $_lf);
fwrite($f, $hdr);
}
$smtaktif = GetaField('khs', "StatusMhswID in ('A', 'T', 'W') and MhswID", $w['MhswID'], "max(TahunID)");
//echo $smtaktif;
$isi = str_pad($n . '.', 4, ' ') . ' ' . str_pad($w['MhswID'], 12) . ' ' . str_pad($w['Nama'], 30) . ' ' . str_pad($w['TotalSKS'], 3, ' ', STR_PAD_LEFT) . ' ' . str_pad($w['IPK'], 5, ' ', STR_PAD_LEFT) . ' ' . str_pad($w['BatasStudi'], 6) . ' ' . str_pad($smtaktif, 6) . ' ' . str_pad($w['Telepon'], 20) . $_lf . str_pad(' ', 72, ' ') . ' ' . str_pad($w['Alamat'] . ', ' . $w['Kota'], 30);
fwrite($f, $isi . $_lf);
}
fwrite($f, $div);
fwrite($f, str_pad("Hal. : " . $hal . '/' . $jumhal, $maxcol, ' ', STR_PAD_LEFT) . $_lf);
fwrite($f, $_lf . $_lf . str_pad('Dicetak oleh : ' . $_SESSION['_Login'], 85, ' ') . str_pad('Dibuat : ' . date("d-m-Y H:i"), 29, ' '));
fwrite($f, chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, "akd.lap");
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$DariNPM = GetSetVar('DariNPM');
$SampaiNPM = GetSetVar('SampaiNPM');
// *** Main ***
TampilkanJudul("Daftar Mahasiswa Bolos KRS");
//TampilkanTahunProdiProgram('akd.lap.krsmhswbolos', 'Daftar');
TampilkanTahunProdiProgram('akd.lap.krsmhswbolos', 'Daftar', '', '', 1);
if (!empty($tahun) && !empty($prid) && !empty($prodi)) {
Daftar();
}
示例3: _query
$r = _query($s);
//update KRSTEMP
$s1 = "update krstemp\r\n\t\t\t\tset JadwalID={$Ke_Kelas}, Catatan='Pindah Jadwal dari {$jid}', LoginEdit='{$_SESSION['_Login']}', TanggalEdit=now()\r\n\t\t\t\twhere KRSID={$krsid}";
$r1 = _query($s1);
//update Jadwal
$s0 = "update jadwal\r\n\t\t\t\tset JumlahMhsw=JumlahMhsw-1 where JadwalID = '{$Ke_kelas}'";
$r0 = _query($s0);
}
}
HitungJumlahMhsw($jid);
HitungJumlahMhsw($Ke_Kelas);
echo Konfirmasi("Telah Dipindahkan", "Sebanyak <font size=+1>{$n}</font> mhsw telah dipindah kelasnya.\r\n <hr size=1 color=silver>\r\n Option: <a href='?mnux=koreksikelas'>Kembali</a>");
}
function HitungJumlahMhsw($jid)
{
$mhswkrs = GetaField('krstemp', 'JadwalID', $jid, "count(KRSID)") + 0;
$mhsw = GetaField('krs', 'JadwalID', $jid, "count(KRSID)") + 0;
$s = "update jadwal set JumlahMhsw = '{$mhsw}', JumlahMhswKRS = '{$mhswkrs}' where JadwalID = '{$jid}' ";
$r = _query($s);
}
// *** Parameters ***
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$tahun = GetSetVar('tahun');
$gos = empty($_REQUEST['gos']) ? 'DftrJdwl' : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Koreksi Kelas");
TampilkanTahunProdiProgram('koreksikelas', '');
if (!empty($prid) && !empty($prodi)) {
$gos();
}
示例4: fwrite
//fwrite($f, str_pad('Halaman : '.$hal."/".$jumhal,10,' ').$_lf);
fwrite($f, str_pad('Dicetak oleh : ' . $_SESSION['_Login'], 55, ' ') . str_pad('Dibuat : ' . date("d-m-Y H:i"), 29, ' '));
fwrite($f, chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, "akd.lap");
}
function HeaderKRS($tahun, $_prid, $_prodi, $div, $maxcol, &$hal, $RentangNPM = '')
{
global $_lf;
$RentangNPM = !empty($RentangNPM) ? $RentangNPM . $_lf : '';
$hdr = str_pad("** Daftar Mahasiswa Terdaftar KRS " . NamaTahun($_SESSION['tahun']) . " Tidak Cetak KSS **", $maxcol, ' ', STR_PAD_BOTH) . $_lf . $_lf;
$hdr .= "Program : {$_prid}" . $_lf;
$hdr .= "Prodi : {$_prodi}" . $_lf;
$hdr .= $RentangNPM;
$hdr .= $div;
$hdr .= "No. NPM Nama Ambil SKS IPK Batas Studi" . $_lf . $div;
return $hdr;
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$DariNPM = GetSetVar('DariNPM');
$SampaiNPM = GetSetVar('SampaiNPM');
// *** Main ***
TampilkanJudul("Daftar Mahasiswa Terdaftar KRS Tidak Cetak KSS");
//TampilkanPilihanProdiAngkatan('akd.lap.dftrkrsmhswtidakkss', 'Daftar');
TampilkanTahunProdiProgram('akd.lap.dftrkrsmhswtidakkss', 'DftrAkdLapKRSMhsw', '', '', 1);
if (!empty($tahun)) {
Daftar();
}
示例5: TampilkanUrutkanJadwal
TampilkanUrutkanJadwal('jadwal.final', 'TampilkanFinal');
$urut = '';
for ($i = 0; $i < sizeof($arrUrutkanJadwal); $i++) {
$k = explode('~', $arrUrutkanJadwal[$i]);
if ($k[0] == $_SESSION['UrutkanJadwal']) {
$urut = $k[1];
}
}
$s = "select j.*, \r\n concat(d.Nama, ', ', d.Gelar) as DSN, concat(d.Telephone, ', ', d.Handphone) as TELP\r\n from jadwal j\r\n left outer join dosen d on j.DosenID=d.Login\r\n where j.TahunID='{$_SESSION['tahun']}'\r\n and INSTR(j.ProdiID, '.{$_SESSION['prodi']}.') > 0\r\n order by {$urut}";
$r = _query($s);
$n = 0;
echo "<p><table class=box cellspacing=1 cellpadding=1>\r\n <tr><th class=ttl>#</th>\r\n <th class=ttl>Kode</th>\r\n <th class=ttl>Matakuliah</th>\r\n <th class=ttl>Kelas</th>\r\n <th class=ttl>Jenis</th>\r\n <th class=ttl>Program</th>\r\n <th class=ttl>Dosen</th>\r\n <th class=ttl>Final</th>\r\n </tr>";
while ($w = _fetch_array($r)) {
$n++;
$c = $w['Final'] == 'Y' ? "class=inp1" : "class=ul";
echo "<tr><td class=inp>{$n}</td>\r\n <td {$c}>{$w['MKKode']}</td>\r\n <td {$c}>{$w['Nama']}</td>\r\n <td {$c}>{$w['NamaKelas']}</td>\r\n <td {$c}>{$w['JenisJadwalID']}</td>\r\n <td {$c}>{$w['ProgramID']}</td>\r\n <td {$c}><abbr title='Telp: {$w['TELP']}'>{$w['DSN']}</abbr></td>\r\n <td {$c} align=center><img src='img/book{$w['Final']}.gif'></td>\r\n </tr>";
}
echo "</table></p>";
}
// *** Parameters ***
$UrutkanJadwal = GetSetVar('UrutkanJadwal', 'Kode');
$tahun = GetSetVar('tahun');
$prid = GetSetVar('prid');
$prodi = GetSetVar('prodi');
$gos = empty($_REQUEST['gos']) ? "TampilkanFinal" : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Inquiry Nilai yg Telah Difinalisasi");
TampilkanTahunProdiProgram("jadwal.final", "TampilkanFinal");
if (!empty($_REQUEST['gos']) && !empty($tahun) && !empty($prodi)) {
$_REQUEST['gos']();
}
示例6: GetaField
$hr = $w['HariID'];
$_hr = GetaField('hari', 'HariID', $w['HariID'], 'Nama');
echo "<tr><td class=ul colspan=8><b>{$_hr}</b></td></tr>";
echo $hdr;
}
$AssistenDosen = GetAssistenDosen($w['JadwalID']);
echo "<tr>\n <td class=inp>{$w['JadwalID']}</td>\n <td class=ul>{$w['JM']}~{$w['JS']}</td>\n <td class=ul>{$w['RuangID']} </td>\n <td class=ul>{$w['MKKode']}</td>\n <td class=ul>{$w['Nama']}</td>\n <td class=ul>{$w['NamaKelas']}</td>\n <td class=ul>{$w['JenisJadwalID']}</td>\n <td class=ul align=right>{$w['JumlahMhsw']}</td>\n <td class=ul align=right>{$w['SKS']}</td>\n <td class=ul>{$w['DSN']}</td>\n <td class=ul>{$AssistenDosen} </td>\n </tr>";
}
echo "</table></p>";
}
function GetAssistenDosen($jdwlid)
{
$s = "select jd.JadwalDosenID, d.Nama as DSN\n from jadwaldosen jd\n left outer join dosen d on jd.DosenID=d.Login\n where jd.JadwalID={$jdwlid}\n order by d.Nama";
$r = _query($s);
$a = array();
while ($w = _fetch_array($r)) {
$a[] = "{$w['DSN']}";
}
return implode(', ', $a);
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$gos = empty($_REQUEST['gos']) ? "DaftarJadwal" : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Jadwal Kuliah");
TampilkanTahunProdiProgram('inq.jadwal');
if (!empty($tahun) && !empty($prid) && !empty($prodi)) {
$gos();
}
示例7: _query
$s = "select TahunID from khs where MhswID='{$mhswid}' and StatusMhswID='C' order by TahunID";
$r = _query($s);
$arr = array();
while ($w = _fetch_array($r)) {
$arr[] = $w['TahunID'];
}
return implode(' ', $arr);
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$dsnid = GetSetVar('dsnid');
$DariNPM = GetSetVar('DariNPM');
$SampaiNPM = GetSetVar('SampaiNPM');
// Cek filter status mhsw
$StatusMhsw = $_REQUEST['StatusMhswID'];
if (empty($StatusMhsw)) {
$_SESSION['StatusMhswID'] = '';
} else {
$StatusMhswID = implode(',', $StatusMhsw);
$_SESSION['StatusMHswID'] = $StatusMhswID;
}
// *** Main ***
TampilkanJudul("Daftar Dosen Pembimbing & Mahasiswa");
//TampilkanTahunProdiProgram('akd.lap.pamhsw');
TampilkanTahunProdiProgram('akd.lap.pamhsw', 'Daftar', '', '', 1);
TampilkanPilihanDosen('akd.lap.pamhsw');
if (!empty($tahun) && !empty($prodi)) {
TampilkanPA();
}
示例8: number_format
$tot += $hut == -1 ? $w['BAL'] : $w['LBH'];
$_bal = $hut == -1 ? $w['BAL'] : $w['LBH'];
$bal = number_format($_bal);
fwrite($f, str_pad($n, 5) . str_pad($w['MhswID'], 12) . str_pad($w['Nama'], 32) . str_pad($w['JumlahMK'], 5, ' ', STR_PAD_LEFT) . str_pad($w['TotalSKS'], 5, ' ', STR_PAD_LEFT) . str_pad($w['StatusMhswID'], 7, ' ', STR_PAD_LEFT) . str_pad($TOTSS, 17, ' ', STR_PAD_LEFT) . $_lf);
}
}
}
$_tot = number_format($tot);
fwrite($f, $grs);
fwrite($f, str_pad("Total {$strtotal} : ", 68, ' ', STR_PAD_LEFT) . str_pad($_tot, 15, ' ', STR_PAD_LEFT) . $_lf);
fwrite($f, $grs);
fwrite($f, str_pad("Dicetak Oleh : {$_SESSION['_Login']}, " . date("d-m-Y H:i"), 60) . str_pad("Akhir Laporan", 100) . $_lf);
fwrite($f, chr(27) . chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, 'keu.lap');
}
// *** Parameters ***
$DariNPM = GetSetVar('DariNPM');
$SampaiNPM = GetSetVar('SampaiNPM');
$hut = GetSetVar('hut', -1);
$prid = GetSetVar('prid');
$prodi = GetSetVar('prodi');
$tahun = GetSetVar('tahun');
$status = GetSetVar('status', 'A');
// *** Main ***
TampilkanJudul("Daftar Mahasiswa yang Berhutang/Lebih Bayar");
TampilkanTahunProdiProgram('keu.lap.mhswhutang', '', '', '', 1);
TampilkanStatus();
if (!empty($tahun)) {
TampilkanLaporan();
}
示例9: fwrite
$hal++;
$brs = 1;
fwrite($f, chr(12) . $_lf);
fwrite($f, $hdr);
}
$w['Alamat'] = str_replace(chr(13), ' ', $w['Alamat']);
$w['Alamat'] = str_replace(chr(10), '', $w['Alamat']);
$isi = str_pad($n . '.', 4, ' ') . ' ' . str_pad($w['MhswID'], 12) . ' ' . str_pad($w['Nama'], 25) . ' ' . str_pad($w['ASEK'], 30, ' ') . ' ' . str_pad($w['Telepon'], 15) . ' ' . str_pad($w['Alamat'], 60, ' ') . str_pad($w['RT'] . '/' . $w['RW'], 14, ' ') . str_pad($w['KodePos'], 12, ' ') . str_pad($w['Kota'], 8, ' ') . $_lf;
fwrite($f, $isi);
}
fwrite($f, $div);
fwrite($f, str_pad('Halaman : ' . $hal . "/" . $jumhal, 10, ' ') . $_lf);
fwrite($f, str_pad("Akhir laporan", 114, ' ', STR_PAD_LEFT) . $_lf);
fwrite($f, str_pad("Dicetak oleh : " . $_SESSION['_Login'], 87, ' ') . str_pad("Dicetak : " . date("d-m-Y H:i"), 27, ' ') . $_lf);
fwrite($f, chr(12) . $_lf);
fclose($f);
TampilkanFileDWOPRN($nmf, "akd.lap");
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$DariNPM = GetSetVar('DariNPM');
$SampaiNPM = GetSetVar('SampaiNPM');
// *** Main ***
TampilkanJudul("Daftar Mahasiswa");
//TampilkanTahunProdiProgram('akd.lap.mhswakd', 'Daftar');
TampilkanTahunProdiProgram('akd.lap.mhswakd', "Daftar", 'status', $_REQUEST['status'], 1);
if (!empty($tahun)) {
Daftar();
}
示例10: sqling
$Email = sqling($_REQUEST['Handphone']);
$AsalPT = $_REQUEST['AsalPT'];
$ProdiAsalPT = sqling($_REQUEST['ProdiAsalPT']);
$MhswIDAsalPT = sqling($_REQUEST['MhswIDAsalPT']);
$IPKAsalPT = $_REQUEST['IPKAsalPT'] + 0;
$MhswIDAsalPT = sqling($_REQUEST['MhswIDAsalPT']);
$TglSKPenyetaraan = "{$_REQUEST['TglSKPenyetaraan_y']}-{$_REQUEST['TglSKPenyetaraan_m']}-{$_REQUEST['TglSKPenyetaraan_d']}";
$SKPenyetaraan = sqling($_REQUEST['SKPenyetaraan']);
if ($md == 0) {
$s = "update mhswpindahan set Nama='{$Nama}', MhswID='{$MhswID}', BatasStudi='{$BatasStudi}', Alamat='{$Alamat}', Kota='{$Kota}',\n RT='{$RT}', RW='{$RW}', KodePos='{$KodePos}', Propinsi='{$Propinsi}', Negara='{$Negara}',\n Telepon='{$Telepon}', Handphone='{$Handphone}', Email='{$Email}',\n ProdiID='{$_SESSION['prodi']}', ProgramID='{$_SESSION['prid']}', MhswIDAsalPT='{$MhswIDAsalPT}',\n AsalPT='{$AsalPT}', ProdiAsalPT='{$ProdiAsalPT}', MhswIDAsalPT='{$MhswIDAsalPT}', IPKAsalPT='{$IPKAsalPT}',\n LoginEdit='{$_SESSION['_Login']}',TglSKPenyetaraan='{$TglSKPenyetaraan}', SKPenyetaraan='{$SKPenyetaraan}', TanggalEdit=now()\n where MhswPindahanID={$MhswPindahanID} ";
$r = _query($s);
$s0 = "update mhswpindahansetara set MhswID='{$MhswID}' where MhswPindahanID={$MhswPindahanID} ";
$r0 = _query($s0);
} else {
$s = "insert into mhswpindahan\n (TahunID, Nama, MhswID, Alamat, Kota, RT, RW, KodePos, StatusMhswID,\n Propinsi, Negara, Telepon, Handphone,\n Email, AsalPT, ProdiAsalPT, IPKAsalPT,\n ProdiID, ProgramID, MhswIDAsalPT,\n LoginBuat, TanggalBuat)\n values\n ('{$tahun}', '{$Nama}', '{$MhswID}', '{$Alamat}', '{$Kota}', '{$RT}', '{$RW}', '{$KodePos}', 'A',\n '{$Propinsi}', '{$Negara}', '{$Telepon}', '{$Handphone}',\n '{$Email}', '{$AsalPT}', '{$ProdiAsalPT}', '{$IPKAsalPT}',\n '{$_SESSION['prodi']}', '{$_SESSION['prid']}', '{$MhswIDAsalPT}',\n '{$_SESSION['_Login']}', now())";
$r = _query($s);
}
//echo "<pre>$MhswPindahanID</pre>";
echo "<script>window.location = '?mnux=pindahan';</script>";
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$gos = empty($_REQUEST['gos']) ? "DaftarPindahan" : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Pendataan & Penyetaraan Mhsw Pindahan");
TampilkanTahunProdiProgram('pindahan', '');
if (!empty($tahun) && !empty($prodi)) {
$gos();
}
示例11: DaftarJadwal
function DaftarJadwal()
{
$s = "select j.*, \r\n time_format(JamMulai, '%H:%i') as JM, time_format(JamSelesai, '%H:%i') as JS,\r\n concat(d.Nama, ', ', d.Gelar) as DSN\r\n from jadwal j\r\n left outer join dosen d on j.DosenID=d.Login\r\n where j.TahunID='{$_SESSION['tahun']}'\r\n and INSTR(j.ProdiID, '.{$_SESSION['prodi']}.')>0\r\n order by j.HariID, j.JamMulai";
$r = _query($s);
$n = 0;
$h = 256;
$hdr = "<tr><th class=ttl>#</th>\r\n <th class=ttl>Jam Kuliah</th>\r\n <th class=ttl>Ruang</th>\r\n <th class=ttl>Kode</th>\r\n <th class=ttl>Matakuliah</th>\r\n <th class=ttl>Kelas</th>\r\n <th class=ttl>Jenis</th>\r\n <th class=ttl>SKS</th>\r\n <th class=ttl>Dosen</th>\r\n <th class=ttl>Cetak</th>\r\n </tr>";
echo "<p><table class=box cellspacing=1 cellpadding=4>";
while ($w = _fetch_array($r)) {
$n++;
if ($h != $w['HariID']) {
$h = $w['HariID'];
$hari = GetaField('hari', 'HariID', $w['HariID'], 'Nama');
echo "<tr><td class=ul colspan=15><a name='{$h}'><font size=+1>{$hari}</font></a></td></tr>";
echo $hdr;
}
echo "<tr><td class=inp>{$n}</td>\r\n <td class=ul>{$w['JM']}-{$w['JS']}</td>\r\n <td class=ul>{$w['RuangID']} </td>\r\n <td class=ul>{$w['MKKode']}</td>\r\n <td class=ul>{$w['Nama']}</td>\r\n <td class=ul>{$w['NamaKelas']}</td>\r\n <td class=ul>{$w['JenisJadwalID']}</td>\r\n <td class=ul>{$w['SKS']}</td>\r\n <td class=ul>{$w['DSN']}</td>\r\n <td class=ul align=center><a href='akd.lap.portoperformance.go.php?id={$w['JadwalID']}' target=_blank><img src='img/printer.gif'></a></td>\r\n </tr>";
}
echo "</table></p>";
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$gos = empty($_REQUEST['gos']) ? "DaftarJadwal" : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Daftar Penilaian Porto Folio dan Performance Mahasiswa");
TampilkanTahunProdiProgram('akd.lap.portoperformance');
if (!empty($tahun) && !empty($prodi)) {
$gos();
}
示例12: GetSetVar
<?php
// Author: Emanuel Setio Dewo
// 30 Januari 2007
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
// *** Main ***
TampilkanJudul("Cek Perubahan Data Pembayaran Mhsw");
TampilkanTahunProdiProgram('_cek_perubahan_data_pembayaran', '');
// Tampilkan pesan
echo "<p>Berikut adalah daftar perubahan yg terjadi di pembayaran mhsw. <input type=button name='Cetak' value='Cetak' onClick='window.print()'></p>";
if (!empty($tahun)) {
TampilkanPerubahanData();
}
// *** Functions ***
function TampilkanPerubahanData()
{
$_whrprd = empty($_SESSION['prodi']) ? '' : "and m.ProdiID = '{$_SESSION['prodi']}'";
$s = "select bm.BayarMhswID, bm.MhswID,\r\n bm.BayarMhswRef, bm.TahunID, \r\n bm.TrxID, bm.PMBMhswID, bm.Bank, bm.BuktiSetoran,\r\n\t bm.Tanggal, bm.Jumlah as Jumlah1, bm.JumlahLain as JumlahLain1,\r\n\t bm.Proses, bm.Keterangan, \r\n\t bm.LoginBuat as LoginBuat1, bm.TanggalBuat as TanggalBuat1,\r\n\t bm.LoginEdit as LoginEdit1, bm.TanggalEdit as TanggalEdit1,\r\n\t \r\n bmc.BayarMhswID, \r\n\t bmc.Jumlah as Jumlah2, bmc.JumlahLain as JumlahLain2,\r\n\t bmc.LoginBuat as LoginBuat2, bmc.TanggalBuat as TanggalBuat2,\r\n\t bmc.LoginEdit as LoginEdit2, bmc.TanggalEdit as TanggalEdit2,\r\n\t m.Nama as NamaMhsw\r\n from bayarmhsw bm\r\n\t inner join bayarmhswcek bmc on bm.BayarMhswID=bmc.BayarMhswID\r\n\t inner join mhsw m on bmc.MhswID=m.MhswID\r\n\twhere bm.TahunID='{$_SESSION['tahun']}'\r\n\t {$_whrprd}\r\n\t and (bm.Jumlah <> bmc.Jumlah or bm.JumlahLain <> bmc.JumlahLain)\r\n\torder by bm.MhswID";
$r = _query($s);
$n = 0;
echo "<p><table class=box cellspacing=1>";
echo "<tr><th class=ttl rowspan=2>#</th>\r\n\t<th class=ttl rowspan=2>NPM/Nama Mhsw</th>\r\n\t<th class=ttl rowspan=2>Keterangan</th>\r\n\t<th class=ttl colspan=2>Data Sekarang</th>\r\n\t<th class=ttl rowspan=2>»</th>\r\n\t<th class=ttl colspan=2>Data Asli</th>\r\n\t<th class=ttl colspan=2>Pembuat Transaksi</th>\r\n\t<th class=ttl colspan=2>Pembuat Perubahan</th>\r\n\t</tr>";
echo "<tr><th class=ttl>Jumlah</th>\r\n <th class=ttl>Lain2</th>\r\n\t<th class=ttl>Jumlah</th>\r\n\t<th class=ttl>Lain2</th>\r\n\t<th class=ttl>Oleh</th>\r\n\t<th class=ttl>Tgl</th>\r\n\t<th class=ttl>Oleh</th>\r\n\t<th class=ttl>Tgl</th>\r\n\t</tr>";
while ($w = _fetch_array($r)) {
$n++;
$c = "class=ul";
$Jumlah1 = number_format($w['Jumlah1']);
$JumlahLain1 = number_format($w['JumlahLain1']);
$Jumlah2 = number_format($w['Jumlah2']);
示例13: fwrite
$brs++;
if ($brs > $maxbrs) {
fwrite($f, $div);
fwrite($f, str_pad('Halaman : ' . $hal . "/" . $jumhal, 10, ' ') . $_lf);
$hal++;
$brs = 1;
fwrite($f, chr(12));
fwrite($f, $hdr);
}
$CUTI = GetArrayTable("select TahunID from khs where MhswID='{$w['MhswID']}' and StatusMhswID='C' order by TahunID", 'TahunID', 'TahunID');
$isi = str_pad($n . '.', 4, ' ') . ' ' . str_pad($w['MhswID'], 12) . ' ' . str_pad($w['Nama'], 25) . ' ' . str_pad($w['TotalSKS'], 4, ' ') . str_pad($w['IPK'], 5) . ' ' . str_pad($w['BatasStudi'], 6, ' ') . $CUTI . $_lf;
fwrite($f, $isi);
}
fwrite($f, $div);
fwrite($f, str_pad('Halaman : ' . $hal . "/" . $jumhal, 10, ' ') . $_lf);
fwrite($f, str_pad("Dicetak oleh : " . $_SESSION['_Login'], 87, ' ') . str_pad("Dicetak : " . date("d-m-Y H:i"), 27, ' ') . $_lf);
fwrite($f, str_pad("Akhir laporan", 114, ' ', STR_PAD_LEFT));
fwrite($f, chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, "akd.lap");
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
// *** Main ***
TampilkanJudul("Daftar Mahasiswa Cuti Kuliah");
TampilkanTahunProdiProgram('akd.lap.mhswcuti', 'Daftar');
if (!empty($tahun)) {
Daftar();
}
示例14: while
while ($w = _fetch_array($r)) {
$n++;
$optmetode = GetOptionPenilaian($arrmetode, $w['Penilaian'], 'Penilaian');
$c = $w['Final'] == 'Y' ? 'class=nac' : 'class=ul';
$donlot = $w['Final'] == 'Y' ? " " : "<a href='jadwal.disket.sav.php?gos=DownloadFileNilai&JadwalID={$w['JadwalID']}&LGN={$_SESSION['_Login']}&KodeID={$_SESSION['KodeID']}'><img src='img/disket.gif'></a>";
echo "<tr><td class=inp>{$n}</td>\r\n\t <td {$c}>{$w['DSN']}</td>\r\n\t <td {$c}>{$w['MKKode']}</td>\r\n\t <td {$c}>{$w['Nama']}</td>\r\n\t <td {$c}>{$w['NamaKelas']}</td>\r\n\t <td {$c} align=right>{$w['SKS']}</td>\r\n\t <td {$c}>{$w['RuangID']}</td>\r\n\t <td {$c}>{$w['HR']}</td>\r\n\t <td {$c}>{$w['JamMulai']}~{$w['JamSelesai']}</td>\r\n\t \r\n\t <form action='jadwal.disket.sav.php' method=POST target=_blank>\r\n\t <input type=hidden name='JadwalID' value='{$w['JadwalID']}'>\r\n\t <input type=hidden name='gos' value='SimpanPenilaian'>\r\n\t <td class=ul>{$optmetode}</td>\r\n\t </form>\r\n\t <td class=ul align=center><a href='cetak/cetak.label.disket.php?JadwalID={$w['JadwalID']}&tahun={$_SESSION['tahun']}&prodi={$_SESSION['prodi']}&prid={$_SESSION['prid']}&asal=1' title='Cetak Label Disket'>Label</a></td>\r\n\t <td class=ul align=center>{$donlot}</td>\r\n\t <td class=ul align=center><a href=prg/isinilai.exe>Prg</a></td>\r\n\t </tr>";
}
echo "</table></p>";
}
function GetOptionPenilaian($arr, $def, $key)
{
$a = '';
for ($i = 0; $i < sizeof($arr); $i++) {
$val = $arr[$i];
$sel = $val == $def ? 'selected' : '';
$a .= "<option value='{$val}' {$sel}>{$val}</option>";
}
return "<select name='{$key}' onChange='this.form.submit()'>{$a}</select>";
}
// *** Parameters ***
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$tahun = GetSetVar('tahun');
$gos = empty($_REQUEST['gos']) ? 'DftrJdwl' : $_REQUEST['gos'];
// *** Main ***
$NTahun = NamaTahun($tahun);
TampilkanJudul("Penjadwalan Kuliah {$NTahun}");
TampilkanTahunProdiProgram('jadwal.disket', '');
if (!empty($_SESSION['prodi']) && !empty($_SESSION['prid']) && !empty($_SESSION['KodeID']) && !empty($tahun)) {
$gos();
}
示例15: fwrite
fwrite($f, str_pad('Halaman : ' . $hal . "/" . $jumhal, 10, ' ') . $_lf);
fwrite($f, chr(12));
fwrite($f, $hdr);
}
fwrite($f, str_pad($n, 5) . str_pad($w['Login'], 10) . str_pad($w['DSN'], 44) . str_pad($w['STTDSN'], 10) . $_lf);
}
fwrite($f, $grs);
$_n = number_format($n);
fwrite($f, "Jumlah dosen: {$_n} orang" . $_lf);
fwrite($f, str_pad('Halaman : ' . $hal . "/" . $jumhal, 10, ' ') . $_lf);
fwrite($f, chr(12));
fclose($f);
TampilkanFileDWOPRN($nmf, 'akd.lap');
}
function FilterStatus()
{
$statdos = GetOption2('statusdosen', "concat(StatusDosenID, ' - ', Nama)", 'StatusDosenID', $_SESSION['statusdosen'], '', 'StatusDosenID');
echo "<p><form action='?' method='POST'>\r\n\t\t\t\t<input type='hidden' name='mnux' value='akd.lap.dosenaktif'>\r\n\t\t\t\t<input type='hidden' name='gos' value='DaftarDosenAktif'>\r\n\t\t\t\t<table class=box cellpadding=4 cellspacing=1>\r\n\t\t\t\t<tr><td class=inp>Status Dosen</td><td class=ul><select name=statusdosen onChange='this.form.submit()'>{$statdos}</select></td></tr>\r\n\t\t\t\t</table>\r\n\t\t\t\t</form></p>";
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$prid = GetSetVar('prid');
$statusdosen = GetSetVar('statusdosen');
// *** Main ***
TampilkanJudul("Daftar Dosen Aktif Mengajar");
TampilkanTahunProdiProgram('akd.lap.dosenaktif', 'DaftarDosenAktif');
FilterStatus();
if (!empty($tahun)) {
DaftarDosenAktif();
}