Revision 6e3e95a5
Added by Phil Davis over 8 years ago
src/usr/local/www/services_dhcp.php | ||
---|---|---|
1371 | 1371 |
// DHCP Static Mappings table |
1372 | 1372 |
|
1373 | 1373 |
if (!is_numeric($pool) && !($act == "newpool")) { |
1374 |
|
|
1375 |
// Decide whether display of the Client Id column is needed. |
|
1376 |
$got_cid = false; |
|
1377 |
if (is_array($a_maps)) { |
|
1378 |
foreach ($a_maps as $map) { |
|
1379 |
if (!empty($map['cid'])) { |
|
1380 |
$got_cid = true; |
|
1381 |
break; |
|
1382 |
} |
|
1383 |
} |
|
1384 |
} |
|
1374 | 1385 |
?> |
1375 | 1386 |
|
1376 | 1387 |
<div class="panel panel-default"> |
... | ... | |
1381 | 1392 |
<tr> |
1382 | 1393 |
<th><?=gettext("Static ARP")?></th> |
1383 | 1394 |
<th><?=gettext("MAC address")?></th> |
1395 |
<?php |
|
1396 |
if ($got_cid): |
|
1397 |
?> |
|
1398 |
<th><?=gettext("Client Id")?></th> |
|
1399 |
<?php |
|
1400 |
endif; |
|
1401 |
?> |
|
1384 | 1402 |
<th><?=gettext("IP address")?></th> |
1385 | 1403 |
<th><?=gettext("Hostname")?></th> |
1386 | 1404 |
<th><?=gettext("Description")?></th> |
... | ... | |
1404 | 1422 |
<td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&id=<?=$i?>';"> |
1405 | 1423 |
<?=htmlspecialchars($mapent['mac'])?> |
1406 | 1424 |
</td> |
1425 |
<?php |
|
1426 |
if ($got_cid): |
|
1427 |
?> |
|
1428 |
<td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&id=<?=$i?>';"> |
|
1429 |
<?=htmlspecialchars($mapent['cid'])?> |
|
1430 |
</td> |
|
1431 |
<?php |
|
1432 |
endif; |
|
1433 |
?> |
|
1407 | 1434 |
<td ondblclick="document.location='services_dhcp_edit.php?if=<?=htmlspecialchars($if)?>&id=<?=$i?>';"> |
1408 | 1435 |
<?=htmlspecialchars($mapent['ipaddr'])?> |
1409 | 1436 |
</td> |
Also available in: Unified diff
Display client id in DHCP Mapping list