Update table raw html markup

This commit is contained in:
Benjamin LEBLOND 2019-03-17 13:33:24 +01:00 committed by GitHub
parent fb003a9e29
commit 2bcee2145f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -237,20 +237,17 @@ function DisplayDHCPConfig() {
</tr>
</thead>
<tbody>
<tr>
<?php
exec( 'cat ' . RASPI_DNSMASQ_LEASES, $leases );
foreach( $leases as $lease ) {
echo ' <tr>'.PHP_EOL;
$lease_items = explode(' ', $lease);
foreach( $lease_items as $lease_item ) {
echo ' <td>'.htmlspecialchars($lease_item, ENT_QUOTES).'</td>'.PHP_EOL;
echo ' <td>'.htmlspecialchars($lease_item, ENT_QUOTES).'</td>'.PHP_EOL;
}
echo ' </tr>'.PHP_EOL;
echo ' </tr>'.PHP_EOL;
};
?>
</tr>
</tbody>
</table>
</div><!-- /.table-responsive -->