-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
91 lines (75 loc) · 1.7 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require_once ("include/initialize.php");
// if(isset($_SESSION['IDNO'])){
// redirect(web_root.'modstudent/index.php');
// }
$content='home.php';
$view = (isset($_GET['q']) && $_GET['q'] != '') ? $_GET['q'] : '';
switch ($view) {
case 'department' :
$title="Department";
$content='menu.php';
break;
case 'enrol' :
$title="Enroll Now!";
$content='enrolment_form.php';
break;
case 'register' :
$title="Registering.........";
$content='register.php';
break;
case 'subjectlist' :
$title="Subject Offered";
$content='subjectlist.php';
break;
case 'validate' :
$title="Validating...";
$subjid = $_GET['id'];
$content='validatingsubject.php';
break;
case 'cart' :
$title="Subjects";
$content='cart.php';
break;
case 'subject' :
$title="Payments";
$content='coursesubject.php';
break;
case 'payment' :
$title="Processing............";
$content='payment.php';
break;
case 'profile' :
$title="Profile";
$content='student/profile.php';
break;
case 'contact' :
$title="Contact Us";
$content='contact.php';
break;
case 'about' :
$title="About Us";
$content='about.php';
break;
case 'login' :
$title="Login";
$content='login.php';
break;
case 'changing' :
$title="Product";
$content='student/changingdropping.php';
break;
case 'blog' :
$title="Announcement";
$content='blog.php';
break;
case 'singleblog' :
$title="Announcement";
$content='single-blog.php';
break;
default :
$title="Home";
$content ='home.php';
}
require_once("theme/templates.php");
?>