Changes submitted by databeestje which adds links to dhcp and other pages

that display mac easily allowing the addition of the item to the WOL db.
This commit is contained in:
Scott Ullrich 2005-08-23 17:36:42 +00:00
parent 195b6162b5
commit 7477df4f99
3 changed files with 10 additions and 1 deletions

View File

@ -177,8 +177,10 @@ foreach ($leases as $data) {
echo "<td class=\"listr\">{$fspans}{$data['hostname']}{$fspane}&nbsp;</td>\n";
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['start']) . "{$fspane}&nbsp;</td>\n";
echo "<td class=\"listr\">{$fspans}" . adjust_gmt($data['end']) . "{$fspane}&nbsp;</td>\n";
echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}\">";
echo "<td class=\"list\" valign=\"middle\"><a href=\"services_dhcp_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"add a static mapping for this MAC address\"></a></td>\n";
echo "<td valign=\"middle\"><a href=\"services_wol_edit.php?if={$data['if']}&mac={$data['mac']}&descr={$data['hostname']}\">";
echo "<img src=\"/themes/{$g['theme']}/images/icons/icon_wol_all.gif\" width=\"17\" height=\"17\" border=\"0\" title=\"add a wake on lan mapping for this MAC address\"></a></td>\n";
echo "</tr>\n";
}
}

View File

@ -58,6 +58,7 @@ if (isset($id) && $a_maps[$id]) {
$pconfig['descr'] = $a_maps[$id]['descr'];
} else {
$pconfig['mac'] = $_GET['mac'];
$pconfig['descr'] = $_GET['descr'];
}
if ($_POST) {

View File

@ -47,6 +47,12 @@ if (isset($id) && $a_wol[$id]) {
$pconfig['mac'] = $a_wol[$id]['mac'];
$pconfig['descr'] = $a_wol[$id]['descr'];
}
else
{
$pconfig['interface'] = $_GET['if'];
$pconfig['mac'] = $_GET['mac'];
$pconfig['descr'] = $_GET['descr'];
}
if ($_POST) {