Pibd-21_Ievlewa_M.D._Intern.../test.txt

170 lines
8.0 KiB
Plaintext
Raw Normal View History

2023-12-06 20:36:44 +04:00
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.cdnfonts.com/css/correction-tape" rel="stylesheet">
<title>Admin</title>
<script type="module" 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">
2023-12-03 19:52:09 +04:00
2023-12-06 20:36:44 +04:00
<script>
function toggleMenu() {
var menuWrapper = document.getElementById("menu-wrapper");
menuWrapper.classList.toggle("open");
}
</script>
</head>
<body class="h-100 d-flex flex-column">
<div id="menu-wrapper">
<div id="menu">
<ul>
<li><a href="/">Главная</a></li>
<li><a href="./page2(cinema).html">Кино</a></li>
<li><a href="./page2(concerts).html">Концерты</a></li>
<li><a href="./page2(theatre).html">Театр</a></li>
<li><a href="./about.html">О сайте</a></li>
</ul>
</div>
</div>
<header>
<nav class="navbar navbar-expand-md navbar-dark">
<div class="container-fluid">
<a id="toggle-menu" onclick="toggleMenu()">
<h1>TicketsBook</h1>
</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" href="./signingIn.html">вход/регистрация</a>
<a class="nav-link" href="./lkAdmin.html">админ</a>
</div>
</div>
</div>
</nav>
</header>
<main class="container-fluid p-2">
<div class="container">
<div class="row">
<div class="info">
<h1>Таблица событий</h1>
<div class="info-text container" style="max-height: 25vh; overflow-y: auto;">
<table id="items-table" class="table table-striped" style="color: aliceblue;">
<thead>
<tr>
<th scope="col">№</th>
<th scope="col">Название</th>
<th scope="col">Тип события</th>
<th scope="col">Дата проведения</th>
<th scope="col">Стоимость</th>
<th scope="col">Место проведения</th>
<th scope="col">Изображение</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<!--<div class="info">
<h1>Таблица пользователей</h1>
<div class="info-text container" style="max-height: 25vh; overflow-y: auto;">
<table class="table" style="color: aliceblue;">
<thead>
<tr>
<th scope="col">№</th>
<th scope="col">Логин</th>
<th scope="col" type="password">Пароль</th>
<th scope="col">E-mail</th>
<th scope="col">Дата регистрации</th>
<th scope="col">Аватар</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>-->
</div>
</div>
<div class="d-flex justify-content-center" style="margin-bottom: 1%; margin-top: 1%">
<button id="items-add" class="btn btn-primary" style="font-size: 30px;">Добавить</button>
</div>
</main>
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
Иевлева Милана, 2023
</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">
<div class="text-center">
<img id="image-preview" src="placeholder.jpg" class="rounded"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label for="name" class="form-label">Название</label>
<input id="name" name="name" class="form-control" type="text" required>
</div>
<div class="mb-2">
<label for="item" class="form-label">Тип события</label>
<select id="item" class="form-select" name="selected" required>
</select>
</div>
<div class="input-group date" id="datepicker">
<label for="date" class="form-label">Дата проведения</label>
<input type="text" class="form-control" placeholder="Выберите дату">
<div class="input-group-append">
<span class="input-group-text"><i class="bi bi-calendar"></i></span>
</div>
</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 for="place" class="form-label">Место проведения</label>
<input id="place" name="place" class="form-control" type="text" required>
</div>
<div class="mb-2">
<label class="form-label" for="image">Изображение</label>
<input id="image" type="file" name="image" class="form-control" accept="image/*">
</div>
</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>
</body>
</html>