Internet_prog/2 лаба/page5.html
2023-10-24 12:26:58 +04:00

192 lines
7.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html lang="ru">
<head>
<meta charset="utf-8">
<title>Моя страница</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="./style.css">
</head>
<body class="h-100 d-flex flex-column bg-light" >
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/" style="color: black;">
<i class="fa-solid fa-crown" style="color: black;"> </i>
Отель Luxury
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
<div class="navbar-nav">
<a class="nav-link active" href="./index.html" style="color: black;">Главная</a>
<a class="nav-link active" href="./page5.html" style="color: black;">Размещение</a>
<a class="nav-link" href="./page2.html" style="color: black;">Инфраструктура</a>
<a class="nav-link" href="./page3.html" style="color: black;">Отзывы</a>
<a class="nav-link" href="./page4.html" style="color: black;">Забронировать</a>
<a class="nav-link" href="./page7.html" style="color: black;">Вход</a>
<a class="nav-link" href="./page6.html" style="color: black;">+</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<div class="btn-group" role="group">
<button id="items-add" class="btn but" style="background-color: blueviolet;">Добавить номер </button>
</div>
<!-- <a class="btn btn-success" href="/page6.html">Добавить товар </a>
</div>
<div class="container">
<div class="row align-items-start" >
<div class="col d-flex justify-content-center" >
<h4><i style="">Стандарт, 2100р</i></h4>
</div>
</div>
<div class="row align-items-start" >
<div class="col d-flex justify-content-center" >
<img src="./ст.jpg" style=" width: 80%;height: auto; " alt="logo" >
</div>
</div>
<div class="row align-items-start" >
<div class="col d-flex justify-content-center" >
<h4><i style=""> Стандт5+, 5100р</i></h4>
</div>
</div>
<div class="row align-items-center">
<div class="col d-flex justify-content-center" style="">
<img src="./гранд.jpg" style=" width: 80%;height: auto; " alt="logo" >
</div> -->
<!-- <div class="col">
</div>
<div class="col">
</div> -->
<!-- <div class="row align-items-end">
<div class="col " style="padding-top: 50px;">
<button type="button" class="btn btn-secondary btn-lg btn-block" style="padding-left: 50px;">Добавить номер</button>
</div>
</div> -->
<div>
<table id="items-table" class="table table-striped">
<thead>
<th scope="col" class="w-25"></th>
<th scope="col" class="w-25">Вид номера</th>
<th scope="col" class="w-25">Цена с человека</th>
<th scope="col" class="w-25">Количество человек</th>
<th scope="col" class="w-25">Общая сумма</th>
<th scope="col"></th>
<th scope="col"></th>
</thead>
<tbody></tbody>
</table>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
г. Ульяновск
</footer>
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog">
<form id="items-form" class="needs-validation" novalidate>
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="items-update-title"></h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label for="item" class="form-label">Название номера</label>
<select id="item" class="form-select" name="selected" required >
<option value="Стандарт">Стандарт</option>
<option value="Стандарт+">Стандарт+</option>
<option value="Люкс">Люкс</option>
</select>
</div>
<div class="mb-2">
<label class="form-label" for="price">Цена</label>
<input id="price" name="price" class="form-control" type="number" value="0.00" min="1000.00"
step="0.50" required>
</div>
<div class="mb-2">
<label class="form-label" for="count">Количество человек</label>
<input id="count" name="count" class="form-control" type="number" value="0" min="1" step="1"
required>
</div>
<div class="mb-2">
<input id="photo" name="photo" class="form-control" type="file" required>
<!-- <input type="hidden" name="image" id="image" value="${item.image}">
<button type="submit" class="btn btn-primary">Отправить</button> -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
<button type="submit" class="btn btn-primary" >Сохранить </button>
</div>
</div>
</form>
</div>
</div>
<script type="module">
import validation from "./js/validation";
import { linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
});
</script>
<!-- <script>
function addItem() {
var table = document.getElementById("items-table");
var item = document.getElementById("item").value;
var price = document.getElementById("price").value;
var count = document.getElementById("count").value;
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
var cell4 = row.insertCell(3);
var cell5 = row.insertCell(4);
var cell6 = row.insertCell(5);
cell1.innerHTML = item;
cell2.innerHTML = price;
cell3.innerHTML = count;
}
</script> -->
</body>
</html>