diff options
Diffstat (limited to 'src/usr/local/www/status_dhcp_leases.php')
-rw-r--r-- | src/usr/local/www/status_dhcp_leases.php | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/usr/local/www/status_dhcp_leases.php b/src/usr/local/www/status_dhcp_leases.php index 60fa055..cd7573a 100644 --- a/src/usr/local/www/status_dhcp_leases.php +++ b/src/usr/local/www/status_dhcp_leases.php @@ -342,7 +342,7 @@ if (count($pools) > 0) { </tr> </thead> <tbody> -<? foreach ($pools as $data):?> +<?php foreach ($pools as $data):?> <tr> <td><?=$data['name']?></td> <td><?=$data['mystate']?></td> @@ -350,7 +350,7 @@ if (count($pools) > 0) { <td><?=$data['peerstate']?></td> <td><?=adjust_gmt($data['peerdate'])?></td> </tr> -<? endforeach?> +<?php endforeach; ?> </tbody> </table> </div> @@ -423,36 +423,36 @@ foreach ($leases as $data): <td> <?=$mac?> - <? if (isset($mac_man[$mac_hi])):?> + <?php if (isset($mac_man[$mac_hi])):?> (<?=$mac_man[$mac_hi]?>) <?endif?> </td> <td><?=htmlentities($data['hostname'])?></td> -<? if ($data['type'] != "static"):?> +<?php if ($data['type'] != "static"):?> <td><?=adjust_gmt($data['start'])?></td> <td><?=adjust_gmt($data['end'])?></td> -<? else: ?> +<?php else: ?> <td>n/a</td> <td>n/a</td> -<? endif; ?> +<?php endif; ?> <td><?=$data['online']?></td> <td><?=$data['act']?></td> <td> -<? if ($data['type'] == "dynamic"): ?> +<?php if ($data['type'] == "dynamic"): ?> <a class="fa fa-plus-square-o" title="<?=gettext("Add static mapping")?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&hostname=<?=htmlspecialchars($data['hostname'])?>"></a> -<? else: ?> +<?php else: ?> <a class="fa fa-pencil" title="<?=gettext('Edit static mapping')?>" href="services_dhcp_edit.php?if=<?=$data['if']?>&id=<?=$data['staticmap_array_index']?>"></a> -<? endif; ?> +<?php endif; ?> <a class="fa fa-plus-square" title="<?=gettext("Add WOL mapping")?>" href="services_wol_edit.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>&descr=<?=htmlentities($data['hostname'])?>"></a> -<? if ($data['online'] != "online"):?> +<?php if ($data['online'] != "online"):?> <a class="fa fa-power-off" title="<?=gettext("Send WOL packet")?>" href="services_wol.php?if=<?=$data['if']?>&mac=<?=$data['mac']?>"></a> -<? endif; ?> +<?php endif; ?> -<? if ($data['type'] == "dynamic" && $data['online'] != "online"):?> +<?php if ($data['type'] == "dynamic" && $data['online'] != "online"):?> <a class="fa fa-trash" title="<?=gettext('Delete lease')?>" href="status_dhcp_leases.php?deleteip=<?=$data['ip']?>&all=<?=intval($_GET['all'])?>"></a> -<? endif?> +<?php endif; ?> </td> -<? endforeach; ?> +<?php endforeach; ?> </tr> </tbody> </table> @@ -472,14 +472,14 @@ foreach ($leases as $data): </tr> </thead> <tbody> -<? foreach ($dhcp_leases_subnet_counter as $listcounters):?> +<?php foreach ($dhcp_leases_subnet_counter as $listcounters):?> <tr> <td><?=$iflist[$listcounters['dhcpif']]?></td> <td><?=$listcounters['from']?></td> <td><?=$listcounters['to']?></td> <td><?=$listcounters['count']?></td> </tr> -<? endforeach; ?> +<?php endforeach; ?> </tbody> </table> </div> |