-
Notifications
You must be signed in to change notification settings - Fork 0
/
userProfile.php
138 lines (103 loc) · 4.97 KB
/
userProfile.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
<?php
//------------------------------>> CENTRALIZED TECHFEST NAME WITH YEAR
require_once "config/techfestName.php";
//------------------------------>> DB CONFIG
require_once "config/configPDO.php";
// ------------------------------>> START SESSION
session_start();
// ------------------------------>> CHECKING USER
if (!isset($_SESSION['user'])) {
header("location:login.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo $techfestName ?> | USER PROFILE</title>
<!-- Include Header Scripts -->
<?php include_once "includes/headerScripts.php";?>
</head>
<body>
<!-- Include User Navbar-->
<?php include_once "includes/navbar.php";?>
<main class="container">
<h4 class="breadcrumb text-uppercase font-time mt-5">User Profile</h4>
<div class="row">
<section class="col-md-3 offset-md-1 my-5">
<div class="text-center">
<img src="" id="showProfileImage" class="img-fluid rounded-circle mb-3" style="height:220px">
</div>
<!-- Change Profile Image -->
<form method="post" enctype="multipart/form-data" id="changeProfileImageForm">
<div class="form-group">
<label>Change Profile Image</label>
<input type="file" id="updateProfileImage" class="form-control-file" accept=".jpg, .jpeg, .png"
name="updateProfileImage">
<input type="hidden" name="hiddenImageName" id="hiddenImageName">
<input type="hidden" name="hiddenEmail2" id="hiddenEmail2">
<input type="submit" value="Change Profile Image" class="btn btn-primary mt-3"
id="changeProfileImage">
</div>
</form>
</section>
<section class="col-md-5 text-center my-5 offset-md-2">
<div id="updateResponse"></div>
<form action="" method="post" name="userProfileForm" id="userProfileForm">
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">First Name</label>
</div>
<input type="text" class="form-control" name="updateFirstName" id="updateFirstName">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">Last Name</label>
</div>
<input type="text" class="form-control" name="updateLastName" id="updateLastName">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">Mobile Number</label>
</div>
<input type="text" class="form-control" name="updateMobileNumber" id="updateMobileNumber">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">Academic Year</label>
</div>
<input type="text" class="form-control" name="updateAcademicYear" id="updateAcademicYear">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">Department Name</label>
</div>
<input type="text" class="form-control" name="updateDepartmentName" id="updateDepartmentName">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<label class="input-group-text">College Name</label>
</div>
<input type="text" class="form-control" name="updateCollegeName" id="updateCollegeName">
</div>
<input type="hidden" name="hiddenEmail" id="hiddenEmail">
<input type="submit" value="Update" name="updateUserProfile" id="updateUserProfile"
class="btn btn-primary btn-block rounded-pill">
</form>
</section>
</div>
</main>
<!-- Include Footer & Footer Scripts-->
<?php
include_once "includes/footer.php";
include_once "includes/footerScripts.php";
?>
<!-- Javascript -->
<script src="js/userProfile.js"></script>
<!-- Close Database Connection -->
<?php $conn = null;?>
</body>
</html>