PIbd-22.-Stroev-V.M.-Intern.../Lab3/admin.html
2023-12-08 14:53:58 +04:00

110 lines
5.9 KiB
HTML
Raw 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 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">
</head>
<body class="h-100 d-flex flex-column" background = "./images/BackGr.png">
<header>
<nav class = "headStyleNavBar navbar-text navbar-dark w-100">
<div class = "text-center">
<img src = "./images/logo2.png" alt = "logo2" width="70">
<span class = "headStyle">
<b>Ульяновский Государственный Политехнический Университет</b>
</span>
</div>
</nav>
<nav class="headStyleNavBar2 navbar navbar-expand-md">
<div class="container-fluid">
<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-start" id="navbarNav">
<div class="navbar-nav">
<a class="heasdStyle nav-link" href="./index.html"><span class = "headStyle">Новости</span></a>
<a class="heasdStyle nav-link active" href="./page2.html"><span class = "headStyle">Об университете</span></a>
<a class="heasdStyle nav-link" href="./page3.html"><span class = "headStyle">Абитуриенту</span></a>
<a class = "heasdStyle nav-link" href = "./page4.html"><span class = "headStyle">Вход</span></a>
<a class = "nav-link" href = "./page5.html"><span class = "headStyle">Контакты</span></a>
</div>
</div>
</div>
</nav>
</header>
<main class="container p-2 text-center">
<span class = "mainSt">
<b>Новости</b>
</span>
<div class="btn-group" role="group">
<button id="items-add" class="btn btn-info">Добавить новость</button>
</div>
<div class="tbb1 p-3 table-responsive-md mt-4 row justify-content-start">
<table id = "items-table" class="table col-lg2 w-75 table-striped">
<thead>
<th scope = "col"></th>
<th scope = "col" class = "">Дата добавления</th>
<th scope = "col" class ="w-50">Название</th>
<th scope = "col" class = "w-75">Описание</th>
<th scope = "col"></th>
<th scope = "col"></th>
</thead>
<tbody></tbody>
</table>
</div>
</main>
<footer class=" headStyleNavBar footer mt-5 d-flex flex-shrink-0 justify-content-center align-items-center">
Адреса: ул. Северный Венец, 32; ул. Андрея Блаженного, 3
</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"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<input id="name" name="name" class="form-control" type = "text"
required>
</div>
<div class="mb-2">
<label class="form-label" for="description">Описание</label>
<input id="description" name="description" 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>