-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustomer-myAccount.php
65 lines (51 loc) · 2.19 KB
/
customer-myAccount.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
<?php
session_start();
//connect to database
require_once('connDB.php');
// Check connection
if ($conn === false) {
die("ERROR: Could not connect. " . mysqli_connect_error());
}
if ($_SESSION['userType'] != 1) {
header("Location: home.php");
}
$userType = 1;
if (!isset($_SESSION['username'])) {
header("Location: home.php");
exit();
} else {
$username = $_SESSION['username'];
$_SESSION['userType'] = 1;
}
?>
<!DOCTYPE>
<head>
<link href="myAccount.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css">
<title>LittyLit</title>
<link href='https://fonts.googleapis.com/css?family=Nunito:400,700,400italic,700italic' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=Girassol:400,700,400italic,700italic' rel='stylesheet'>
</head>
<html>
<body>
<main>
<?php include 'elements/header.php' ?>
<div class="row">
<div class="col text-center" style="background-color:#C8D8E4;">
<img style="padding: 14%;" src="./images/undraw_click_here_re_y6uq.svg" class="img-fluid" alt="Responsive image">
</div>
<div class="col text-center" style="background-color:#2B6777;">
<h1 class="display-1 mt-5" style="color: #ffffff; font-family: Nunito; font-size: 4.3rem;">My Account</h2>
<p class="pl-4 pr-4 pt-1" style="color: white; font-family: Nunito; font-size: 1.3rem;">
Shopping with us is easy - all of your personal info
saved here for you to reference and manage whenever you
need to.
</p>
<a href="customer-editMyAccount.php"><button type="button" class="btn btn-light mt-5 mb-4">Account Details</button></a> <br>
<a href="customer-promotions.php"><button type="button" class="btn btn-light mt-4 mb-4">Promotions</button></a> <br>
<a href="customer-logout.php"><button type="button" class="btn btn-light mt-4 mb-4">Logout</button></a><br>
</div>
</div>
<?php include 'elements/footer.html'; ?>
</main>
</body>