|
|
@ -17,12 +17,11 @@
|
|
|
|
return $id != "qr_code" && $id != "preview" && $id != "join_url";
|
|
|
|
return $id != "qr_code" && $id != "preview" && $id != "join_url";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function sort_onclick($colno) {
|
|
|
|
function sort_onclick($column) {
|
|
|
|
global $TABLE_COLUMNS;
|
|
|
|
|
|
|
|
$column = $TABLE_COLUMNS[$colno];
|
|
|
|
|
|
|
|
$name = isset($column['name_long']) ? $column['name_long'] : $column['name'];
|
|
|
|
$name = isset($column['name_long']) ? $column['name_long'] : $column['name'];
|
|
|
|
if (!column_sortable($column['id'])) return " title='$name'";
|
|
|
|
if (!column_sortable($column['id'])) return "title='$name'";
|
|
|
|
return " title='Click to sort by $name.'";
|
|
|
|
$name = mb_strtolower($name);
|
|
|
|
|
|
|
|
return "title='Click to sort by $name.'";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Note: Changing the names or columns displayed requires updating
|
|
|
|
// Note: Changing the names or columns displayed requires updating
|
|
|
@ -33,7 +32,7 @@
|
|
|
|
['id' => "name", 'name' => "Name"],
|
|
|
|
['id' => "name", 'name' => "Name"],
|
|
|
|
['id' => "description", 'name' => "About", 'name_long' => "Description"],
|
|
|
|
['id' => "description", 'name' => "About", 'name_long' => "Description"],
|
|
|
|
['id' => "users", 'name' => "#", 'name_long' => "Active Users"],
|
|
|
|
['id' => "users", 'name' => "#", 'name_long' => "Active Users"],
|
|
|
|
['id' => "preview", 'name' => "Preview"],
|
|
|
|
['id' => "preview", 'name' => "Preview", 'name_long' => "Preview (external link)"],
|
|
|
|
['id' => "qr_code", 'name' => "QR", 'name_long' => "QR Code (for use in-app)"],
|
|
|
|
['id' => "qr_code", 'name' => "QR", 'name_long' => "QR Code (for use in-app)"],
|
|
|
|
['id' => "server_icon", 'name' => "Host", 'name_long' => "Server host"],
|
|
|
|
['id' => "server_icon", 'name' => "Host", 'name_long' => "Server host"],
|
|
|
|
['id' => "join_url", 'name' => "URL", 'name_long' => "Join URL (for use in-app)"],
|
|
|
|
['id' => "join_url", 'name' => "URL", 'name_long' => "Join URL (for use in-app)"],
|
|
|
@ -42,8 +41,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<table id="tbl_communities">
|
|
|
|
<table id="tbl_communities">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<?php foreach ($TABLE_COLUMNS as $colno => $column): ?>
|
|
|
|
<?php foreach ($TABLE_COLUMNS as $column): ?>
|
|
|
|
<th<?=sort_onclick($colno)?> id="th_<?=$column['id']?>" class="tbl_communities__th">
|
|
|
|
<th <?=sort_onclick($column)?> id="th_<?=$column['id']?>" class="tbl_communities__th">
|
|
|
|
<?=$column['name']?>
|
|
|
|
<?=$column['name']?>
|
|
|
|
|
|
|
|
|
|
|
|
</th>
|
|
|
|
</th>
|
|
|
|