2017-08-17 19:28:08 -04:00
|
|
|
<script>
|
2017-08-23 18:29:48 -04:00
|
|
|
function printPlayer(player, i) {
|
|
|
|
var playerText = '<div class="admin-name"><a href="/players?id=' + player.DatabaseID + '">' + player.Name + "</a></div>";
|
|
|
|
switch (player.Level) {
|
|
|
|
case 6:
|
|
|
|
$('#owner-privilege .clients').append(playerText);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
$('#senioradmin-privilege .clients').append(playerText);
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
$('#admin-privilege .clients').append(playerText);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
$('#mod-privilege .clients').append(playerText);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
$('#trusted-privilege .clients').append(playerText);
|
|
|
|
break;
|
|
|
|
}
|
2017-08-17 19:28:08 -04:00
|
|
|
}
|
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
function getAdmins() {
|
|
|
|
$.getJSON('/GetAdmins', function (result) {
|
|
|
|
$.each(result, function (i, player) {
|
|
|
|
printPlayer(player, i);
|
|
|
|
});
|
|
|
|
});
|
2017-08-17 19:28:08 -04:00
|
|
|
}
|
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
$(document).ready(function () {
|
|
|
|
getAdmins();
|
|
|
|
});
|
|
|
|
</script>
|
2017-08-17 19:28:08 -04:00
|
|
|
|
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
<div class="privilege" id="owner-privilege">
|
|
|
|
<div class="contentHeader table">
|
|
|
|
<div class="contentColumn tableCell">Owner</div>
|
|
|
|
</div>
|
|
|
|
<div class="clients"></div>
|
|
|
|
</div>
|
2017-08-17 19:28:08 -04:00
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
<div class="privilege" id="senioradmin-privilege">
|
|
|
|
<div class="contentHeader table">
|
|
|
|
<div class="contentColumn tableCell">Senior Administrator</div>
|
|
|
|
</div>
|
|
|
|
<div class="clients"></div>
|
|
|
|
</div>
|
2017-08-17 19:28:08 -04:00
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
<div class="privilege" id="admin-privilege">
|
|
|
|
<div class="contentHeader table">
|
|
|
|
<div class="contentColumn tableCell">Administrator</div>
|
|
|
|
</div>
|
|
|
|
<div class="clients"></div>
|
2017-08-17 19:28:08 -04:00
|
|
|
</div>
|
|
|
|
|
2017-08-23 18:29:48 -04:00
|
|
|
<div class="privilege" id="mod-privilege">
|
|
|
|
<div class="contentHeader table">
|
|
|
|
<div class="contentColumn tableCell">Moderator</div>
|
|
|
|
</div>
|
|
|
|
<div class="clients"></div>
|
2017-08-17 19:28:08 -04:00
|
|
|
</div>
|
2017-08-23 18:29:48 -04:00
|
|
|
|
|
|
|
<div class="privilege" id="trusted-privilege">
|
|
|
|
<div class="contentHeader table">
|
|
|
|
<div class="contentColumn tableCell">Trusted</div>
|
|
|
|
</div>
|
|
|
|
<div class="clients"></div>
|
2017-08-17 19:28:08 -04:00
|
|
|
</div>
|
2017-08-23 18:29:48 -04:00
|
|
|
<hr />
|