You are on page 1of 6

Firefox https://www.dreamincode.

net/forums/topic/388790-approval-system/

view source
print?
001 <?php
002 include_once("init.php");
003
004 ?>
005 <!DOCTYPE html>
006
007 <html lang="en">
008 <head>
009 <meta charset="utf-8">
010 <title>Ajouter Achat</title>
011
012 <!-- Stylesheets -->
013
014 <link rel="stylesheet" href="css/style.css">
015 <link rel="stylesheet" href="js/date_pic/date_input.css">
016 <link rel="stylesheet" href="lib/auto/css/jquery.autocomplete.css">
017
018 <!-- Optimize for mobile devices -->
019 <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
020
021 <!-- jQuery & JS files -->
022 <?php include_once("tpl/common_js.php"); ?>
023 <script src="js/script.js"></script>
024 <script src="js/date_pic/jquery.date_input.js"></script>
025 <script src="lib/auto/js/jquery.autocomplete.js "></script>
026
027 <script type="text/javascript">
028 $(function () {
029 document.getElementById('bill_no').focus();
030 $("#supplier").autocomplete("supplier1.php", {
031 width: 160,
032 autoFill: true,
033 selectFirst: true
034 });
035 $("#item").autocomplete("stock_purchse.php", {
036 width: 160,
037 autoFill: true,
038 mustMatch: true,
039 selectFirst: true
040 });
041 $("#item").blur(function () {
042 document.getElementById('total').value = document.getElementById('cost').value * document.getElementById('quty').value
043 });
044 $("#item").blur(function () {
045
046
047 $.post('check_item_details.php', {stock_name1: $(this).val()},
048 function (data) {
049 $("#cost").val(data.cost);
050 $("#sell").val(data.sell);
051 $("#stock").val(data.stock);
052 $('#guid').val(data.guid);
053 if (data.cost != undefined)
054 $("#0").focus();
055
056
057 }, 'json');
058
059
060 });
061 $("#quty").blur(function () {
062 if (document.getElementById('item').value == "") {
063 document.getElementById('item').focus();
064 }
065 });
066 $("#supplier").blur(function () {
067
068
069 $.post('check_supplier_details.php', {stock_name1: $(this).val()},
070 function (data) {
071
072 $("#address").val(data.address);
073 $("#contact1").val(data.contact1);
074
075 if (data.address != undefined)
076 $("#0").focus();
077
078 }, 'json');
079
080
081 });
082 $('#test1').jdPicker();
083 $('#test2').jdPicker();
084
085
086 var hauteur = 0;
087 $('.code').each(function () {
088 if ($(this).height() > hauteur) hauteur = $(this).height();
089 });
090
091 $('.code').each(function () {
092 $(this).height(hauteur);
093 });
094 });
095
096 </script>
097 <script>
098 /*$.validator.setDefaults({
099 submitHandler: function() { alert("submitted!"); }
100 });*/
101 $(document).ready(function () {
102 if (document.getElementById('item') === "") {
103 document.getElementById('item').focus();
104 }
105 // validate signup form on keyup and submit
106 $("#form1").validate({
107 rules: {
108 bill_no: {
109 required: true,
110 minlength: 3,
111 maxlength: 200
112 },
113 stockid: {
114 required: true
115 },

1 of 6 1/27/2022, 3:30 AM
Firefox https://www.dreamincode.net/forums/topic/388790-approval-system/

116 grand_total: {
117 required: true
118 },
119 payment: {
120 required: true
121 },
122 supplier: {
123 required: true,
124 }
125 },
126 messages: {
127 supplier: {
128 required: "SVP entrez le fournisseur"
129 },
130 stockid: {
131 required: "SVP entrer Stock ID"
132 },
133 grand_total: {
134 required: "Ajouter les articles de stock"
135 },
136 payment: {
137 required: "Saisir le paiement"
138 },
139 bill_no: {
140 required: "SVP entrer le N° de facture",
141 minlength: "Le numero de facture doit comporter au moins 3 caracteres"
142 }
143 }
144 });
145
146 });
147 function numbersonly(e) {
148 var unicode = e.charCode ? e.charCode : e.keyCode
149 if (unicode != 8 && unicode != 46 && unicode != 37 && unicode != 27 && unicode != 38 && unicode != 39 && unicode != 40 && unicode != 9) { //if the key isn't the backspace key (which we should allow)
150 if (unicode < 48 || unicode > 57)
151 return false
152 }
153 }
154
155
156 </script>
157 <script type="text/javascript">
158 function remove_row(o) {
159 var p = o.parentNode.parentNode;
160 p.parentNode.removeChild(p);
161 }
162 function add_values() {
163 if (unique_check()) {
164
165 if (document.getElementById('edit_guid').value == "") {
166 if (document.getElementById('item').value != "" && document.getElementById('quty').value != "" && document.getElementById('cost').value != "" && document.getElementById('total').value != "") {
167 code = document.getElementById('item').value;
168
169 quty = document.getElementById('quty').value;
170 cost = document.getElementById('cost').value;
171 sell = document.getElementById('sell').value;
172 disc = document.getElementById('stock').value;
173 total = document.getElementById('total').value;
174 item = document.getElementById('guid').value;
175 main_total = document.getElementById('posnic_total').value;
176

$('<tr id=' + item + '><td><input type=hidden value=' + item + ' id=' + item + 'id ><input type=text name="stock_name[]" id=' + item + 'st style="width: 150px" class="round my_with" ></td>
<td><input type=text name=quty[] readonly="readonly" value=' + quty + ' id=' + item + 'q class="round my_with" style="text-align:right;" ></td><td><input type=text name=cost[] readonly="readonly" value=' + cost + ' id=' +
item + 'c class="round my_with" style="text-align:right;"></td><td><input type=text name=sell[] readonly="readonly" value=' + sell + ' id=' + item + 's class="round my_with" style="text-align:right;" ></td><td><input
177 type=text name=stock[] readonly="readonly" value=' + disc + ' id=' + item + 'p class="round my_with" style="text-align:right;" ></td><td><input type=text name=jibi[] readonly="readonly" value=' + total + ' id=' + item +
'to class="round my_with" style="width: 120px;margin-left:20px;text-align:right;" ><input type=hidden name=total[] id=' + item + 'my_tot value=' + main_total + '> </td><td><input type=button value="" id=' + item + '
style="width:30px;border:none;height:30px;background:url(images/edit_new.png)" class="round" onclick="edit_stock_details(this.id)" ></td><td><input type=button value="" id=' + item + ' style="width:30px;border:none;
height:30px;background:url(images/close_new.png)" class="round" onclick= $(this).closest("tr").remove() ></td></tr>').fadeIn("slow").appendTo('#item_copy_final');
178 document.getElementById('quty').value = "";
179 document.getElementById('cost').value = "";
180 document.getElementById('sell').value = "";
181 document.getElementById('stock').value = "";
182 document.getElementById('total').value = "";
183 document.getElementById('item').value = "";
184 document.getElementById('guid').value = "";
185 if (document.getElementById('grand_total').value == "") {
186 document.getElementById('grand_total').value = main_total;
187 } else {
188 document.getElementById('grand_total').value = parseFloat(document.getElementById('grand_total').value) + parseFloat(main_total);
189 }
190 document.getElementById('main_grand_total').value = parseFloat(document.getElementById('grand_total').value);
191 document.getElementById(item + 'st').value = code;
192 document.getElementById(item + 'to').value = total;
193 document.getElementById('item').focus();
194
195 } else {
196 alert('SVP selectionner un article');
197 }
198 } else {
199 id = document.getElementById('edit_guid').value;
200 document.getElementById(id + 'st').value = document.getElementById('item').value;
201 document.getElementById(id + 'q').value = document.getElementById('quty').value;
202 document.getElementById(id + 'c').value = document.getElementById('cost').value;
203 document.getElementById(id + 's').value = document.getElementById('sell').value;
204 document.getElementById(id + 'p').value = document.getElementById('stock').value;
document.getElementById('grand_total').value = parseFloat(document.getElementById('grand_total').value) + parseFloat(document.getElementById('posnic_total').value) -
205
parseFloat(document.getElementById(id + 'my_tot').value);
206 document.getElementById('main_grand_total').value = parseFloat(document.getElementById('grand_total').value);
207 document.getElementById(id + 'to').value = document.getElementById('total').value;
208 document.getElementById(id + 'id').value = id;
209
210 document.getElementById(id + 'my_tot').value = document.getElementById('posnic_total').value
211 document.getElementById('quty').value = "";
212 document.getElementById('cost').value = "";
213 document.getElementById('sell').value = "";
214 document.getElementById('stock').value = "";
215 document.getElementById('total').value = "";
216 document.getElementById('item').value = "";
217 document.getElementById('guid').value = "";
218 document.getElementById('edit_guid').value = "";
219 document.getElementById('item').focus();
220 }
221 }
222
223 }
224 function total_amount() {
225 balance_amount();
226
227 document.getElementById('total').value = document.getElementById('cost').value * document.getElementById('quty').value
228 document.getElementById('posnic_total').value = document.getElementById('total').value;
229 document.getElementById('total').value = parseFloat(document.getElementById('total').value);

2 of 6 1/27/2022, 3:30 AM
Firefox https://www.dreamincode.net/forums/topic/388790-approval-system/

230 if (document.getElementById('item').value === "") {


231 document.getElementById('item').focus();
232 }
233 }
234 function edit_stock_details(id) {
235 document.getElementById('item').value = document.getElementById(id + 'st').value;
236 document.getElementById('quty').value = document.getElementById(id + 'q').value;
237 document.getElementById('cost').value = document.getElementById(id + 'c').value;
238 document.getElementById('sell').value = document.getElementById(id + 's').value;
239 document.getElementById('stock').value = document.getElementById(id + 'p').value;
240 document.getElementById('total').value = document.getElementById(id + 'to').value;
241
242 document.getElementById('guid').value = id;
243 document.getElementById('edit_guid').value = id;
244
245 }
246 function unique_check() {
247 if (!document.getElementById(document.getElementById('guid').value) || document.getElementById('edit_guid').value == document.getElementById('guid').value) {
248 return true;
249
250 } else {
251
252 alert("Cet article est deja dans la liste d'achats");
253 document.getElementById('item').focus();
254 document.getElementById('quty').value = "";
255 document.getElementById('cost').value = "";
256 document.getElementById('sell').value = "";
257 document.getElementById('stock').value = "";
258 document.getElementById('total').value = "";
259 document.getElementById('item').value = "";
260 document.getElementById('guid').value = "";
261 document.getElementById('edit_guid').value = "";
262 return false;
263 }
264 }
265 function quantity_chnage(e) {
266 if (document.getElementById('item').value == "") {
267 document.getElementById('item').focus();
268 }
269
270 var unicode = e.charCode ? e.charCode : e.keyCode
271 if (unicode != 13 && unicode != 9) {
272 }
273 else {
274 add_values();
275
276 document.getElementById("item").focus();
277
278 }
279 if (unicode != 27) {
280 }
281 else {
282
283 document.getElementById("item").focus();
284 }
285
286 }
287
288 function formatCurrency(fieldObj) {
289 if (isNaN(fieldObj.value)) {
290 return false;
291 }
292 fieldObj.value = '$ ' + parseFloat(fieldObj.value).toFixed(2);
293 return true;
294 }
295 function balance_amount() {
296 if (document.getElementById('grand_total').value != "" && document.getElementById('payment').value != "") {
297 data = parseFloat(document.getElementById('grand_total').value);
298 document.getElementById('balance').value = data - parseFloat(document.getElementById('payment').value);
299 if (parseFloat(document.getElementById('grand_total').value) >= parseFloat(document.getElementById('payment').value)) {
300
301 } else {
302 if (document.getElementById('grand_total').value != "") {
303 document.getElementById('balance').value = '000.00';
304 document.getElementById('payment').value = parseFloat(document.getElementById('grand_total').value);
305 } else {
306 document.getElementById('balance').value = '000.00';
307 document.getElementById('payment').value = "";
308 }
309 }
310 } else {
311 document.getElementById('balance').value = "";
312 }
313
314
315 }
316 </script>
317
318 </head>
319 <body>
320
321 <!-- TOP BAR -->
322 <?php include_once("tpl/top_bar.php"); ?>
323 <!-- end top-bar -->
324
325
326 <!-- HEADER -->
327 <div id="header-with-tabs">
328
329 <div class="page-full-width cf">
330
331 <ul id="tabs" class="fl">
332 <li><a href="dashboard.php" class="active-tab dashboard-tab">Panneau de controle </a></li>
333 <li><a href="view_sales.php" class="sales-tab">Ventes</a></li>
334 <li><a href="view_customers.php" class=" customers-tab">Clients</a></li>
335 <li><a href="view_purchase.php" class="purchase-tab">Achats</a></li>
336 <li><a href="view_supplier.php" class=" supplier-tab">Fournisseurs</a></li>
337 <li><a href="view_product.php" class=" stock-tab">Stocks / Produits</a></li>
338 <li><a href="view_payments.php" class="payment-tab">Paiements</a></li>
339 <li><a href="view_report.php" class="report-tab">Rapports</a></li>
340 </ul>
341
342 <!-- end tabs -->
343

3 of 6 1/27/2022, 3:30 AM
Firefox https://www.dreamincode.net/forums/topic/388790-approval-system/

344 <!-- Change this image to your own company's logo -->
345 <!-- The logo will automatically be resized to 30px height. --><a href="#" id="company-branding-small" class="fr"><img src="<?php if (isset($_SESSION['logo'])) {
346 echo "upload/" . $_SESSION['logo'];
347 } else {
348 echo "upload/posnic.png";
349 } ?>" alt="Point of Sale"/></a>
350
351 </div>
352 <!-- end full-width -->
353
354 </div>
355 <!-- end header -->
356
357
358 <!-- MAIN CONTENT -->
359 <div id="content">
360
361 <div class="page-full-width cf">
362
363
364 <div class="side-menu fl">
365
366 <h3>GESTION DES ACHATS</h3>
367 <ul>
368 <li><a href="add_purchase.php">Ajouter Achat</a></li>
369 <li><a href="view_purchase.php">Voir Achat </a></li>
370 <li><a href="view_purchase_validated.php">Voir Achat VALIDES </a></li>
371 </ul>
372
373 </div>
374
375 <!-- end side-menu -->
376 <div class="side-content fr">
377
378 <div class="content-module">
379
380 <div class="content-module-heading cf">
381
382 <h3 class="fl">Ajouter Achat</h3>
383 <span class="fr expand-collapse-text">Cliquer pour replier </span>
384 <span class="fr expand-collapse-text initial-expand">Cliquer pour deplier </span>
385
386 </div>
387 <!-- end content-module-heading -->
388
389 <div class="content-module-main cf">
390
391
392 <?php
393 //Gump is libarary for Validatoin
394 if (isset($_GET['msg'])) {
395 echo $_GET['msg'];
396 }
397 if (isset($_POST['supplier']) and isset($_POST['stock_name'])) {
398 $_POST = $gump->sanitize($_POST);
399 $gump->validation_rules(array(
400 'supplier' => 'required|max_len,100|min_len,3'
401
402
403 ));
404
405 $gump->filter_rules(array(
406 'supplier' => 'trim|sanitize_string|mysqli_escape'
407
408
409 ));
410
411 $validated_data = $gump->run($_POST);
412 $supplier = "";
413 $stockid = "";
414 $stock_name = "";
415 $cost = "";
416 $bill_no = "";
417
418
419 if ($validated_data === false) {
420 echo $gump->get_readable_errors(true);
421 } else {
422 $username = $_SESSION['username'];
423
424 $stockid = mysqli_real_escape_string($db->connection, $_POST['stockid']);
425
426 $bill_no = mysqli_real_escape_string($db->connection, $_POST['bill_no']);
427 $supplier = mysqli_real_escape_string($db->connection, $_POST['supplier']);
428 $address = mysqli_real_escape_string($db->connection, $_POST['address']);
429 $contact = mysqli_real_escape_string($db->connection, $_POST['contact']);
430 $stock_name = $_POST['stock_name'];
431
432 $count = $db->countOf("supplier_details", "supplier_name='$supplier'");
433 if ($count == 0) {
434 $db->query("insert into supplier_details(supplier_name,supplier_address,supplier_contact1) values('$supplier','$address','$contact')");
435 }
436 $quty = $_POST['quty'];
437 $date = date("d M Y h:i A");
438 $sell = $_POST['sell'];
439 $cost = $_POST['cost'];
440 $total = $_POST['total'];
441 $subtotal = $_POST['subtotal'];
442 $description = mysqli_real_escape_string($db->connection, $_POST['description']);
443 $due = mysqli_real_escape_string($db->connection, $_POST['duedate']);
444 $payment = mysqli_real_escape_string($db->connection, $_POST['payment']);
445 $balance = mysqli_real_escape_string($db->connection, $_POST['balance']);
446 $mode = mysqli_real_escape_string($db->connection, $_POST['mode']);
447
448 $autoid = $_POST['stockid'];
449 $autoid1 = $autoid;
450 $selected_date = $_POST['date'];
451 $selected_date = strtotime($selected_date);
452 $date = date('Y-m-d H:i:s', $selected_date);
453 for ($i = 0; $i < count($stock_name); $i++) {

4 of 6 1/27/2022, 3:30 AM
Firefox https://www.dreamincode.net/forums/topic/388790-approval-system/

454 $count = $db->countOf("stock_avail", "name='$stock_name[$i]'");


455 if ($count == 0) {
456 $db->query("insert into stock_avail(name,quantity) values('$stock_name[$i]',$quty[$i])");
457 echo "<br><font color=green size=+1 >Nouveau stock inseré !</font>";
458
$db->query("insert into stock_details(stock_id,stock_name,stock_quatity,supplier_id,company_price,selling_price)
459
values('$autoid','$stock_name[$i]',0,'$supplier',$cost[$i],$sell[$i])");
460
461
$db->query("INSERT INTO stock_entries_eninstance(stock_id,stock_name, stock_supplier_name, quantity, company_price, selling_price, opening_stock, closing_stock, date, username, type,
462 total, payment, balance, mode, description, due, subtotal,count1,billnumber) VALUES (
'$autoid1','$stock_name[$i]','$supplier',$quty[$i],$cost[$i],$sell[$i],0,$quty[$i],'$date','$username','entry',$total[$i],$payment,$balance,'$mode','$description','$due',$subtotal,$i+1,'$bill_no')");
463
464 } else if ($count == 1) {
465
466 $amount = $db->queryUniqueValue("SELECT quantity FROM stock_avail WHERE name='$stock_name[$i]'");
467 $amount1 = $amount + $quty[$i];
468 $db->execute("UPDATE stock_avail SET quantity=$amount1 WHERE name='$stock_name[$i]'");
$db->query("INSERT INTO
469 stock_entries_eninstance(stock_id,stock_name,stock_supplier_name,quantity,company_price,selling_price,opening_stock,closing_stock,date,username,type,total,payment,balance,mode,description,due,subtotal,count1,billnumber)
VALUES ('$autoid1','$stock_name[$i]','$supplier',$quty[$i],$cost[$i],$sell[$i],$amount,$amount1,'$date','$username','entry',$total[$i],$payment,$balance,'$mode','$description','$due',$subtotal,$i+1,'$bill_no')");
//INSERT INTO `stock`.`stock_entries_eninstance` (`id`, `stock_id`, `stock_name`, `stock_supplier_name`, `category`, `quantity`, `company_price`, `selling_price`, `opening_stock`,
470
`closing_stock`, `date`, `username`, `type`, `salesid`, `total`, `payment`, `balance`, `mode`, `description`, `due`, `subtotal`, `count1`)
//VALUES (NULL, '$autoid1', '$stock_name[$i]', '$supplier', '', '$quantity', '$brate', '$srate', '$amount', '$amount1', '$mysqldate', 'sdd', 'entry', 'Sa45', '432.90', '2342.90',
471
'24.34', 'cash', 'sdflj', '2010-03-25 12:32:02', '45645', '1');
472
473
474 }
475 }
476 $msg = "<br><font color=green size=6px >Commande d'achat ajoutée avec succes Ref: [" . $_POST['stockid'] . "] !</font>";
477 echo "<script>window.location = 'add_purchase.php?msg=$msg';</script>";
478 }
479
480 }
481
482 ?>
483
484 <form name="form1" method="post" id="form1" action="">
485 <input type="hidden" id="posnic_total">
486
487 <p><strong>Ajouter Stock/Produit </strong> - Ajouter Nouveau ( Control +2)</p>
488 <table class="form" border="0" cellspacing="0" cellpadding="0">
489 <tr>
490
491
492
493
494
495 <td> ID Stock:</td>
496 <td><input name="stockid" type="text" id="stockid" placeholder="ENTREZ L'ID DU STOCK" maxlength="200"
497 class="round default-width-input" style="width:130px "
498
499 </td>
500 <td>Date:</td>
501 <td><input name="date" id="test1" placeholder="" value="<?php echo date('d-m-Y'); ?>"
502 type="text" id="name" maxlength="200" class="round default-width-input"/>
503 </td>
504 <td><span class="man">*</span>Facture No:</td>
505 <td><input name="bill_no" placeholder="ENTRER FACTURE NO" type="text" id="bill_no"
506 maxlength="200" class="round default-width-input" style="width:120px "/></td>
507
508 </tr>
509 <tr>
510 <td><span class="man">*</span>FOURNISSEUR:</td>
511 <td><input name="supplier" placeholder="ENTRE FOURNISSEUR" type="text" id="supplier"
512 maxlength="200" class="round default-width-input" style="width:130px "/></td>
513
514 <td>Addresse:</td>
515 <td><input name="address" placeholder="ENTRER ADDRESSE" type="text" id="address"
516 maxlength="200" class="round default-width-input"/></td>
517
518 <td>contact:</td>
519 <td><input name="contact" placeholder="ENTRER CONTACT" type="text" id="contact1"
520 maxlength="200" class="round default-width-input"
521 onkeypress="return numbersonly(event)" style="width:120px "/></td>
522
523 </tr>
524 </table>
525 <input type="hidden" id="guid">
526 <input type="hidden" id="edit_guid">
527 <table class="form">
528 <tr>
529 <td>ARTICLE:</td>
530 <td>QUANTITE:</td>
531 <td>COUT:</td>
532 <td>VENTE:</td>
533 <td>DISPONIBILITE STOCK:</td>
534 <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total</td>
535 <td>&nbsp; </td>
536 </tr>
537 <tr>
538
539 <td><input name="" type="text" id="item" maxlength="200"
540 class="round default-width-input " style="width: 150px"/></td>
541
542 <td><input name="" type="text" id="quty" maxlength="200"
543 class="round default-width-input my_with"
544 onkeypress="quantity_chnage(event);return numbersonly(event);"
545 onkeyup="total_amount();unique_check()"/></td>
546
547 <td><input name="" type="text" id="cost" readonly="readonly" maxlength="200"
548 class="round default-width-input my_with"/></td>
549
550
551 <td><input name="" type="text" id="sell" readonly="readonly" maxlength="200"
552 class="round default-width-input my_with"/></td>
553
554
555 <td><input name="" type="text" id="stock" readonly="readonly" maxlength="200"
556 class="round my_with"/></td>
557
558
559 <td><input name="" type="text" id="total" maxlength="200"
560 class="round default-width-input " style="width:120px; margin-left: 20px"/>
561 </td>

