-
Notifications
You must be signed in to change notification settings - Fork 0
/
_proses_mhsw_keluar.go.php
45 lines (40 loc) · 1.26 KB
/
_proses_mhsw_keluar.go.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
<?php
// Author: Emanuel Setio Dewo
// 25 Nov 2006
// www.sisfokampus.net
session_start();
include "db.mysql.php";
include "connectdb.php";
include "dwo.lib.php";
include "krs.lib.php";
ProsesKeluar();
// *** functions ***
function ProsesKeluar() {
$_SESSION["KEL-POS"]++;
$pos = $_SESSION["KEL-POS"];
$max = $_SESSION["KEL-MAX"];
if (!empty($_SESSION["KEL-MhswID-$pos"])) {
$MhswID = $_SESSION["KEL-MhswID-$pos"];
$StatusMhswID = $_SESSION["KEL-StatusMhswID-$pos"];
$SKKeluar = $_SESSION["KEL-SKKeluar-$pos"];
$TglSKKeluar = $_SESSION["KEL-TglSKKeluar-$pos"];
$Tahun = $_SESSION["KEL-Tahun-$pos"];
$s = "update mhsw
set StatusMhswID='$StatusMhswID',
SKKeluar='$SKKeluar',
TglSKKeluar='$TglSKKeluar',
TahunKeluar='$Tahun'
where MhswID='$MhswID' ";
$r = _query($s);
$persen = ($max == 0)? "0" : number_format($pos/$max*100, 2);
echo "<p>Progress: <font size=+4>$persen</font> %<br />
Processing: <font size=+1>$MhswID</font>
<hr size=1 color=silver>
<pre>$s</pre>";
}
if ($pos < $max) {
echo "<script type='text/javascript'>window.onload=setTimeout('window.location.reload()', 0);</script>";
}
else echo "<hr><p>Proses Selesai</p>";
}
?>