-
Notifications
You must be signed in to change notification settings - Fork 23
/
view_more.php
101 lines (95 loc) · 3.12 KB
/
view_more.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
<?php
include './Database/Controler.php';
include 'role.php';
$d1=$_REQUEST["d1"];
$data= unserialize($d1);
?>
<form method="post">
<button type="submit" id="back6" name="back6" class="btn btn-primary">Back</button>
</form>
<h2><center>Details of <?php foreach ($data as $d) {
echo $d->fnm." ".$d->lnm; }?></h2>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" id="dataTables-example">
<thead>
<tr>
<td style="width:30%"><b>Enrollment Number</b></td>
<td><?php foreach ($data as $d) {
echo $d->s_enrl; }?></td>
</tr>
<tr>
<td><b>Roll Number</b></td>
<td><?php foreach ($data as $d) {
echo $d->s_rn; }?></td></tr>
<tr>
<td><b>Gender</b></td>
<td><?php foreach ($data as $d) {
if($d->s_gen==1){
echo "Female"; }
else {
echo "Male";
}}?></td>
</tr>
<tr>
<td><b>Email</b></td>
<td><?php foreach ($data as $d) {
echo $d->email; }?></td>
</tr>
<tr>
<td><b>Contact</b></td>
<td><?php foreach ($data as $d) {
echo $d->contact; }?></td>
</tr>
<tr>
<td><b>Course</b></td>
<td><?php foreach ($data as $d) {
if($d->c_id==0){
echo "M.Sc.(CA & IT)"; }
else {
echo "MBA";
} }?></td>
</tr>
<?php
foreach($data as $d)
{
if($d->c_id==0 && $d->sem==6) {?>
<tr>
<td><b>Special Subject</b></td>
<td><?php
$where=array("usub_id"=>$d->usub_id);
$sr=$md->sel_where($con,"subject",$where);
foreach($sr as $s){
echo $s->sub_name; }?></td>
</tr>
<?php }
elseif($d->c_id==1 && $d->sem==9 || $d->sem==10){?>
<tr>
<td><b>Special Subject</b></td>
<td><?php
$where=array("usub_id"=>$d->usub_id);
$sr=$md->sel_where($con,"subject",$where);
foreach($sr as $s){
echo $s->sub_name; }?></td>
</tr>
<?php }}
?>
<tr>
<td><b>Semester</b></td>
<td><?php foreach ($data as $d) {
echo "Semester ".$d->sem; }?></td>
</tr>
<tr>
<td><b>Division</b></td>
<td><?php foreach ($data as $d) {
echo strtoupper($d->division); }?></td>
</tr>
</table>
<?php
include 'footer.php';
?>