Changeset 538 for trunk/Modules
- Timestamp:
- May 18, 2013, 8:21:50 PM (12 years ago)
- Location:
- trunk/Modules
- Files:
-
- 6 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/File/File.php
r524 r538 120 120 $this->System->AddModule(new File($this->System)); 121 121 $this->System->Modules['File']->FilesDir = dirname(__FILE__).'/../../'.$Config['Web']['UploadFileFolder']; 122 $this->System->FormManager->RegisterClass('File', array( 123 'Title' => 'Soubor', 124 'Table' => 'File', 125 'Items' => array( 126 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 127 'Directory' => array('Type' => 'TDirectory', 'Caption' => 'Adresář', 'Default' => '', 'Null' => true), 128 'Size' => array('Type' => 'Integer', 'Caption' => 'Velikost', 'Default' => ''), 129 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas vytvoření', 'Default' => ''), 130 ), 131 'ItemActions' => array( 132 array('Caption' => 'Stáhnout', 'URL' => '/file?download'), 133 ), 134 )); 135 $this->System->FormManager->RegisterClass('FileDirectory', array( 136 'Title' => 'Adresář souborů', 137 'Table' => 'FileDirectory', 138 'Items' => array( 139 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 140 'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true), 141 ), 142 )); 143 122 144 } 123 145 -
trunk/Modules/Finance/Finance.php
r537 r538 181 181 182 182 $this->Database->query('UPDATE `DocumentLineSequence` SET `NextNumber` = `NextNumber` + 1 '. 183 'WHERE `DocumentLine`='.$Id.' AND `FinanceYear`='.$FinanceYear['Id']);183 'WHERE (`DocumentLine`='.$Id.') AND (`FinanceYear`='.$FinanceYear['Id'].')'); 184 184 return($Result); 185 185 } … … 325 325 $this->System->RegisterPage(array('finance', 'platby'), 'PageFinanceUserState'); 326 326 $this->System->RegisterPage(array('finance', 'import'), 'PageFinanceImportPayment'); 327 $this->System->RegisterPage(array('finance', 'zivnost'), 'PageFinanceTaxFiling'); 328 327 $this->System->RegisterPage(array('finance', 'zivnost'), 'PageFinanceTaxFiling'); 328 329 $this->System->FormManager->RegisterClass('NewPayment', array( 330 'Title' => 'Nová platba', 331 'Items' => array( 332 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => 3), 333 'Time' => array('Type' => 'Date', 'Caption' => 'Čas', 'Default' => 'Now'), 334 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0), 335 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0', 'Suffix' => 'Kč'), 336 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Vklad'), 337 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotovost', 'Default' => '0'), 338 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Ovlivňující daňový základ', 'Default' => '1'), 339 //'BankAccount' => array('Type' => 'TBankAccount', 'Caption' => 'Bankovní účet', 'Default' => '1'), 340 ), 341 )); 342 $this->System->FormManager->RegisterClass('NewInvoice', array( 343 'Title' => 'Nová faktura', 344 'Items' => array( 345 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => 5), 346 'TimeCreation' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => 'Now'), 347 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Čas splatnosti', 'Default' => 'Now'), 348 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0), 349 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Nákup zařízení'), 350 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0', 'Suffix' => 'Kč'), 351 //'Items' => array('Type' => 'Array', 'Caption' => 'Položky', 'ItemClass' => 'FinanceInvoiceItem'), 352 ), 353 )); 354 $this->System->FormManager->RegisterClass('FinanceOperation', array( 355 'Title' => 'Finanční operace', 356 'Table' => 'FinanceOperation', 357 'DefaultSortColumn' => 'Time', 358 'Items' => array( 359 'Time' => array('Type' => 'Date', 'Caption' => 'Čas realizace', 'Default' => ''), 360 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''), 361 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotově', 'Default' => ''), 362 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Zdanitelné', 'Default' => ''), 363 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 364 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''), 365 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => ''), 366 'Network' => array('Type' => 'Boolean', 'Caption' => 'Týkající sítě', 'Default' => ''), 367 'BankAccount' => array('Type' => 'TFinanceBankAccount', 'Caption' => 'Účet', 'Default' => '', 'Null' => true), 368 'Treasury' => array('Type' => 'TFinanceTreasury', 'Caption' => 'Pokladna', 'Default' => '', 'Null' => true), 369 ), 370 )); 371 $this->System->FormManager->RegisterClass('FinanceInvoice', array( 372 'Title' => 'Faktury', 373 'Table' => 'FinanceInvoice', 374 'DefaultSortColumn' => 'TimeCreation', 375 'Items' => array( 376 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''), 377 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''), 378 'TimeCreation' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''), 379 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Čas splatnosti', 'Default' => ''), 380 'TimePayment' => array('Type' => 'Date', 'Caption' => 'Čas zaplacení', 'Default' => ''), 381 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 382 'File' => array('Type' => 'TFile', 'Caption' => 'Doklad', 'Default' => '', 'Null' => true), 383 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''), 384 ), 385 )); 386 $this->System->FormManager->RegisterClass('FinanceInvoiceItem', array( 387 'Title' => 'Položka faktury', 388 'Table' => 'FinanceInvoiceItem', 389 'Items' => array( 390 'FinanceInvoice' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Faktura', 'Default' => '0'), 391 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'), 392 'Price' => array('Type' => 'Float', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 393 'Quantity' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'), 394 'VAT' => array('Type' => 'Integer', 'Caption' => 'Daň', 'Default' => '19', 'Suffix' => '%'), 395 ), 396 )); 397 $this->System->FormManager->RegisterClass('FinanceTreasury', array( 398 'Title' => 'Pokladny', 399 'Table' => 'FinanceTreasury', 400 'DefaultSortColumn' => 'Name', 401 'Items' => array( 402 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 403 'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''), 404 ), 405 )); 406 $this->System->FormManager->RegisterClass('FinanceBankAccount', array( 407 'Title' => 'Účty', 408 'Table' => 'FinanceBankAccount', 409 'DefaultSortColumn' => 'Comment', 410 'Items' => array( 411 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Vlastník', 'Default' => ''), 412 'Comment' => array('Type' => 'String', 'Caption' => 'Komentář', 'Default' => ''), 413 'Number' => array('Type' => 'String', 'Caption' => 'Číslo', 'Default' => ''), 414 'Bank' => array('Type' => 'TFinanceBank', 'Caption' => 'Banka', 'Default' => ''), 415 'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''), 416 'TimeEnd' => array('Type' => 'Date', 'Caption' => 'Čas zrušení', 'Default' => ''), 417 'Currency' => array('Type' => 'TCurrency', 'Caption' => 'Měna', 'Default' => ''), 418 'LoginName' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno / token', 'Default' => ''), 419 'LoginPassword' => array('Type' => 'String', 'Caption' => 'Přihlašovací heslo', 'Default' => ''), 420 'Operations' => array('Type' => 'TFinanceOperationListAccount', 'Caption' => 'Operace', 'Default' => ''), 421 ), 422 'ItemActions' => array( 423 array('Caption' => 'Import plateb z banky', 'URL' => '/finance/import-api/?'), 424 array('Caption' => 'Import plateb ze souboru', 'URL' => '/finance/import-soubor/?'), 425 ), 426 )); 427 $this->System->FormManager->RegisterClass('FinanceBank', array( 428 'Title' => 'Banky', 429 'Table' => 'FinanceBank', 430 'Items' => array( 431 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 432 'Code' => array('Type' => 'String', 'Caption' => 'Český kód', 'Default' => ''), 433 'BIC' => array('Type' => 'String', 'Caption' => 'Kód BIC', 'Default' => ''), 434 'Country' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''), 435 ), 436 )); 437 $this->System->FormManager->RegisterClass('Currency', array( 438 'Title' => 'Měny', 439 'Table' => 'Currency', 440 'Items' => array( 441 'Code' => array('Type' => 'String', 'Caption' => 'Kód'), 442 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 443 'Symbol' => array('Type' => 'String', 'Caption' => 'Symbol', 'Default' => ''), 444 ), 445 )); 446 $this->System->FormManager->RegisterClass('FinanceCharge', array( 447 'Title' => 'Parametry účtování', 448 'Table' => 'FinanceCharge', 449 'Items' => array( 450 'Internet' => array('Type' => 'Integer', 'Caption' => 'Platba Internetu', 'Default' => '0', 'Suffix' => 'Kč'), 451 'InternetSpeed' => array('Type' => 'Integer', 'Caption' => 'Rychlost Internetu', 'Default' => '0', 'Suffix' => 'Mbit/s'), 452 'InternetSpeedReserve' => array('Type' => 'Integer', 'Caption' => 'Rezerva rychlosti', 'Default' => '0', 'Suffix' => 'Mbit/s'), 453 'AdministrationPerUser' => array('Type' => 'Integer', 'Caption' => 'Správa za uživatele', 'Default' => '0', 'Suffix' => 'Kč'), 454 'kWh' => array('Type' => 'Integer', 'Caption' => 'Cena kWh', 'Default' => '0', 'Suffix' => 'Kč'), 455 'BaseSpeedElement' => array('Type' => 'Integer', 'Caption' => 'Základní díl rychlosti', 'Default' => '0', 'Suffix' => 'Mbit/s'), 456 'BaseTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Základní cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'), 457 'TopTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Nejvyšší cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'), 458 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true), 459 'ReplaceId' => array('Type' => 'TFinanceCharge', 'Caption' => 'Cílová položka', 'Default' => '0', 'Null' => true), 460 ), 461 )); 462 463 464 329 465 $this->System->AddModule(new Bill($this->System)); 330 466 $this->System->AddModule(new Finance($this->System)); -
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r521 r538 29 29 { 30 30 parent::Start(); 31 $ FormClass =array(31 $this->System->FormManager->RegisterClass('ImportBankFile', array( 32 32 'Title' => 'Import souborů s platbami', 33 33 'Table' => 'FinanceBank', … … 37 37 'File' => array('Type' => 'File', 'Caption' => 'Soubor', 'Default' => ''), 38 38 ), 39 ); 40 $this->System->FormManager->RegisterClass('ImportBankFile', $FormClass); 39 )); 40 $this->System->FormManager->RegisterClass('FinanceBankImport', array( 41 'Title' => 'Import plateb z účtu', 42 'Table' => 'FinanceBankImport', 43 'Items' => array( 44 'BankAccount' => array('Type' => 'TBankAccount', 'Caption' => 'Účet', 'Default' => ''), 45 'Time' => array('Type' => 'Date', 'Caption' => 'Čas', 'Default' => ''), 46 'Identification' => array('Type' => 'String', 'Caption' => 'Kód operace', 'Default' => ''), 47 'AccountNumber' => array('Type' => 'String', 'Caption' => 'Číslo účtu', 'Default' => ''), 48 'VariableSymbol' => array('Type' => 'String', 'Caption' => 'Variabilní symbol', 'Default' => ''), 49 'ConstantSymbol' => array('Type' => 'String', 'Caption' => 'Konstantní symbol', 'Default' => ''), 50 'SpecificSymbol' => array('Type' => 'String', 'Caption' => 'Specifický symbol', 'Default' => ''), 51 'Value' => array('Type' => 'Float', 'Caption' => 'Částka', 'Default' => ''), 52 'Currency' => array('Type' => 'TCurrency', 'Caption' => 'Měna', 'Default' => ''), 53 'Description' => array('Type' => 'String', 'Caption' => 'Popis operace', 'Default' => ''), 54 'OffsetAccountName' => array('Type' => 'String', 'Caption' => 'Jméno protiúčtu', 'Default' => ''), 55 'FinanceOperation' => array('Type' => 'TFinanceOperation', 'Caption' => 'Přiřazená operace', 'Default' => '', 'Null' => true), 56 ), 57 )); 58 41 59 $this->System->RegisterPage(array('finance', 'import-api'), 'PageImportAPI'); 42 60 $this->System->RegisterPage(array('finance', 'import-soubor'), 'PageImportFile'); -
trunk/Modules/IS/IS.php
r536 r538 119 119 $Form->SetClass($Table); 120 120 $Form->LoadValuesFromForm(); 121 $Form->SaveValuesToDatabase(0); 121 $Form->SaveValuesToDatabase(0); 122 122 $Output .= $this->SystemMessage('Přidání položky', 'Nová položka vytvořena'); 123 123 $Id = $this->Database->insert_id; … … 430 430 parent::Start(); 431 431 $this->System->RegisterPage('is', 'PageIS'); 432 $this->System->FormManager->RegisterClass('MenuItem', array( 433 'Title' => 'Položky nabídky', 434 'Table' => 'MenuItem', 435 'Items' => array( 436 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 437 'Parent' => array('Type' => 'TMenuItem', 'Caption' => 'Rodič', 'Default' => '', 'Null' => true), 438 'Action' => array('Type' => 'TAction', 'Caption' => 'Akce', 'Default' => ''), 439 'Menu' => array('Type' => 'TMenu', 'Caption' => 'Nabídka', 'Default' => ''), 440 'Items' => array('Type' => 'TMenuItemListParent', 'Caption' => 'Položky'), 441 ), 442 )); 443 $this->System->FormManager->RegisterClass('Menu', array( 444 'Title' => 'Nabídky', 445 'Table' => 'Menu', 446 'Items' => array( 447 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 448 'Items' => array('Type' => 'TMenuItemListMenu', 'Caption' => 'Položky'), 449 ), 450 )); 451 432 452 } 433 453 -
trunk/Modules/Log/Log.php
r524 r538 27 27 { 28 28 parent::Start(); 29 $this->System->FormManager->RegisterClass('Log', array( 30 'Title' => 'Záznamy', 31 'Table' => 'Log', 32 'DefaultSortColumn' => 'Time', 33 'Items' => array( 34 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => '', 'ReadOnly' => true), 35 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => '', 'Null' => true, 'ReadOnly' => true), 36 'Module' => array('Type' => 'String', 'Caption' => 'Modul', 'Default' => '', 'ReadOnly' => true), 37 'Operation' => array('Type' => 'String', 'Caption' => 'Operace', 'Default' => '', 'ReadOnly' => true), 38 'Value' => array('Type' => 'Text', 'Caption' => 'Hodnota', 'Default' => '', 'ReadOnly' => true), 39 'IPAddress' => array('Type' => 'Text', 'Caption' => 'Adresa IP', 'Default' => '', 'ReadOnly' => true), 40 ), 41 )); 42 29 43 } 30 44 -
trunk/Modules/Map/Map.php
r519 r538 162 162 { 163 163 parent::Start(); 164 $this->System->Pages['map'] = 'PageNetworkMap'; 164 $this->System->Pages['map'] = 'PageNetworkMap'; 165 $this->System->FormManager->RegisterClass('MapPosition', array( 166 'Title' => 'Pozice na mapě', 167 'Table' => 'MapPosition', 168 'Items' => array( 169 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 170 'Latitude' => array('Type' => 'Float', 'Caption' => 'Zeměpisná šířka', 'Default' => '0'), 171 'Longitude' => array('Type' => 'Float', 'Caption' => 'Zeměpisná výška', 'Default' => '0'), 172 ), 173 )); 174 165 175 } 166 176 } -
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 -
trunk/Modules/NetworkConfig/NetworkConfig.php
r522 r538 27 27 { 28 28 parent::Start(); 29 $this->System->FormManager->RegisterClass('NetworkConfiguration', array( 30 'Title' => 'Restart sítových služeb', 31 'Table' => 'NetworkConfiguration', 32 'Items' => array( 33 'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 34 'Execute' => array('Type' => 'String', 'Caption' => 'Povely', 'Default' => ''), 35 'Changed' => array('Type' => 'TNetworkConfigurationState', 'Caption' => 'Stav', 'Default' => 0), 36 'LastTime' => array('Type' => 'DateTime', 'Caption' => 'Naposledy spuštěno', 'ReadOnly' => true), 37 'ExecutionTime' => array('Type' => 'Integer', 'Caption' => 'Doba běhu', 'Default' => '0', 'Suffix' => 'sekund', 'ReadOnly' => true), 38 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povoleno', 'Default' => '0'), 39 'Period' => array('Type' => 'Integer', 'Caption' => 'Min. perioda', 'Default' => '60', 'Suffix' => 'sekund'), 40 ), 41 'ItemActions' => array( 42 array('Caption' => 'Záznam', 'URL' => '/is/?a=view&t=NetworkConfigurationLog'), 43 ), 44 )); 45 $this->System->FormManager->RegisterClass('NetworkConfigurationLog', array( 46 'Title' => 'Záznam restartu sítových služeb', 47 'Table' => 'NetworkConfiguration', 48 'Items' => array( 49 'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 50 'Log' => array('Type' => 'Text', 'Caption' => 'Záznam', 'Default' => '', 'ReadOnly' => true), 51 ), 52 )); 53 29 54 } 30 55 } -
trunk/Modules/News/News.php
r533 r538 39 39 parent::Start(); 40 40 $this->System->RegisterPage('aktuality', 'PageNews'); 41 $this->System->FormManager->RegisterClass('News', array( 42 'Title' => 'Nová aktualita', 43 'Table' => 'News', 44 'Items' => array( 45 'Category' => array('Type' => 'TNewsCategory', 'Caption' => 'Kategorie', 'Default' => 0), 46 'Title' => array('Type' => 'String', 'Caption' => 'Nadpis', 'Default' => ''), 47 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''), 48 'Date' => array('Type' => 'Date', 'Caption' => 'Datum', 'Default' => ''), 49 'Author' => array('Type' => 'String', 'Caption' => 'Autor', 'Default' => ''), 50 'Enclosure' => array('Type' => 'String', 'Caption' => 'Přílohy', 'Default' => ''), 51 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''), 52 'IP' => array('Type' => 'String', 'Caption' => 'IP adresa', 'Default' => '', 'ReadOnly' => true), 53 'Link' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''), 54 ), 55 )); 56 $this->System->FormManager->RegisterClass('NewsCategory', array( 57 'Title' => 'Kategorie aktualit', 58 'Table' => 'NewsCategory', 59 'Items' => array( 60 'Caption' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''), 61 'RSS' => array('Type' => 'Hyperlink', 'Caption' => 'Zdroj RSS', 'Default' => ''), 62 'Permission' => array('Type' => 'Boolean', 'Caption' => 'Veřejné upravitelné', 'Default' => ''), 63 'Sequence' => array('Type' => 'Integer', 'Caption' => 'Pořadí', 'Default' => ''), 64 'Group' => array('Type' => 'Integer', 'Caption' => 'Skupina', 'Default' => ''), 65 ), 66 )); 67 41 68 } 42 69 -
trunk/Modules/Portal/Portal.php
r534 r538 362 362 parent::Start(); 363 363 $this->System->RegisterPage('', 'PagePortal'); 364 $this->System->FormManager->RegisterClass('MemberOptions', array( 365 'Title' => 'Nastavení domácnosti', 366 'Table' => '(SELECT Member.Id, Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject)', 367 'Items' => array( 368 'Name' => array('Type' => 'String', 'Caption' => 'Fakturační jméno', 'Default' => ''), 369 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => 'Zděchov'), 370 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => 'Zděchov'), 371 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => '75607'), 372 'AddressCountry' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => '1'), 373 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''), 374 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''), 375 'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => '', 'Suffix' => 'osob'), 376 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''), 377 ), 378 )); 379 $this->System->FormManager->RegisterClass('UserOptions', array( 380 'Title' => 'Základní nastavení', 381 'Table' => 'User', 382 'SubmitText' => 'Uložit', 383 'Items' => array( 384 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 385 'Salt' => array('Type' => 'RandomHash', 'Caption' => 'Sůl', 'Default' => ''), 386 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''), 387 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''), 388 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 389 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''), 390 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''), 391 ), 392 )); 393 $this->System->FormManager->RegisterClass('UserRegister', array( 394 'Title' => 'Registrace uživatele', 395 'SubmitText' => 'Registrovat', 396 'Table' => 'User', 397 'Items' => array( 398 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 399 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''), 400 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''), 401 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''), 402 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 403 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''), 404 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''), 405 ), 406 )); 407 $this->System->FormManager->RegisterClass('PasswordRecovery', array( 408 'Title' => 'Obnova hesla', 409 'SubmitText' => 'Obnovit', 410 'Table' => '', 411 'Items' => array( 412 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 413 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 414 ), 415 )); 416 $this->System->FormManager->RegisterClass('UserLogin', array( 417 'Title' => 'Přihlášení uživatele', 418 'SubmitText' => 'Přihlásit', 419 'Table' => '', 420 'Items' => array( 421 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 422 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''), 423 ), 424 )); 425 364 426 } 365 427 -
trunk/Modules/System/System.php
r534 r538 9 9 $this->ShortTitle = 'Moduly'; 10 10 $this->ParentClass = 'PagePortal'; 11 } 12 13 function ShowList() 14 { 15 $Output = ''; 16 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `SystemModule`'); 17 $DbRow = $DbResult->fetch_row(); 18 $PageList = GetPageList($DbRow[0]); 19 20 $Output .= $PageList['Output']; 21 $Output .= '<table class="WideTable" style="font-size: small;">'; 22 23 $TableColumns = array( 24 array('Name' => 'Name', 'Title' => 'Jméno'), 25 array('Name' => 'Creator', 'Title' => 'Tvůrce'), 26 array('Name' => 'Version', 'Title' => 'Verze'), 27 array('Name' => 'License', 'Title' => 'Licence'), 28 array('Name' => 'Installed', 'Title' => 'Instalováno'), 29 array('Name' => 'Description', 'Title' => 'Popis'), 30 array('Name' => 'Dependencies', 'Title' => 'Závislosti'), 31 array('Name' => '', 'Title' => 'Akce'), 32 ); 33 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); 34 $Output .= $Order['Output']; 35 $Query = 'SELECT *, (SELECT GROUP_CONCAT(`T1`.`Name` SEPARATOR ", ") FROM `SystemModuleDependency` '. 36 'LEFT JOIN `SystemModule` AS `T1` ON `T1`.`Id` = `SystemModuleDependency`.`DependencyModule` '. 37 'WHERE `SystemModuleDependency`.`Module` = `SystemModule`.`Id`) AS `Dependencies` '. 38 'FROM `SystemModule` '.$Order['SQL'].$PageList['SQLLimit']; 39 40 $DbResult = $this->Database->query($Query); 41 while($Module = $DbResult->fetch_assoc()) 42 { 43 if($Module['Dependencies'] != '') $Dependencies = $Module['Dependencies']; 44 else $Dependencies = ' '; 45 if($Module['Installed'] == 1) $Installed = 'Ano'; 46 else $Installed = 'Ne'; 47 if($Module['Installed'] == 1) $Actions = '<a href="?A=Uninstall&Id='.$Module['Id'].'">Odinstalovat</a>'; 48 else $Actions = '<a href="?A=Install&Id='.$Module['Id'].'">Instalovat</a>'; 49 $Output .= '<tr><td>'.$Module['Name'].'</td>'. 50 '<td>'.$Module['Creator'].'</td>'. 51 '<td>'.$Module['Version'].'</td>'. 52 '<td>'.$Module['License'].'</td>'. 53 '<td>'.$Installed.'</td>'. 54 '<td>'.$Module['Description'].'</td>'. 55 '<td>'.$Dependencies.'</td>'. 56 '<td>'.$Actions.'</td></tr>'; 57 } 58 $Output .= '</table>'; 59 $Output .= $PageList['Output']; 60 $Output .= '<p><a href="?A=SaveToDb">Uložit do databáze</a></p>'; 61 return($Output); 11 62 } 12 63 … … 31 82 } else $Output .= 'Modul id '.$_GET['Id'].' nenalezen'; 32 83 33 } 84 } else 34 85 if($_GET['A'] == 'Uninstall') 35 86 { … … 40 91 $this->System->ModuleManager->Init(); 41 92 } else $Output .= 'Modul id '.$_GET['Id'].' nenalezen'; 42 } 43 } 44 $DbResult = $this->Database->query('SELECT COUNT(*) FROM `SystemModule`'); 45 $DbRow = $DbResult->fetch_row(); 46 $PageList = GetPageList($DbRow[0]); 47 48 $Output .= $PageList['Output']; 49 $Output .= '<table class="WideTable" style="font-size: small;">'; 50 51 $TableColumns = array( 52 array('Name' => 'Name', 'Title' => 'Jméno'), 53 array('Name' => 'Creator', 'Title' => 'Tvůrce'), 54 array('Name' => 'Version', 'Title' => 'Verze'), 55 array('Name' => 'License', 'Title' => 'Licence'), 56 array('Name' => 'Installed', 'Title' => 'Instalováno'), 57 array('Name' => 'Description', 'Title' => 'Popis'), 58 array('Name' => 'Dependencies', 'Title' => 'Závislosti'), 59 array('Name' => '', 'Title' => 'Akce'), 60 ); 61 $Order = GetOrderTableHeader($TableColumns, 'Name', 0); 62 $Output .= $Order['Output']; 63 $Query = 'SELECT *, (SELECT GROUP_CONCAT(`T1`.`Name` SEPARATOR ", ") FROM `SystemModuleDependency` '. 64 'LEFT JOIN `SystemModule` AS `T1` ON `T1`.`Id` = `SystemModuleDependency`.`DependencyModule` '. 65 'WHERE `SystemModuleDependency`.`Module` = `SystemModule`.`Id`) AS `Dependencies` '. 66 'FROM `SystemModule` '.$Order['SQL'].$PageList['SQLLimit']; 67 68 $DbResult = $this->Database->query($Query); 69 while($Module = $DbResult->fetch_assoc()) 70 { 71 if($Module['Dependencies'] != '') $Dependencies = $Module['Dependencies']; 72 else $Module['Dependencies'] = ' '; 73 if($Module['Installed'] == 1) $Installed = 'Ano'; 74 else $Installed = 'Ne'; 75 if($Module['Installed'] == 1) $Actions = '<a href="?A=Uninstall Id='.$Module['Id'].'">Odinstalovat</a>'; 76 else $Actions = '<a href="?A=Install Id='.$Module['Id'].'">Instalovat</a>'; 77 $Output .= '<tr><td>'.$Module['Name'].'</td>'. 78 '<td>'.$Module['Creator'].'</td>'. 79 '<td>'.$Module['Version'].'</td>'. 80 '<td>'.$Module['License'].'</td>'. 81 '<td>'.$Installed.'</td>'. 82 '<td>'.$Module['Description'].'</td>'. 83 '<td>'.$Dependencies.'</td>'. 84 '<td>'.$Actions.'</td></tr>'; 85 } 86 $Output .= '</table>'; 87 $Output .= $PageList['Output']; 88 $Output .= '<p><a href="?A=SaveToDb">Uložit do databáze</a></p>'; 89 return($Output); 93 } else $Output .= 'Neplatná akce'; 94 } 95 $Output .= $this->ShowList(); 96 return($Output); 90 97 } 91 98 } -
trunk/Modules/TV/TV.php
r519 r538 129 129 parent::Start(); 130 130 $this->System->RegisterPage('tv', 'PageIPTV'); 131 $this->System->FormManager->RegisterClass('TV', array( 132 'Title' => 'TV kanály', 133 'Table' => 'TV', 134 'DefaultSortColumn' => 'Name', 135 'Items' => array( 136 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 137 'Frequency' => array('Type' => 'Integer', 'Caption' => 'Frekvence', 'Default' => '', 'Suffix' => 'Hz'), 138 'Norm' => array('Type' => 'String', 'Caption' => 'Video norma', 'Default' => ''), 139 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Web', 'Default' => ''), 140 'Language' => array('Type' => 'TLanguage', 'Caption' => 'Jazyk', 'Default' => '', 'Null' => true), 141 'ShortName' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => ''), 142 'Stream' => array('Type' => 'Hyperlink', 'Caption' => 'Proud', 'Default' => ''), 143 'StreamWeb' => array('Type' => 'Hyperlink', 'Caption' => 'Proud web', 'Default' => ''), 144 'SourceType' => array('Type' => 'String', 'Caption' => 'Typ zdroje', 'Default' => ''), 145 'Category' => array('Type' => 'TTVGroup', 'Caption' => 'Kategorie', 'Default' => '', 'Null' => true), 146 ), 147 )); 148 $this->System->FormManager->RegisterClass('TVGroup', array( 149 'Title' => 'Skupiny TV kanálů', 150 'Table' => 'TVGroup', 151 'DefaultSortColumn' => 'Name', 152 'Items' => array( 153 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 154 ), 155 )); 156 131 157 } 132 158 -
trunk/Modules/TimeMeasure/TimeMeasure.php
r536 r538 27 27 { 28 28 parent::Start(); 29 $this->System->FormManager->RegisterClass('Measure', array( 30 'Title' => 'Měření', 31 'Table' => 'Measure', 32 'Items' => array( 33 'Name' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => 'measure'), 34 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'Měření'), 35 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Měření veličiny'), 36 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''), 37 'Continuity' => array('Type' => 'Boolean', 'Caption' => 'Spojitost', 'Default' => '0'), 38 'Period' => array('Type' => 'Integer', 'Caption' => 'Perioda měření', 'Default' => '60'), 39 'PermissionAdd' => array('Type' => 'String', 'Caption' => 'Oprávnění k měření', 'Default' => 'localhost.localdomain'), 40 'PermissionView' => array('Type' => 'String', 'Caption' => 'Oprávnění k prohlížení', 'Default' => 'all'), 41 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => '1'), 42 'DataType' => array('Type' => 'String', 'Caption' => 'Typ datových položek', 'Default' => 'int'), 43 'DataTable' => array('Type' => 'String', 'Caption' => 'Tabulka měřených dat', 'Default' => 'data'), 44 ), 45 )); 29 46 } 30 47 -
trunk/Modules/User/User.php
r534 r538 405 405 if(isset($_SERVER['REMOTE_ADDR'])) $this->System->User->Check(); 406 406 $this->System->RegisterPage('userlist', 'PageUserList'); 407 $this->System->FormManager->RegisterClass('User', array( 408 'Title' => 'Uživatelé', 409 'Table' => 'User', 410 'DefaultSortColumn' => 'Name', 411 'Items' => array( 412 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''), 413 'Name' => array('Type' => 'String', 'Caption' => 'Celé jméno', 'Default' => ''), 414 'Salt' => array('Type' => 'RandomHash', 'Caption' => 'Sůl', 'Default' => ''), 415 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => '', 'Method' => 'DoubleSHA1'), 416 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''), 417 'LastIpAddress' => array('Type' => 'String', 'Caption' => 'Poslední IP adresa', 'Default' => '', 'ReadOnly' => true), 418 'LastLoginTime' => array('Type' => 'DateTime', 'Caption' => 'Poslední čas přihlášení', 'Default' => '', 'ReadOnly' => true), 419 'RegistrationTime' => array('Type' => 'DateTime', 'Caption' => 'Čas registrace', 'Default' => ''), 420 'Locked' => array('Type' => 'Boolean', 'Caption' => 'Uzamčen', 'Default' => ''), 421 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''), 422 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefon', 'Default' => ''), 423 'UserRel' => array('Type' => 'TUserCustomerRelListUser', 'Caption' => 'Přístup k zákazníkům', 'Default' => ''), 424 'Permission' => array('Type' => 'TPermissionUserAssignmentListUser', 'Caption' => 'Oprávnění', 'Default' => ''), 425 ), 426 )); 427 $this->System->FormManager->RegisterClass('PermissionUserAssignment', array( 428 'Title' => 'Oprávnění uživatelů', 429 'Table' => 'PermissionUserAssignment', 430 'Items' => array( 431 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''), 432 'AssignedGroup' => array('Type' => 'TPermissionGroup', 'Caption' => 'Přiřazené skupiny', 'Default' => '', 'Null' => true), 433 'AssignedOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Přiřazené operace', 'Default' => '', 'Null' => true), 434 ), 435 )); 436 $this->System->FormManager->RegisterClass('PermissionGroup', array( 437 'Title' => 'Skupiny oprávnění', 438 'Table' => 'PermissionGroup', 439 'Items' => array( 440 'Description' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 441 'AssignedGroup' => array('Type' => 'TPermissionGroupAssignmentListGroup', 'Caption' => 'Přiřazené skupiny a operace', 'Default' => '', 'Null' => true), 442 'AssignedGroup2' => array('Type' => 'TPermissionGroupAssignmentListAssignedGroup', 'Caption' => 'Použito ve skupinách', 'Default' => '', 'Null' => true), 443 ), 444 )); 445 $this->System->FormManager->RegisterClass('PermissionGroupAssignment', array( 446 'Title' => 'Přiřazení skupin oprávnění', 447 'Table' => 'PermissionGroupAssignment', 448 'Items' => array( 449 'Group' => array('Type' => 'TPermissionGroup', 'Caption' => 'Skupina', 'Default' => ''), 450 'AssignedGroup' => array('Type' => 'TPermissionGroup', 'Caption' => 'Přiřazené skupiny', 'Default' => '', 'Null' => true), 451 'AssignedOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Přiřazené operace', 'Default' => '', 'Null' => true), 452 ), 453 )); 454 $this->System->FormManager->RegisterClass('PermissionOperation', array( 455 'Title' => 'Operace oprávnění', 456 'Table' => 'PermissionOperation', 457 'Items' => array( 458 'Module' => array('Type' => 'String', 'Caption' => 'Modul', 'Default' => ''), 459 'Operation' => array('Type' => 'String', 'Caption' => 'Operace', 'Default' => ''), 460 'Item' => array('Type' => 'String', 'Caption' => 'Položka', 'Default' => ''), 461 'ItemId' => array('Type' => 'Integer', 'Caption' => 'Index položky', 'Default' => ''), 462 'AssignedGroup' => array('Type' => 'TPermissionGroupAssignmentListOperation', 'Caption' => 'Použito ve skupinách', 'Default' => '', 'Null' => true), 463 ), 464 )); 465 407 466 } 408 467
Note:
See TracChangeset
for help on using the changeset viewer.