Update biz_v.html
Browse files- biz_v.html +225 -268
biz_v.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
<html lang="ru">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
|
@@ -7,268 +7,230 @@
|
|
| 7 |
<link rel="stylesheet" href="styles.css">
|
| 8 |
<script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
|
| 9 |
</head>
|
| 10 |
-
|
| 11 |
body {
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
}
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
.form-group
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
}
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
#uploadButton {
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
}
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
}
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
}
|
| 235 |
-
|
| 236 |
-
.block form#uploadFormJson {
|
| 237 |
-
margin-top: 20px;
|
| 238 |
-
}
|
| 239 |
-
|
| 240 |
-
.block form#uploadFormJson label {
|
| 241 |
-
display: flex;
|
| 242 |
-
align-items: center;
|
| 243 |
-
margin-bottom: 10px;
|
| 244 |
-
font-size: 16px;
|
| 245 |
-
color: #000000;
|
| 246 |
-
}
|
| 247 |
-
|
| 248 |
-
.block form#uploadFormJson input[type="file"] {
|
| 249 |
-
padding: 10px;
|
| 250 |
-
font-size: 16px;
|
| 251 |
-
border: 1px solid #ccc;
|
| 252 |
-
border-radius: 5px;
|
| 253 |
-
margin-right: 10px;
|
| 254 |
-
}
|
| 255 |
-
|
| 256 |
-
#message {
|
| 257 |
-
margin-top: 20px;
|
| 258 |
-
padding: 10px;
|
| 259 |
-
border: 1px solid #ccc;
|
| 260 |
-
border-radius: 5px;
|
| 261 |
-
background-color: #fff;
|
| 262 |
-
color: #4CAF50;
|
| 263 |
-
text-align: center;
|
| 264 |
-
}
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
</style>
|
| 272 |
<body>
|
| 273 |
<h1>WhatsMasterGRM - Принудительное обновление базы</h1>
|
| 274 |
|
|
@@ -345,7 +307,6 @@ input[type="date"] {
|
|
| 345 |
showNotification('Произошла ошибка при загрузке файла.', true);
|
| 346 |
});
|
| 347 |
});
|
| 348 |
-
|
| 349 |
document.getElementById('uploadFormJson').addEventListener('submit', function(event) {
|
| 350 |
event.preventDefault();
|
| 351 |
var formData = new FormData(event.target);
|
|
@@ -361,7 +322,6 @@ input[type="date"] {
|
|
| 361 |
showNotification("Произошла ошибка: " + error, true);
|
| 362 |
});
|
| 363 |
});
|
| 364 |
-
|
| 365 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 366 |
const token = document.getElementById('tokenInput').value;
|
| 367 |
const minDate = document.getElementById('dateInput').value;
|
|
@@ -384,7 +344,6 @@ input[type="date"] {
|
|
| 384 |
showNotification('Произошла ошибка при получении списка комнат.', true);
|
| 385 |
});
|
| 386 |
});
|
| 387 |
-
|
| 388 |
function createDropdown(data) {
|
| 389 |
const container = document.getElementById('dropdown-container');
|
| 390 |
container.innerHTML = '';
|
|
@@ -403,7 +362,6 @@ input[type="date"] {
|
|
| 403 |
sendGetRequestButton.removeEventListener('click', handleGetRequest);
|
| 404 |
sendGetRequestButton.addEventListener('click', handleGetRequest);
|
| 405 |
}
|
| 406 |
-
|
| 407 |
function handleGetRequest() {
|
| 408 |
const selectedValue = document.getElementById('dropdown').value;
|
| 409 |
const token = document.getElementById('tokenInput').value;
|
|
@@ -420,7 +378,6 @@ input[type="date"] {
|
|
| 420 |
showNotification('Произошла ошибка при обновлении базы.', true);
|
| 421 |
});
|
| 422 |
}
|
| 423 |
-
|
| 424 |
function showNotification(message, isError = false) {
|
| 425 |
const notyf = new Notyf({
|
| 426 |
duration: 5000,
|
|
@@ -463,4 +420,4 @@ input[type="date"] {
|
|
| 463 |
}
|
| 464 |
</script>
|
| 465 |
</body>
|
| 466 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html lang="ru">
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
|
|
|
| 7 |
<link rel="stylesheet" href="styles.css">
|
| 8 |
<script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
|
| 9 |
</head>
|
| 10 |
+
<style>
|
| 11 |
body {
|
| 12 |
+
font-family: Arial, sans-serif;
|
| 13 |
+
text-align: center;
|
| 14 |
+
background-color: #f0f0f0;
|
| 15 |
+
margin: 0;
|
| 16 |
+
padding: 0;
|
| 17 |
+
}
|
| 18 |
+
h1 {
|
| 19 |
+
background-color: #4CAF50;
|
| 20 |
+
color: white;
|
| 21 |
+
padding: 20px;
|
| 22 |
+
margin: 0;
|
| 23 |
+
border-bottom: 2px solid #388E3C;
|
| 24 |
+
font-size: 28px;
|
| 25 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 26 |
+
}
|
| 27 |
+
.container {
|
| 28 |
+
display: flex;
|
| 29 |
+
justify-content: space-around;
|
| 30 |
+
margin-top: 20px;
|
| 31 |
+
}
|
| 32 |
+
.block {
|
| 33 |
+
width: 45%;
|
| 34 |
+
text-align: center;
|
| 35 |
+
background-color: white;
|
| 36 |
+
padding: 20px;
|
| 37 |
+
border-radius: 10px;
|
| 38 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 39 |
+
}
|
| 40 |
+
.form-group {
|
| 41 |
+
margin: 20px 0;
|
| 42 |
+
}
|
| 43 |
+
.form-group label {
|
| 44 |
+
display: block;
|
| 45 |
+
margin-bottom: 8px;
|
| 46 |
+
font-size: 16px;
|
| 47 |
+
}
|
| 48 |
+
.form-group input,
|
| 49 |
+
.form-group select {
|
| 50 |
+
width: 100%;
|
| 51 |
+
padding: 12px;
|
| 52 |
+
font-size: 16px;
|
| 53 |
+
border: 1px solid #ccc;
|
| 54 |
+
border-radius: 5px;
|
| 55 |
+
box-sizing: border-box;
|
| 56 |
+
}
|
| 57 |
+
button {
|
| 58 |
+
display: block;
|
| 59 |
+
margin: 20px auto;
|
| 60 |
+
color: white;
|
| 61 |
+
background-color: #4CAF50;
|
| 62 |
+
border: none;
|
| 63 |
+
cursor: pointer;
|
| 64 |
+
padding: 12px 24px;
|
| 65 |
+
font-size: 16px;
|
| 66 |
+
border-radius: 5px;
|
| 67 |
+
transition: background-color 0.3s ease;
|
| 68 |
+
}
|
| 69 |
+
button:hover {
|
| 70 |
+
background-color: #388E3C;
|
| 71 |
+
}
|
| 72 |
+
.input-row {
|
| 73 |
+
display: flex;
|
| 74 |
+
justify-content: center;
|
| 75 |
+
gap: 10px;
|
| 76 |
+
margin-top: 20px;
|
| 77 |
+
}
|
| 78 |
+
.input-row input[type="file"] {
|
| 79 |
+
padding: 10px;
|
| 80 |
+
font-size: 16px;
|
| 81 |
+
border: 1px solid #ccc;
|
| 82 |
+
border-radius: 5px;
|
| 83 |
+
}
|
| 84 |
+
.input-row input[type="checkbox"] {
|
| 85 |
+
margin-top: 5px;
|
| 86 |
+
}
|
| 87 |
+
.input-row label {
|
| 88 |
+
display: flex;
|
| 89 |
+
align-items: center;
|
| 90 |
+
color: #000000;
|
| 91 |
+
font-size: 16px;
|
| 92 |
+
}
|
| 93 |
+
#uploadButton {
|
| 94 |
+
color: white;
|
| 95 |
+
background-color: #4CAF50;
|
| 96 |
+
border: none;
|
| 97 |
+
cursor: pointer;
|
| 98 |
+
padding: 10px 20px;
|
| 99 |
+
font-size: 16px;
|
| 100 |
+
border-radius: 5px;
|
| 101 |
+
margin-top: 20px;
|
| 102 |
+
display: block;
|
| 103 |
+
margin-left: auto;
|
| 104 |
+
margin-right: auto;
|
| 105 |
+
}
|
| 106 |
+
#uploadButton:hover {
|
| 107 |
+
background-color: #388E3C;
|
| 108 |
+
}
|
| 109 |
+
.block h2 {
|
| 110 |
+
text-align: center;
|
| 111 |
+
}
|
| 112 |
+
/* Custom Checkbox Styles */
|
| 113 |
+
.container-checkbox {
|
| 114 |
+
color: #000000;
|
| 115 |
+
display: block;
|
| 116 |
+
position: relative;
|
| 117 |
+
padding-left: 35px;
|
| 118 |
+
margin-bottom: 12px;
|
| 119 |
+
cursor: pointer;
|
| 120 |
+
font-size: 16px;
|
| 121 |
+
-webkit-user-select: none;
|
| 122 |
+
-moz-user-select: none;
|
| 123 |
+
-ms-user-select: none;
|
| 124 |
+
user-select: none;
|
| 125 |
+
}
|
| 126 |
+
.container-checkbox input {
|
| 127 |
+
position: absolute;
|
| 128 |
+
opacity: 0;
|
| 129 |
+
cursor: pointer;
|
| 130 |
+
height: 0;
|
| 131 |
+
width: 0;
|
| 132 |
+
}
|
| 133 |
+
.checkmark {
|
| 134 |
+
position: absolute;
|
| 135 |
+
top: 0;
|
| 136 |
+
left: 0;
|
| 137 |
+
height: 25px;
|
| 138 |
+
width: 25px;
|
| 139 |
+
background-color: #eee;
|
| 140 |
+
}
|
| 141 |
+
.container-checkbox:hover input ~ .checkmark {
|
| 142 |
+
background-color: #ccc;
|
| 143 |
+
}
|
| 144 |
+
.container-checkbox input:checked ~ .checkmark {
|
| 145 |
+
background-color: #4CAF50;
|
| 146 |
+
}
|
| 147 |
+
.checkmark:after {
|
| 148 |
+
content: "";
|
| 149 |
+
position: absolute;
|
| 150 |
+
display: none;
|
| 151 |
+
}
|
| 152 |
+
.container-checkbox input:checked ~ .checkmark:after {
|
| 153 |
+
display: block;
|
| 154 |
+
}
|
| 155 |
+
.container-checkbox .checkmark:after {
|
| 156 |
+
left: 9px;
|
| 157 |
+
top: 5px;
|
| 158 |
+
width: 5px;
|
| 159 |
+
height: 10px;
|
| 160 |
+
border: solid white;
|
| 161 |
+
border-width: 0 3px 3px 0;
|
| 162 |
+
-webkit-transform: rotate(45deg);
|
| 163 |
+
-ms-transform: rotate(45deg);
|
| 164 |
+
transform: rotate(45deg);
|
| 165 |
+
}
|
| 166 |
+
input[type="date"] {
|
| 167 |
+
background-color: #4CAF50;
|
| 168 |
+
color: white;
|
| 169 |
+
padding: 12px;
|
| 170 |
+
font-size: 16px;
|
| 171 |
+
border: none;
|
| 172 |
+
border-radius: 5px;
|
| 173 |
+
width: 100%;
|
| 174 |
+
box-sizing: border-box;
|
| 175 |
+
}
|
| 176 |
+
::-webkit-calendar-picker-indicator {
|
| 177 |
+
background-color: white;
|
| 178 |
+
padding: 5px;
|
| 179 |
+
cursor: pointer;
|
| 180 |
+
border-radius: 3px;
|
| 181 |
+
}
|
| 182 |
+
#dropdown {
|
| 183 |
+
width: 100%;
|
| 184 |
+
padding: 12px;
|
| 185 |
+
font-size: 16px;
|
| 186 |
+
border: 1px solid #ccc;
|
| 187 |
+
border-radius: 5px;
|
| 188 |
+
box-sizing: border-box;
|
| 189 |
+
margin-bottom: 20px;
|
| 190 |
+
}
|
| 191 |
+
#uploadButtonJson {
|
| 192 |
+
color: white;
|
| 193 |
+
background-color: #4CAF50;
|
| 194 |
+
border: none;
|
| 195 |
+
cursor: pointer;
|
| 196 |
+
padding: 10px 20px;
|
| 197 |
+
font-size: 16px;
|
| 198 |
+
border-radius: 5px;
|
| 199 |
+
margin-top: 20px;
|
| 200 |
+
display: block;
|
| 201 |
+
margin-left: auto;
|
| 202 |
+
margin-right: auto;
|
| 203 |
+
}
|
| 204 |
+
#uploadButtonJson:hover {
|
| 205 |
+
background-color: #388E3C;
|
| 206 |
+
}
|
| 207 |
+
.block form#uploadFormJson {
|
| 208 |
+
margin-top: 20px;
|
| 209 |
+
}
|
| 210 |
+
.block form#uploadFormJson label {
|
| 211 |
+
display: flex;
|
| 212 |
+
align-items: center;
|
| 213 |
+
margin-bottom: 10px;
|
| 214 |
+
font-size: 16px;
|
| 215 |
+
color: #000000;
|
| 216 |
+
}
|
| 217 |
+
.block form#uploadFormJson input[type="file"] {
|
| 218 |
+
padding: 10px;
|
| 219 |
+
font-size: 16px;
|
| 220 |
+
border: 1px solid #ccc;
|
| 221 |
+
border-radius: 5px;
|
| 222 |
+
margin-right: 10px;
|
| 223 |
+
}
|
| 224 |
+
#message {
|
| 225 |
+
margin-top: 20px;
|
| 226 |
+
padding: 10px;
|
| 227 |
+
border: 1px solid #ccc;
|
| 228 |
+
border-radius: 5px;
|
| 229 |
+
background-color: #fff;
|
| 230 |
+
color: #4CAF50;
|
| 231 |
+
text-align: center;
|
| 232 |
+
}
|
| 233 |
+
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 234 |
<body>
|
| 235 |
<h1>WhatsMasterGRM - Принудительное обновление базы</h1>
|
| 236 |
|
|
|
|
| 307 |
showNotification('Произошла ошибка при загрузке файла.', true);
|
| 308 |
});
|
| 309 |
});
|
|
|
|
| 310 |
document.getElementById('uploadFormJson').addEventListener('submit', function(event) {
|
| 311 |
event.preventDefault();
|
| 312 |
var formData = new FormData(event.target);
|
|
|
|
| 322 |
showNotification("Произошла ошибка: " + error, true);
|
| 323 |
});
|
| 324 |
});
|
|
|
|
| 325 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 326 |
const token = document.getElementById('tokenInput').value;
|
| 327 |
const minDate = document.getElementById('dateInput').value;
|
|
|
|
| 344 |
showNotification('Произошла ошибка при получении списка комнат.', true);
|
| 345 |
});
|
| 346 |
});
|
|
|
|
| 347 |
function createDropdown(data) {
|
| 348 |
const container = document.getElementById('dropdown-container');
|
| 349 |
container.innerHTML = '';
|
|
|
|
| 362 |
sendGetRequestButton.removeEventListener('click', handleGetRequest);
|
| 363 |
sendGetRequestButton.addEventListener('click', handleGetRequest);
|
| 364 |
}
|
|
|
|
| 365 |
function handleGetRequest() {
|
| 366 |
const selectedValue = document.getElementById('dropdown').value;
|
| 367 |
const token = document.getElementById('tokenInput').value;
|
|
|
|
| 378 |
showNotification('Произошла ошибка при обновлении базы.', true);
|
| 379 |
});
|
| 380 |
}
|
|
|
|
| 381 |
function showNotification(message, isError = false) {
|
| 382 |
const notyf = new Notyf({
|
| 383 |
duration: 5000,
|
|
|
|
| 420 |
}
|
| 421 |
</script>
|
| 422 |
</body>
|
| 423 |
+
</html>
|