Revize 1437
Přidáno uživatelem David Raška před asi 12 roky(ů)
freenetis/branches/network/application/helpers/callback.php | ||
---|---|---|
case Iface_Model::TYPE_WIRELESS:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/wireless.png',
|
||
'src' => 'media/images/icons/ifaces/wireless.png',
|
||
'title' => __('Wireless')
|
||
));
|
||
break;
|
||
... | ... | |
case Iface_Model::TYPE_ETHERNET:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/ethernet.png',
|
||
'src' => 'media/images/icons/ifaces/ethernet.png',
|
||
'title' => __('Ethernet')
|
||
));
|
||
break;
|
||
|
||
case Iface_Model::TYPE_PORT:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/ifaces/port.png',
|
||
'title' => __('Port')
|
||
));
|
||
break;
|
||
|
||
case Iface_Model::TYPE_BRIDGE:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/ifaces/bridge.png',
|
||
'title' => __('Bridge')
|
||
));
|
||
break;
|
||
|
||
case Iface_Model::TYPE_VLAN:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/ifaces/vlan.png',
|
||
'title' => __('Vlan')
|
||
));
|
||
break;
|
||
|
||
case Iface_Model::TYPE_INTERNAL:
|
||
echo html::image(array
|
||
(
|
||
'src' => 'media/images/icons/ifaces/internal.png',
|
||
'title' => __('Internal')
|
||
));
|
||
break;
|
||
}
|
||
}
|
||
|
freenetis/branches/network/application/controllers/ifaces.php | ||
---|---|---|
$grid->order_field('id')
|
||
->label('ID');
|
||
|
||
$grid->order_callback_field('type')
|
||
->callback('callback::iface_type_field')
|
||
->class('center');
|
||
|
||
$grid->order_field('name');
|
||
|
||
$grid->order_field('mac')
|
freenetis/branches/network/application/views/menu.php | ||
---|---|---|
<li><?php echo html::anchor('device_templates/show_all', __('Device templates')) ?></li>
|
||
<li><?php echo html::anchor('ifaces/show_all', __('Interfaces')) ?></li>
|
||
<li><?php echo html::anchor('links/show_all', __('Links')) ?></li>
|
||
<li><?php echo html::anchor('ports/show_all', __('Ports')) ?></li>
|
||
<li><?php echo html::anchor('vlan_ifaces/show_all', __('Vlan interfaces')) ?></li>
|
||
<li><?php echo html::anchor('vlans/show_all', __('Vlans')) ?></li>
|
||
|
Také k dispozici: Unified diff
Upravy:
- Pridany ikonky typu rozhranni