本文整理汇总了PHP中RandomStringScript函数的典型用法代码示例。如果您正苦于以下问题:PHP RandomStringScript函数的具体用法?PHP RandomStringScript怎么用?PHP RandomStringScript使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RandomStringScript函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DftrLapAkd
function DftrLapAkd()
{
$arrLap = array('Rekapitulasi Jumlah Mahasiswa per Angkatan~statusmhsw0', '» Laporan Mahasiswa Aktif~statusmhsw~&sta=A', '» Laporan Mahasiswa Cuti~statusmhsw~&sta=C', '» Laporan Mahasiswa Drop Out~statusmhsw~&sta=D', '» Laporan Mahasiswa Keluar~statusmhsw~&sta=K', '» Laporan Mahasiswa Pasif~statusmhsw~&sta=P', 'Daftar Mahasiswa Yang Sudah KRS~krsmhsw', 'Daftar Mahasiswa Yang Belum KRS~krsmhsw0', '» Daftar Mahasiswa Berdasarkan Agama~agamamhsw', '» Daftar Mahasiswa Berdasarkan Asal Sekolah~asalsekmhsw', '» Daftar Mahasiswa Berdasarkan Dosen PA~dosenpamhsw', '» Daftar Mahasiswa Berdasarkan Prodi~prodimhsw', '» Daftar Mahasiswa Berdasarkan Angkatan~angkmhsw', '» Laporan Statistik Kelas~statistikkelas', '» Laporan Nilai Semester dan Distribusi Matakuliah~statistikkelas2');
$i = 0;
echo "<p><table class=box cellspacing=1 align=center width=600>";
foreach ($arrLap as $arr) {
$i++;
$a = explode('~', $arr);
$_a = "<a href='#{$i}' onClick=\"Prints('" . $a[1] . "', '" . $a[2] . "')\">";
echo "<tr>\r\n <td class=inp width=10><a name='{$i}'></a>{$i}</td>\r\n <td class=ul1>{$_a} {$a['0']}</a></td>\r\n <td class=ul1 align=center width=10>{$_a}<img src='img/printer2.gif' /></a></td>\r\n </tr>";
}
echo "</table></p>";
RandomStringScript();
echo <<<SCR
<script>
function Prints(mdl, param) {
var rnd = randomString();
lnk = "{$_SESSION['mnux']}."+mdl+".php?TahunID={$_SESSION['TahunID']}&ProdiID={$_SESSION['ProdiID']}"+param+"&_rnd="+rnd;
//window.location = lnk;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
</script>
SCR;
}
示例2: TampilkanMenuMK
function TampilkanMenuMK()
{
global $mnux, $pref;
RandomStringScript();
$kurid = $_SESSION['kurid_' . $_SESSION['prodi']];
echo <<<ESD
<p><a href='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&sub=MKEdt&md=1'>Tambah Matakuliah</a> |
<a href='#' onClick="CetakMatakuliah()">Cetak</a> | <a href='#' onClick="CetakStruktur()">Cetak Struktur Kurikulum</a>
<script>
<!--
function CetakMatakuliah() {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.cetak.php?k={$kurid}&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function CetakStruktur() {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.cetakstrukturkur.php?KurikulumID={$kurid}&ProdiID={$_SESSION['prodi']}&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
//-->
</script>
ESD;
}
示例3: TampilkanFilter
function TampilkanFilter()
{
$optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['FilterProdiID']);
echo "<table class=box cellspacing=1 align=center width=940>\r\n <form name='frmFilterKomprehensif' action='?' method=POST>\r\n <input type=hidden name='gos' value='' />\r\n <input type=hidden name='komprepage' value='1' />\r\n <tr>\r\n <td class=inp>Tahun Akd:</td>\r\n <td class=ul><input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=5 maxlength=5 /></td>\r\n <td class=inp>Filter Prodi:</td>\r\n <td class=ul><select name='FilterProdiID' onChange='this.form.submit()'>{$optprodi}</select></td>\r\n </tr>\r\n <tr><td class=inp>Cari NIM:</td>\r\n <td class=ul><input type=text name='FilterMhswID' value='{$_SESSION['FilterMhswID']}' size=20 maxlength=20 /></td>\r\n <td class=inp>Cari Nama:</td>\r\n <td class=ul><input type=text name='FilterNamaMhsw' value='{$_SESSION['FilterNamaMhsw']}' size=20 maxlength=20 /></td>\r\n </tr>\r\n <tr>\r\n <td class=ul colspan=4 align=center>\r\n <input type=submit name='Cari' value='Cari Data' />\r\n <input type=button name='ResetFilter' value='Reset Filter'\r\n onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&TahunID=&FilterProdiID=&FilterMhswID=&FilterNamaMhsw='\" />\r\n ▷▶\r\n <input type=button name='DaftarkanMhswKomprehensif' value='Daftarkan Komprehensif Mhsw'\r\n onClick=\"javascript:KomprehensifEdit(1,0)\" />\r\n\t\t<input type=button name='SetupKompre' value='Setup Komprehensif'\r\n onClick=\"javascript:SetupKomprehensif()\" />\r\n\t <br>\r\n\t\t<input type=button name='CetakFormKompre' value='Cetak Formulir'\r\n onClick=\"javascript:CetakForm()\" />\r\n\t\t<input type=button name='CetakJadwalKompre' value='Cetak Jadwal'\r\n onClick=\"javascript:CetakJadwal()\" />\r\n\t\t<input type=button name='CetakJadwalKomprePerHari' value='Cetak Jadwal Per Hari'\r\n\t\t onClick=\"javascript:CetakJadwalPerHari()\" />\r\n </td>\r\n </tr>\r\n </form>\r\n </table>";
RandomStringScript();
echo <<<SCR
<script>
\t function KomprehensifEdit(md,id) {
\t\t _rnd = randomString();
\t\t lnk = "{$_SESSION['mnux']}.edit.php?md="+md+"&_rnd="+_rnd+"&KompreID="+id;
\t\t win2 = window.open(lnk, "", "width=700, height=500, scrollbars, status");
\t\t if (win2.opener == null) childWindow.opener = self;
\t }
\t function EditJadwal(md,id,prodi) {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.jadwal.php?md="+md+"&_rnd="+_rnd+"&KompreID="+id+"&ProdiID="+prodi;
\t\twin2 = window.open(lnk, "", "width=1000, height=500, scrollbars, status");
\t\twin2.moveTo(100,100);
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function DetailKompre(md,id,prodi) {
\t\t\t_rnd = randomString();
\t\t\tlnk = "{$_SESSION['mnux']}.nilai.php?md="+md+"&_rnd="+_rnd+"&KompreID="+id+"&ProdiID="+prodi;
\t\t\twin2 = window.open(lnk, "detail", "width=500, height=500, scrollbars, status");
\t\t\twin2.moveTo(100,100);
\t\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function CetakKomprehensif() {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.cetak.php?TahunID={$_SESSION['TahunID']}&_rnd="+_rnd;
\t\twin2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function CetakForm() {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.cetakformulir.php?ProdiID={$_SESSION['FilterProdiID']}&_rnd="+_rnd;
\t\twin2 = window.open(lnk, "", "width=800, height=600, scrollbars, status, resizable");
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function CetakJadwal() {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.cetakJadwal.php?_rnd="+_rnd+"TahunID={$_SESSION['TahunID']}&ProdiID={$_SESSION['FilterProdiID']}";
\t\twin2 = window.open(lnk, "cetakJ", "width=700, height=600, scrollbars, status, resizable");
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function CetakJadwalPerHari() {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.cetakjadwalperhari.php?_rnd="+_rnd+"TahunID={$_SESSION['TahunID']}&ProdiID={$_SESSION['FilterProdiID']}";
\t\twin2 = window.open(lnk, "", "width=700, height=600, scrollbars, status, resizable");
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
\t function SetupKomprehensif() {
\t\t_rnd = randomString();
\t\tlnk = "{$_SESSION['mnux']}.setup.php?TahunID={$_SESSION['TahunID']}&_rnd="+_rnd;
\t\twin2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
\t\tif (win2.opener == null) childWindow.opener = self;
\t }
</script>
SCR;
}
示例4: TampilkanFilter
function TampilkanFilter()
{
$optprodi = GetProdiUser($_SESSION['_Login'], $_SESSION['FilterProdiID']);
echo "<table class=box cellspacing=1 align=center width=940>\n <form name='frmFilterPraktek' action='?' method=POST>\n <input type=hidden name='gos' value='' />\n <input type=hidden name='praktekpage' value='1' />\n <tr>\n <td class=inp>Tahun Akd:</td>\n <td class=ul><input type=text name='TahunID' value='{$_SESSION['TahunID']}' size=5 maxlength=5 /></td>\n <td class=inp>Filter Prodi:</td>\n <td class=ul><select name='FilterProdiID' onChange='this.form.submit()'>{$optprodi}</select></td>\n </tr>\n <tr><td class=inp>Cari NIM:</td>\n <td class=ul><input type=text name='FilterMhswID' value='{$_SESSION['FilterMhswID']}' size=20 maxlength=20 /></td>\n <td class=inp>Cari Nama:</td>\n <td class=ul><input type=text name='FilterNamaMhsw' value='{$_SESSION['FilterNamaMhsw']}' size=20 maxlength=20 /></td>\n </tr>\n <tr>\n <td class=ul colspan=4 align=center>\n <input type=submit name='Cari' value='Cari Data' />\n <input type=button name='ResetFilter' value='Reset Filter'\n onClick=\"location='?mnux={$_SESSION['mnux']}&gos=&TahunID=&FilterProdiID=&FilterMhswID=&FilterNamaMhsw='\" />\n ▷▶\n <input type=button name='DaftarkanPraktekMhsw' value='Daftarkan Praktek Kerja Mhsw'\n onClick=\"javascript:PraktekEdit(1,0)\" />\n <input type=button name='CetakDaftarPraktek' value='Cetak Daftar Praktek Kerja'\n onClick=\"javascript:CetakPraktek()\" />\n </td>\n </tr>\n </form>\n </table>";
RandomStringScript();
echo <<<SCR
<script>
<!--
function PraktekEdit(md,id) {
if (frmFilterPraktek.FilterProdiID.value == '') alert("Pilihan Program Studi terlebih dahulu");
else {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.edit.php?md="+md+"&PraktekKerjaID="+id+"&ProdiID="+frmFilterPraktek.FilterProdiID.value+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
}
function CetakPraktek() {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.cetak.php?TahunID={$_SESSION['TahunID']}&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function fnKelulusan(id) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.lulus.php?_rnd="+_rnd+"&PraktekKerjaID="+id;
win2 = window.open(lnk, "", "width=700, height=400, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
//-->
</script>
SCR;
}
示例5: DftrLapKeu
function DftrLapKeu()
{
$arrLap = array('Rekapitulasi Biaya Mahasiswa~rekapbiaya', 'Laporan Pembayaran Mahasiswa~mhswbayar', 'Laporan Pembayaran Registrasi Mahasiswa~rekapbiayareg', 'Laporan Pembayaran Uang Kuliah~mhswbayar2', 'Rekap Pembayaran Bulanan~bayarbulan', 'Daftar Pembayaran Per Akun~bayarakun', 'Daftar Mahasiswa Yang Memiliki Angsuran~angsurmhsw', 'Daftar Mahasiswa Yang Mendapatkan Beasiswa~beasiswa');
$i = 0;
echo "<p><table class=box cellspacing=1 align=center width=600>";
foreach ($arrLap as $arr) {
$i++;
$a = explode('~', $arr);
$_a = "<a href='#{$i}' onClick=\"Prints('" . $a[1] . "', '" . $a[2] . "')\">";
echo "<tr>\r\n <td class=inp width=10><a name='{$i}'></a>{$i}</td>\r\n <td class=ul1>{$_a} {$a['0']}</a></td>\r\n <td class=ul1 align=center width=10>{$_a}<img src='img/printer2.gif' /></a></td>\r\n </tr>";
}
echo "</table></p>";
RandomStringScript();
echo <<<SCR
<script>
function Prints(mdl, param) {
var rnd = randomString();
lnk = "{$_SESSION['mnux']}."+mdl+".php?TahunID={$_SESSION['TahunID']}&ProdiID={$_SESSION['ProdiID']}"+param+"&_rnd="+rnd;
//window.location = lnk;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
</script>
SCR;
}
示例6: fnDftrJdwl
function fnDftrJdwl()
{
TampilkanHeaderJadwal();
$whr_prog = $_SESSION['_jdwlProg'] == '' ? '' : "and j.ProgramID='{$_SESSION['_jdwlProg']}' ";
$whr_hari = $_SESSION['_jdwlHari'] == '' ? '' : "and j.HariID = '{$_SESSION['_jdwlHari']}' ";
$s = "select j.*,\r\n left(j.Nama, 50) as _Nama,\r\n left(j.JamMulai, 5) as _JM,\r\n left(j.JamSelesai, 5) as _JS,\r\n d.Nama as NamaDosen, d.Gelar\r\n from jadwal j\r\n left outer join dosen d on d.Login = j.DosenID and d.KodeID = '" . KodeID . "'\r\n where j.KodeID = '" . KodeID . "'\r\n and j.ProdiID = '{$_SESSION['_jdwlProdi']}'\r\n and j.TahunID = '{$_SESSION['_jdwlTahun']}'\r\n and j.{$_SESSION['_jdwlU']}RuangID = ''\r\n {$whr_prog}\r\n {$whr_hari}\r\n order by j.HariID, j.JamMulai, j.JamSelesai";
$r = _query($s);
$n = 0;
$hdr = "<tr><th class=ttl width=10>#</th>\r\n <th class=ttl width=70>Jam Kuliah</th>\r\n <th class=ttl>Matakuliah blm dijadwalkan ujian</th>\r\n <th class=ttl>Kelas</th>\r\n <th class=ttl>Prodi</th>\r\n <th class=ttl width=10>{$_SESSION['_jdwlU']}</th>\r\n </tr>";
RandomStringScript();
echo <<<ESD
<table class=box cellspacing=1 width=100%>
<script>
function RefreshAll() {
parent.RefreshAll();
}
function JadwalkanUjian(jid) {
var _rnd = randomString();
lnk = "../{$_SESSION['mnux']}.edit.php?jid="+jid;
win2 = window.open(lnk, "", "width=500, height=400, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
</script>
ESD;
$hr = '-1';
while ($w = _fetch_array($r)) {
$n++;
if ($hr != $w['HariID']) {
$hr = $w['HariID'];
$_hr = GetaField('hari', 'HariID', $hr, 'Nama');
echo "<tr><td class=ul1 colspan=6><font size=+1>{$_hr}</font></td></tr>";
echo $hdr;
}
echo <<<ESD
<tr><td class=inp width=10>{$n}</td>
<td class=ul width=70><sup>{$w['_JM']}</sup>~<sub>{$w['_JS']}</sub></td>
<td class=ul>
<sup>{$w['MKKode']} − {$w['SKS']} sks</sup><br />
{$w['_Nama']}
<div align=right>
<sub>{$w['NamaDosen']}, {$w['Gelar']}</sub>
</div>
</td>
<td class=ul align=center>
{$w['NamaKelas']}<br />
{$w['JumlahMhsw']} <sub>mhs</sub>
</td>
<td class=ul align=center>
<sup>{$w['ProgramID']}</sup><br />
{$w['ProdiID']}
</td>
<td class=ul width=10 align=center>
<a href='#' onClick="javascript:JadwalkanUjian({$w['JadwalID']})"><img src='../img/check.gif' /></a>
</td>
</tr>
ESD;
}
echo "</table>";
}
示例7: JadwalDosen
function JadwalDosen($TahunID, $dsn)
{
TampilkanPilihanTahun($TahunID, $dsn['Login']);
$s = "select j.*,\r\n left(j.JamMulai, 5) as _JM, left(j.JamSelesai, 5) as _JS,\r\n p.Nama as NamaProdi, if(jd.DosenID = '08.0211.037','Team Teaching','Dosen Pengampu') as Status\r\n from jadwal j\r\n left outer join prodi p on p.ProdiID = j.ProdiID and p.KodeID = '" . KodeID . "'\r\n left outer join jadwaldosen jd on jd.JadwalID = j.JadwalID\r\n where j.TahunID = '{$TahunID}'\r\n and j.KodeID = '" . KodeID . "'\r\n and j.DosenID = '{$dsn['Login']}' or (jd.DosenID = '{$_SESSION['dsnid']}')\r\n order by j.HariID, j.JamMulai, j.JamSelesai";
$r = _query($s);
$n = 0;
$ttl = 0;
$hr = -25;
echo "<table class=box cellspacing=1 align=center width=810>";
while ($w = _fetch_array($r)) {
if ($hr != $w['HariID']) {
$hr = $w['HariID'];
$Hari = GetaField('hari', 'HariID', $hr, 'Nama');
TampilkanHeaderTabel($Hari);
}
$n++;
$ttl += $w['SKS'];
echo <<<ESD
<tr>
<td class=inp>{$n}</td>
<td class=ul><sup>{$w['_JM']}</sup>→<sub>{$w['_JS']}</td>
<td class=ul>{$w['MKKode']}</td>
<td class=ul>{$w['Nama']}</td>
<td class=ul align=right>{$w['SKS']}</td>
<!--<td class=ul>{$w['NamaKelas']}</td>-->
<td class=ul>{$w['RuangID']}</td>
<td class=ul>
<sup>{$w['ProgramID']}</sup>
<div align=right>
<sub><abbr title='{$w['NamaProdi']}'>→{$w['ProdiID']}</abbr></sub>
</div>
</td>
<td class=ul>{$w['Status']}</td>
ESD;
}
RandomStringScript();
echo <<<ESD
<tr><td class=ul1 colspan=4 align=right>Total SKS:</td>
<td class=ul1 align=right><font size=+1>{$ttl}</font></td>
<td class=ul1 colspan=4></td>
</tr>
</table>
<script>
<!--
function CetakJadwal(thn, dsn) {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.cetak.php?TahunID="+thn+"&DosenID="+dsn+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
//-->
</script>
ESD;
}
示例8: TampilkanHeaderHonorer
function TampilkanHeaderHonorer()
{
$optbulan = GetMonthOption($_SESSION['_honBulan']);
$optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['_honProdi'], "KodeID='" . KodeID . "'", 'ProdiID');
RandomStringScript();
echo <<<ESD
<table class=box cellspacing=1 width=880>
<form name='frmHeaderHondok' action='?' method=POST>
<input type=hidden name='mnux' value='{$_SESSION['mnux']}' />
<input type=hidden name='gos' value='' />
<input type=hidden name='_honPage' value='1' />
<tr>
<td class=ul1>
Bulan:<br />
<select name='_honBulan' onChange='this.form.submit()'>{$optbulan}</select></td>
<td class=ul1 nowrap>
Tahun:<br />
<input type=text name='_honTahun' value='{$_SESSION['_honTahun']}' size=4 maxlength=4 /></td>
<td class=ul1>
Homebase Dosen:<br />
<select name='_honProdi' onChange='this.form.submit()'>{$optprodi}</select>
</td>
<td class=ul1>
Filter Nama Dosen:<br />
<input type=text name='_honDosen' value='{$_SESSION['_honDosen']}' size=20 maxlength=50 />
</td>
<td class=ul1 valign=bottom align=right>
<input type=submit name='btnSubmit' value='Kirim' />
<input type=button name='btnReset' value='Reset Filter'
onClick="location='?mnux={$_SESSION['mnux']}&gos=&_honPage=1&_honDosen=&_honProdi='" />
»
<input type=button name='btnTambah' value='+Dosen'
onClick="javascript:TambahHondok()" />
</td>
</tr>
</form>
</table>
<script>
function TambahHondok() {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.dosen.php?_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function EditHondok(_honDosenID, _honID, _honTahunID) {
var _rnd = randomString();
lnk = "../{$_SESSION['mnux']}.dosen.php?gos=fnEditHondok&_honDosenID="+_honDosenID+"&_md=0&_honID="+_honID+"&_honTahunID="+_honTahunID+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
</script>
ESD;
}
示例9: TampilkanAmbilMhswID
function TampilkanAmbilMhswID($MhswID, $mhsw)
{
$stawal = GetaField('statusawal', 'StatusAwalID', $mhsw['StatusAwalID'], 'Nama');
$status = GetaField('statusmhsw', 'StatusMhswID', $mhsw['StatusMhswID'], 'Nama');
if (empty($mhsw['PenasehatAkademik'])) {
$pa = '<sup>Belum diset</sup>';
} else {
$dosenpa = GetFields('dosen', "Login='{$mhsw['PenasehatAkademik']}' and KodeID", KodeID, "Nama, Gelar");
$pa = "{$dosenpa['Nama']} <sup>{$dosenpa['Gelar']}</sup>";
}
echo <<<ESD
<table class=box cellspacing=1 align=center width=600>
<form name='frmMhsw' action='?' method=POST>
<input type=hidden name='mnux' value='{$_SESSION['mnux']}' />
<input type=hidden name='gos' value='' />
<tr><td class=wrn width=2 rowspan=4></td>
<td class=inp width=80>NIM/NPM:</td>
<td class=ul width=200>
<input type=text name='MhswID' value='{$MhswID}' size=20 maxlength=50 />
<input type=submit name='btnCari' value='Cari' />
</td>
<td class=inp width=80>Mahasiswa:</td>
<td class=ul>{$mhsw['Nama']} </td>
</tr>
<tr><td class=inp>Status Mhsw:</td>
<td class=ul>{$status} <sup>{$stawal}</sup></td>
<td class=inp>Dosen PA:</td>
<td class=ul>{$pa}</td>
\t </tr>
<tr><td class=ul colspan=4 align=center>
\t <input type=button name='btnSKSLulus' value='Cetak SKS Lulus'
onClick="fnCetakSKSLulus('{$MhswID}')" />
\t <input type=button name='btnSKSTidakLulus' value='Cetak SKS Tidak Lulus'
onClick="fnCetakSKSTidakLulus('{$MhswID}')" />
\t </td></tr>
</form>
</table>
<script>
\t function fnCetakSKSLulus(MhswID)
\t {\tvar _rnd = randomString();
lnk = "{$_SESSION['mnux']}.skslulus.php?MhswID="+MhswID+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=500, scrollbars");
if (win2.opener == null) childWindow.opener = self;
\t }
\t function fnCetakSKSTidakLulus(MhswID)
{\tvar _rnd = randomString();
lnk = "{$_SESSION['mnux']}.skstidaklulus.php?MhswID="+MhswID+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=500, scrollbars");
if (win2.opener == null) childWindow.opener = self;
\t }
</script>
ESD;
RandomStringScript();
}
示例10: TampilkanKurikulum
function TampilkanKurikulum()
{
global $mnux, $pref, $token, $arrID;
$s = "select * from kurikulum where ProdiID='{$_SESSION['prodi']}'\r\n order by KurikulumKode desc";
$r = _query($s);
echo "<p><table class=box cellspacing=1 cellpadding=4 width=700>";
echo "<tr>\r\n <td class=ul1 colspan=5>\r\n <a href='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&sub=KurEdt&md=1'>Tambah Kurikulum</a> |\r\n <a href='?mnux={$mnux}&{$pref}={$token}'>Refresh Tampilan</a> |\r\n\t<a href='#' onClick=\"CetakKurikulum()\">Cetak</a>\r\n </td>\r\n </tr>\r\n\t<script>\r\n\t function CetakKurikulum() {\r\n\t\tvar _rnd = randomString();\r\n\t\tlnk = '{$_SESSION['mnux']}.cetakkur.php?p={$_SESSION['prodi']}&_rnd='+_rnd;\r\n\t\twin2 = window.open(lnk, '', 'width=800, height=600, scrollbars, status');\r\n\t\tif (win2.opener == null) childWindow.opener = self;\r\n\t }\r\n </script>";
RandomStringScript();
echo "<tr><th class=ttl>Kode</th>\r\n <th class=ttl>Kurikulum</th>\r\n <th class=ttl>Sesi</th>\r\n <th class=ttl>Jml/tahun</th>\r\n <th class=ttl>NA</th></tr>";
while ($w = _fetch_array($r)) {
$c = $w['NA'] == 'Y' ? 'class=nac' : 'class=ul';
echo "<tr>\r\n <td {$c} width=100>\r\n <a href='?mnux={$mnux}&{$pref}={$_SESSION[$pref]}&sub=KurEdt&md=0&kurid={$w['KurikulumID']}'><img src='img/edit.png' border=0>\r\n {$w['KurikulumKode']}</a></td>\r\n <td {$c} width=180>{$w['Nama']}</td>\r\n <td {$c}>{$w['Sesi']}</td>\r\n <td {$c} align=right>{$w['JmlSesi']}</td>\r\n <td {$c} align=center width=10><img src='img/book{$w['NA']}.gif'></td>\r\n </tr>";
}
echo "</table></p>";
}
示例11: DftrKRSLama
function DftrKRSLama($MhswID, $mhsw)
{
$s = "select k.*\r\n from krs k\r\n where k.MhswID = '{$mhsw['PMBID']}'\r\n order by k.TahunID";
$r = _query($s);
RandomStringScript();
echo "<table class=bsc cellspacing=1 width=100%>\r\n <tr>\r\n <th class=ttl width=20><abbr title='Konversikan'>Konv.</abbr></th>\r\n <th class=ttl width=20>#</th>\r\n <th class=ttl width=80>Kode › SKS</th>\r\n <th class=ttl>Matakuliah</th>\r\n </tr>";
$thn = 'alksdjflasdjfhasd';
while ($w = _fetch_array($r)) {
if ($thn != $w['TahunID']) {
$thn = $w['TahunID'];
echo "<tr>\r\n <td class=ul1 colspan=5><font size=+1>{$thn}</td>\r\n </tr>";
}
$n++;
if ($w['StatusKRSID'] == 'K') {
$c = "class=nac";
$konv = "<abbr title='Sudah dikonversikan'>×</a>";
} else {
$c = "class=ul1";
$konv = "<input type=button name='btnKonversi' value='<' onClick=\"javascript:Konversikan({$w['KRSID']}, '{$MhswID}')\" />";
}
echo "<tr>\r\n <td class=ul align=center>{$konv}</td>\r\n <td class=inp>{$n}</td>\r\n <td {$c}>{$w['MKKode']}<sup>{$w['SKS']}</sup></td>\r\n <td {$c}>{$w['Nama']}</td>\r\n </tr>";
}
echo <<<ESD
</table>
<script>
function Konversikan(krsid, mhswid) {
_rnd = randomString();
lnk = "../{$_SESSION['mnux']}.konversikan.php?KRSID="+krsid+"&MhswID="+mhswid+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=500, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function RefreshParent() {
parent.location="../index.php?mnux={$_SESSION['mnux']}&gos=fnKonversi&MhswID={$MhswID}";
}
</script>
ESD;
}
示例12: DftrMhsw
function DftrMhsw($dsn)
{
$s = "select m.MhswID, m.Nama as NamaMhsw, m.TahunID,\r\n m.ProdiID\r\n from mhsw m\r\n where m.KodeID = '" . KodeID . "'\r\n and m.PenasehatAkademik = '{$dsn['Login']}'\r\n order by m.TahunID, m.MhswID";
$r = _query($s);
$n = 0;
echo <<<ESD
<p>
<table class=box cellspacing=1 align=center width=600>
<tr><td class=ul colspan=5>
<input type=button name='btnCetakDaftar' value='Cetak Daftar Mahasiswa'
onClick="javascript:fnCetakDaftar('{$dsn['Login']}')" />
</td></tr>
<tr><th class=ttl>Nmr</th>
<th class=ttl>NIM/NPM</th>
<th class=ttl>Nama Mahasiswa</th>
<th class=ttl>Prodi</th>
</tr>
ESD;
while ($w = _fetch_array($r)) {
$n++;
echo "<tr>\r\n <td class=inp width=30>{$n}</td>\r\n <td class=ul1 width=100>{$w['MhswID']}</td>\r\n <td class=ul1>{$w['NamaMhsw']}</td>\r\n <td calss=ul1 width=100>{$w['ProdiID']}</td>\r\n </tr>";
}
echo "</table></p>";
RandomStringScript();
echo <<<ESD
<script>
<!--
function fnCetakDaftar(dsn) {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.daftar.php?DosenID="+dsn+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=800, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
//-->
</script>
ESD;
}
示例13: HalamanUtama
function HalamanUtama()
{
include_once "../dwo.lib.php";
include_once "../db.mysql.php";
include_once "../connectdb.php";
include_once "../parameter.php";
include_once "../cekparam.php";
echo "<HTML xmlns=\"http://www.w3.org/1999/xhtml\">\r\n <HEAD><TITLE>{$title}</TITLE>\r\n <META content=\"Emanuel Setio Dewo\" name=\"author\">\r\n <META content=\"Sisfo Sekolah\" name=\"description\">\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/{$_Themes}/index.css\" />\r\n ";
$KelasID = GetSetVar('KelasID');
$kelas_tahun = GetSetVar('kelas_tahun');
$kelas_jmlsesi = GetSetVar('kelas_jmlsesi', 6);
$kelas_sesi = GetSetVar('kelas_sesi', 1);
TampilkanJudul("Laporan Statistik Kelas");
$tombols = ' ';
$wheretahun = "TahunID='{$_SESSION['kelas_tahun']}'";
if (empty($_SESSION['kelas_tahun']) or $_SESSION['kelas_tahun'] == '') {
$optkelas = "<option value=''>--Isi Tahun Dulu--</option>";
$optjmlsesi = "<option value=''>--Isi Tahun Dulu--<option>";
$optsesi = "<option value=''>--Isi Tahun Dulu--<option>";
} else {
$optkelas = GetOption2('kelas', "Nama", 'Nama', $_SESSION['KelasID'], $wheretahun, 'KelasID');
if ($optkelas == '' or empty($optkelas)) {
$optkelas = "<option value=''>--Tidak ada kelas--</option>";
}
$arrNomer = array('7', '6', '5', '4', '3', '2', '1');
$optjmlsesi = GetOptionsFromArray($arrNomer, $_SESSION['kelas_jmlsesi'], 1);
$optsesi = GetOptionsFromArray($arrNomer, $_SESSION['kelas_sesi'], 1);
}
if (empty($_SESSION['kelas_tahun'])) {
$kelas = array();
} else {
$kelas = GetFields("kelas", "KelasID='{$_SESSION['KelasID']}' and TahunID='{$_SESSION['kelas_tahun']}' and KodeID", KodeID, "Nama, KapasitasMaksimum, KapasitasSekarang");
if (empty($kelas)) {
$kelas = array();
} else {
RandomStringScript();
$scripts = <<<ESD
<script>
function fnCetakPerbandinganIPS(KelasID, jmlsesi) {
var _rnd = randomString();
lnk = "lapakd.statistikkelas.php?gos=_CetakLaporanPerbandinganIPS&KelasID="+KelasID+"&jmlsesi="+jmlsesi+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=1000, height=800");
if (win2.opener == null) childWindow.opener = self;
}
\t function fnCetakPengambilanKHS(KelasID, sesi) {
var _rnd = randomString();
lnk = "lapakd.statistikkelas.php?gos=_CetakDaftarPengambilanKHS&KelasID="+KelasID+"&sesi="+sesi+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=1000, height=800, scrollbars");
if (win2.opener == null) childWindow.opener = self;
}
</script>
ESD;
}
}
CheckFormScript('kelas_tahun,KelasID');
echo <<<ESD
<table class=box cellspacing=1 align=center width=600>
<form name='frmHeader' action='?' method=POST onSubmit=\\"return CheckForm(this)">
<input type=hidden name='gos' value='' />
<tr><td width=12></td>
\t <td class=inp width=120>Tahun Akademik:</td>
<td class=ul width=220>
<input type=text name='kelas_tahun' value='{$_SESSION['kelas_tahun']}' size=4 maxlength=6 />
<input type=submit name='btnCari' value='Cari' />
</td>
<td class=inp width=120>Kapasitas Sekarang:</td>
<td class=ul>
<b>{$kelas['KapasitasSekarang']}</b>
</td>
</tr>
<tr><td></td>
\t <td class=inp>Kelas:</td>
<td class=ul><select name='KelasID' onChange="this.form.submit()">{$optkelas}</select></td>
<td class=inp>Kapasitas Maksimum:</td>
<td class=ul><b>{$kelas['KapasitasMaksimum']}</b> </td>
</tr>
</tr>\t
<tr><td> </td></tr>
<tr><td class=ul colspan=5 align=center><font color=green><i><b>DAFTAR DAN LAPORAN YANG DAPAT DICETAK:</b></i></font>
\t </td></tr>
<tr><td bgcolor=silver height=1 colspan=5></td></tr>
<tr>
\t<td class=inp>1</td>
\t<td class=ul1 colspan=2>
\t<a href='#{$i}' onClick="javascript:fnCetakPerbandinganIPS('{$_SESSION['KelasID']}', '{$_SESSION['kelas_jmlsesi']}')" />Laporan Perbandingan IPS</a></td>
\t<td class=inp>Jumlah Semester:</td>
<td class=ul><select name='kelas_jmlsesi' onChange="this.form.submit()">{$optjmlsesi}</select></td>
</tr>
<tr><td bgcolor=silver height=1 colspan=5></td></tr>
<tr>
\t<td class=inp>2</td>
\t<td class=ul1 colspan=2>
\t<a href='#' onClick="javascript:fnCetakPengambilanKHS('{$_SESSION['KelasID']}', '{$_SESSION['kelas_sesi']}')" />Daftar Pengambilan KHS</a></td>
\t<td class=inp>Semester Ke:</td>
<td class=ul><select name='kelas_sesi' onChange="this.form.submit()">{$optsesi}</select></td>
</tr>
<tr><td bgcolor=silver height=1 colspan=5></td></tr>
//.........这里部分代码省略.........
示例14: HeaderTranskrip
function HeaderTranskrip()
{
$MhswID = GetSetVar('MhswID');
$TahunAkademik = GetSetVar('TahunAkademik');
TampilkanJudul("Cetak Transkrip Nilai");
$tombols = ' ';
if (empty($_SESSION['MhswID'])) {
$mhsw = array();
} else {
$mhsw = GetFields("mhsw m \r\n left outer join prodi prd on m.ProdiID=prd.ProdiID and prd.KodeID='" . KodeID . "'\r\n\t left outer join jenjang j on prd.JenjangID=j.JenjangID\r\n left outer join program prg on m.ProgramID=prg.ProgramID and prg.KodeID='" . KodeID . "'\r\n left outer join dosen d on m.PenasehatAkademik=d.Login and d.KodeID='" . KodeID . "'", "m.MhswID='{$_SESSION['MhswID']}' and m.KodeID", KodeID, "m.MhswID, m.Nama, m.ProgramID, m.ProdiID, m.PenasehatAkademik,\r\n d.Nama as NamaDosen, d.Gelar, j.Nama as _Jenjang,\r\n prd.Nama as _PRD, prg.Nama as _PRG");
if (empty($mhsw)) {
$mhsw = array();
} else {
if (empty($mhsw['NamaDosen'])) {
$mhsw['NamaDosen'] = "<font color=red>×</font> Belum diset";
}
RandomStringScript();
$tombols = <<<ESD
<input type=button name='btnTranskrip' value='Transkrip Nilai'
onClick="javascript:fnCetakTranskrip('{$mhsw['MhswID']}','{$_SESSION['TahunAkademik']}', 0)" />
<input type=button name='btnTranskripPerJenis' value='Transkrip Per Jenis MK'
onClick="javascript:fnCetakTranskrip('{$mhsw['MhswID']}', 1)" />
<input type=button name='btnTranskrip' value='Transkrip Nilai Sementara'
onClick="javascript:fnCetakTranskrip('{$mhsw['MhswID']}', 2)" />
\t
<script>
function fnCetakTranskrip(MhswID,TahunAkademik, jen) {
var _rnd = randomString();
lnk = "{$_SESSION['mnux']}.php?gos=_CetakTranskrip&MhswID="+MhswID+"&TahunAkademik="+TahunAkademik+"&_rnd="+_rnd+"&jen="+jen;
win2 = window.open(lnk, "", "width=700, height=500, scrollbars");
if (win2.opener == null) childWindow.opener = self;
}
</script>
ESD;
}
}
echo <<<ESD
<table class=box cellspacing=1 align=center width=600>
<form name='frmHeader' action='?' method=POST>
<input type=hidden name='gos' value='' />
<tr><td class=inp>Thn.Akademik</td>
<td class=ul colspan='3'>
<input type=text name='TahunAkademik' value='{$_SESSION['TahunAkademik']}' size=8 maxlength=5 />
</td>
</tr>
<tr><td class=inp width=80>NIM/NPM:</td>
<td class=ul width=220>
<input type=text name='MhswID' value='{$_SESSION['MhswID']}' size=15 maxlength=50 />
<input type=submit name='btnCari' value='Cari' />
</td>
<td class=inp width=90>Nama Mhsw:</td>
<td class=ul>
<b>{$mhsw['Nama']}</b>
</td>
</tr>
<tr><td class=inp>Prodi:</td>
<td class=ul>{$mhsw['_PRD']} <sup>{$mhsw['_PRG']}</sup> </td>
<td class=inp>Penasehat Akd:</td>
<td class=ul>{$mhsw['NamaDosen']} <sup>{$mhsw['Gelar']}</sup> </td>
</tr>
<tr><td class=ul colspan=4 align=center>
{$tombols}
</td></tr>
</form>
</table>
</p>
ESD;
}
示例15: BIPOTScript
function BIPOTScript()
{
RandomStringScript();
echo <<<SCR
<script>
function BIPOTDELCONF(id, mhswid, tahunid) {
if (confirm("Benar Anda akan menghapus BIPOT ini?")) {
window.location="?mnux={$_SESSION['mnux']}&gos=HapusBIPOT&BypassMenu=1&_BIPOTMhswID="+id+"&MhswID="+mhswid+"&TahunID="+tahunid;
}
}
function BIPOTDELALLCONF(mhswid, tahunid) {
if (confirm("Benar Anda akan menghapus semua biaya di bawah ini? Biaya yang sudah terbayar tidak akan dihapus.")) {
window.location="?mnux={$_SESSION['mnux']}&gos=HapusSemuaBIPOT&BypassMenu=1&MhswID="+mhswid+"&TahunID="+tahunid;
}
}
function BIPOTEdit(mhswid, tahunid, md, id) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.bipotedit.php?MhswID="+mhswid+"&TahunID="+tahunid+"&md="+md+"&id="+id+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=500, height=400, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function BIPOTEdit2(mhswid, tahunid, md, id, tagihanid) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.bipotedit2.php?MhswID="+mhswid+"&TahunID="+tahunid+"&md="+md+"&id="+id+"&_rnd="+_rnd+"&tagihanid="+tagihanid;
win2 = window.open(lnk, "", "width=500, height=400, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function ByrEdit(mhswid, khsid, md, bayarid) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.bayar.php?MhswID="+mhswid+"&KHSID="+khsid+"&md="+md+"&BayarID="+bayarid+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=750, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function ByrEdit2(bayarid) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.bayaredit.php?BayarID="+bayarid+"&md=0&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=750, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function fnTarikan(mhswid, khsid, md, bayarid) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.tarik.php?MhswID="+mhswid+"&KHSID="+khsid+"&md="+md+"&BayarID="+bayarid+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function fnPengembalian(mhswid, khsid, md, bayarid) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.pengembalian.php?MhswID="+mhswid+"&KHSID="+khsid+"&md="+md+"&BayarID="+bayarid+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function fnHistoryBeasiswa(mhswid, khsid, md) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.historybeasiswa.php?MhswID="+mhswid+"&KHSID="+khsid+"&md="+md+"&_rnd="+_rnd;
win2 = window.open(lnk, "", "width=700, height=600, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function CetakBPM(id, trx) {
_rnd = randomString();
lnk = "{$_SESSION['mnux']}.bpm.php?id="+id+"&_rnd="+_rnd+"&trx="+trx;
win2 = window.open(lnk, "", "width=600, height=400, scrollbars, status");
if (win2.opener == null) childWindow.opener = self;
}
function ByrDel(BayarMhswID, MhswID, TahunID) {
if (confirm("Benar Anda akan menghapus pembayaran ini? Mungkin daftar BIPOT di atas menjadi tidak balance lagi.")) {
window.location="?mnux={$_SESSION['mnux']}&gos=HapusBayar&BayarMhswID="+BayarMhswID+"&MhswID="+MhswID+"&TahunID="+TahunID;
}
}
</script>
SCR;
}