This repository was archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacc_info.php
More file actions
186 lines (160 loc) · 6.58 KB
/
acc_info.php
File metadata and controls
186 lines (160 loc) · 6.58 KB
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
184
185
186
<?php
session_start();
if (!isset($_SESSION['username'])) {
$_SESSION['msg'] = "You must log in first";
// header('location: index.php');
}
if (isset($_GET['logout'])) {
session_destroy();
unset($_SESSION['username']);
// header("location: index.php");
}
?>
<?php include('server.php') ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Online Store</title>
<!----Ion icon-->
<link href="https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css" rel="stylesheet">
<!-- Bootstrap CDN -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- Font Awesome CDN -->
<script src="https://kit.fontawesome.com/23412c6a8d.js"></script>
<!-- Slick Slider -->
<link rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css" />
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<!--------Header-->
<header>
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-12 col-12 ">
<!---width sm equal mobile md for medium device-->
<div class="btn-group">
<button class="btn border dropdown-toggle my-md-4 my-2 text-white"
data-toggle="dropdown"
aria-haspopup="true"
aria-hasexpanded="false">
<!--drop down menu for USD-->
USD
</button><!----Button system above-->
<div class="dropdown-menu">
<a href="#" class="dropdown-item">ERU-Euro</a><!---drop down menu that shows EURO under USD and ahref is a reference where link will go-->
</div>
</div>
</div>
<div class="col-md-4 col-12 text-center">
<h2 class="my-md-3 site-title text-white">Online Store</h2>
</div>
<div class="col-md-4 col-12 text-right">
<p class="my-md-4 header-links">
<a href="login.php" class="px-2">Sign in </a>
<a href="register.php" class="px-1">Create an Account</a>
</p>
</div>
</div>
</div>
<!-----------------------------Navigation menu bar BootStrap------------------->
<div class="container-fluid p-0">
<nav class="navbar navbar-expand-lg navbar-light bg-white">
<button class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="products.php">Products</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cart.php">Cart</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.php">About Us</a>
</li>
</ul>
</div>
<!-------------search bar-------------->
<div class="navbar-nav">
<ul class="navbar-nav">
<li class="nav-item rounded-circle mx-2 search-icon">
<i class="fas fa-search p-2"></i>
</li>
<li class="cart border rounded-circle mx-2 basket-icon">
<a href="cart.php">
<i class="fas fa-shopping-basket p-2"></i><span>0</span>
</a>
</li>
</ul>
</div>
</nav>
</div>
</header>
<head>
</head>
<section>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<form method="post" action="acc_info.php">
<?php include('errors.php'); ?>
<div class="input-group">
<label>Old Username</label>
<input type="text" name="oldusername" value="<?php echo $oldusername; ?>">
</div>
<div class="input-group">
<label>New Username</label>
<input type="text" name="username" value="<?php echo $username; ?>">
</div>
<div class="input-group">
<label>New Email</label>
<input type="email" name="email" value="<?php echo $email; ?>">
</div>
<div class="input-group">
<label>Old Password</label>
<input type="password" name="oldpassword">
</div>
<div class="input-group">
<label>New Password</label>
<input type="password" name="password_1">
</div>
<div class="input-group">
<label>New Address</label>
<input type="text" name="address_1">
</div>
<div class="input-group">
<label>New City</label>
<input type="text" name="city">
</div>
<div class="input-group">
<label>New State</label>
<input type="text" name="state">
</div>
<div class="input-group">
<label>New ZipFive</label>
<input type="text" name="zipfive">
</div>
<div class="input-group">
<button type="submit" name="acc_changed">Change Information</button>
</div>
</form>
</div>
</div>
</div>
</section>