-
Notifications
You must be signed in to change notification settings - Fork 0
/
liste_achat.php
executable file
·192 lines (177 loc) · 6.54 KB
/
liste_achat.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
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
187
188
189
190
191
192
<?php include('includes/header.php');?>
<!-- Select2 -->
<link rel="stylesheet" href="plugins/select2/css/select2.min.css">
<!-- daterange picker -->
<link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
<!-- iCheck for checkboxes and radio inputs -->
<link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
<!-- Bootstrap Color Picker -->
<link rel="stylesheet" href="plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css">
<!-- Tempusdominus Bbootstrap 4 -->
<link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
<!-- Select2 -->
<link rel="stylesheet" href="plugins/select2/css/select2.min.css">
<link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css">
<!-- Bootstrap4 Duallistbox -->
<link rel="stylesheet" href="plugins/bootstrap4-duallistbox/bootstrap-duallistbox.min.css">
<style type="text/css">
.categorie-left{
width: 50%;
float: left;
}
.categorie-right{
width: 50%;
float: right;
}
.panel-h{
color: #fff!important;
background-color: green!important;
border-color: #ddd;
height: 41px;
}
.new_sale a{
color: #FFF;
}
.new_sale a:hover{
color: #FFF;
}
</style>
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title categorie-left"><button type="button" name="new_achat" class="btn btn-primary btn-sm new_sale" id="new_achat"><a href="achat_fournisseur.php"><i class="nav-icon fas fa-plus"></i> Nouvelle vente</a></button></h3>
<h3 class="card-title categorie-right" align="right">
<button type="button" name="recherche" class="btn btn-primary btn-sm recherche" id="recherche">Recherche <i class="nav-icon fas fa-search"></i></button>
</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div id="order_data" class="table-responsive">
</div>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!--<div id="recherche_dialog" title="Nouvelle Recherche">
<form method="post" id="recherche_form">
<div class="form-group">
<label>N°Facture</label>
<input type="text" name="facture_num" id="facture_num" class="form-control" />
<span id="error_facture" class="text-danger"></span>
</div>
<div class="form-group">
<label>Intervalle de Date:</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">
<i class="far fa-calendar-alt"></i>
</span>
</div>
<input type="text" class="form-control float-right" id="reservation" name="intervalle">
</div>
<!-- /.input group -->
<!--</div>-->
<!-- /.form group -->
<!--<div class="form-group">
<input type="hidden" name="action_recherche" id="action_recherche" value="insert_marque" />
<input type="hidden" name="hidden_id_marque" id="hidden_id_marque" />
<input type="submit" name="form_action_recherche" id="form_action_recherche" class="btn btn-info" value="recherche" />
</div>
</form>-->
<!--</div>-->
<div id="alert_marque" title="Action"></div>
<!-- jQuery -->
<!<script src="js/jquery.min.js"></script>
<!-- Select2 -->
<!-- Select2 -->
<script src="plugins/select2/js/select2.full.min.js"></script>
<!-- Bootstrap4 Duallistbox -->
<script src="plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
<!-- InputMask -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/inputmask/min/jquery.inputmask.bundle.min.js"></script>
<!-- date-range-picker -->
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Bootstrap Switch -->
<script src="plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script>
$(function () {
//Initialize Select2 Elements
$('.select2').select2()
//Initialize Select2 Elements
$('.select2bs4').select2({
theme: 'bootstrap4'
})
//Datemask dd/mm/yyyy
$('#datemask').inputmask('dd/mm/yyyy', { 'placeholder': 'dd/mm/yyyy' })
//Datemask2 mm/dd/yyyy
$('#datemask2').inputmask('mm/dd/yyyy', { 'placeholder': 'mm/dd/yyyy' })
//Money Euro
$('[data-mask]').inputmask()
//Date range picker
$('#reservation').daterangepicker()
//Date range picker with time picker
$('#reservationtime').daterangepicker({
timePicker: true,
timePickerIncrement: 30,
locale: {
format: 'MM/DD/YYYY hh:mm A'
}
})
//Date range as a button
$('#daterange-btn').daterangepicker(
{
ranges : {
'Today' : [moment(), moment()],
'Yesterday' : [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'Last 7 Days' : [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month' : [moment().startOf('month'), moment().endOf('month')],
'Last Month' : [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
startDate: moment().subtract(29, 'days'),
endDate : moment()
},
function (start, end) {
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'))
}
)
//Timepicker
$('#timepicker').datetimepicker({
format: 'LT'
})
//Bootstrap Duallistbox
$('.duallistbox').bootstrapDualListbox()
//Colorpicker
$('.my-colorpicker1').colorpicker()
//color picker with addon
$('.my-colorpicker2').colorpicker()
$('.my-colorpicker2').on('colorpickerChange', function(event) {
$('.my-colorpicker2 .fa-square').css('color', event.color.toString());
});
$("input[data-bootstrap-switch]").each(function(){
$(this).bootstrapSwitch('state', $(this).prop('checked'));
});
})
</script>
<?php include('includes/footer.php');?>
<script>
$(document).ready(function(){
load_data();
function load_data()
{
$.ajax({
url:"order_fetch.php",
method:"POST",
success:function(data){
$('#order_data').html(data);
}
})
}
});
</script>