Message::Info("Listing servers which match name: \"" . $_POST['sf_name'] . "\"");
?>
- <table class="container-xxl table table-responsive caption-top table-striped">
+ <table class="container-xxl table table-sm table-responsive caption-top table-striped">
<thead>
<th scope="col"><h5>Filter:</h5></th>
<form action="" method="post">
<th scope="col" colspan="2">Name<input name="sf_name" type="text" class="form-control short-form-control">
- <th scope="col"> <input class="btn btn-primary" type="submit" value="Search"></th></form>
+ <th scope="col"> <input class="btn btn-primary btn-sm" type="submit" value="Search"></th></form>
</thead></table>
- <table class="container-xxl table table-responsive caption-top table-striped">
+ <table class="container-xxl table table-sm table-responsive caption-top table-striped">
<thead class="table-primary">
<th scope="col"><input type="checkbox" label='selectall' onClick="toggle_server(this)" /></th>
<th scope="col">Name</th>
+ <th scope="col">Users</th>
+ <th scope="col">Version</th>
<th scope="col">Host / IP</th>
<th scope="col">Connected to</th>
+ <th scope="col">Up since</th>
</thead>
<tbody>
echo "<tr>";
echo "<th scope=\"row\"><input type=\"checkbox\" value='" . base64_encode($server->id)."' name=\"serverch[]\"></th>";
- $isBot = (strpos($server->server->modes, "B") !== false) ? ' <span class="badge-pill badge-dark">Bot</span>' : "";
- echo "<td><a href=\"details.php?nick=".$server->id."\">$server->name$isBot</a></td>";
+ echo "<td><a href=\"details.php?server=".$server->id."\">$server->name</a></td>";
+ echo "<td>".$server->server->num_users."</td>";
+
+ $s = sinfo_conv_version_string($server);
+
+ echo "<td>$s</td>";
echo "<td>".$server->hostname." (".$server->ip.")</td>";
- echo "<td>".$server->server->uplink."</td>";
+ if (isset($server->server->uplink))
+ echo "<td>".$server->server->uplink."</td>";
+ else
+ echo "<td></td>"; /* self */
+ echo "<td>".$server->server->boot_time."</td>";
}
?>
</tbody></table>