-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduit.php
More file actions
178 lines (137 loc) · 6.62 KB
/
Copy pathproduit.php
File metadata and controls
178 lines (137 loc) · 6.62 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
<?php require_once './ressources/configuration/settings.php' ?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<?php require './ressources/view/metadata/metadata.php' ?>
<title>Huro :: Produits</title>
<link rel="icon" type="image/png" href="assets/img/favicon.png" />
<!--Core CSS -->
<link rel="stylesheet" href="assets/css/app.css" />
<link rel="stylesheet" href="assets/css/main.css" />
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700" rel="stylesheet" />
<!--Mapbox styles-->
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<!-- End Google Tag Manager (noscript) -->
<div id="huro-app" class="app-wrapper">
<div class="app-overlay"></div>
<!--Full pageloader-->
<!-- Pageloader -->
<div class="pageloader is-full"></div>
<div class="infraloader is-full is-active"></div>
<!--Webapp navbar regular-->
<div class="webapp-navbar">
<div class="webapp-navbar-inner">
<div class="left">
<a href="index.html" class="brand">
<img class="light-image" src="assets/img/logos/logo/logo.svg" alt="" />
<img class="dark-image" src="assets/img/logos/logo/logo-light.svg" alt="" />
</a>
<div class="separator"></div>
<div class="dropdown project-dropdown dropdown-trigger is-spaced">
<div class="h-avatar is-small">
<span class="avatar is-fake is-h-green">
<span>Pd</span>
</span>
</div>
<span class="status-indicator"></span>
<?php require './type.php' ?>
</div>
<h1 id="webapp-page-title" class="title is-5">Produits</h1>
</div>
<?php require './center_right.php' ?>
</div>
</div>
<?php require './webapp_subnav.php' ?>
<!--Languages panel-->
<?php require './langage.php' ?>
<!--Activity panel-->
<?php require './activity.php' ?>
<!--Page body-->
<!-- Content Wrapper -->
<div id="app-project" class="view-wrapper is-webapp" data-page-title="Produits" data-naver-offset="214" data-menu-item="#layouts-navbar-menu" data-mobile-item="#home-sidebar-menu-mobile">
<div class="page-content-wrapper">
<h6 onclick="deleteProduit('vzevev')"></h6>
<div class="page-content is-relative">
<div class="list-flex-toolbar">
<div class="control has-icon">
<input
class="input custom-text-filter"
placeholder="Search..."
data-filter-target=".flex-table-item" />
<div class="form-icon">
<i data-feather="search"></i>
</div>
</div>
<div class="buttons">
<a class="button h-button is-warning is-outlined h-modal-trigger" data-modal="file-product">Utiliser un fichier</a>
<button class="button h-button is-primary is-elevated h-modal-trigger" data-modal="uniq-product">
<span class="icon">
<i aria-hidden="true" class="fas fa-plus"></i>
</span>
<span></span>
</button>
</div>
</div>
<?php include './inlive.php' ?>
<div class="page-content-inner is-webapp">
<div class="columns is-multiline tile-grid tile-grid-v2" id="product-list">
</div>
</div>
</div>
</div>
<?php require './ressources/modal/_modal.php' ?>
<!--Huro Scripts-->
<!--Load Mapbox-->
<!-- Concatenated plugins -->
<script src="assets/js/app.js"></script>
<!-- Huro js -->
<script src="assets/js/functions.js"></script>
<script src="assets/js/main.js" async></script>
<script src="assets/js/components.js" async></script>
<script src="assets/js/popover.js" async></script>
<script src="assets/js/widgets.js" async></script>
<!-- Additional Features -->
<script src="assets/js/touch.js" async></script>
<!-- Async -->
<script src="./async/js/async.js"></script>
<script>
// supprimer un produit du stock
function deleteProduit(params) {
if (confirm("Voulez vous supprimer ce produit du stock ? cette action est irreversible")) {
let xhr = new XMLHttpRequest();
xhr.open("GET", "async/php/delete_produit.php?produit="+params, true);
xhr.onload = () => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
if(xhr.response == 1){
loadProducts();
// window.open("./produit.php", "_parent");
}else{
notyf.success("Un probleme est survenu.");
}
}
}
}
xhr.send();
} else {
notyf.success("Action abandonnée.");
}
}
</script>
<!-- Landing page js -->
<!-- Dashboards js -->
<!-- Charts js -->
<!--Forms-->
<!--Wizard-->
<!-- Layouts js -->
<script src="assets/js/datatables.js" async></script>
<script src="assets/js/syntax.js" async></script>
</div>
</body>
<!-- Mirrored from huro.cssninja.io/webapp-list-datatable-1.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 19 Nov 2024 11:41:33 GMT -->
</html>