1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- $relativePath = "../";
- ob_start();
- ?>
- <tr>
- <th class="name-column">Nom</th>
- <th class="quantity-column">Quantité</th>
- <th class="price-column">Prix</th>
- <th class="code-column">Code Barre</th>
- <th class="type-column">Type</th>
- <th class="image-column">Image</th>
- <th class="actions-column">Actions</th>
- </tr>
- <?php
- $tableHeader = ob_get_clean();
- ob_start();
- ?>
- <div class="stock-container">
-
- <h1 class="text-center">Gestion des Stocks</h1>
- <h2 class="text-center">Ajouter un article</h2>
- <table>
- <tbody>
- <?= $tableHeader ?>
- <tr>
- <td>
- <input type="text" class="form-control" id="nameInput" placeholder="Nom">
- </td>
- <td>
- <input type="number" class="form-control" id="quantityInput" placeholder="Quantité">
- </td>
- <td>
- <input type="text" class="form-control" id="priceInput" placeholder="Prix">
- </td>
- <td>
- <input type="text" class="form-control" id="codeInput" placeholder="Code Barre">
- </td>
- <td id="typeCheckboxesCell">
-
- </td>
- <td>
- <input type="text" class="form-control" id="imageInput" placeholder="Lien Image">
- </td>
- <td>
- <button type="submit" class="btn btn-success" onclick="addNewItem()"><i class="fas fa-check"></i>
- </button>
- </td>
- </tr>
- </tbody>
- </table>
-
- <h2 class="text-center">Liste d'articles</h2>
- <table id="stockTable">
- <tbody>
- <?= $tableHeader ?>
- </tbody>
- </table>
-
- <div style="display: flex; margin-top: 100px">
- <button class="btn btn-success btn-lg" style="margin: auto"
- onclick="saveDataset()">
- Sauvegarder le stock
- </button>
- </div>
-
-
- </>
-
- <link type="text/css" rel="stylesheet" href="<?= $relativePath ?>assets/css/stock.css" media="screen,projection"/>
-
-
- <?php
- $pageContent = ob_get_clean();
- $pageTitle = "Gestion";
- $pageScripts = "<script type=\"text/javascript\" src=\"" . $relativePath . "assets/js/stock.js\"></script>";
- include($relativePath . "includes/template.php");
- ?>
|