Afanasev_Stepan_PIbd-21_IP/ИП 2 лаба/admin.html

181 lines
8.9 KiB
HTML
Raw Permalink Normal View History

2024-01-10 16:11:49 +04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Админка</title>
<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 href="css/admin.css" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg sticky-top">
<div class="container">
<a href="#" class="navbar-brand"><img src="img/Logo-St5 1.png"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav me-auto menu1">
<li class="nav-item">
<a href="index.html" class="nav-link px-4 mx-3">Главная</a>
</li>
<li class="nav-item">
<a href="process.html" class="nav-link px-4 mx-3">Учебный процесс</a>
</li>
<li class="nav-item">
<a href="feedback.html" class="nav-link px-4 mx-3">Отзывы</a>
</li>
<li class="nav-item">
<a href="profil.html" class="nav-link px-4 mx-3">Профиль</a>
</li>
<li class="nav-item">
<a href="admin.html" class="nav-link px-4 mx-3">Админ</a>
</li>
</ul>
</div>
<div class="collapse navbar-collapse navv" id="navbarResponsive">
<ul class="navbar-nav">
<li class="nav-item">
<a href="registr.html" class="nav-link px-3 mx-2">Вход</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="section admin">
<button class="btn btn-primary mb-1 btn-text-adm" type="submit">Добавить пользователя</button>
<table class="table table-bordered">
<thead class="table-dark">
<tr>
<th scope="col">ID</th>
<th scope="col">Ф.И.О.</th>
<th scope="col">Почта</th>
<th scope="col">Номер телефона</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Афанасьев Степан Сергеевич</td>
<td>example@yandex.ru</td>
<td>77139</td>
</tr>
</tbody>
</table>
</section>
<section class="section admin2">
<div class="btn-group" role="group">
<button id="items-add" class="btn btn-primary mb-1 btn-text-adm">Добавить курс (диалог)</button>
<a class="btn btn-success mb-1 btn-text-adm" href="page-edit.html">Добавить курс (страница)</a>
</div>
<div>
<table id="items-table" class="table table-striped">
<thead class="table-dark">
<tr>
<th scope="col">ID</th>
<th scope="col">Тип</th>
<th scope="col">Цена</th>
<th scope="col">Название</th>
<th scope="col">Продолжительность/h</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</section>
<footer class="text-center text_">
<section class="">
<div class="container text-center text-md-start mt-5 pt-3">
<div class="row">
<div class="col-md-3 col-lg-4 mx-auto mb-4">
<h6 class=" fw-bold mb-4 text_1"> Присоединяйся к нам в соцсетях! </h6>
<div class="social-icons">
<a href="#" class="text-center text-reset me-3"><img class="ic" src="img/vk-social-network-logo 1.png" alt="vk"></a>
<a href="#" class="text-center text-reset me-3"><img class="ic" src="img/youtube 1.png" alt="tg"></a>
<a href="#" class="text-center text-reset me-3"><img class="ic" src="img/telegram 1.png" alt="Inst"></a>
<a href="#" class="text-center text-reset"><img class="ic" src="img/whatsapp 1.png" alt="Inst"></a>
</div>
</div>
<div class="col-md-3 col-lg-3 col-xl-2 mx-auto mb-4">
<h6 class="fw-bold mb-4 text_1">Контакты</h6>
<div class="social-icons2">
<div class="emaill">
<a href="#" class="text-reset me-3"><img src="img/email 1.png" alt="vk"></a>
<h2 class="text1_emaill_ mt-1">stepan2004stepan@yandex.ru</h2>
</div>
<div class="callme">
<a href="#" class="text-reset me-3"><img src="img/phone-call 1.png" alt="tg"></a>
<h2 class="text1_callme_ mt-2">8 917 052 79 27</h2>
</div>
</div>
</div>
</div>
</div>
</section>
</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="https://via.placeholder.com/200" class="rounded rounded-circle"
alt="placeholder">
</div>
<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>
</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="2500000.00"
step="50000.0" required>
</div>
<div class="mb-2">
<label class="form-label" for="nick">Название</label>
<input id="nick" name="nick" class="form-control" type="text" value="Введите текст" required>
</div>
<div class="mb-2">
<label class="form-label" for="duration">Продолжительность</label>
<input id="duration" name="duration" class="form-control" type="text" value="Введите текст" 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>