-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.enthusiast-acc.php
156 lines (124 loc) · 6.18 KB
/
.enthusiast-acc.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
<?php
session_start();
if (isset($_SESSION['user_id'])) {
// create a database connection
$mysqli = require __DIR__ . '/database.php';
// get the user's email address
$sql = "SELECT * FROM users
WHERE id = {$_SESSION['user_id']}";
$result = $mysqli->query($sql);
$user = $result->fetch_assoc();
} else {
header('Location: home.php');
}
?>
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Account Settings | <?= $user['name'] ?>
</title>
<!-- Styling imports -->
<link rel='stylesheet' href='styles/main.css'>
<link rel='stylesheet' href='styles/utility.css'>
<!-- Bootstrap Icons imports -->
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css'>
</head>
<body>
<?php include __DIR__ . '/enthusiast-navbar.php'; ?>
<!-- Start of main -->
<div class='container-flex' style='padding-left:7%; padding-right:8%;'>
<div class='row'>
<!-- Start of aside navbar -->
<nav class='col-md-3 col-lg-2 d-md-block'>
<div class='position-sticky pt-3 background-cultured'>
<ul class='nav flex-column'>
<li class='nav-item'>
<a class='nav-link' href='enthusiast-art-orders.php'>
<i class='bi bi-postage-heart-fill' style='font-size: 22px;'></i>
Art Orders
</a>
</li>
<li class='nav-item'>
<a class='nav-link' href='enthusiast-gallery-orders.php'>
<i class='bi bi-ticket-perforated-fill rotate' style='font-size: 22px;'></i>
Gallery Tickets
</a>
</li>
<!-- <li class='nav-item'>
<a class='nav-link active' aria-current='page' href='#'>
<i class='bi bi-brush-fill' style='font-size: 22px;'></i>
Account settings
</a>
</li> -->
</ul>
</div>
</nav>
<!-- End of aside navbar -->
<!-- Start of main -->
<main class='col-md-9 col-lg-10'>
<?php if (isset($user)) : ?>
My name is <?= $user['name'] ?>.
My user id is <?= $user['id'] ?>.
<?php else : ?>
<p class='nav-link'>
<a href='signin.php'>Sign In</a>
or
<a href='signup.html'>Sign Up</a>
</p>
<?php endif; ?>
<div class='d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom'>
<h1 class='fs-2'>Account Settings</h1>
<p class='fs-6 ps-4 space-cadet'>
Update some of the settings in your account.
</p>
</div>
<hr class='mobile-hide hr' />
<!-- create account update form -->
<div class='col-6'>
<form action='process-signup.php' method='post' id='signup' novalidate>
<div class='col-lg-12 mb-4' style='width:94%;'>
<label for='name'>Name</label>
<input class='form-control mb-2' type='text' id='name' name='name' placeholder='Pablo Picasso'>
</div>
<div class='col-lg-12 mb-4' style='width:94%;'>
<label for='email'>Email</label>
<input class='form-control mb-2' type='email' id='email' name='email' placeholder='[email protected]'>
</div>
<div class='row mb-4'>
<div class='col-lg-5 col-sm-12 col-md-6'>
<label for='password'>Password</label>
<input class='form-control mb-2' type='password' id='password' name='password' placeholder='SuperPablo1894.'>
</div>
<div class='col-lg-5 col-sm-12 col-md-6'>
<label for='password_confirmation'>Confirm password</label>
<input class='form-control mb-2' type='password' id='password_confirmation' name='password_confirmation' placeholder='SuperPablo1894.'>
</div>
</div>
<div class='row mb-4'>
<span>
I want to:
</span>
<div class='col-lg-5 col-sm-12 col-md-6 mb-4'>
<input class='mt-3' type='radio' id='isArtist' name='isArtist' value='no' autocomplete='off' checked>
<label for='isArtist'>Buy art</label>
</div>
<div class='col-lg-5 col-sm-12 col-md-6 mb-4'>
<input class='mt-3' type='radio' id='isArtist' name='isArtist' value='yes' autocomplete='off'>
<label for='isArtist'>Create art</label>
</div>
</div>
<p>
Already have an account? <a class='inline-link' href='signin.php'>Sign In</a>
</p>
<button class='btn btn-lg btn-imperial'>Sign up</button>
</form>
</div>
</main>
<!-- End of main -->
</div>
</div>
</body>
</html>