DmitrMakeev commited on
Commit
73ce73e
·
verified ·
1 Parent(s): 84301dc

Update biz_v.html

Browse files
Files changed (1) hide show
  1. biz_v.html +122 -0
biz_v.html CHANGED
@@ -202,6 +202,39 @@
202
 
203
  </style>
204
  </head>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  <body>
206
  <h1>WhatsMasterGRM - Принудительное обновление базы</h1>
207
 
@@ -229,6 +262,41 @@
229
  <div id="result"></div>
230
  </div>
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  <div class="block">
233
  <h2>Бизон 365 - API</h2>
234
  <div class="form-group">
@@ -372,5 +440,59 @@
372
  });
373
  }
374
  </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
375
  </body>
376
  </html>
 
202
 
203
  </style>
204
  </head>
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
+
237
+
238
  <body>
239
  <h1>WhatsMasterGRM - Принудительное обновление базы</h1>
240
 
 
262
  <div id="result"></div>
263
  </div>
264
 
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <h1>Upload JSON File</h1>
278
+ <form id="uploadForm" onsubmit="handleFormSubmit(event)" enctype="multipart/form-data">
279
+ <label for="file">Select JSON file:</label>
280
+ <input type="file" id="file" name="file" accept=".json" required><br><br>
281
+ <input type="submit" value="Upload">
282
+ </form>
283
+ <div id="message" style="display:none; margin-top:20px;"></div>
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
  <div class="block">
301
  <h2>Бизон 365 - API</h2>
302
  <div class="form-group">
 
440
  });
441
  }
442
  </script>
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+ <script>
462
+ function showMessage(message) {
463
+ var messageDiv = document.getElementById('message');
464
+ messageDiv.innerText = message;
465
+ messageDiv.style.display = 'block';
466
+ }
467
+ function handleFormSubmit(event) {
468
+ event.preventDefault();
469
+ var formData = new FormData(event.target);
470
+ fetch('/upload_json', {
471
+ method: 'POST',
472
+ body: formData
473
+ })
474
+ .then(response => response.json())
475
+ .then(data => {
476
+ if (data.message) {
477
+ showMessage(data.message);
478
+ } else if (data.error) {
479
+ showMessage(data.error);
480
+ }
481
+ })
482
+ .catch(error => {
483
+ showMessage("An error occurred: " + error);
484
+ });
485
+ }
486
+ </script>
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
  </body>
498
  </html>