Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1207

Přidáno uživatelem Michal Kliment před asi 13 roky(ů)

U vypisu vsech segmentu pridan sloupec Pocet polozek = pocet vsech rozhrani a portu patrici do daneho segmentu. Dale tento sloupec pridan do filtru.

Zobrazit rozdíly:

freenetis/branches/testing/application/models/vlan.php
LIMIT " . intval($limit_from) . ", " . intval($limit_results) ."
");
}
/**
* Override default ORM function select_list due to
* need of ordering by another column than are key and value
*
* @author Michal Kliment
* @return array
*/
public function select_list()
{
$arr_vlans = array();
$vlans = $this->orderby('tag_802_1q')
->find_all();
foreach ($vlans as $vlan)
$arr_vlans[$vlan->id] = $vlan->tag_802_1q." - ".$vlan->name;
return $arr_vlans;
}
}
freenetis/branches/testing/application/controllers/vlan_ifaces.php
$arr_vlans = array
(
NULL => '----- ' . __('select vlan') . ' -----'
) + ORM::factory('vlan')->select_list('id', 'name');
) + ORM::factory('vlan')->select_list();
$form->dropdown('vlan_id')
->label(__('VLAN name'))
......
$arr_vlans = array
(
NULL => '----- ' . __('select vlan') . ' -----'
) + ORM::factory('vlan')->select_list('id', 'name');
) + ORM::factory('vlan')->select_list();
$form->dropdown('vlan_id')
->label(__('VLAN name'))

Také k dispozici: Unified diff