Changeset 538
- Timestamp:
- May 18, 2013, 8:21:50 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r524 r538 25 25 $this->Database = &$System->Database; 26 26 $this->Installed = false; 27 $this->Dependencies = array(); 27 28 } 28 29 -
trunk/Common/Form/Form.php
r536 r538 293 293 unset($this->Classes[$Name]); 294 294 } 295 296 function RegisterFormType($Name, $Class) 297 { 298 $this->FormTypes[$Name] = $Class; 299 } 300 301 function UnregisterFormType($Name) 302 { 303 unset($this->FormTypes[$Name]); 304 } 295 305 } 296 306 -
trunk/Common/Global.php
r536 r538 39 39 include_once(dirname(__FILE__).'/../Modules/Finance/Finance.php'); 40 40 include_once(dirname(__FILE__).'/../Modules/FinanceBankAPI/FinanceBankAPI.php'); 41 include_once(dirname(__FILE__).'/../Modules/Customer/Customer.php'); 41 42 include_once(dirname(__FILE__).'/../Modules/NetworkShare/NetworkShare.php'); 42 43 include_once(dirname(__FILE__).'/../Modules/News/News.php'); … … 47 48 include_once(dirname(__FILE__).'/../Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php'); 48 49 include_once(dirname(__FILE__).'/../Modules/TimeMeasure/TimeMeasure.php'); 50 include_once(dirname(__FILE__).'/../Modules/Task/Task.php'); 51 include_once(dirname(__FILE__).'/../Modules/Stock/Stock.php'); 49 52 50 53 function GlobalInit() … … 103 106 $System->ModuleManager->RegisterModule(new ModuleFinance($System)); 104 107 $System->ModuleManager->RegisterModule(new ModuleFinanceBankAPI($System)); 108 $System->ModuleManager->RegisterModule(new ModuleCustomer($System)); 105 109 $System->ModuleManager->RegisterModule(new ModuleNetworkShare($System)); 106 110 $System->ModuleManager->RegisterModule(new ModuleNews($System)); … … 111 115 $System->ModuleManager->RegisterModule(new ModuleNetworkConfigLinux($System)); 112 116 $System->ModuleManager->RegisterModule(new ModuleTimeMeasure($System)); 117 $System->ModuleManager->RegisterModule(new ModuleTask($System)); 118 $System->ModuleManager->RegisterModule(new ModuleStock($System)); 113 119 $System->ModuleManager->StartAll(); 114 120 } -
trunk/Common/Version.php
r537 r538 1 1 <?php 2 2 3 $Revision = 53 7; // Subversion revision3 $Revision = 538; // Subversion revision 4 4 $DatabaseRevision = 535; // SQL structure revision 5 5 $ReleaseTime = '2013-05-18'; -
trunk/FormClasses.php
r536 r538 19 19 { 20 20 $FormManager->Classes = array( 21 'MenuItem' => array(22 'Title' => 'Položky nabídky',23 'Table' => 'MenuItem',24 'Items' => array(25 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),26 'Parent' => array('Type' => 'TMenuItem', 'Caption' => 'Rodič', 'Default' => '', 'Null' => true),27 'Action' => array('Type' => 'TAction', 'Caption' => 'Akce', 'Default' => ''),28 'Menu' => array('Type' => 'TMenu', 'Caption' => 'Nabídka', 'Default' => ''),29 'Items' => array('Type' => 'TMenuItemListParent', 'Caption' => 'Položky'),30 ),31 ),32 'Menu' => array(33 'Title' => 'Nabídky',34 'Table' => 'Menu',35 'Items' => array(36 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),37 'Items' => array('Type' => 'TMenuItemListMenu', 'Caption' => 'Položky'),38 ),39 ),40 21 'Action' => array( 41 22 'Title' => 'Akce', … … 77 58 ), 78 59 ), 79 'FinanceBank' => array(80 'Title' => 'Banky',81 'Table' => 'FinanceBank',82 'Items' => array(83 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),84 'Code' => array('Type' => 'String', 'Caption' => 'Český kód', 'Default' => ''),85 'BIC' => array('Type' => 'String', 'Caption' => 'Kód BIC', 'Default' => ''),86 'Country' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''),87 ),88 ),89 'FinanceBankImport' => array(90 'Title' => 'Import plateb z účtu',91 'Table' => 'FinanceBankImport',92 'Items' => array(93 'BankAccount' => array('Type' => 'TBankAccount', 'Caption' => 'Účet', 'Default' => ''),94 'Time' => array('Type' => 'Date', 'Caption' => 'Čas', 'Default' => ''),95 'Identification' => array('Type' => 'String', 'Caption' => 'Kód operace', 'Default' => ''),96 'AccountNumber' => array('Type' => 'String', 'Caption' => 'Číslo účtu', 'Default' => ''),97 'VariableSymbol' => array('Type' => 'String', 'Caption' => 'Variabilní symbol', 'Default' => ''),98 'ConstantSymbol' => array('Type' => 'String', 'Caption' => 'Konstantní symbol', 'Default' => ''),99 'SpecificSymbol' => array('Type' => 'String', 'Caption' => 'Specifický symbol', 'Default' => ''),100 'Value' => array('Type' => 'Float', 'Caption' => 'Částka', 'Default' => ''),101 'Currency' => array('Type' => 'TCurrency', 'Caption' => 'Měna', 'Default' => ''),102 'Description' => array('Type' => 'String', 'Caption' => 'Popis operace', 'Default' => ''),103 'OffsetAccountName' => array('Type' => 'String', 'Caption' => 'Jméno protiúčtu', 'Default' => ''),104 'FinanceOperation' => array('Type' => 'TFinanceOperation', 'Caption' => 'Přiřazená operace', 'Default' => '', 'Null' => true),105 ),106 ),107 'Currency' => array(108 'Title' => 'Měny',109 'Table' => 'Currency',110 'Items' => array(111 'Code' => array('Type' => 'String', 'Caption' => 'Kód'),112 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),113 'Symbol' => array('Type' => 'String', 'Caption' => 'Symbol', 'Default' => ''),114 ),115 ),116 60 'EmailQueue' => array( 117 61 'Title' => 'Fronta e-mailů', … … 131 75 ), 132 76 ), 133 'NetworkConfiguration' => array(134 'Title' => 'Restart sítových služeb',135 'Table' => 'NetworkConfiguration',136 'Items' => array(137 'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),138 'Execute' => array('Type' => 'String', 'Caption' => 'Povely', 'Default' => ''),139 'Changed' => array('Type' => 'TNetworkConfigurationState', 'Caption' => 'Stav', 'Default' => 0),140 'LastTime' => array('Type' => 'DateTime', 'Caption' => 'Naposledy spuštěno', 'ReadOnly' => true),141 'ExecutionTime' => array('Type' => 'Integer', 'Caption' => 'Doba běhu', 'Default' => '0', 'Suffix' => 'sekund', 'ReadOnly' => true),142 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povoleno', 'Default' => '0'),143 'Period' => array('Type' => 'Integer', 'Caption' => 'Min. perioda', 'Default' => '60', 'Suffix' => 'sekund'),144 ),145 'ItemActions' => array(146 array('Caption' => 'Záznam', 'URL' => '/is/?a=view&t=NetworkConfigurationLog'),147 ),148 ),149 'NetworkConfigurationLog' => array(150 'Title' => 'Záznam restartu sítových služeb',151 'Table' => 'NetworkConfiguration',152 'Items' => array(153 'Caption' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),154 'Log' => array('Type' => 'Text', 'Caption' => 'Záznam', 'Default' => '', 'ReadOnly' => true),155 ),156 ),157 'MemberPayment' => array(158 'Title' => 'Placení zákazníků',159 'Table' => 'MemberPayment',160 'Items' => array(161 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '', 'ReadOnly' => true),162 'MonthlyTotal' => array('Type' => 'Integer', 'Caption' => 'Celkem měsíčně', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true),163 'MonthlyInternet' => array('Type' => 'Integer', 'Caption' => 'Internet měsíčně', 'Default' => '', 'Suffix' => 'Kč', 'ReadOnly' => true),164 'MonthlyConsumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba měsíčně', 'Default' => '', 'Suffix' => 'Kč', 'ReadOnly' => true),165 'NetworkDevice' => array('Type' => 'Integer', 'Caption' => 'Podíl na zařízení', 'Default' => '', 'Suffix' => 'Kč', 'ReadOnly' => true),166 'MonthlyPlus' => array('Type' => 'Integer', 'Caption' => 'Měsíčně plus', 'Default' => '', 'Suffix' => 'Kč', 'ReadOnly' => true),167 'Cash' => array('Type' => 'Integer', 'Caption' => 'Kredit', 'Default' => '', 'Suffix' => 'Kč', 'ReadOnly' => true),168 ),169 'Actions' => array(170 array('Caption' => 'Přepočítat', 'URL' => '/finance/manage.php?Operation=Recalculate'),171 ),172 ),173 'NetworkSegment' => array(174 'Title' => 'Úsek sítě',175 'Table' => 'NetworkSegment',176 'Items' => array(177 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),178 'Price' => array('Type' => 'Integer', 'Caption' => 'Cena', 'Default' => '0', 'Suffix' => 'Kč', 'ReadOnly' => true),179 'Parent' => array('Type' => 'TNetworkSegment', 'Caption' => 'Nadřazený', 'Default' => '', 'Null' => true),180 'Users' => array('Type' => 'Integer', 'Caption' => 'Uživatelů', 'Default' => '0', 'ReadOnly' => true),181 'Consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => '0', 'ReadOnly' => true, 'Suffix' => 'Wattů'),182 'UsersOverheads' => array('Type' => 'Integer', 'Caption' => 'Podílníků', 'Default' => '0', 'ReadOnly' => true),183 ),184 ),185 'FinanceCharge' => array(186 'Title' => 'Parametry účtování',187 'Table' => 'FinanceCharge',188 'Items' => array(189 'Internet' => array('Type' => 'Integer', 'Caption' => 'Platba Internetu', 'Default' => '0', 'Suffix' => 'Kč'),190 'InternetSpeed' => array('Type' => 'Integer', 'Caption' => 'Rychlost Internetu', 'Default' => '0', 'Suffix' => 'Mbit/s'),191 'InternetSpeedReserve' => array('Type' => 'Integer', 'Caption' => 'Rezerva rychlosti', 'Default' => '0', 'Suffix' => 'Mbit/s'),192 'AdministrationPerUser' => array('Type' => 'Integer', 'Caption' => 'Správa za uživatele', 'Default' => '0', 'Suffix' => 'Kč'),193 'kWh' => array('Type' => 'Integer', 'Caption' => 'Cena kWh', 'Default' => '0', 'Suffix' => 'Kč'),194 'BaseSpeedElement' => array('Type' => 'Integer', 'Caption' => 'Základní díl rychlosti', 'Default' => '0', 'Suffix' => 'Mbit/s'),195 'BaseTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Základní cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'),196 'TopTariffPrice' => array('Type' => 'Integer', 'Caption' => 'Nejvyšší cena tarifu', 'Default' => '0', 'Suffix' => 'Kč'),197 'Action' => array('Type' => 'TActionEnum', 'Caption' => 'Změna období', 'Default' => '', 'Null' => true),198 'ReplaceId' => array('Type' => 'TFinanceCharge', 'Caption' => 'Cílová položka', 'Default' => '0', 'Null' => true),199 ),200 ),201 'File' => array(202 'Title' => 'Soubor',203 'Table' => 'File',204 'Items' => array(205 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),206 'Directory' => array('Type' => 'TDirectory', 'Caption' => 'Adresář', 'Default' => '', 'Null' => true),207 'Size' => array('Type' => 'Integer', 'Caption' => 'Velikost', 'Default' => ''),208 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas vytvoření', 'Default' => ''),209 ),210 'ItemActions' => array(211 array('Caption' => 'Stáhnout', 'URL' => '/file?download'),212 ),213 ),214 'FileDirectory' => array(215 'Title' => 'Adresář souborů',216 'Table' => 'FileDirectory',217 'Items' => array(218 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),219 'Parent' => array('Type' => 'TDirectory', 'Caption' => 'Nadřazený adresář', 'Default' => '', 'Null' => true),220 ),221 ),222 'NetworkLink' => array(223 'Title' => 'Síťové propojení',224 'Table' => 'NetworkLink',225 'Items' => array(226 'Type' => array('Type' => 'Integer', 'Caption' => 'Typ', 'Default' => '1'),227 'Interface1' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 1', 'Default' => ''),228 'Interface2' => array('Type' => 'TNetworkInterface', 'Caption' => 'Rozhraní 2', 'Default' => ''),229 ),230 ),231 'PermissionUserAssignment' => array(232 'Title' => 'Oprávnění uživatelů',233 'Table' => 'PermissionUserAssignment',234 'Items' => array(235 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''),236 'AssignedGroup' => array('Type' => 'TPermissionGroup', 'Caption' => 'Přiřazené skupiny', 'Default' => '', 'Null' => true),237 'AssignedOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Přiřazené operace', 'Default' => '', 'Null' => true),238 ),239 ),240 'PermissionGroup' => array(241 'Title' => 'Skupiny oprávnění',242 'Table' => 'PermissionGroup',243 'Items' => array(244 'Description' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),245 'AssignedGroup' => array('Type' => 'TPermissionGroupAssignmentListGroup', 'Caption' => 'Přiřazené skupiny a operace', 'Default' => '', 'Null' => true),246 'AssignedGroup2' => array('Type' => 'TPermissionGroupAssignmentListAssignedGroup', 'Caption' => 'Použito ve skupinách', 'Default' => '', 'Null' => true),247 ),248 ),249 'PermissionGroupAssignment' => array(250 'Title' => 'Přiřazení skupin oprávnění',251 'Table' => 'PermissionGroupAssignment',252 'Items' => array(253 'Group' => array('Type' => 'TPermissionGroup', 'Caption' => 'Skupina', 'Default' => ''),254 'AssignedGroup' => array('Type' => 'TPermissionGroup', 'Caption' => 'Přiřazené skupiny', 'Default' => '', 'Null' => true),255 'AssignedOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Přiřazené operace', 'Default' => '', 'Null' => true),256 ),257 ),258 'PermissionOperation' => array(259 'Title' => 'Operace oprávnění',260 'Table' => 'PermissionOperation',261 'Items' => array(262 'Module' => array('Type' => 'String', 'Caption' => 'Modul', 'Default' => ''),263 'Operation' => array('Type' => 'String', 'Caption' => 'Operace', 'Default' => ''),264 'Item' => array('Type' => 'String', 'Caption' => 'Položka', 'Default' => ''),265 'ItemId' => array('Type' => 'Integer', 'Caption' => 'Index položky', 'Default' => ''),266 'AssignedGroup' => array('Type' => 'TPermissionGroupAssignmentListOperation', 'Caption' => 'Použito ve skupinách', 'Default' => '', 'Null' => true),267 ),268 ),269 77 'UserCustomerRel' => array( 270 78 'Title' => 'Vztahy uživatel - zákazník', … … 285 93 ), 286 94 ), 287 'Work' => array(288 'Title' => 'Práce',289 'Table' => 'Work',290 'DefaultSortColumn' => 'TimeStart',291 'Items' => array(292 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),293 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),294 'TimeStart' => array('Type' => 'DateTime', 'Caption' => 'Čas začátku', 'Default' => ''),295 'Duration' => array('Type' => 'Float', 'Caption' => 'Trvání', 'Default' => '1', 'Suffix' => 'hodin'),296 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => '1', 'Null' => true),297 'Task' => array('Type' => 'TTask', 'Caption' => 'Úkol', 'Default' => '', 'Null' => true),298 ),299 ),300 'NetworkDeviceConfig' => array(301 'Title' => 'Nastavení zařízení',302 'Table' => 'NetworkDeviceConfig',303 'DefaultSortColumn' => 'Time',304 'Items' => array(305 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => ''),306 'Time' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''),307 'ConfigFull' => array('Type' => 'Text', 'Caption' => 'Kompletní nastavení', 'Default' => ''),308 'ConfigCompact' => array('Type' => 'Text', 'Caption' => 'Rozdílové nastavení', 'Default' => ''),309 ),310 ),311 95 'DocumentLine' => array( 312 96 'Title' => 'Dokladové řady', … … 341 125 ), 342 126 ), 343 'TV' => array(344 'Title' => 'TV kanály',345 'Table' => 'TV',346 'DefaultSortColumn' => 'Name',347 'Items' => array(348 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),349 'Frequency' => array('Type' => 'Integer', 'Caption' => 'Frekvence', 'Default' => '', 'Suffix' => 'Hz'),350 'Norm' => array('Type' => 'String', 'Caption' => 'Video norma', 'Default' => ''),351 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Web', 'Default' => ''),352 'Language' => array('Type' => 'TLanguage', 'Caption' => 'Jazyk', 'Default' => '', 'Null' => true),353 'ShortName' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => ''),354 'Stream' => array('Type' => 'Hyperlink', 'Caption' => 'Proud', 'Default' => ''),355 'StreamWeb' => array('Type' => 'Hyperlink', 'Caption' => 'Proud web', 'Default' => ''),356 'SourceType' => array('Type' => 'String', 'Caption' => 'Typ zdroje', 'Default' => ''),357 'Category' => array('Type' => 'TTVGroup', 'Caption' => 'Kategorie', 'Default' => '', 'Null' => true),358 ),359 ),360 'TVGroup' => array(361 'Title' => 'Skupiny TV kanálů',362 'Table' => 'TVGroup',363 'DefaultSortColumn' => 'Name',364 'Items' => array(365 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),366 ),367 ),368 127 'Language' => array( 369 128 'Title' => 'Jazyky', … … 374 133 ), 375 134 ), 376 'Task' => array(377 'Title' => 'Úkoly',378 'Table' => 'Task',379 'DefaultSortColumn' => 'Name',380 'Items' => array(381 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => '', 'Required' => true),382 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),383 'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Datum zadání', 'Default' => '', 'Required' => true),384 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Termín', 'Default' => '', 'Null' => true),385 'TimeClose' => array('Type' => 'Date', 'Caption' => 'Datum uzavření', 'Default' => '', 'Null' => true),386 'Priority' => array('Type' => 'TPriority', 'Caption' => 'Důležitost', 'Default' => 1),387 'Conclusion' => array('Type' => 'Text', 'Caption' => 'Vyhodnocení', 'Default' => ''),388 'Public' => array('Type' => 'Boolean', 'Caption' => 'Veřejné', 'Default' => '0'),389 'Progress' => array('Type' => 'Integer', 'Caption' => 'Průběh', 'Default' => '0', 'Suffix' => '%'),390 'Group' => array('Type' => 'TTaskGroup', 'Caption' => 'Kategorie', 'Default' => '', 'Null' => true),391 'AssignedTo' => array('Type' => 'TUser', 'Caption' => 'Přiřazeno', 'Default' => '', 'Null' => true),392 'Work' => array('Type' => 'TWorkListTask', 'Caption' => 'Práce', 'Default' => ''),393 ),394 ),395 135 'UnitOfMeasure' => array( 396 136 'Title' => 'Měrné jednotky', … … 401 141 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''), 402 142 ), 403 ), 404 'TaskGroup' => array( 405 'Title' => 'Kategorie úkolu', 406 'Table' => 'TaskGroup', 407 'DefaultSortColumn' => 'Name', 408 'Items' => array( 409 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 410 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''), 411 'Parent' => array('Type' => 'TTaskGroup', 'Caption' => 'Kategorie', 'Default' => '', 'Null' => true), 412 'Tasks' => array('Type' => 'TTaskList', 'Caption' => 'Úkoly', 'Default' => ''), 413 ), 414 ), 415 'Product' => array( 416 'Title' => 'Produkty', 417 'Table' => 'Product', 418 'DefaultSortColumn' => 'Name', 419 'Items' => array( 420 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 421 'SellPrice' => array('Type' => 'Integer', 'Caption' => 'Prodejní cena', 'Default' => '0', 'Suffix' => 'Kč'), 422 'BuyPrice' => array('Type' => 'Integer', 'Caption' => 'Kupní cena', 'Default' => '0', 'Suffix' => 'Kč'), 423 'VAT' => array('Type' => 'Integer', 'Caption' => 'DPH', 'Default' => '0', 'Suffix' => '%'), 424 'Consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => '', 'Suffix' => 'Watt'), 425 'Supplier' => array('Type' => 'TSubject', 'Caption' => 'Dodavatel', 'Default' => '', 'Null' => true), 426 'Manufacturer' => array('Type' => 'TSubject', 'Caption' => 'Výrobce', 'Default' => '', 'Null' => true), 427 'Code' => array('Type' => 'String', 'Caption' => 'Kód', 'Default' => ''), 428 'UnitOfMeasure' => array('Type' => 'TUnitOfMeasure', 'Caption' => 'Měrná jednotka', 'Default' => '', 'Null' => true), 429 'StockItems' => array('Type' => 'TStockItemListProduct', 'Caption' => 'Položky na skladě', 'Default' => '', 'Suffix' => 'ks'), 430 ), 431 ), 432 'StockItem' => array( 433 'Title' => 'Skladové položky', 434 'Table' => 'StockItem', 435 'DefaultSortColumn' => 'Id', 436 'Items' => array( 437 'Stock' => array('Type' => 'TStock', 'Caption' => 'Sklad', 'Default' => ''), 438 'Product' => array('Type' => 'TProduct', 'Caption' => 'Produkt', 'Default' => ''), 439 'TimeEnlistment' => array('Type' => 'Date', 'Caption' => 'Datum zařazení', 'Default' => ''), 440 'TimeElimination' => array('Type' => 'Date', 'Caption' => 'Datum vyřazení', 'Default' => ''), 441 'SellPrice' => array('Type' => 'Integer', 'Caption' => 'Prodejní cena', 'Default' => '0', 'Suffix' => 'Kč'), 442 'BuyPrice' => array('Type' => 'Integer', 'Caption' => 'Kupní cena', 'Default' => '0', 'Suffix' => 'Kč'), 443 'Amount' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'), 444 'SerialNumber' => array('Type' => 'String', 'Caption' => 'Sériové číslo', 'Default' => '', 'Null' => true), 445 'RegNumber' => array('Type' => 'String', 'Caption' => 'Evidenční číslo', 'Default' => '', 'Null' => true), 446 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '', 'Null' => true), 447 'Segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Úsek sítě', 'Default' => '', 'Null' => true), 448 'Info' => array('Type' => 'Text', 'Caption' => 'Informace', 'Default' => ''), 449 ), 450 ), 451 'Stock' => array( 452 'Title' => 'Sklady', 453 'Table' => 'Stock', 454 'DefaultSortColumn' => 'Name', 455 'Items' => array( 456 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 457 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '', 'Null' => true), 458 'Items' => array('Type' => 'TStockItemListStock', 'Caption' => 'Položky', 'Default' => ''), 459 ), 460 ), 461 'Log' => array( 462 'Title' => 'Záznamy', 463 'Table' => 'Log', 464 'DefaultSortColumn' => 'Time', 465 'Items' => array( 466 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => '', 'ReadOnly' => true), 467 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => '', 'Null' => true, 'ReadOnly' => true), 468 'Module' => array('Type' => 'String', 'Caption' => 'Modul', 'Default' => '', 'ReadOnly' => true), 469 'Operation' => array('Type' => 'String', 'Caption' => 'Operace', 'Default' => '', 'ReadOnly' => true), 470 'Value' => array('Type' => 'Text', 'Caption' => 'Hodnota', 'Default' => '', 'ReadOnly' => true), 471 'IPAddress' => array('Type' => 'Text', 'Caption' => 'Adresa IP', 'Default' => '', 'ReadOnly' => true), 472 ), 473 ), 143 ), 474 144 'FinanceBillingPeriod' => array( 475 145 'Title' => 'Platební období', … … 502 172 ), 503 173 ), 504 'Member' => array(505 'Title' => 'Zákazníci',506 'Table' => 'Member',507 'DefaultSortColumn' => 'Name',508 'Items' => array(509 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),510 'ResponsibleUser' => array('Type' => 'TUser', 'Caption' => 'Zodpovědný uživatel', 'Default' => ''),511 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''),512 'FamilyMemberCount' => array('Type' => 'String', 'Caption' => 'Osob v domácnosti', 'Default' => '0', 'Suffix' => 'osob'),513 'MembershipDate' => array('Type' => 'Date', 'Caption' => 'Datum členství', 'Default' => ''),514 'BillingPeriod' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Fakturační období aktuální', 'Default' => ''),515 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Fakturační období příští', 'Default' => ''),516 'BillingPeriodLastDate' => array('Type' => 'Date', 'Caption' => 'Datum poslední fakturace', 'Default' => ''),517 'NetworkSegment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Úsek sítě', 'Default' => '', 'Null' => true),518 'Blocked' => array('Type' => 'Boolean', 'Caption' => 'Blokování', 'Default' => '0'),519 'PayDay' => array('Type' => 'Integer', 'Caption' => 'Den placení', 'Default' => '0', 'Suffix' => 'den'),520 'Devices' => array('Type' => 'TDeviceList', 'Caption' => 'Registrovaná zařízení', 'Default' => ''),521 'UserRel' => array('Type' => 'TUserCustomerRelListCustomer', 'Caption' => 'Přiřazení uživatelé', 'Default' => ''),522 'ServiceRel' => array('Type' => 'TServiceCustomerRelListCustomer', 'Caption' => 'Placené služby', 'Default' => ''),523 ),524 ),525 'FinanceTreasury' => array(526 'Title' => 'Pokladny',527 'Table' => 'FinanceTreasury',528 'DefaultSortColumn' => 'Name',529 'Items' => array(530 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),531 'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''),532 ),533 ),534 'FinanceBankAccount' => array(535 'Title' => 'Účty',536 'Table' => 'FinanceBankAccount',537 'DefaultSortColumn' => 'Comment',538 'Items' => array(539 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Vlastník', 'Default' => ''),540 'Comment' => array('Type' => 'String', 'Caption' => 'Komentář', 'Default' => ''),541 'Number' => array('Type' => 'String', 'Caption' => 'Číslo', 'Default' => ''),542 'Bank' => array('Type' => 'TFinanceBank', 'Caption' => 'Banka', 'Default' => ''),543 'TimeCreate' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''),544 'TimeEnd' => array('Type' => 'Date', 'Caption' => 'Čas zrušení', 'Default' => ''),545 'Currency' => array('Type' => 'TCurrency', 'Caption' => 'Měna', 'Default' => ''),546 'LoginName' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno / token', 'Default' => ''),547 'LoginPassword' => array('Type' => 'String', 'Caption' => 'Přihlašovací heslo', 'Default' => ''),548 'Operations' => array('Type' => 'TFinanceOperationListAccount', 'Caption' => 'Operace', 'Default' => ''),549 ),550 'ItemActions' => array(551 array('Caption' => 'Import plateb z banky', 'URL' => '/finance/import-api/?'),552 array('Caption' => 'Import plateb ze souboru', 'URL' => '/finance/import-soubor/?'),553 ),554 ),555 174 'Country' => array( 556 175 'Title' => 'Země', … … 559 178 'Items' => array( 560 179 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 561 ),562 ),563 'User' => array(564 'Title' => 'Uživatelé',565 'Table' => 'User',566 'DefaultSortColumn' => 'Name',567 'Items' => array(568 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),569 'Name' => array('Type' => 'String', 'Caption' => 'Celé jméno', 'Default' => ''),570 'Salt' => array('Type' => 'RandomHash', 'Caption' => 'Sůl', 'Default' => ''),571 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => '', 'Method' => 'DoubleSHA1'),572 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),573 'LastIpAddress' => array('Type' => 'String', 'Caption' => 'Poslední IP adresa', 'Default' => '', 'ReadOnly' => true),574 'LastLoginTime' => array('Type' => 'DateTime', 'Caption' => 'Poslední čas přihlášení', 'Default' => '', 'ReadOnly' => true),575 'RegistrationTime' => array('Type' => 'DateTime', 'Caption' => 'Čas registrace', 'Default' => ''),576 'Locked' => array('Type' => 'Boolean', 'Caption' => 'Uzamčen', 'Default' => ''),577 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),578 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefon', 'Default' => ''),579 'UserRel' => array('Type' => 'TUserCustomerRelListUser', 'Caption' => 'Přístup k zákazníkům', 'Default' => ''),580 'Permission' => array('Type' => 'TPermissionUserAssignmentListUser', 'Caption' => 'Oprávnění', 'Default' => ''),581 ),582 ),583 'Subject' => array(584 'Title' => 'Subjekty',585 'Table' => 'Subject',586 'DefaultSortColumn' => 'Name',587 'Items' => array(588 'Id' => array('Type' => 'Integer', 'Caption' => 'Identifikace', 'Default' => '', 'ReadOnly' => true),589 'Name' => array('Type' => 'String', 'Caption' => 'Celé jméno', 'Default' => ''),590 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => ''),591 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => ''),592 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => ''),593 'AddressCountry' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => ''),594 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''),595 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),596 'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '', 'Null' => true),597 'WWW' => array('Type' => 'Hyperlink', 'Caption' => 'WWW', 'Default' => ''),598 'Note' => array('Type' => 'String', 'Caption' => 'Poznámka', 'Default' => ''),599 'Customer' => array('Type' => 'TMemberListSubject', 'Caption' => 'Členové', 'Default' => ''),600 'Operations' => array('Type' => 'TFinanceOperationListSubject', 'Caption' => 'Platby', 'Default' => ''),601 'Invoices' => array('Type' => 'TFinanceInvoiceListSubject', 'Caption' => 'Faktury', 'Default' => ''),602 ),603 ),604 'NetworkDomainAlias' => array(605 'Title' => 'Alias domény',606 'Table' => 'NetworkDomainAlias',607 'Items' => array(608 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),609 'Target' => array('Type' => 'String', 'Caption' => 'Cíl', 'Default' => ''),610 'Comment' => array('Type' => 'String', 'Caption' => 'Komentář', 'Default' => ''),611 ),612 ),613 'NetworkDevice' => array(614 'Title' => 'Síťové zařízení',615 'Table' => 'NetworkDevice',616 'Items' => array(617 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),618 'Type' => array('Type' => 'TNetworkDeviceType', 'Caption' => 'Typ', 'Default' => '0'),619 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '0'),620 'Location' => array('Type' => 'TMember', 'Caption' => 'Umístění', 'Default' => '0'),621 'Service' => array('Type' => 'TServiceCustomerRel', 'Caption' => 'Služba', 'Default' => '', 'Null' => true),622 'Used' => array('Type' => 'Boolean', 'Caption' => 'Použito', 'Default' => '1'),623 'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),624 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),625 'PermanentOnline' => array('Type' => 'Boolean', 'Caption' => 'Běží stále', 'Default' => '0'),626 'Interfaces' => array('Type' => 'TInterfaceList', 'Caption' => 'Rozhraní', 'Default' => ''),627 'MapPosition' => array('Type' => 'TMapPosition', 'Caption' => 'Pozice na mapě', 'Default' => '0'),628 ),629 'Actions' => array(630 array('Caption' => 'Dostupnost zařízení', 'URL' => '/network/availability/'),631 ),632 ),633 'NetworkDeviceType' => array(634 'Title' => 'Typ síťového zařízení',635 'Table' => 'NetworkDeviceType',636 'Items' => array(637 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),638 'ShowOnline' => array('Type' => 'Boolean', 'Caption' => 'Ukázat online', 'Default' => '0'),639 'IconName' => array('Type' => 'String', 'Caption' => 'Jméno ikony', 'Default' => '0'),640 ),641 ),642 'NetworkInterface' => array(643 'Title' => 'Síťové rozhraní',644 'Table' => 'NetworkInterface',645 'Items' => array(646 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),647 'Type' => array('Type' => 'TNetworkInterfaceType', 'Caption' => 'Typ', 'Default' => '0'),648 'MAC' => array('Type' => 'String', 'Caption' => 'Fyzická adresa (MAC)', 'Default' => ''),649 'LocalIP' => array('Type' => 'String', 'Caption' => 'IPv4', 'Default' => ''),650 'IPv6' => array('Type' => 'String', 'Caption' => 'IPv6', 'Default' => ''),651 'ExternalIP' => array('Type' => 'String', 'Caption' => 'Veřejná IPv4', 'Default' => ''),652 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => ''),653 'Online' => array('Type' => 'Boolean', 'Caption' => 'Běží', 'Default' => '0', 'ReadOnly' => true),654 'LastOnline' => array('Type' => 'DateTime', 'Caption' => 'Naposledy běželo', 'Default' => '', 'ReadOnly' => true),655 'Links1' => array('Type' => 'TNetworkLinkListInterface1', 'Caption' => 'Propojení 1', 'Default' => ''),656 'Links2' => array('Type' => 'TNetworkLinkListInterface2', 'Caption' => 'Propojení 2', 'Default' => ''),657 ),658 ),659 'NetworkInterfaceType' => array(660 'Title' => 'Typ síťového rozhraní',661 'Table' => 'NetworkInterfaceType',662 'Items' => array(663 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),664 'MaxSpeed' => array('Type' => 'Integer', 'Caption' => 'Max. rychlost', 'Default' => '0', 'Suffix' => 'Mbit/s'),665 'FullDuplex' => array('Type' => 'Boolean', 'Caption' => 'Plně duplexní', 'Default' => '0'),666 'Color' => array('Type' => 'Color', 'Caption' => 'Barva', 'Default' => '0'),667 ),668 ),669 'NetworkSubnet' => array(670 'Title' => 'Podsítě',671 'DefaultSortColumn' => 'Name',672 'Table' => 'NetworkSubnet',673 'Items' => array(674 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),675 'AddressRange' => array('Type' => 'String', 'Caption' => 'Rozsah adres', 'Default' => ''),676 'Mask' => array('Type' => 'Integer', 'Caption' => 'Prefix', 'Default' => ''),677 'DHCP' => array('Type' => 'String', 'Caption' => 'DHCP', 'Default' => ''),678 'Gateway' => array('Type' => 'String', 'Caption' => 'Brána', 'Default' => ''),679 'WINS' => array('Type' => 'String', 'Caption' => 'WINS', 'Default' => ''),680 'DNS' => array('Type' => 'String', 'Caption' => 'DNS', 'Default' => ''),681 'Domain' => array('Type' => 'String', 'Caption' => 'Doména', 'Default' => ''),682 'NTP' => array('Type' => 'String', 'Caption' => 'NTP', 'Default' => ''),683 'Member' => array('Type' => 'TMember', 'Caption' => 'Zákazník', 'Default' => '', 'Null' => true),684 'ExtAddressRange' => array('Type' => 'String', 'Caption' => 'Vnější rozsah adres', 'Default' => ''),685 'ExtMask' => array('Type' => 'String', 'Caption' => 'Vnější prefix', 'Default' => ''),686 'AddressRangeIPv6' => array('Type' => 'String', 'Caption' => 'Rozsah adres IPv6', 'Default' => ''),687 'Configure' => array('Type' => 'Boolean', 'Caption' => 'Nastavovat', 'Default' => ''),688 ),689 ),690 'MapPosition' => array(691 'Title' => 'Pozice na mapě',692 'Table' => 'MapPosition',693 'Items' => array(694 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),695 'Latitude' => array('Type' => 'Float', 'Caption' => 'Zeměpisná šířka', 'Default' => '0'),696 'Longitude' => array('Type' => 'Float', 'Caption' => 'Zeměpisná výška', 'Default' => '0'),697 ),698 ),699 'NewPayment' => array(700 'Title' => 'Nová platba',701 'Items' => array(702 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => 3),703 'Time' => array('Type' => 'Date', 'Caption' => 'Čas', 'Default' => 'Now'),704 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),705 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0', 'Suffix' => 'Kč'),706 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Vklad'),707 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotovost', 'Default' => '0'),708 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Ovlivňující daňový základ', 'Default' => '1'),709 //'BankAccount' => array('Type' => 'TBankAccount', 'Caption' => 'Bankovní účet', 'Default' => '1'),710 ),711 ),712 'NewInvoice' => array(713 'Title' => 'Nová faktura',714 'Items' => array(715 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => 5),716 'TimeCreation' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => 'Now'),717 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Čas splatnosti', 'Default' => 'Now'),718 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),719 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Nákup zařízení'),720 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0', 'Suffix' => 'Kč'),721 //'Items' => array('Type' => 'Array', 'Caption' => 'Položky', 'ItemClass' => 'FinanceInvoiceItem'),722 ),723 ),724 'FinanceOperation' => array(725 'Title' => 'Finanční operace',726 'Table' => 'FinanceOperation',727 'DefaultSortColumn' => 'Time',728 'Items' => array(729 'Time' => array('Type' => 'Date', 'Caption' => 'Čas realizace', 'Default' => ''),730 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''),731 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotově', 'Default' => ''),732 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Zdanitelné', 'Default' => ''),733 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'),734 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''),735 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => ''),736 'Network' => array('Type' => 'Boolean', 'Caption' => 'Týkající sítě', 'Default' => ''),737 'BankAccount' => array('Type' => 'TFinanceBankAccount', 'Caption' => 'Účet', 'Default' => '', 'Null' => true),738 'Treasury' => array('Type' => 'TFinanceTreasury', 'Caption' => 'Pokladna', 'Default' => '', 'Null' => true),739 ),740 ),741 'FinanceInvoice' => array(742 'Title' => 'Faktury',743 'Table' => 'FinanceInvoice',744 'DefaultSortColumn' => 'TimeCreation',745 'Items' => array(746 'BillCode' => array('Type' => 'String', 'Caption' => 'Označení', 'Default' => ''),747 'Subject' => array('Type' => 'TSubject', 'Caption' => 'Subjekt', 'Default' => ''),748 'TimeCreation' => array('Type' => 'Date', 'Caption' => 'Čas vytvoření', 'Default' => ''),749 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Čas splatnosti', 'Default' => ''),750 'TimePayment' => array('Type' => 'Date', 'Caption' => 'Čas zaplacení', 'Default' => ''),751 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'),752 'File' => array('Type' => 'TFile', 'Caption' => 'Doklad', 'Default' => '', 'Null' => true),753 'Items' => array('Type' => 'TFinanceInvoiceItemListInvoice', 'Caption' => 'Položky', 'Default' => ''),754 ),755 ),756 'FinanceInvoiceItem' => array(757 'Title' => 'Položka faktury',758 'Table' => 'FinanceInvoiceItem',759 'Items' => array(760 'FinanceInvoice' => array('Type' => 'TFinanceInvoice', 'Caption' => 'Faktura', 'Default' => '0'),761 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'),762 'Price' => array('Type' => 'Float', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'),763 'Quantity' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'),764 'VAT' => array('Type' => 'Integer', 'Caption' => 'Daň', 'Default' => '19', 'Suffix' => '%'),765 ),766 ),767 'Measure' => array(768 'Title' => 'Měření',769 'Table' => 'Measure',770 'Items' => array(771 'Name' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => 'measure'),772 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'Měření'),773 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Měření veličiny'),774 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''),775 'Continuity' => array('Type' => 'Boolean', 'Caption' => 'Spojitost', 'Default' => '0'),776 'Period' => array('Type' => 'Integer', 'Caption' => 'Perioda měření', 'Default' => '60'),777 'PermissionAdd' => array('Type' => 'String', 'Caption' => 'Oprávnění k měření', 'Default' => 'localhost.localdomain'),778 'PermissionView' => array('Type' => 'String', 'Caption' => 'Oprávnění k prohlížení', 'Default' => 'all'),779 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => '1'),780 'DataType' => array('Type' => 'String', 'Caption' => 'Typ datových položek', 'Default' => 'int'),781 'DataTable' => array('Type' => 'String', 'Caption' => 'Tabulka měřených dat', 'Default' => 'data'),782 ),783 ),784 'UserOptions' => array(785 'Title' => 'Základní nastavení',786 'Table' => 'User',787 'SubmitText' => 'Uložit',788 'Items' => array(789 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),790 'Salt' => array('Type' => 'RandomHash', 'Caption' => 'Sůl', 'Default' => ''),791 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),792 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),793 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),794 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),795 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),796 ),797 ),798 'UserRegister' => array(799 'Title' => 'Registrace uživatele',800 'SubmitText' => 'Registrovat',801 'Table' => 'User',802 'Items' => array(803 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),804 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),805 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),806 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),807 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),808 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),809 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),810 ),811 ),812 'MemberOptions' => array(813 'Title' => 'Nastavení domácnosti',814 '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)',815 'Items' => array(816 'Name' => array('Type' => 'String', 'Caption' => 'Fakturační jméno', 'Default' => ''),817 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => 'Zděchov'),818 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => 'Zděchov'),819 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => '75607'),820 'AddressCountry' => array('Type' => 'TCountry', 'Caption' => 'Země', 'Default' => '1'),821 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''),822 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),823 'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => '', 'Suffix' => 'osob'),824 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''),825 ),826 ),827 'PasswordRecovery' => array(828 'Title' => 'Obnova hesla',829 'SubmitText' => 'Obnovit',830 'Table' => '',831 'Items' => array(832 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),833 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),834 ),835 ),836 'UserLogin' => array(837 'Title' => 'Přihlášení uživatele',838 'SubmitText' => 'Přihlásit',839 'Table' => '',840 'Items' => array(841 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),842 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),843 180 ), 844 181 ), … … 871 208 ), 872 209 ), 873 'News' => array(874 'Title' => 'Nová aktualita',875 'Table' => 'News',876 'Items' => array(877 'Category' => array('Type' => 'TNewsCategory', 'Caption' => 'Kategorie', 'Default' => 0),878 'Title' => array('Type' => 'String', 'Caption' => 'Nadpis', 'Default' => ''),879 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''),880 'Date' => array('Type' => 'Date', 'Caption' => 'Datum', 'Default' => ''),881 'Author' => array('Type' => 'String', 'Caption' => 'Autor', 'Default' => ''),882 'Enclosure' => array('Type' => 'String', 'Caption' => 'Přílohy', 'Default' => ''),883 'User' => array('Type' => 'TUser', 'Caption' => 'Uživatel', 'Default' => ''),884 'IP' => array('Type' => 'String', 'Caption' => 'IP adresa', 'Default' => '', 'ReadOnly' => true),885 'Link' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''),886 ),887 ),888 'NewsCategory' => array(889 'Title' => 'Kategorie aktualit',890 'Table' => 'NewsCategory',891 'Items' => array(892 'Caption' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''),893 'RSS' => array('Type' => 'Hyperlink', 'Caption' => 'Zdroj RSS', 'Default' => ''),894 'Permission' => array('Type' => 'Boolean', 'Caption' => 'Veřejné upravitelné', 'Default' => ''),895 'Sequence' => array('Type' => 'Integer', 'Caption' => 'Pořadí', 'Default' => ''),896 'Group' => array('Type' => 'Integer', 'Caption' => 'Skupina', 'Default' => ''),897 ),898 ),899 210 'Email' => array( 900 211 'Title' => 'Nový email', -
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.