Site du proximo, utilisé pour gérer le stock.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. $relativePath = "../";
  3. ob_start();
  4. ?>
  5. <div class="stock-container">
  6. <h1 class="text-center">Gestion des Stocks</h1>
  7. <h2 class="text-center">Ajouter un article</h2>
  8. <table>
  9. <tbody>
  10. <tr>
  11. <th class="name-column">Nom</th>
  12. <th>Quantité</th>
  13. <th>Prix</th>
  14. <th class="code-column">Code Barre</th>
  15. <th class="image-column">Image</th>
  16. <th class="actions-column">Actions</th>
  17. </tr>
  18. <tr>
  19. <td>
  20. <input type="text" class="form-control" id="nameInput" placeholder="Nom">
  21. </td>
  22. <td>
  23. <input type="number" class="form-control" id="quantityInput" placeholder="Quantité">
  24. </td>
  25. <td>
  26. <input type="text" class="form-control" id="priceInput" placeholder="Prix">
  27. </td>
  28. <td>
  29. <input type="text" class="form-control" id="codeInput" placeholder="Code Barre">
  30. </td>
  31. <td>
  32. <button class="btn btn-primary">Importer</button>
  33. </td>
  34. <td>
  35. <button type="submit" class="btn btn-success" onclick="addNewItem()"><i class="fas fa-check"></i></button>
  36. </td>
  37. </tr>
  38. </tbody>
  39. </table>
  40. <h2 class="text-center">Liste d'articles</h2>
  41. <table id="stockTable">
  42. <tbody>
  43. <tr>
  44. <th class="name-column">Nom</th>
  45. <th>Quantité</th>
  46. <th>Prix</th>
  47. <th class="code-column">Code Barre</th>
  48. <th class="image-column">Image</th>
  49. <th class="actions-column">Actions</th>
  50. </tr>
  51. </tbody>
  52. </table>
  53. </div>
  54. <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/stock.css" media="screen,projection"/>
  55. <?php
  56. $pageContent = ob_get_clean();
  57. $pageTitle = "Gestion";
  58. $pageScripts = "<script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/stock.js\"></script>";
  59. include($relativePath . "includes/template.php");
  60. ?>