mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-07 17:24:02 +00:00
minor ui changes done
This commit is contained in:
@@ -1223,11 +1223,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Starting Address</th>
|
||||
<th>Ending Address</th>
|
||||
<th>Subnet Mask</th>
|
||||
<th>Network</th>
|
||||
<th>Broadcast</th>
|
||||
<th>Scope Range/Subnet Mask</th>
|
||||
<th>Network/Broadcast</th>
|
||||
<th>Interface</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -1235,11 +1232,8 @@
|
||||
<tbody id="tableDhcpScopes">
|
||||
<tr>
|
||||
<td>Default</td>
|
||||
<td>192.168.10.1</td>
|
||||
<td>192.168.10.100</td>
|
||||
<td>255.255.255.0</td>
|
||||
<td>192.168.10.0</td>
|
||||
<td>192.168.10.255</td>
|
||||
<td>192.168.10.1 - 192.168.10.100</td>
|
||||
<td>192.168.10.0<br />192.168.10.255</td>
|
||||
<td>192.168.10.1</td>
|
||||
<td>Edit Delete</td>
|
||||
</tr>
|
||||
|
||||
@@ -71,21 +71,21 @@ function refreshDhcpScopes() {
|
||||
var tableHtmlRows;
|
||||
|
||||
if (dhcpScopes.length < 1) {
|
||||
tableHtmlRows = "<tr><td colspan=\"8\" align=\"center\">No Scope Found</td></tr>";
|
||||
tableHtmlRows = "<tr><td colspan=\"5\" align=\"center\">No Scope Found</td></tr>";
|
||||
}
|
||||
else {
|
||||
tableHtmlRows = "";
|
||||
|
||||
for (var i = 0; i < dhcpScopes.length; i++) {
|
||||
tableHtmlRows += "<tr><td>" + htmlEncode(dhcpScopes[i].name) + "</td><td>" + dhcpScopes[i].startingAddress + "</td><td>" + dhcpScopes[i].endingAddress + "</td><td>" + dhcpScopes[i].subnetMask + "</td><td>" + dhcpScopes[i].networkAddress + "</td><td>" + dhcpScopes[i].broadcastAddress + "</td><td>" + (dhcpScopes[i].interfaceAddress == null ? "" : dhcpScopes[i].interfaceAddress) + "</td>";
|
||||
tableHtmlRows += "<td><button type=\"button\" class=\"btn btn-primary\" style=\"font-size: 12px; padding: 2px 16px; margin-right: 6px;\" onclick=\"showEditDhcpScope('" + dhcpScopes[i].name + "');\">Edit</button>";
|
||||
tableHtmlRows += "<tr><td>" + htmlEncode(dhcpScopes[i].name) + "</td><td>" + dhcpScopes[i].startingAddress + " - " + dhcpScopes[i].endingAddress + "<br />" + dhcpScopes[i].subnetMask + "</td><td>" + dhcpScopes[i].networkAddress + "<br />" + dhcpScopes[i].broadcastAddress + "</td><td>" + (dhcpScopes[i].interfaceAddress == null ? "" : dhcpScopes[i].interfaceAddress) + "</td>";
|
||||
tableHtmlRows += "<td><button type=\"button\" class=\"btn btn-primary\" style=\"font-size: 12px; padding: 2px 0px; width: 60px; margin: 0 6px 6px 0;\" onclick=\"showEditDhcpScope('" + dhcpScopes[i].name + "');\">Edit</button>";
|
||||
|
||||
if (dhcpScopes[i].enabled)
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-warning\" style=\"font-size: 12px; padding: 2px 6px; margin-right: 6px;\" onclick=\"disableDhcpScope('" + dhcpScopes[i].name + "');\">Disable</button>";
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-warning\" style=\"font-size: 12px; padding: 2px 0px; width: 60px; margin: 0 6px 6px 0;\" onclick=\"disableDhcpScope('" + dhcpScopes[i].name + "');\">Disable</button>";
|
||||
else
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-default\" style=\"font-size: 12px; padding: 2px 6px; margin-right: 6px;\" onclick=\"enableDhcpScope('" + dhcpScopes[i].name + "');\">Enable</button>";
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-default\" style=\"font-size: 12px; padding: 2px 0px; width: 60px; margin: 0 6px 6px 0;\" onclick=\"enableDhcpScope('" + dhcpScopes[i].name + "');\">Enable</button>";
|
||||
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-danger\" style=\"font-size: 12px; padding: 2px 10px;\" onclick=\"deleteDhcpScope('" + dhcpScopes[i].name + "');\">Delete</button></td></tr>";
|
||||
tableHtmlRows += "<button type=\"button\" class=\"btn btn-danger\" style=\"font-size: 12px; padding: 2px 0px; width: 60px; margin: 0 6px 6px 0;\" onclick=\"deleteDhcpScope('" + dhcpScopes[i].name + "');\">Delete</button></td></tr>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user