5 of 6 1/27/2022, 3:30 AM
Firefox https://www.dreamincode.net/forums/topic/388790-approval-system/

562 <td><input type="button" onclick="add_values()" onkeyup=" balance_amount();"


563 id="add_new_code"
564 style="margin-left:30px; width:30px;height:30px;border:none;background:url(images/add_new.png)"
565 class="round"></td>
566
567 </tr>
568 </table>
569 <div style="overflow:auto ;max-height:300px; ">
570 <table class="form" id="item_copy_final">
571
572 </table>
573 </div>
574
575
576 <table class="form">
577 <tr>
578 <td>&nbsp; </td>
579 <td>PAIEMENT:<input type="text" class="round" onkeyup=" balance_amount(); "
580 onkeypress="return numbersonly(event);" name="payment" id="payment">
581 </td>
582 <td>&nbsp; </td>
583 <td>SOLDE:<input type="text" class="round" id="balance" readonly="readonly"
584 name="balance">
585 </td>
586 <td>&nbsp; </td>
587
588 <td>&nbsp; </td>
589 <td>&nbsp; </td>
590 <td>&nbsp; </td>
591 <td>&nbsp; </td>
592 <td>GRAND TOTAL:<input type="hidden" readonly="readonly" id="grand_total"
593 name="subtotal">
594 <input type="text" id="main_grand_total" class="round default-width-input"
595 onkeypress="return numbersonly(event)" readonly="readonly"
596 style="text-align:right;width: 120px">
597 </td>
598 </tr>
599 </table>
600 <table>
601 <tr>
602 <td>MODE &nbsp;</td>
603 <td>
604 <select name="mode">
605 <option value="cash">Especes</option>
606 <option value="cash">Especes</option>
607 <option value="cheque">Cheque</option>
608
609 <option value="other">Autre</option>
610 </select>
611 </td>
612 <td>
613 Date d'exigibilité:<input type="text" name="duedate" id="test2"
614 value="<?php echo date('d-m-Y'); ?>" class="round">
615 </td>
616 <td>&nbsp; </td>
617 <td>&nbsp; </td>
618
619 <td>Description</td>
620 <td><textarea name="description"></textarea></td>
621 <td>&nbsp; </td>
622 <td>&nbsp; </td>
623 <td>&nbsp; </td>
624 </tr>
625 </table>
626 <table class="form">
627 <tr>
628 <td>
629 <input class="button round blue image-right ic-add text-upper" type="submit"
630 name="Submit" value="Ajouter">
631 </td>
632 <td> (Control + S)
633 <input class="button round red text-upper" type="reset" name="Reset"
634 value="Reinitialiser"></td>
635 <td>&nbsp; </td>
636 <td>&nbsp; </td>
637 </tr>
638 </table>
639 </form>
640
641
642 </div>
643 <!-- end content-module-main -->
644
645
646 </div>
647 <!-- end content-module -->
648
649
650 </div>
651 </div>
652 <!-- end full-width -->
653
654 </div>
655 <!-- end content -->
656
657
658 <!-- FOOTER -->
659 <!-- end footer -->
660 </body>
661 </html>

6 of 6 1/27/2022, 3:30 AM

You might also like