-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (34 loc) · 1.68 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
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
<!doctype html>
<html lang="ru">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Импорт/экспорт CSV файлов!</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="public/css/bootstrap.min.css">
<link rel="stylesheet" href="public/css/style.css">
</head>
<body>
<div class="container text-center">
<h1 class="h3 pt-5">Выберите файл для импорта на сервер</h1>
<p class="text-monospace text-info">(только CSV формат, размер не более 1 Мб)</p>
<form enctype="multipart/form-data" method="post" action="https://kiriakov-1988.github.io/csv-import-export/index.html" onsubmit="return checkForm(this)">
<input type="hidden" name="MAX_FILE_SIZE" value="1048576" />
<p class="pl-4" style="line-height: 3">
<input name="userfile" type="file" id="file" />
<input class="btn btn-success" type="submit" value="Import" />
</p>
</form>
<!-- Далее в форме специально для этой тестовой странички изменен метод -->
<form method="get" action="https://kiriakov-1988.github.io/csv-import-export/">
<input class="btn btn-danger" type="submit" name="clear" value="Clear all records" onclick="return allowDeletion();" />
</form>
<p class="p-4">
<a href="view-results.html" class="btn btn-outline-primary w-25">View results</a>
</p>
<script src="public/js/form-checker.js"></script>
</div>
</body>
</html>