/
Centermant
/
web-nodejs
Обзор
Документация
Войти
/
Centermant
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/lab9/task2/index.html
75 строк
3 KB
Centermant
feat(lab9:final)
25 ноя 2025, 22:02
25 ноя 2025, 22:02
6322796
Код
Авторство
О чём код?
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Лабораторная работа №9 - Задание 2</title> <link rel="stylesheet" href="/css/styles_lab.css"> </head> <body> <div class="wrapper"> <div class="header"> <h1>ЛАБОРАТОРНАЯ РАБОТА №9 - ЗАДАНИЕ 2</h1> </div> <div class="container"> <section class="form-section"> <h2 class="title">Поиск товара по ID</h2> <div class="form-group"> <label for="productId">ID товара:</label> <input type="number" id="productId" placeholder="Введите ID товара"> <button type="button" class="btn-primary" onclick="searchProductById()">Найти</button> </div> <div id="productDetails"></div> </section> <section class="table-section"> <h2 class="title">Статистика по складу</h2> <div id="statsContainer" class="stats-container"> <p>Загрузка статистики...</p> </div> </section> <section class="table-section"> <h2 class="title">Таблица товаров</h2> <table id="productsTable"> <thead> <tr> <th>ID</th> <th>Название</th> <th>Цена (руб)</th> <th>Остаток</th> <th>Действия</th> </tr> </thead> <tbody id="productsTableBody"> <tr><td colspan="5">Загрузка...</td></tr> </tbody> </table> <div style="margin-top: 20px;"> <button type="button" class="btn-primary" onclick="saveAllProducts()">Сохранить все изменения</button> </div> </section> <section class="form-section" style="margin-top: 30px;"> <h2 class="title">Добавить товар</h2> <form id="addForm"> <div class="form-group"> <label for="title">Название:</label> <input type="text" id="title" name="title" placeholder="Напр. iPhone 16" required> </div> <div class="form-group"> <label for="price">Цена (в рублях):</label> <input type="number" id="price" name="price" placeholder="Напр. 100.50" step="0.01" required> </div> <div class="form-group"> <label for="amount">Количество на складе:</label> <input type="number" id="amount" name="amount" placeholder="Количество" required> </div> <button type="submit" class="btn-primary">Сохранить в БД</button> </form> </section> </div> </div> <script src="script.js" defer></script> </body> </html>