Revize 1837
Přidáno uživatelem Michal Kliment před téměř 12 roky(ů)
freenetis/branches/1.1/application/controllers/subnets.php | ||
---|---|---|
Filter_form::OPER_NETWORK_IS_NOT_IN => 'cidr',
|
||
));
|
||
|
||
$filter_form->add('member_name')
|
||
->label('Owner')
|
||
->type('combo')
|
||
->callback('json/member_name');
|
||
|
||
$filter_form->add('redirect')
|
||
->type('select')
|
||
->label('Redirection')
|
||
->values(arr::bool());
|
||
|
||
$filter_form->add('member_name')
|
||
->label('Owner')
|
||
->type('combo')
|
||
->callback('json/member_name');
|
||
$filter_form->add('dhcp')
|
||
->type('select')
|
||
->label('DHCP')
|
||
->values(arr::bool());
|
||
|
||
$filter_form->add('qos')
|
||
->type('select')
|
||
->label('QoS')
|
||
->values(arr::bool());
|
||
|
||
$filter_form->add('used')
|
||
->type('number');
|
||
|
||
... | ... | |
'mac' => NULL,
|
||
'iface_id' => NULL,
|
||
'iface_name' => NULL,
|
||
'gateway' => 0,
|
||
));
|
||
}
|
||
|
||
... | ... | |
'ip_address' => $ip->ip_address,
|
||
'mac' => ($ip->iface->mac != '') ? $ip->iface->mac : '-',
|
||
'iface_id' => $ip->iface_id,
|
||
'iface_name' => $ip->iface->name
|
||
'iface_name' => $ip->iface->name,
|
||
'gateway' => $ip->gateway
|
||
));
|
||
}
|
||
|
||
... | ... | |
$grid->field('ip_address')
|
||
->label('IP address');
|
||
|
||
$grid->callback_field('gateway')
|
||
->help(help::hint('gateway'))
|
||
->callback('boolean')
|
||
->class('center');
|
||
|
||
$grid->link_field('iface_id')
|
||
->link('ifaces/show', 'mac', 'iface_name')
|
||
->label('MAC');
|
Také k dispozici: Unified diff
Upravy:
- DHCP a QoS pridan do filtru u seznamu podsiti
- u zobrazeni IP adres podsite pridan sloupec zda-li je adresa branou