Changeset 538 for trunk/Modules/Network/Network.php
- Timestamp:
- May 18, 2013, 8:21:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r521 r538 131 131 $this->System->RegisterPage(array('network', 'hosts'), 'PageHostList'); 132 132 $this->System->RegisterPage(array('network', 'frequency-plan'), 'PageFrequencyPlan'); 133 134 $this->System->FormManager->RegisterClass('Subject', array( 135 'Title' => 'Subjekty', 136 'Table' => 'Subject', 137 'DefaultSortColumn' => 'Name', 138 'Items' => array( 139 'Id' => array('Type' => 'Integer', 'Caption' => 'Identifikace', 'Default' => '', 'ReadOnly' => true), 140 'Name' => array('Type' => 'String', 'Caption' => 'Celé jméno', 'Default' => ''), 141 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => ''), 142 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => ''), 143 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => ''), 144 'AddressCountry' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''), 145 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''), 146 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''), 147 'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '', 'Null' => true), 148 'WWW' => array('Type' => 'Hyperlink', 'Caption' => 'WWW', 'Default' => ''), 149 'Note' => array('Type' => 'String', 'Caption' => 'Poznámka', 'Default' => ''), 150 'Customer' => array('Type' => 'TMemberListSubject', 'Caption' => 'Členové', 'Default' => ''), 151 'Operations' => array('Type' => 'TFinanceOperationListSubject', 'Caption' => 'Platby', 'Default' => ''), 152 'Invoices' => array('Type' => 'TFinanceInvoiceListSubject', 'Caption' => 'Faktury', 'Default' => ''), 153 ), 154 )); 155 $this->System->FormManager->RegisterClass('NetworkDomainAlias', array( 156 'Title' => 'Alias domény', 157 'Table' => 'NetworkDomainAlias', 158 'Items' => array( 159 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 160 'Target' => array('Type' => 'String', 'Caption' => 'Cíl', 'Default' => ''), 161 'Comment' => array('Type' => 'String', 'Caption' => 'Komentář', 'Default' => ''), 162 ), 163 )); 164 $this->System->FormManager->RegisterClass('NetworkDevice', array( 165 'Title' => 'Síťové zařízení', 166 'Table' => 'NetworkDevice', 167 'Items' => array( 168 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 169 'Type' => array('Type' => 'TNetworkDeviceType', 'Caption' => 'Typ', 'Default' => '0'), 170 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '0'), 171 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '0'), 172 'Service' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Služba', 'Default' => '', 'Null' => true), 173 'Used' => array('Type' => 'Boolean', 'Caption' => 'Použito', 'Default' => '1'), 174 'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true), 175 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true), 176 'PermanentOnline' => array('Type' => 'Boolean', 'Caption' => 'Běží stále', 'Default' => '0'), 177 'Interfaces' => array('Type' => 'TInterfaceList', 'Caption' => 'Rozhraní', 'Default' => ''), 178 'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '0'), 179 ), 180 'Actions' => array( 181 array('Caption' => 'Dostupnost zařízení', 'URL' => '/network/availability/'), 182 ), 183 )); 184 $this->System->FormManager->RegisterClass('NetworkDeviceType', array( 185 'Title' => 'Typ síťového zařízení', 186 'Table' => 'NetworkDeviceType', 187 'Items' => array( 188 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 189 'ShowOnline' => array('Type' => 'Boolean', 'Caption' => 'Ukázat online', 'Default' => '0'), 190 'IconName' => array('Type' => 'String', 'Caption' => 'Jméno ikony', 'Default' => '0'), 191 ), 192 )); 193 $this->System->FormManager->RegisterClass('NetworkInterface', array( 194 'Title' => 'Síťové rozhraní', 195 'Table' => 'NetworkInterface', 196 'Items' => array( 197 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 198 'Type' => array('Type' => 'TNetworkInterfaceType', 'Caption' => 'Typ', 'Default' => '0'), 199 'MAC' => array('Type' => 'String', 'Caption' => 'Fyzická adresa (MAC)', 'Default' => ''), 200 'LocalIP' => array('Type' => 'String', 'Caption' => 'IPv4', 'Default' => ''), 201 'IPv6' => array('Type' => 'String', 'Caption' => 'IPv6', 'Default' => ''), 202 'ExternalIP' => array('Type' => 'String', 'Caption' => 'Veřejná IPv4', 'Default' => ''), 203 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => ''), 204 'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true), 205 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true), 206 'Links1' => array('Type' => 'TNetworkLinkListInterface1', 'Caption' => 'Propojení 1', 'Default' => ''), 207 'Links2' => array('Type' => 'TNetworkLinkListInterface2', 'Caption' => 'Propojení 2', 'Default' => ''), 208 ), 209 )); 210 $this->System->FormManager->RegisterClass('NetworkInterfaceType', array( 211 'Title' => 'Typ síťového rozhraní', 212 'Table' => 'NetworkInterfaceType', 213 'Items' => array( 214 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 215 'MaxSpeed' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost', 'Default' => '0', 'Suffix' => 'Mbit/s'), 216 'FullDuplex' => array('Type' => 'Boolean', 'Caption' => 'Plně duplexní', 'Default' => '0'), 217 'Color' => array('Type' => 'Color', 'Caption' => 'Barva', 'Default' => '0'), 218 ), 219 )); 220 $this->System->FormManager->RegisterClass('NetworkSubnet', array( 221 'Title' => 'Podsítě', 222 'DefaultSortColumn' => 'Name', 223 'Table' => 'NetworkSubnet', 224 'Items' => array( 225 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 226 'AddressRange' => array('Type' => 'String', 'Caption' => 'Rozsah adres', 'Default' => ''), 227 'Mask' => array('Type' => 'Integer', 'Caption' => 'Prefix', 'Default' => ''), 228 'DHCP' => array('Type' => 'String', 'Caption' => 'DHCP', 'Default' => ''), 229 'Gateway' => array('Type' => 'String', 'Caption' => 'Brána', 'Default' => ''), 230 'WINS' => array('Type' => 'String', 'Caption' => 'WINS', 'Default' => ''), 231 'DNS' => array('Type' => 'String', 'Caption' => 'DNS', 'Default' => ''), 232 'Domain' => array('Type' => 'String', 'Caption' => 'Doména', 'Default' => ''), 233 'NTP' => array('Type' => 'String', 'Caption' => 'NTP', 'Default' => ''), 234 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '', 'Null' => true), 235 'ExtAddressRange' => array('Type' => 'String', 'Caption' => 'Vnější rozsah adres', 'Default' => ''), 236 'ExtMask' => array('Type' => 'String', 'Caption' => 'Vnější prefix', 'Default' => ''), 237 'AddressRangeIPv6' => array('Type' => 'String', 'Caption' => 'Rozsah adres IPv6', 'Default' => ''), 238 'Configure' => array('Type' => 'Boolean', 'Caption' => 'Nastavovat', 'Default' => ''), 239 ), 240 )); 241 $this->System->FormManager->RegisterClass('NetworkLink', array( 242 'Title' => 'Síťové propojení', 243 'Table' => 'NetworkLink', 244 'Items' => array( 245 'Type' => array('Type' => 'Integer', 'Caption' => 'Typ', 'Default' => '1'), 246 'Interface1' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 1', 'Default' => ''), 247 'Interface2' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 2', 'Default' => ''), 248 ), 249 )); 250 $this->System->FormManager->RegisterClass('NetworkDeviceConfig',array( 251 'Title' => 'Nastavení zařízení', 252 'Table' => 'NetworkDeviceConfig', 253 'DefaultSortColumn' => 'Time', 254 'Items' => array( 255 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => ''), 256 'Time' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''), 257 'ConfigFull' => array('Type' => 'Text', 'Caption' => 'Kompletní nastavení', 'Default' => ''), 258 'ConfigCompact' => array('Type' => 'Text', 'Caption' => 'Rozdílové nastavení', 'Default' => ''), 259 ), 260 )); 261 $this->System->FormManager->RegisterClass('NetworkSegment', array( 262 'Title' => 'Úsek sítě', 263 'Table' => 'NetworkSegment', 264 'Items' => array( 265 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 266 'Price' => array('Type' => 'Integer', 'Caption' => 'Cena', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true), 267 'Parent' => array('Type' => 'TNetworkSegment', 'Caption' => 'Nadřazený', 'Default' => '', 'Null' => true), 268 'Users' => array('Type' => 'Integer', 'Caption' => 'Uživatelů', 'Default' => '0', 'ReadOnly' => true), 269 'Consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => '0', 'ReadOnly' => true, 'Suffix' => 'Wattů'), 270 'UsersOverheads' => array('Type' => 'Integer', 'Caption' => 'Podílníků', 'Default' => '0', 'ReadOnly' => true), 271 ), 272 )); 273 274 133 275 } 134 276
Note:
See TracChangeset
for help on using the changeset viewer.