-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
113 lines (98 loc) · 3.72 KB
/
Copy pathindex.php
File metadata and controls
113 lines (98 loc) · 3.72 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="view/css/index.css">
<link rel="stylesheet" type="text/css" href="view/css/student.css">
</head>
<body>
<div class="container">
<!-- Title of page -->
<div class="row">
<div class="col-md-12">
<?php include_once 'view/header.php' ?>
</div>
</div>
<!--Body section-->
<div class="row">
<!--Content view of page-->
<div class="col-md-8">
<?php
// echo $_GET['value'];
switch ($_GET['value']) {
//student pages
case 'student_list':
include 'view/student/student_list.php';
break;
case 'new_student':
include 'view/student/new_student.php';
break;
case 'edit_student':
//echo $_GET['single'];
include 'view/student/edit_student.php';
break;
case 'preview_student':
//echo $_GET['single'];
include 'view/student/preview_student.php';
break;
case 'update_student':
include 'view/student/update_student.php';
include 'view/student/student_list.php';
break;
//course pages
case 'course_list':
include 'view/course/course_list.php';
break;
case 'new_course':
include 'view/course/new_course.php';
break;
case 'edit_course':
//echo $_GET['single'];
include 'view/course/edit_course.php';
break;
case 'update_course':
echo 'value:' . $_POST['single'] . '<br>';
include 'view/course/update_course.php';
include 'view/course/course_list.php';
break;
case 'delete_course':
include 'view/course/delete_course.php';
include 'view/course/course_list.php';
break;
case 'assign_course':
include 'view/course_student/assign_course.php';
break;
case 'assign':
include 'view/course_student/assign.php';
include 'view/course_student/assign_course.php';
break;
case 'view_course':
include 'view/course_student/view_course.php';
break;
case 'view_student':
include 'view/course_student/student_course.php';
break;
default:
echo 'Welcome!!!';
}
?>
</div>
<!--Side menu-->
<div class="col-md-4">
<?php include_once 'view/side_menu.php' ?>
</div>
</div>
<!--Footer section-->
<div class="row">
<div class="col-md-12">
<?php include_once 'view/footer.php' ?>
</div>
</div>
</div>
</body>
</html>