forked from ictslgti/sis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBatchStudent.php
More file actions
131 lines (94 loc) · 3.45 KB
/
Copy pathBatchStudent.php
File metadata and controls
131 lines (94 loc) · 3.45 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!-- BLOCK#1 START DON'T CHANGE THE ORDER -->
<?php
$title = "Batch Student Details | SLGTI" ;
include_once("config.php");
include_once("head.php");
include_once("menu.php");
?>
<!-- END DON'T CHANGE THE ORDER -->
<!-- BLOCK#2 START YOUR CODER HERE -->
<div class="shadow p-3 mb-5 alert bg-dark rounded text-white text-center" role="alert">
<div class="highlight-blue">
<div class="container">
<div class="intro">
<h1 class="display-3 text-center">Student Details</h1>
<!-- <h3 class="display-5 text-center">Department Of Information & Communication Technology</h3> -->
<!-- <p class="text-center"></p> -->
</div>
</div>
</div>
</div>
<!-- <h1>Batch Details of ICT Department</h1> -->
<a href="AddStudent" button type="button" class="btn btn-success"><i class="fas fa-plus"></i> Add New Student </a>
<!-- <button type="button" class="btn btn-success">+ Add New Batch</button> -->
<br><br>
<table class="table table-hover">
<thead class="thead-dark">
<tr >
<th scope="col">Student_ID</th>
<th scope="col">Student Name</th>
<th scope="col">Enroll Date</th>
<th scope="col">Status</th>
<!-- <th scope="col">Profile</th> -->
<!-- cid=5IT&ay=2017/2018 -->
</tr>
</thead>
<tbody>
<tr class="table-light">
<?php
if(isset($_GET['BSt'])&& isset($_GET['AcY']))
{
$C_id= $_GET['BSt'];
$academic_year= $_GET['AcY'];
$sql = "SELECT `student_enroll`.`student_enroll_date`,`student`.`student_fullname`,
`student`.`student_id`,`student_enroll`.`student_enroll_status`
FROM
`student_enroll`
LEFT JOIN `student` ON
`student`.`student_id` = `student_enroll`.`student_id`
WHERE `student_enroll`.`course_id` = '$C_id'
AND `student_enroll`.`academic_year` = '$academic_year'";
$result = mysqli_query($con, $sql);
if (mysqli_num_rows($result)>0){
while ($row = mysqli_fetch_assoc($result)){
echo'
<tr>
<td>' . $row ["student_id"].'</td>
<td>' . $row ["student_fullname"].'</td>
<td>' . $row ["student_enroll_date"].'</td>
<td>' . $row ["student_enroll_status"].'</td>
</td>
</tr>';
}
}else{
echo "0 results";
}
}
?>
<!-- <td> -->
<!-- <a href="Student.php?S_Id='.$row["student_id"].'" class="btn btn-sm btn-primary" role="button" aria-pressed="true"><i class="fas fa-file-alt"> View</i></a> -->
<!-- <td>2018/ICT/5IT/15</td>
<td>N.Abdullah</td>
<td>2018.10.15 </td>
<td><span class="badge badge-success">Active </span></td> -->
<!-- <th><a href="" class="btn btn-outline-secondary" role="button" aria-pressed="true"><i class="fas fa-eye"> View</i></a></th> -->
</tr>
</tbody>
</form>
</table>
<br>
<a href="BatchDetails" class="btn btn-primary" role="button" aria-pressed="true">Back</a>
<!-- SELECT `student_enroll`.`student_enroll_date`,`student`.`student_fullname`,
`student`.`student_id`,`student_enroll`.`student_enroll_status`
FROM
`student_enroll`
LEFT JOIN `student` ON
`student`.`student_id` = `student_enroll`.`student_id`
WHERE `student_enroll`.`course_id` = '5IT'
AND `student_enroll`.`academic_year` = '2018/2019' -->
<!-- END YOUR CODER HERE -->
<!-- BLOCK#3 START DON'T CHANGE THE ORDER -->
<?php
include_once("footer.php");
?>
<!-- END DON'T CHANGE THE ORDER -->