-
Notifications
You must be signed in to change notification settings - Fork 23
/
view_fac.php
117 lines (112 loc) · 3.78 KB
/
view_fac.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
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
<?php
include './Database/Controler.php';
include 'role.php';
$data=$_SESSION["vf"];
?>
<form method="post">
<button type="submit" id="back9" name="back9" class="btn btn-primary">Back</button>
</form><br><br>
<h3><center><i class="fa fa-user"></i><b>
<?php
$cnt=0;
foreach ($data as $d)
{
echo $d->fac_name;
$cnt++;
if($cnt==1) break;
}
?>
</b></center></h3><br><br>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<td><b>Faculty Code :</b></td>
<td><?php
$cnt=0;
foreach ($data as $d)
{
echo $d->fac_id;
$cnt++;
if($cnt==1) break;
}
?></td>
</tr>
<tr>
<td><b>Email :</b></td>
<td><?php
$cnt=0;
foreach ($data as $d)
{
echo $d->email;
$cnt++;
if($cnt==1) break;
}
?></td>
</tr>
<tr>
<td><b>Contact No :</b></td>
<td><?php
$cnt=0;
foreach ($data as $d)
{
echo $d->contact;
$cnt++;
if($cnt==1) break;
}
?></td>
</tr>
<tr>
<td><b>Role :</b></td>
<td><?php
$cnt=0;
foreach ($data as $d)
{
if($d->role==1)
echo "Admin";
else
echo "Faculty";
$cnt++;
if($cnt==1) break;
}
?></td>
</tr>
<tr>
<td><b>Stream :</b></td>
<td><?php
$cnt=0;
foreach ($data as $d)
{
if($d->c_id==0)
echo "MSc (CA & IT)";
else if($d->c_id==1)
echo "MBA";
else
echo "MBA & Msc (CA & IT)";
$cnt++;
if($cnt==1) break;
}
?></td>
</tr>
<tr>
<td><b>Assigned Subjects :</b></td>
<td><?php
$cnt=0;
foreach($data as $d)
{
$cnt++;
echo $cnt.") ".$d->sub_name."<br>";
}
?></td>
</tr>
</thead>
<tbody>
</table>
<?php
include 'footer.php';
?>