-
Notifications
You must be signed in to change notification settings - Fork 0
/
import_complete.php
executable file
·43 lines (42 loc) · 1.25 KB
/
import_complete.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
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<?php
switch ($_POST['import_dest']) {
case "enrolled":
$title = "Enrolled Students";
break;
case "paid":
$title = "Students that have Paid";
break;
case "admin":
$title = "Students that are on Admin Hold";
break;
case "guest":
$title = "Students that have Paid for a Guest Pass";
break;
}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo $title; ?></title>
</head>
<body>
<?php
require_once 'lib/class.db.php';
require_once 'lib/class.import.php';
echo "<h1>" . $title . "</h1>\n";
if (isset($_POST['import_dest'])) {
$final = new import('stage');
$final->from_stage($_POST['import_dest']);
$final->process();
}
?>
<br />
<a href="import.php">Import Another List</a><br />
<a href="index.php">Done</a>
</body>
</html>