-
Notifications
You must be signed in to change notification settings - Fork 0
/
manageCustomer.php
90 lines (88 loc) · 3.05 KB
/
manageCustomer.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
<?php
session_start();
if(!isset($_SESSION['userName'])){
header("location: login.php");
}
include './controller/manageData.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mirielle's Invoice System || Manage Customer</title>
<?php include './webpart/head.php';?>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.min.css"/>
<script type="text/javascript" src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js"></script>
<script src="assets/jquery-3.6.3.js"></script>
<link href="assets/DataTables/datatables.min.css" rel="stylesheet">
<script src="assets/DataTables/datatables.min.js"></script>
</head>
<body class="main-bg">
<?php include './webpart/sidebar.php'?>
<main class="container pt-5">
<div class="d-flex flex-column justify-content-center align-items-center vh-100 pt-5">
<div class="p-5 bg-white rounded mb-5 w-100">
<h3 class="mb-4"><span class="material-symbols-outlined mx-2" id="cust_icon">group</span>Show Customer</h3>
<table class="table table-bordered table-hover table-striped" id="cust_table">
<thead class="text-center">
<tr>
<th>
<h6>#</h6>
</th>
<th>
<h6>Name</h6>
</th>
<th>
<h6>Email</h6>
</th>
<th>
<h6>Phone Number</h6>
</th>
<th>
<h6>Address</h6>
</th>
<th>
<h6>City</h6>
</th>
<th>
<h6>Country</h6>
</th>
<th>
<h6>Postal Code</h6>
</th>
<th>
<h6>Action</h6>
</th>
</tr>
</thead>
<tbody>
<?php showCustomer()?>
</tbody>
</table>
<!-- Modal -->
<div class="modal fade" id="showModal" tabindex="-1" aria-labelledby="modalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable modal-xl">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="modalLabel"><span class="material-symbols-outlined me-2">group</span>Customer Edit:</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
</div>
<div class="modal-footer d-flex justify-content-between">
<button id="deleteBtn" type="button" class="btn btn-danger">Delete</button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Done</button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="./assets/script/modalbox.js"></script>
<script type="text/javascript">
$(document).ready( function () {
$('#cust_table').DataTable();
} );
</script>
</body>
</html>