-
Notifications
You must be signed in to change notification settings - Fork 0
/
_proseshitungkeumhsw.php
57 lines (51 loc) · 1.82 KB
/
_proseshitungkeumhsw.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
// Author: Emanuel Setio Dewo
// 18 July 2006
// Author: Emanuel Setio Dewo
// 18 Juli 2006
// www.sisfokampus.net
session_start();
include_once "sisfokampus.php";
HeaderSisfoKampus("Proses Total KHS Mahasiswa");
// *** Functions ***
function TampilkanHeaderProses() {
$optprodi = GetOption2('prodi', "concat(ProdiID, ' - ', Nama)", 'ProdiID', $_SESSION['prodi'], '', 'ProdiID');
echo "<p><table cellspacing=1 cellpadding=4>
<form action='_proseshitungkeumhsw.php' method=POST>
<input type=hidden name='gos' value='ProsesHitung'>
<tr><td>Tahun Akademik</td>
<td><input type=text name='tahun' value='$_SESSION[tahun]' size=6 maxlength=5></td></tr>
<tr><td>Program Studi</td>
<td><select name='prodi'>$optprodi</select></td></tr>
<tr><td colspan=2><input type=submit name='Proses' value='Proses'></td></tr>
</form></table></p>";
}
function ProsesHitung() {
$s = "select KHSID, MhswID
from khs
where TahunID='$_SESSION[tahun]'
and ProdiID='$_SESSION[prodi]'
order by KHSID";
$r = _query($s);
$jml = _num_rows($r); $n = 0;
echo "<hr><p>Jumlah data: <font size=+1>$jml</font></p>";
while ($w = _fetch_array($r)) {
$n++;
$_SESSION['HTG-MhswID-'. $_SESSION['prodi'] . $n] = $w['MhswID'];
$_SESSION['HTG-KHSID-' . $_SESSION['prodi'] . $n] = $w['KHSID'];
}
$_SESSION['HTG-Max-'. $_SESSION['prodi']] = $jml;
$_SESSION['HTG-Pos-'. $_SESSION['prodi']] = 0;
// IFRAME
echo "<p><IFRAME src='_proseshitungkeumhsw.go.php?gos=prckeu' frameborder=0 height=400 width=300>
</IFRAME></p>";
}
// *** Parameters ***
$tahun = GetSetVar('tahun');
$prodi = GetSetVar('prodi');
$gos = (empty($_REQUEST['gos']))? 'donothing' : $_REQUEST['gos'];
// *** Main ***
TampilkanJudul("Proses Hitung Keuangan Mahasiswa");
TampilkanHeaderProses();
$gos();
?>