-
Notifications
You must be signed in to change notification settings - Fork 0
/
sp.php
278 lines (249 loc) · 9.94 KB
/
sp.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<?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
$college_details="select * from college_std_dtls where student_id = '$_SESSION[Username]'";
$result_college=mysqli_query($dbc,$college_details)
or die("Error in querring college table");
$clg_dtls=mysqli_fetch_array($result_college);
$_SESSION['id']=$clg_dtls['student_id'];
// receiving core courses of the student_id
$course="select * from core_courses where branch_name='$clg_dtls[branch_name]'";
$result_course=mysqli_query($dbc,$course)
or die("error in core courses");
$core_course=mysqli_fetch_array($result_course);
?>
<!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/sp.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">
<h2 >Student Profile:</h2>
</div>
<div class="col-md-2">
<img class="img-thumbnail" src="" alt="Student Image">
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4 form-group">
<label class="font-weight-bold">ID Number:</label>
<input type="text" class="form-control-plaintext" value="<?php echo $clg_dtls['student_id']?>" >
</div>
<div class="col-md-4 form-group">
<label class="font-weight-bold">Name:</label>
<input type="text" class="form-control-plaintext" value="<?php echo $clg_dtls['name']?>">
</div>
<div class="col-md-4 form-group">
<label class="font-weight-bold">Branch:</label>
<input type="text" class="form-control-plaintext" value="<?php echo $clg_dtls['branch_name']?>">
</div>
</div>
<div class="row">
<div class="col-md-4 form-group">
<label class="font-weight-bold">CGPA:</label>
<input type="text" class="form-control-plaintext" value="<?php echo $clg_dtls['cgpa']?>">
</div>
</div>
<hr>
<h5 class="font-weight-bold">On Campus Core Courses Details:</h5>
<div class="row">
<div class="col-md-6">
<table class="table text-center">
<thead>
<tr>
<th>Sl.No</th>
<th>Course Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td><?php echo $core_course['c1']; ?></td>
</tr>
<tr>
<td>2</td>
<td><?php echo $core_course['c2']; ?></td>
</tr>
<tr>
<td>3</td>
<td><?php echo $core_course['c3']; ?></td>
</tr>
<tr>
<td>4</td>
<td><?php echo $core_course['c4']; ?></td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-6">
<table class="table text-center">
<thead>
<tr>
<th>Sl.No</th>
<th>Course Name</th>
</tr>
</thead>
<tbody>
<tr>
<td>5</td>
<td><?php echo $core_course['c5']; ?></td>
</tr>
<tr>
<td>6</td>
<td><?php echo $core_course['c6']; ?></td>
</tr>
<tr>
<td>7</td>
<td><?php echo $core_course['c7']; ?></td>
</tr>
<tr>
<td>8</td>
<td><?php echo $core_course['c8']; ?></td>
</tr>
</tbody>
</table>
</div>
</div>
<hr>
</div>
<div class="container">
<h5 class="font-weight-bold">Enter Your Details Here: <small>(<span class="text-danger"> *</span> means <mark>required</mark> feild )</small></h5>
<form name="myform" method="post" action="submission.php" onsubmit="return(validate());" >
<div class="form-group ">
<label for="email_id">Email-ID: <span class="text-danger">*</span></label>
<input type="email" id="email_id" class="form-control" name="email_id" value="<?php echo $clg_dtls['email_id']?>" required>
</div>
<div class="form-group ">
<label for="address">Address:<span class="text-danger">*</span></label>
<textarea class="form-control" rows="2" id="address" name="address" placeholder="<?php echo $clg_dtls['address']?>" required></textarea>
</div>
<div class=" form-group">
<label for="">DOB:</label>
<input type="date" class="form-control" name="dob" required="">
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span id="mobile_error" class="input-group-text">Mobile Number:<span class="text-danger">*</span></span>
</div>
<input type="text" class="form-control" name="cc1" placeholder="Country code" maxlength="4" required>
<input type="text" class="form-control" id="mobile_num" name="mobile_num" value="<?php echo $clg_dtls['mobile_num']?>" maxlength="10" required>
</div>
</div>
<div class="form-group">
<label for="bg">Blood Group:<span class="text-danger">*</span></label>
<span id="bg_error" class="d-none">Select your Blood Group</span>
<select class="form-control" name="bg" id="bg" required>
<option value="1" selected>Select..</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
<option value="idk">Don't Know</option>
</select>
</div>
<div class="form-group">
<label for="e_person">Emergency Contact Person:<span class="text-danger">*</span></label>
<input type="text" id="e_person" class="form-control" name="e_person" placeholder="Enter the Person's Name.." required>
</div>
<div class="form-group">
<label for="relation">Relation:<span class="text-danger">*</span></label>
<input type="text" id="relation" class="form-control" name="relation" placeholder="Enter relation with the Person.." required>
</div>
<div class="form-group">
<div class="input-group">
<div class="input-group-prepend">
<span id="e_mob_error" class="input-group-text">Emergency Number:<span class="text-danger">*</span></span>
</div>
<input type="text" class="form-control" name="cc2" placeholder="Country code" maxlength="4" required>
<input type="text" id="e_number" class="form-control" name="e_number" placeholder="Enter the Person's Number.." maxlength="10" required>
</div>
</div>
<div class="form-group">
<label for="skills">Technical/Software Skills(If any)(Seperate Using comma(,)):</label>
<input type="text" id="skills" class="form-control" name="skills" placeholder="Seperate Using comma(,)">
</div>
<div class="form-group">
<label for="lang">Languages Known:</label>
<input type="text" id="lang" class="form-control" name="lang" placeholder="Seperate Using comma(,)">
</div>
<div class="form-group">
<label for="other">Any Other Details:</label>
<textarea name="other" id="other" class="form-control" rows="3" placeholder="Write it here..."></textarea>
</div>
<div class="form-group">
<label>
<input type="checkbox" id="checkbox" name="checkbox" required><span class="text-danger"> *</span>
I have read the <a href="undertaking.html" target="_blank">Undertaking</a> and agree to it
</label>
</div>
<div class="form-group">
<input type="submit" name="submit" value="Save Details">
</div>
</form>
</div>
<!-- Footer -->
<footer class="py-5 ">
<div class="container">
<p class="m-0 text-center text-white">Copyright © Presidency University 2018</p>
</div>
</footer>
</body>
</html>