-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
176 lines (158 loc) · 7.28 KB
/
index.php
File metadata and controls
176 lines (158 loc) · 7.28 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Facturation</title>
<link rel="stylesheet" href="styles\css\bootstrap.min.css">
<link rel="stylesheet" href="styles/assets/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs5/dt-2.0.5/datatables.min.css"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#"> <i class="fas fa-user-secret"></i>Coding City</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<!-- <a class="nav-link disabled">Disabled</a> -->
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
<!-- <form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form> -->
</div>
</div>
</nav>
</header>
<section class="container py-5">
<div class="row">
<div class="col-lg-8 col-sm mb-5 mx-auto">
<h1 class="fs-4 text-center lead text-primary">CRUD PHP, MYSQL ET AJAX</h1>
</div>
</div>
<div class="dropdown-divider border-warning"></div>
<!-- style="margin: 0%; padding: 0%; border-bottom:0.5px solid #000; border-top:0.5px solid #aa5728; position: fixed; top: 50px; width: 100%;" -->
<!-- <div class="row" style="border-bottom:0.5px solid #000; border-top:0.5px solid #aa5728; "> -->
<div class="row">
<div class="col-md-6">
<h5 class="fw-bold mb-0">Liste des factures</h5>
</div>
<div class="col-md-12">
<div class="d-flex justify-content-end">
<button class="btn btn-primary btn-sm me-3" data-bs-toggle="modal" data-bs-target="#createModal"><i class="fas fa-folder-plus"></i> Nouveau</button>
<a href="" class="btn btn-success btn-sm" id="export"><i class="fas fa-table"></i> Exporter en excel</a>
</div>
</div>
</div>
<br>
<div class="dropdown-divider border-warning"></div>
<div class="row">
<div class="table-responsive" id="orderTable">
<h3 class="text-success text-center">Chargement des factures</h3>
</div>
</div>
</section>
<!-- Button trigger modal -->
<!-- <button type="button" class="btn btn-primary">
Launch demo modal
</button> -->
<!-- Modal -->
<div class="modal fade" id="createModal" tabindex="-1" aria-labelledby="createModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="createModalLabel">Nouvelle facture</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="" method="post" id="formOrder">
<div class="form-floating mb-3">
<input type="text" class="form-control" id="customer" name="customer">
<label for="customer">Nom du client</label>
</div>
<div class="form-floating mb-3">
<input type="text" class="form-control" id="cashier" name="cashier">
<label for="cashier">Nom du Caissier</label>
</div>
<div class="row g-2">
<div class="col-md">
<div class="form-floating mb-3">
<input type="text" class="form-control" id="amount" name="amount">
<label for="amount">Montant</label>
</div>
</div>
<div class="col-md">
<div class="form-floating mb-3">
<input type="text" class="form-control" id="received" name="received">
<label for="received">Montant perçu</label>
</div>
</div>
<!-- <div class="row-g-2">
<div class="form-floating mb-3">
<input type="text" class="form-control" id="returned" name="returned">
<label for="returned">Montant retourné</label>
</div>
</div> -->
<div class="col-md">
<div class="form-floating mb-3">
<select name="state" class="form-select" id="state" aria-label="state">
<option value="Effectuée">Effectuée</option>
<option value="Payée">Payée</option>
<option value="Annulée">Annulée</option>
</select>
<!-- <input type="text" class="form-control" id="state" name="state"> -->
<label for="state">Etat de la facture</label>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Annuler </button>
<button type="button" class="btn btn-primary" name="create" id="create">Ajouter <i class="fas fa-plus"></i></button>
</div>
</div>
</div>
</div>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"
integrity="sha512-qFOQ9YFAeGj1gDOuUD61g3D+tLDv3u1ECYWqT82WQoaWrOhAY+5mRMTTVsQdWutbA5FORCnkEPEgU0OF8IzGvA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="styles\js\bootstrap.bundle.min.js"></script>
<script src="styles/assets/js/bootstrap.bundle.min.js"></script
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/v/bs5/dt-2.0.5/datatables.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="script.js"></script>
<!-- <script src="/js/jquery-3.6.0.min.js"></script>
<script src="/js/datatables.min.js"></script>
<script src="/js/sweetalert2.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script> -->
<script>
$(document).ready(function() {
$('table').DataTable();
});
</script>
</body>
</html>