/
minecraft_query_errors.tpl
156 lines (129 loc) · 5.87 KB
/
minecraft_query_errors.tpl
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
{include file='header.tpl'}
<body id="page-top">
<!-- Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main content -->
<div id="content">
<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">{$QUERY_ERRORS}</h1>
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{$PANEL_INDEX}">{$DASHBOARD}</a></li>
<li class="breadcrumb-item active">{$INTEGRATIONS}</li>
<li class="breadcrumb-item"><a href="{$MINECRAFT_LINK}">{$MINECRAFT}</a></li>
<li class="breadcrumb-item active">{$QUERY_ERRORS}</li>
</ol>
</div>
<!-- Update Notification -->
{include file='includes/update.tpl'}
<div class="card shadow mb-4">
<div class="card-body">
<button onclick="showPurgeModal()" class="btn btn-warning">{$PURGE_QUERY_ERRORS}</button>
<hr />
<!-- Success and Error Alerts -->
{include file='includes/alerts.tpl'}
{if isset($QUERY_ERRORS_ARRAY)}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{$SERVER_ADDRESS}</th>
<th>{$SERVER_PORT}</th>
<th>{$DATE}</th>
<th>{$ACTIONS}</th>
</tr>
</thead>
<tbody>
{foreach from=$QUERY_ERRORS_ARRAY item=query_error}
<tr>
<td>{$query_error.ip}</td>
<td>{$query_error.port}</td>
<td>{$query_error.date}</td>
<td>
<a href="{$query_error.view_link}" class="btn btn-info">{$VIEW}</a>
<button onclick="showDeleteModal('{$query_error.delete_link}')"
class="btn btn-danger">{$DELETE}</button>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{$PAGINATION}
{else}
<p>{$NO_QUERY_ERRORS}</p>
{/if}
</div>
</div>
<!-- Spacing -->
<div style="height:1rem;"></div>
<!-- End Page Content -->
</div>
<!-- End Main Content -->
</div>
{include file='footer.tpl'}
<!-- End Content Wrapper -->
</div>
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{$ARE_YOU_SURE}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{$CONFIRM_DELETE_ERROR}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{$NO}</button>
<a href="#" id="deleteLink" class="btn btn-primary">{$YES}</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="purgeModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{$ARE_YOU_SURE}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
{$CONFIRM_PURGE_ERRORS}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">{$NO}</button>
<form action="{$PURGE_QUERY_ERRORS_LINK}" method="post" style="display: inline">
<input type="hidden" name="token" value="{$TOKEN}" />
<input type="submit" class="btn btn-primary" value="{$YES}" />
</form>
</div>
</div>
</div>
</div>
<!-- End Wrapper -->
</div>
{include file='scripts.tpl'}
<script type="text/javascript">
function showDeleteModal(link) {
$('#deleteLink').attr('href', link);
$('#deleteModal').modal().show();
}
function showPurgeModal() {
$('#purgeModal').modal().show();
}
</script>
</body>
</html>