-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
183 lines (152 loc) · 5.04 KB
/
settings.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
<?php
session_start();
include_once 'dbconnect.php';
$mysqli=$conn;
if(isset($_SESSION['weather']))
{
$usrid=$_SESSION['weather'];
}
else
{
header("location: index.php");
exit;
}
$res=mysqli_query($conn,"SELECT usrid, fname, lname, email, purpose FROM login WHERE usrid='$usrid'");
$row=mysqli_fetch_array($res);
$name=$row['fname']." ".$row['lname'];
$email=$row['email'];
$pur=$row['purpose'];
$res1=mysqli_query($conn,"SELECT accpic FROM profile WHERE usrid='$usrid'");
$row1=mysqli_fetch_array($res1);
$filenamee=$row1['accpic'];
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="imgs/favicon.ico" type="image/x-icon">
<link type="text/css" rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<style>
body, html {
height: 100%;
margin: 0;
overflow-x: hidden;
scroll-behavior: smooth;
}
.bg {
background: linear-gradient(to right, #00F260, #0575E6);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.nv :hover, .nv :focus{
color: #ff6600;
}
.nav-link{
color: #888;
}
.ddp :focus, .ddp:active{
background: #ff6600 !important;
}
.yoh{
width: 50%;
}
@media (max-width: 767.98px) {
.yoh{
width: 100%;
}
}
</style>
</head>
<body>
<?php include 'nav.php';
?>
<div class="bg jumbotron" id="acnt" style="border-radius: 0; margin: 0;">
<div class="mx-5 my-2">
<div class="modal-body" style="width: 100%; margin: auto;">
<div class="row align-items-center mb-0">
<div class="col-md">
<div class="d-flex justify-content-md-center mt-3">
<img src="submissions/<?php echo $usrid."/".$filenamee ?>" height="150px" width="150px" style="border-radius: 50%;">
</div>
<br><br>
<div class="d-flex justify-content-md-center">
<a class="btn btn-outline-light ml-sm-2" style="border-radius: 50px;" data-toggle="modal" href="#chngdp">Change</a>
</div>
<br><br>
</div>
<!--<br><br>-->
<div class="col-md">
<div>
<h5 class="text-light">User ID: <?php echo $usrid; ?></h5>
</div>
<br>
<div>
<h5 class="text-light">Name: <?php echo $name; ?></h5>
</div>
<br>
<div>
<h5 class="text-light">Email: <?php echo $email; ?></h5>
</div>
<br>
<div>
<h5 class="text-light">Purpose: <?php echo $pur; ?></h5>
</div>
<br>
<!--<div>
<a data-toggle="modal" href="#!" data-target="#Modal3"><h5 class="text-light">Change Password</h5>
</div>-->
</div>
</div>
</div>
<!--<br><br>
<a href="#" class="text-white" data-toggle="modal" data-target="#pl">Problem logging in?</a>-->
<br><br>
<!--<a href="#" class="text-white" data-toggle="modal" data-target="#fp">Forgot Password?</a>-->
</div>
</div>
<!--Change dp-->
<div class="modal fade" id="chngdp" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content bg-dark">
<div class="modal-header">
<h5 class="modal-title text-light" id="exampleModalLabel">Change Profile Picture</h5>
<button type="button" class="close text-light" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form method="post" action="submit.php?id=<?php echo $usrid;?>" enctype="multipart/form-data">
<input class="text-white" name="upload[]" type="file" accept="image/*" />
</div>
<div class="modal-footer">
<button type="submit" name="dpchn" class="btn btn-outline-light ml-sm-2" style="border-radius: 50px" style="width:100%;" aria-label="submit">Upload</button>
</form>
</div>
</div>
</div>
</div>
<!--change password-->
<?php include 'pass_change.php';
?>
<!--delete account-->
<?php include 'del_modal.php';
?>
<?php include 'footer.php';
?>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="js/bootstrap.js"></script>
<script>
$(document).ready(function(){
$('.dropdown-toggle').dropdown()
});
</script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
</body>
</html>