-
Notifications
You must be signed in to change notification settings - Fork 0
/
userAccount.php
94 lines (77 loc) · 3.11 KB
/
userAccount.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
<?php
include "./AdditionalPHP/startSession.php";
include "./AdditionalPHP/checkAccess.php";
$uname = $_SESSION['uname'];
include "connection.php";
$sql = "SELECT * FROM user WHERE uname='$uname'";
$result= mysqli_query($conn, $sql);
if(mysqli_num_rows($result) === 1){
$row = mysqli_fetch_assoc($result);
}
$uname = $row['uname'];
$password = $row['pass'];
$fname = $row['fname'];
$lname = $row['lname'];
$email = $row['email'];
$address = $row['address'];
$phone = $row['phone'];
$description = $row['description'];
$titleName = strtoupper($fname);
include "./AdditionalPHP/updateProfile.php";
?>
<!DOCTYPE html>
<html lang="en-MU">
<head>
<meta charset="utf-8">
<title>PATISSERIE | MY ACCOUNT</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css">
<!--CSS File-->
<link rel="stylesheet" type="text/css" href="Common.css">
<link rel="stylesheet" type="text/css" href="Account.css">
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/0e16635bd7.js" crossorigin="anonymous"></script>
<!--BOXICONS-->
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<!-- Animate CSS -->
<link rel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
</head>
<body>
<?php $page = 'checkaccount';?>
<!--Start Navigation Bar-->
<?php include './Includes/MobileNavBar.php';?>
<!--End Navigation Bar-->
<!--Start Navigation Bar @media 1200px-->
<?php include './Includes/PcNavBar.php';?>
<!--End Navigation Bar @media 1200px-->
<!-- Start Header -->
<div id="screenRes" class="col-md-15">
<div class="form-name-container">
<div class="admin-subtitle">
<span><i class="fas fa-user-cog"></i></span>
<span> HELLO <?php echo $titleName;?></span>
<span class="user-logout"><a href="logout.php"><button type="button" title="Logout" class="btn btn-danger"><span class="glyphicon glyphicon-log-in"></span></button></a></span>
</div>
</div>
</div>
<!-- End Header -->
<!-- Start Tab -->
<div class="container">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="pill" href="#home">Edit Profile</a></li>
</ul>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<div class="tab-title">
<h3>Edit My Profile</h3>
</div>
<!--Start User Profile-->
<?php include './Includes/userProfile.php'; ?>
<!-- End User Profile -->
</div>
</div>
</div>
<!-- End Tab -->
</body>
</html>