forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateProfile.php
168 lines (149 loc) · 7.57 KB
/
updateProfile.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
<?php
session_start();
if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"]==false)
{
header("location: ./index.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Update Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Custom Theme files -->
<!-- <link href="css/style.css" rel="stylesheet" type="text/css" media="all" /> -->
<!-- //Custom Theme files -->
<!-- web font -->
<link href="//fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i" rel="stylesheet">
<!-- //web font -->
<link type="text/css" rel="stylesheet" href="css/signup.css">
<link rel="stylesheet" href="css/templatemo-style.css">
<script type="text/javascript" src="//connect.facebook.net/en_US/all.js#xfbml=1&appId=224254148413683" id="facebook-jssdk"></script><script src='https://code.jquery.com/jquery-2.2.0.min.js'></script>
<style>
.section-heading h1{
display: block !important;
margin-right: 0px;
}
.section-heading h1 span{
font-size: 50px;
background: #E4F9FF;
text-align: center;
padding: 8px 12px;
}
@media screen and (max-width:695px){
.section-heading h1 span{
font-size: 32px;
}
}
@media screen and (max-width:477px){
.section-heading h1 span{
font-size: 24px;
}
}
body {
background: #EEFBFF;
background: url('img/bggg.png');
background-size: cover;
font-family: 'Montserrat' Semibold ;
}
</style>
</head>
<body>
<!-- main -->
<div class="main-w3layouts wrapper">
<div class="section-heading">
<h1 class="header1"><span style="font-size: 50px; background: #E4F9FF; text-align: center;">SAAR <em>Profile Update Form</em></span></h1>
</div>
<?php
if(isset($_SESSION['error'])){
echo"<div class='message-beauty'>".$_SESSION['error']."</div>";
}
unset($_SESSION['error']);
?>
<div class="main-agileinfo">
<div class="agileits-top">
<form action="profileUpdate.php" method="post">
<input class="text" type="text" name="fname" placeholder="First Name" value=<?php echo $_SESSION['fname'];?> disabled>
<input class="text" type="text" name="lname" placeholder="Last Name" value=<?php echo $_SESSION['lname'];?> disabled>
<input class="text" type="tel" name="contact" placeholder="Contact no." value=<?php echo $_SESSION['contact'];?> required>
<input class="text" type="text" name="fbId" placeholder="Facebook Profile Link(optional)" value=<?php echo $_SESSION['fb'];?> >
<input class="text" type="text" name="linkden" placeholder="Linkden Profile Link(optional)" value=<?php echo $_SESSION['linkden'];?> >
<input class="text" type="date" name="DOB" placeholder="Date of Birth" required onfocus="(this.type='date')" value=<?php echo $_SESSION['dob'];?> disabled>
<i class="ui calendar icon"></i>
<input class="text" type="text" name="passingyear" placeholder="Graduation Year(20XX)" value=<?php echo $_SESSION['graduation'];?> disabled>
<select type="text" id="degree" name="degree" class="ui search selection dropdown" disabled>
<option value=<?php echo $_SESSION['degree'];?> selected ><?php echo $_SESSION['degree'];?></option>
<option value="B.Tech">B.Tech/B.E</option>
<option value="M.Tech">M.Tech/M.E</option>
<option value="M.Sc">M.Sc</option>
<option value="P.hd">P.hd</option>
</select>
<select type="text" id="branch" name="dept" class="ui search selection dropdown" disabled>
<option value=<?php echo $_SESSION['dept'];?> selected ><?php echo $_SESSION['dept']?></option>
<option value="Computer Science and Engineering">Computer Science and Engineering</option>
<option value="Electrical Engineering">Electrical Engineering</option>
<option value="Mechanical Engineering">Mechanical Engineering</option>
<option value="Civil Engineering">Civil Engineering</option>
<option value="Chemical and Biochemical Engineering">Chemical and Biochemical Engineering</option>
</select>
<select type="text" id="etype" name="etype" class="ui dropdown">
<option value=<?php echo $_SESSION['employment_type'];?> selected ><?php echo $_SESSION['employment_type'];?></option>
<option value="Salaried">Salaried</option>
<option value="Entrepreneur">Entrepreneur</option>
<option value="Higher Studies">Higher Studies</option>
<option value="Civil Services">Civil Services</option>
</select>
<input type="text" placeholder="Present Employer/Educational Inst." name="presentEmployer" value="<?php echo $_SESSION['present_employer'];?>" >
<input type="text" placeholder="Designation" name="designation" value="<?php echo $_SESSION['designation'];?>" >
<textarea type="text" name="address" required="" placeholder="Address"><?php echo $_SESSION['address']; ?></textarea>
<input type="text" placeholder="Country" name="country" value="<?php echo $_SESSION['country']; ?>" required>
<input type="text" placeholder="State" name="state" value="<?php echo $_SESSION['state'];?>" required>
<input type="text" placeholder="City" name="city" value="<?php echo $_SESSION['city'];?>" required>
<textarea type="text" name="achievements" placeholder="Achievements After Graduation"><?php echo $_SESSION['achievements']; ?></textarea>
<div class="wthree-text">
<label class="anim">
<input type="checkbox" class="checkbox" required="">
<span>I Agree To The Terms & Conditions</span>
</label>
<div class="clear"> </div>
</div>
<input type="submit" value="UPDATE">
</form>
<a href="./portal.php"><button style="font-size: .9em;
color: #fff;
background: #003C4D;
outline: none;
border: 1px solid #003C4D;
cursor: pointer;
padding: 0.9em;
-webkit-appearance: none;
width: 100%;
margin: 2em 0;
letter-spacing: 4px;">BACK</button></a>
</div>
</div>
<!-- copyright -->
<section id="footer">
<div class="colorlibcopy-agile">
<p>|| © SAAR Club || All rights reserved ||</p>
</div>
</section>
<!-- //copyright -->
<ul class="colorlib-bubbles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<!-- //main -->
</body>
</html>