-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimpor
31 lines (26 loc) · 861 Bytes
/
impor
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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<head>
<title>BudayaKB Lite</title>
<link rel = "icon" type = "image/png" href = "https://p7.hiclipart.com/preview/646/962/564/national-emblem-of-indonesia-garuda-others.jpg">
</head>
<body>
{% include 'includes/_navbar.html' %}
<div class="form">
<h2>Impor Budaya</h2>
<form method="POST", action="" enctype = "multipart/form-data">
<p>Pilih file CSV berisi data BudayaKB</p>
<input type="file" name=file required style="background: white;">
<input type=submit value="Import Data">
</form>
<!-- -->
{% if result is defined and result >0: %}
<h3>{{ result }} data budaya telah terimpor dari file "{{ fname }}"</h3>
{% elif result == 0 %}
<h3>Tidak terimpor data dari file "{{ fname }}"</h3>
{% endif %}
<!-- -->
</div>
</body>
</html>