-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewTeacher.php
72 lines (72 loc) · 3.53 KB
/
viewTeacher.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
<?php $child = 'viewTeacher'; $page = 'Records'; include 'menu.php' ?>
<nav class="nav-wraper teal accent-5" style="position:sticky;top:0px;z-index:1;">
<div class="container flow-text center ">
<i class="fa bar fa-bars left" style="padding-top:15px;margin-left:-10px;cursor:pointer;"></i>
All Students
<?php
$time=mysqli_query($pcon,"SELECT * FROM teacher WHERE username='$user'");
$timeState=mysqli_fetch_assoc($time);
$diV=$timeState['showTime'];
// echo $diV;
if($diV == 'checked'){
echo '<div class="timeStamp right"></div>';
}
?>
</div>
</nav>
<div class="main_body" style="margin-left:280px;overflow-x:hidden">
<div class="" style="padding:3%">
<div class="z-depth-2 white" style="">
<div class="">
<div class="row darken-5" style="margin:0px;padding-top:0px;">
<div class="col-md-3 headView" style="padding-top:7px">
Total Number of Teachers :
<span style="font-weight:bold">
<?php
$myClass = $_SESSION['formTeacher'];
$getMyStudents= mysqli_query($pcon,"SELECT * FROM studentinfo WHERE studentCurrentClass='$myClass'");
$nStds=mysqli_num_rows($getMyStudents); echo $nStds;
?>
</span>
<br>Teachers Name
</div>
<div class="col-md-9 bodyViwe" style="padding:0px">
<nav>
<div class="nav-wrapper">
<form>
<div class="input-field teal lighten-3">
<input id="search" type="search">
<label class="label-icon" for="search"><i class="fa fa-search"></i></label>
<i class="material-icons"><i class="fa fa-times"></i></i>
</div>
</form>
</div>
</nav>
</div>
</div>
<?php
if($nStds > 0){
while ($student = mysqli_fetch_array($getMyStudents)){
?>
<div class="" style="padding:10px;cursor:pointer;border-top:1px solid rgba(194, 194, 194, 0.856)">
<img width="50px" height="50px" src="/studentImage/<?php echo $student['studentImage'];?>" class="circle red">
<span style="text-transform:capitalize;font-size:1.1rem;position:relative;left:4px">
<?php
echo $student['surName'].' '.$student['firstName'].' '.$student['otherName'];
?>
</span>
</div>
<?php
}
}else{
?>
<div class="" style="padding:10px;cursor:pointer;border-top:1px solid rgba(194, 194, 194, 0.856)">
No student in your class yet !
</div>
<?php
}
?>
</div>
</div>
</div>
</div>