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.

template.php 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. $relativePath = "../";
  3. if (!isset($isStock))
  4. $isStock = false;
  5. ob_start();
  6. ?>
  7. <div class="admin-container">
  8. <a href="index.php">
  9. <button class="btn btn-primary btn-large">
  10. <span class="mdi mdi-chevron-left"></span>
  11. Retour
  12. </button>
  13. </a>
  14. <h1 class="text-center"><?= $pageTitle ?></h1>
  15. <?php if (!$isStock): ?>
  16. <div style="display: flex">
  17. <button class="btn btn-success" style="margin: auto" onclick="listManager.showEditPopup(-1)">
  18. <i class="mdi mdi-plus"></i>
  19. </button>
  20. </div>
  21. <div id="listContainer">
  22. <ul id="dataList">
  23. </ul>
  24. </div>
  25. <?php else: ?>
  26. <div>
  27. <h3 class="text-center">Mode</h3>
  28. <div class="button-container">
  29. <button id="buyButton" class="btn mr-0">Achat</button>
  30. <button id="sellButton" class="btn ml-0">Vente</button>
  31. </div>
  32. </div>
  33. <div id="dataList">
  34. </div>
  35. <div style="display: flex">
  36. <button id="saveButton" style="margin: auto" class="btn btn-lg my-2">Sauvegarder</button>
  37. </div>
  38. <?php endif; ?>
  39. </div>
  40. <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/libs/materialdesignicons.min.css"
  41. media="screen,projection"/>
  42. <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/admin.css" media="screen,projection"/>
  43. <?php if (!$isStock): ?>
  44. <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/list.css" media="screen,projection"/>
  45. <?php else: ?>
  46. <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/stock.css" media="screen,projection"/>
  47. <?php endif; ?>
  48. <?php
  49. $pageContent = ob_get_clean();
  50. $pageScripts =
  51. "
  52. <script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/jquery-confirm-defaults.js\"></script>
  53. <script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/ajaxManager.js\"></script>
  54. <script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/listManager.js\"></script>
  55. ";
  56. $pageScripts .= $script;
  57. include($relativePath . "includes/template.php");
  58. ?>