2023-11-24 01:31:26 +04:00
|
|
|
|
<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>
|
|
|
|
|
<div class = "container col text-center">
|
|
|
|
|
<span class = "mainSt">Новости</span>
|
2023-11-29 11:26:33 +04:00
|
|
|
|
<div class="text-center d-flex justify-content-end">
|
2023-11-24 01:31:26 +04:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</header>
|
2023-11-29 11:26:33 +04:00
|
|
|
|
<main>
|
|
|
|
|
<div class = "container-fluid d-flex justify-content-center">
|
|
|
|
|
<div class="btn-group text-center" role="group">
|
|
|
|
|
<button id="items-add" class="btn btn-info">
|
|
|
|
|
Добавить новость</button>
|
2023-12-08 12:23:57 +04:00
|
|
|
|
<button class="btn btn-primary w-auto" type="button" onclick ="location.href='admin.html';">
|
|
|
|
|
Панель админа</button>
|
2023-11-29 11:26:33 +04:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
2023-11-24 01:31:26 +04:00
|
|
|
|
<div class = "row">
|
2023-11-29 11:26:33 +04:00
|
|
|
|
<footer class="headStyleNavBar mt-5 d-flex flex-shrink-0 justify-content-center align-items-center">
|
2023-11-24 01:31:26 +04:00
|
|
|
|
Адреса: ул. Северный Венец, 32; ул. Андрея Блаженного, 3
|
|
|
|
|
</footer>
|
2023-11-29 11:26:33 +04:00
|
|
|
|
</div>
|
|
|
|
|
<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>
|
2023-11-24 01:31:26 +04:00
|
|
|
|
</div>
|
|
|
|
|
<script type = "module">
|
2023-11-29 11:26:33 +04:00
|
|
|
|
import validation from "./js/validation";
|
|
|
|
|
import { UpdateNews, linesForm } from "./js/lines";
|
2023-11-24 01:31:26 +04:00
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2023-11-29 11:26:33 +04:00
|
|
|
|
validation();
|
|
|
|
|
linesForm();
|
2023-11-24 01:31:26 +04:00
|
|
|
|
UpdateNews();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|