|
<h2><?php echo $headline ?></h2>
|
|
<?php
|
|
echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '';
|
|
|
|
if (isset($submenu))
|
|
echo '<div class="submenu">'.$submenu.'</div>';
|
|
|
|
$links = array();
|
|
if ($this->acl_check_edit('Devices_Controller','iface',$iface->device->user->member_id))
|
|
$links[] = html::anchor(url_lang::base().'ifaces/edit/'.$iface->id, url_lang::lang('texts.Edit'));
|
|
if (!$iface->wireless_setting->id)
|
|
{
|
|
if ($this->acl_check_new('Devices_Controller', 'wireless_setting'))
|
|
$links[] = html::anchor(url_lang::base().'wireless_settings/add/'.$iface->id, url_lang::lang('texts.Add wireless setting'));
|
|
}
|
|
else
|
|
{
|
|
if ($this->acl_check_edit('Devices_Controller', 'wireless_setting'))
|
|
$links[] = html::anchor(url_lang::base().'wireless_settings/edit/'.$iface->id, url_lang::lang('texts.Edit wireless setting'));
|
|
if ($this->acl_check_delete('Devices_Controller', 'wireless_setting'))
|
|
$links[] = html::anchor(url_lang::base().'wireless_settings/delete/'.$iface->id, url_lang::lang('texts.Delete wireless setting'));
|
|
}
|
|
|
|
echo implode (' | ', $links)
|
|
?>
|
|
<br /><br />
|
|
|
|
<table class="extended" style="float:left" cellspacing="0">
|
|
<tr>
|
|
<th colspan="2"><?php echo url_lang::lang('texts.Interface')?></th>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.ID') ?></th>
|
|
<td><?php echo $iface->id ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.Interface name') ?></th>
|
|
<td><?php echo $iface->name ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.Device name') ?></th>
|
|
<td><?php echo $iface->device->name ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.Segment name') ?></th>
|
|
<td><?php echo html::anchor(url_lang::base().'segments/show/'.$iface->segment_id, $iface->segment->name) ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.MAC') ?></th>
|
|
<td><?php echo $iface->mac ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang('texts.Comment') ?></th>
|
|
<td><?php echo $iface->comment ?></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php
|
|
if ($iface->wireless_setting->id && $this->acl_check_view('Devices_Controller', 'wireless_setting'))
|
|
{
|
|
?>
|
|
<table class="extended" style="float:left; margin-left:25px" cellspacing="0">
|
|
<tr>
|
|
<th colspan="2"><?php echo url_lang::lang("texts.Wireless setting") ?></th>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.SSID") ?></th>
|
|
<td><?php echo $iface->wireless_setting->ssid ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Mode") ?></th>
|
|
<td><?php echo $wmode ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Norm") ?></th>
|
|
<td><?php echo $norm ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Frequence") ?></th>
|
|
<td><?php echo $iface->wireless_setting->frequence ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Channel") ?></th>
|
|
<td><?php echo $iface->wireless_setting->channel ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Antenna") ?></th>
|
|
<td><?php echo $antenna ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th><?php echo url_lang::lang("texts.Polarization") ?></th>
|
|
<td><?php echo $polarization ?></td>
|
|
</tr>
|
|
</table>
|
|
<?php } ?>
|
|
|
|
<br class="clear" />
|
|
<br />
|
|
|
|
<h3><?php echo url_lang::lang('texts.IP addresses') ?></h3>
|
|
<?php echo $table_ip_addresses ?>
|
|
<br />
|
|
<h3><?php echo url_lang::lang('texts.VLAN interfaces') ?></h3>
|
|
<?php echo $table_vlan_ifaces ?>
|
|
<br />
|
|
|