-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.html
192 lines (184 loc) · 6.7 KB
/
utils.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
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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>HNUEChat - Admin</title>
<link href="/css/bootstrap.min.css" rel="stylesheet" />
<link href="/css/styles.css" rel="stylesheet" />
<!--Icons-->
<script src="/js/lumino.glyphs.js"></script>
<style>
a:hover {
cursor: pointer;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
<span>HNUEChat</span>
Admin
</a>
</div>
</div>
<!-- /.container-fluid -->
</nav>
<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
<ul class="nav menu">
<li>
<a href="admin.html">
<svg class="glyph stroked app-window"><use xlink:href="#stroked-app-window"></use></svg>
Thông tin
</a>
</li>
<li class="active">
<a>
<svg class="glyph stroked app-window"><use xlink:href="#stroked-app-window"></use></svg>
Công cụ
</a>
</li>
<li role="presentation" class="divider"></li>
<li>
<a href="logout.html">
<svg class="glyph stroked male-user"><use xlink:href="#stroked-male-user"></use></svg>
Đăng xuất
</a>
</li>
<li role="presentation" class="divider"></li>
</ul>
<div class="attribution">
Template by
<a href="http://www.medialoot.com/item/lumino-admin-bootstrap-template/">Medialoot</a>
<br />
<a href="http://www.glyphs.co" style="color: #333;">Icons by Glyphs</a>
</div>
</div>
<!--/.sidebar-->
<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
<div class="row">
<ol class="breadcrumb">
<li>
<a href="#">
<svg class="glyph stroked home"><use xlink:href="#stroked-home"></use></svg>
</a>
</li>
</ol>
</div>
<!--/.row-->
<div class="row">
<div class="col-lg-12">
<h2>Công cụ</h2>
</div>
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-body">
<b>Phiên bản chatbot:</b>
<span id="version"></span>
</div>
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Check info</div>
<div class="panel-body">
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6">
<div class="form-group">
<label>Check info dựa trên ID</label>
<textarea class="form-control" placeholder="" id="id"></textarea>
<br />
<button class="btn btn-primary" onclick="checkInfo()">Check</button>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-6" id="ptnkinfo"></div>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">Sao lưu</div>
<div class="panel-body">
<b>Tạo bản sao lưu trạng thái ghép cặp.</b>
<br />
<br />
<button class="btn btn-primary" onclick="getBackupFile()" id="backup_btn">Tải bản sao lưu</button>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading" style="color: Red;">Xoá dữ liệu</div>
<div class="panel-body">
<b>Xóa toàn bộ dữ liệu trên server!</b>
<br />
<br />
<button class="btn btn-primary" onclick="resetDatabase()" id="resetDb_btn">Xoá dữ liệu</button>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">Khôi phục</div>
<div class="panel-body">
<b>Khôi phục trạng thái ghép cặp.</b>
<br />
<br />
Chọn file:
<br />
<input type="file" id="fileToLoad" onchange="restore(event)" />
<br />
<b id="restore_status"></b>
</div>
</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">Ghép cặp 2 người với nhau</div>
<div class="panel-body">
<label>ID User 1</label>
<input type="text" class="form-control" placeholder="ID User 1" id="id1"></input>
<br />
<select style="font-weight: bold;
margin: auto;
width: 100%;height: 30px;" class="form-select" name="" id="gender1">
<option value="MALE">MALE</option>
<option value="FEMALE">FEMALE</option>
<option value="UNKNOWN">UNKNOWN</option>
</select>
<br />
<br />
<label>ID User 2</label>
<input type="text" class="form-control" placeholder="ID User 2" id="id2"></input>
<br />
<select style="font-weight: bold;
margin: auto;
width: 100%;height: 30px;" class="form-select" name="" id="gender2">
<option value="MALE">MALE</option>
<option value="FEMALE">FEMALE</option>
<option value="UNKNOWN">UNKNOWN</option>
</select>
<br />
<br />
<button class="btn btn-primary" onclick="forceMatch()">Kết nối</button>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
<!--/.main-->
<script src="/js/jquery-3.5.0.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/cookie.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/admin.js"></script>
</body>
</html>