Revize 1443
Přidáno uživatelem David Raška před více než 12 roky(ů)
freenetis/branches/network/application/controllers/ifaces.php | ||
---|---|---|
if(!$this->acl_check_view('Devices_Controller','iface'))
|
||
Controller::error(ACCESS);
|
||
|
||
/*$enum_type_model = new Enum_type_Model();
|
||
$types = $enum_type_model->get_values(
|
||
Enum_type_Model::MEMBER_TYPE_ID);*/
|
||
$types = array(
|
||
Iface_Model::TYPE_WIRELESS => __('Wireless'),
|
||
Iface_Model::TYPE_ETHERNET => __('Ethernet'),
|
||
Iface_Model::TYPE_PORT => __('Port'),
|
||
Iface_Model::TYPE_BRIDGE => __('Bridge'),
|
||
Iface_Model::TYPE_VLAN => __('VLAN'),
|
||
Iface_Model::TYPE_INTERNAL => __('Internal')
|
||
);
|
||
|
||
$filter_form = new Filter_form('i');
|
||
|
||
$filter_form->add('mac')
|
||
... | ... | |
->type('combo')
|
||
->callback('json/device_name');
|
||
|
||
$filter_form->add('type')
|
||
->type('select')
|
||
->values($types);
|
||
|
||
$filter_form->add('user_name')
|
||
->type('combo')
|
||
->label('Firstname of user')
|
Také k dispozici: Unified diff
Upravy:
- Pridani filtrovani rozhranni podle typu