-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccountcashier.php
108 lines (83 loc) · 3.49 KB
/
accountcashier.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
<?php
include ('components/header.php');
include ('components/sidebarcashier.php');
session_start();
// $id = $_GET['id'];
// $conn = connection();
$qGet = "SELECT * FROM user WHERE id = '$id'";
$result = mysqli_query($conn, $qGet);
$u=mysqli_fetch_array($result);
?>
<!DOCTYPE html>
<html lang="en">
<header id="header" class="header fixed-top d-flex align-items-center">
<div class="d-flex align-items-center justify-content-between">
<a href="usersetting.html" class="logo d-flex align-items-center">
<img src="assets/img/logo.png" alt="" />
<span class="d-none d-lg-block">PRES U Caffe</span>
</a>
<i class="bi bi-list toggle-sidebar-btn"></i>
</div>
<!-- End Search Bar -->
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center">
<li class="nav-item d-block d-lg-none">
<a class="nav-link nav-icon search-bar-toggle" href="#">
<i class="bi bi-search"></i>
</a>
</li>
<!--End Search Icon-->
<!-- End Profile Nav -->
</ul>
</nav>
<!-- End Icons Navigation -->
</header>
<!-- End Header -->
<!-- ======= Sidebar ======= -->
<?php
// $query = mysqli_query($connection,"SELECT * FROM discount ORDER BY id DESC");
?>
<main id="main" class="main">
<div class="pagetitle">
<h3>Account</h3>
</div>
<!-- End Page Title -->
<!-- Recent Sales -->
<form action="updateaccount.php">
<div >
<input type="hidden" value="<?php echo $u['id'] ?>" name="id"></input>
<label for="inputEmail3" class="col-sm-2 col-form-label">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" value="<?php echo $u['username'] ?>" id="productQty" name="username" required>
</div>
</div>
<div >
<label for="inputEmail3" class="col-sm-2 col-form-label">Phone Number</label>
<div class="col-sm-10">
<input type="text" class="form-control" value="<?php echo $u['nohp'] ?>" id="phoneNum" placeholder="08xxxxxxxxxx" name="phoneNum" >
</div>
</div>
<div >
<label for="inputPassword3" class="col-sm-2 col-form-label">Change Password</label>
<div class="col-sm-10">
<input type="password" class="form-control" value="<?php echo $u['password'] ?>" id="productQty" name="password" required>
</div>
</div>
<div class="form-group row">
<div class="col-sm-10"> <br>
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
<tr>
</tr>
</form>
</div>
</div>
</div>
<!-- End Recent Sales -->
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<script src="assets/js/mdb.min.js.map"></script>
<script src="assets/js/mdb.min"></script>
</body>
</html>