-
Notifications
You must be signed in to change notification settings - Fork 13
/
profileEdit.php
126 lines (119 loc) · 6.34 KB
/
profileEdit.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
<?php
session_start();
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Profile: <?php echo $_SESSION['Username']; ?></title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="bootstrap\css\bootstrap.min.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="bootstrap\js\bootstrap.min.js"></script>
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="subpage">
<?php
require 'menu.php';
?>
<section id="post" class="wrapper bg-img" data-bg="banner2.jpg">
<div class="inner">
<div class="box">
<header>
<span class="image left"><img src="<?php echo 'images/profileImages/'.$_SESSION['picName'].'?'.mt_rand(); ?>" class="img-circle" class="img-responsive" height="200px"></span>
<br>
<h2><?php echo $_SESSION['Name'];?></h2>
<h4><?php echo $_SESSION['Username'];?></h4>
<br>
<form method="post" action="Profile/updatePic.php" enctype="multipart/form-data">
<input type="file" name="profilePic" id="profilePic">
<br>
<div class="12u$">
<input type="submit" class="button special small" name="upload" value="Upload" />
<input type="submit" class="button special small" name="remove" value="Remove" />
</div>
</form>
</header>
<form method="post" action="Profile/updateProfile.php">
<div class="row uniform">
<div class="8u 12u$(xsmall)">
<input type="text" name="name" id="name" value="<?php echo $_SESSION['Name'];?>" placeholder="Full Name" required />
</div>
<div class="4u 12u$(xsmall)">
<input type="text" name="mobile" id="mobile" value="<?php echo $_SESSION['MobileNo'];?>" placeholder="Mobile No" required/>
</div>
<div class="6u 12u$(xsmall)">
<input type="text" name="uname" id="uname" value="<?php echo $_SESSION['Username'];?>" placeholder="Username" required/>
</div>
<div class="6u 12u$(xsmall)">
<input type="email" name="email" id="email" value="<?php echo $_SESSION['Email'];?>" placeholder="Email" required/>
</div>
<div class="6u 12u$(xsmall)">
<div class="select-wrapper">
<select name="section" id="section">
<option value="<?php echo $_SESSION['Section'];?>"><?php echo $_SESSION['Section'];?></option>
<option value="Band">Band</option>
<option value="Drama">Drama</option>
<option value="Dance">Dance</option>
<option value="Decoration">Decoration</option>
<option value="Other">Other</option>
</select>
</div>
</div>
<div class="6u 12u$(xsmall)">
<input type="text" name="post" id="post" value="<?php echo $_SESSION['Post'];?>" placeholder="Post Name" required/>
</div>
<p>
<b>Education : </b>
</p>
<div class="3u 12u$(small)">
<input type="radio" id="diploma" name="edu" value="Diploma" checked>
<label for="1">Diploma</label>
</div>
<div class="3u 12u$(small)">
<input type="radio" id="btech" name="edu" value="B.TECH">
<label for="btech">B.TECH</label>
</div>
<div class="3u 12u$(small)">
<input type="radio" id="mtech" name="edu" value="M.TECH">
<label for="mtech">M.TECH</label>
</div>s
<p>
<b>Choose Year : </b>
</p>
<div class="2u 12u$(small)">
<input type="radio" id="1" name="year" value="1" checked>
<label for="1">1<sup>st</sup> Year</label>
</div>
<div class="2u 12u$(small)">
<input type="radio" id="2" name="year" value="2">
<label for="2">2<sup>nd</sup> Year</label>
</div>
<div class="2u 12u$(small)">
<input type="radio" id="3" name="year" value="3">
<label for="3">3<sup>rd</sup> Year</label>
</div>
<div class="2u 12u$(small)">
<input type="radio" id="4" name="year" value="4">
<label for="4">4<sup>th</sup> Year</label>
</div>
<div class="12u$">
<center>
<input type="submit" class = "button special" value="Update Profile" />
</center>
</div>
</div>
</form>
</div>
</div>
</section>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>