-
Notifications
You must be signed in to change notification settings - Fork 0
/
SD.php
175 lines (159 loc) · 7.77 KB
/
SD.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
session_start();
if(!isset($_SESSION['logged_in']) || $_SESSION['logged_in']!=1)
header('location: login.php?err=2');
include 'connection.php';
// receiving student details from college's database
$Username=$_SESSION['Username'];
$college_details="select * from student_details where id = '$Username'";
$result_college=mysqli_query($dbc,$college_details) or die("Error in querring college table<br>".mysqli_error($dbc));
$college_details2="select * from college_std_dtls where student_id = '$Username'";
$result_college2=mysqli_query($dbc,$college_details2) or die("Error in querring college table<br>".mysqli_error($dbc));
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Student Profile</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<!-- JavaScript for this page -->
<script src="assets/js/sp.js"> </script>
<!-- CSS for this page -->
<link rel="stylesheet" href="assets/css/SD.css">
</head>
<body>
<div class="container-fluid mb-2 mt-2">
<div class="row">
<div class="col-md-3">
<img class=" logo" src="assets/img/logo.png" alt="Presidency Logo">
</div>
<div class="col-md-6 text-center ">
<h3>Presidency University,Bengaluru</h3>
<h4>School of Engineering</h4>
<h4>Industrial Practice Division</h4>
</div>
</div>
</div>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark sticky-top">
<div class="container">
<a class="navbar-brand" href="">Presidency University</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<span class="navbar-text text-light"> </span>
<li class="nav-item">
<a class="nav-link" href="logout.php">Logout </a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row mt-3 mb-3">
<div class="col-md-10">
</div>
<div class="col-md-2">
</div>
</div>
</div>
<div>
<div class="jumbotron" style="margin: 21px 256px 109px;
padding: 49px 81px 56px;
border-radius: 15px;">
<table class="table text-center">
<thead>
<tr>
<td class="text-center" colspan="100%"><b><u>STUDENT DETAILS</u></b></td>
</tr>
</thead>
<tbody>
<?php
$clg_dtls=mysqli_fetch_array($result_college);
$clg_dtls2=mysqli_fetch_array($result_college2);
?>
<tr>
<th scope="row" class="text-left">ID Number</th>
<td class="text-left"><?php echo $clg_dtls['id']; ?></td>
</tr>
<tr>
<th scope="row" class="text-left">Name</th>
<td class="text-left"><?php echo $clg_dtls2['name']; ?></td>
</tr>
<tr>
<th scope="row" class="text-left">Branch</th>
<td class="text-left"><?php echo $clg_dtls2['branch_name']; ?></td>
</tr>
<tr>
<th scope="row" class="text-left">Gender</th>
<td class="text-left"><?php echo $clg_dtls2['gender']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Date of Birth</b></td>
<td class="text-left"><?php echo $clg_dtls['dob']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Mobile Number</b></td>
<td class="text-left"><?php echo $clg_dtls['mobile_num']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Email ID</b></td>
<td class="text-left"><?php echo $clg_dtls['email_id']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Address</b></td>
<td class="text-left"><?php echo $clg_dtls['address']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Blood Group</b></td>
<td class="text-left"><?php echo $clg_dtls['blood_group']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Emergency Number</b></td>
<td class="text-left"><?php echo $clg_dtls['emergency_num']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Emergency Person</b></td>
<td class="text-left"><?php echo $clg_dtls['emergency_person']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Relation</b></td>
<td class="text-left"><?php echo $clg_dtls['relation']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Skills</b></td>
<td class="text-left"><?php echo $clg_dtls['skills']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Languages</b></td>
<td class="text-left"><?php echo $clg_dtls['languages']; ?></td>
</tr>
<tr>
<td class="text-left"><b>Extra Details</b></td>
<td class="text-left"><?php echo $clg_dtls['extra_details']; ?></td>
</tr>
</tbody>
</table>
<a href="pref.php">
<button type="button" name="button" class="btn btn-primary">Next</button>
</a>
</div>
</div>
<!-- Footer -->
<footer class="py-5 text-center" >
<div class="container">
<p class="m-0 text-center text-white">Copyright © Presidency University 2018</p>
</div>
</footer>
</body>
</html>