DmitrMakeev
commited on
Create data_gc_tab.html
Browse files- data_gc_tab.html +56 -0
data_gc_tab.html
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
6 |
+
<title>Contacts</title>
|
7 |
+
<link href="https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css" rel="stylesheet">
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
font-family: Arial, sans-serif;
|
11 |
+
text-align: center;
|
12 |
+
background-color: #f0f0f0;
|
13 |
+
margin: 0;
|
14 |
+
padding: 0;
|
15 |
+
}
|
16 |
+
h1 {
|
17 |
+
background-color: #4CAF50;
|
18 |
+
color: white;
|
19 |
+
padding: 20px;
|
20 |
+
margin: 0;
|
21 |
+
border-bottom: 2px solid #388E3C;
|
22 |
+
}
|
23 |
+
#table {
|
24 |
+
width: 70%;
|
25 |
+
margin: 20px auto;
|
26 |
+
}
|
27 |
+
p {
|
28 |
+
margin-top: 20px;
|
29 |
+
font-size: 18px;
|
30 |
+
color: #333;
|
31 |
+
}
|
32 |
+
</style>
|
33 |
+
</head>
|
34 |
+
<body>
|
35 |
+
<h1>База синзронизации с Getcurse</h1>
|
36 |
+
<p>Total users: <span id="total-users">{{ total_users }}</span></p>
|
37 |
+
<div id="table"></div>
|
38 |
+
|
39 |
+
<script src="https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js"></script>
|
40 |
+
<script>
|
41 |
+
document.addEventListener('DOMContentLoaded', function() {
|
42 |
+
var table = new Tabulator("#table", {
|
43 |
+
height: "400px", // устанавливаем высоту таблицы
|
44 |
+
layout: "fitColumns", // автоматически подгоняем ширину колонок
|
45 |
+
columns: [
|
46 |
+
{title: "Имя", field: "name"},
|
47 |
+
{title: "Телефон", field: "phone"},
|
48 |
+
{title: "Почта", field: "email"}
|
49 |
+
],
|
50 |
+
ajaxURL: "/data_gc", // URL для загрузки данных
|
51 |
+
ajaxConfig: "GET" // метод запроса
|
52 |
+
});
|
53 |
+
});
|
54 |
+
</script>
|
55 |
+
</body>
|
56 |
+
</html>
|