Files
pi-control/public_html/templates/network_configuration.tpl.php
Gregor Schulte b303dd00d6 Init Repo
2021-06-17 12:24:22 +02:00

46 lines
1.9 KiB
PHP

<?php if (!defined('PICONTROL')) exit(); ?>
<script type="text/javascript" src="public_html/js/network_configuration.interface_refresh.js"></script>
<!-- Sidebar -->
<div class="sidebar">
<div class="box">
<div class="inner-navi">
<a href="?s=network"><?php _e('&Uuml;bersicht'); ?></a>
<a href="?s=network_configuration"><?php _e('Konfiguration'); ?></a>
</div>
</div>
<div class="box dummy-1 display-none">
<div class="inner-header">
<span><?php _e('Status'); ?></span>
</div>
<div class="inner"></div>
</div>
</div>
<!-- Container -->
<div class="container-600">
<div class="box">
<div class="inner-header">
<span><?php _e('Netzwerkkonfiguration'); ?></span>
</div>
<div class="inner-table">
<table class="table table-borderless">
<tr>
<th style="width: 45%;"><?php _e('Interface'); ?></th>
<th style="width: 20%;"><?php _e('Protokoll'); ?></th>
<th style="width: 20%;"><?php _e('Methode'); ?></th>
<th style="width: 15%;"></th>
</tr>
<?php foreach ($data['interfaces'] as $interface => $value) { ?>
<tr>
<td><?php echo $interface; ?></td>
<td><?php echo formatInterfaceProtocol($value['protocol']); ?></td>
<td><?php echo _t(formatInterfaceMethod($value['method'])); ?></td>
<td class="table-center"><a href="?s=network_configuration&amp;edit=<?php echo urlencode($interface); ?>" style="margin-right: 8px;"><span class="svg-control-pen display-inline-block"></span></a><a href="?s=network_configuration&amp;delete=<?php echo urlencode($interface); ?>" style="margin-right: 8px;"><span class="svg-control-cross display-inline-block"></span></a><a href="#refresh" name="<?php echo urlencode($interface); ?>"><span class="svg-refresh display-inline-block"></span></a></td>
</tr>
<?php } ?>
</table>
</div>
<div class="inner-end">
<a href="?s=network_configuration&amp;add"><button><?php _e('Hinzuf&uuml;gen'); ?></button></a>
</div>
</div>
</div>