source: trunk/form_classes.php@ 266

Last change on this file since 266 was 219, checked in by george, 16 years ago
  • Přidáno: Podpora pro odesílání emailů o měsíčních platbách přes frontu emailů.
File size: 10.3 KB
Line 
1<?php
2
3$FormClasses = array(
4 'NewPayment' => array(
5 'Title' => 'Nová platba',
6 'Items' => array(
7 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
8 'Subject' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),
9 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0'),
10 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Přijatá záloha'),
11 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotovost', 'Default' => '1'),
12 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Ovlivňující daňový základ', 'Default' => '1'),
13 ),
14 ),
15 'NewInvoice' => array(
16 'Title' => 'Nová faktura',
17 'Items' => array(
18 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
19 'Contractor' => array('Type' => 'TFinanceSubject', 'Caption' => 'Dodavatel', 'Default' => 1),
20 'Customer' => array('Type' => 'TFinanceSubject', 'Caption' => 'Odběratel', 'Default' => 0),
21 'Items' => array('Type' => 'Array', 'Caption' => 'Položky', 'ItemClass' => 'FinanceInvoiceItem'),
22 ),
23 ),
24 'FinanceInvoiceItem' => array(
25 'Title' => 'Položka faktury',
26 'Items' => array(
27 'Value' => array('Type' => 'Float', 'Caption' => 'Částka [Kč]', 'Default' => '0'),
28 'Text' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Položka'),
29 'Quantity' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'),
30 'Tax' => array('Type' => 'Integer', 'Caption' => 'Daň [%]', 'Default' => '19'),
31 ),
32 ),
33 'Measure' => array(
34 'Title' => 'Měření',
35 'Table' => 'Measure',
36 'Items' => array(
37 'Name' => array('Type' => 'String', 'Caption' => 'Zkratka', 'Default' => 'measure'),
38 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'Měření'),
39 'Description' => array('Type' => 'String', 'Caption' => 'Popis', 'Default' => 'Měření veličiny'),
40 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''),
41 'Continuity' => array('Type' => 'Boolean', 'Caption' => 'Spojitost', 'Default' => '0'),
42 'Period' => array('Type' => 'Integer', 'Caption' => 'Perioda měření', 'Default' => '60'),
43 'PermissionAdd' => array('Type' => 'String', 'Caption' => 'Oprávnění k měření', 'Default' => 'localhost.localdomain'),
44 'PermissionView' => array('Type' => 'String', 'Caption' => 'Oprávnění k prohlížení', 'Default' => 'all'),
45 'Enabled' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => '1'),
46 'DataType' => array('Type' => 'String', 'Caption' => 'Typ datových položek', 'Default' => 'int'),
47 'DataTable' => array('Type' => 'String', 'Caption' => 'Tabulka měřených dat', 'Default' => 'data'),
48 ),
49 ),
50 'UserOptions' => array(
51 'Title' => 'Základní nastavení',
52 'Table' => 'User',
53 'SubmitText' => 'Uložit',
54 'Items' => array(
55 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
56 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
57 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
58 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
59 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
60 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
61 ),
62 ),
63 'UserRegister' => array(
64 'Title' => 'Registrace uživatele',
65 'SubmitText' => 'Registrovat',
66 'Table' => 'User',
67 'Items' => array(
68 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
69 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
70 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),
71 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
72 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
73 'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
74 'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
75 ),
76 ),
77 'MemberOptions' => array(
78 'Title' => 'Nastavení domácnosti',
79 'Table' => '(SELECT Member.Id, Member.InternetTariffNextMonth, Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject)',
80 'Items' => array(
81 'Name' => array('Type' => 'String', 'Caption' => 'Fakturační jméno', 'Default' => ''),
82 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => 'Zděchov'),
83 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => 'Zděchov'),
84 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => '75607'),
85 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''),
86 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''),
87 'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => ''),
88 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''),
89 'InternetTariffNextMonth' => array('Type' => 'TFinanceTariff', 'Caption' => 'Tarif internetu od dalšího období', 'Default' => 2),
90 ),
91 ),
92 'PasswordRecovery' => array(
93 'Title' => 'Obnova hesla',
94 'SubmitText' => 'Obnovit',
95 'Table' => '',
96 'Items' => array(
97 'Name' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
98 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
99 ),
100 ),
101 'UserLogin' => array(
102 'Title' => 'Přihlášení uživatele',
103 'SubmitText' => 'Přihlásit',
104 'Table' => '',
105 'Items' => array(
106 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
107 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
108 ),
109 ),
110 'NewNetworkDevice' => array(
111 'Title' => 'Vložit nové zařízení',
112 'Table' => 'network_devices',
113 'Items' => array(
114 'name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),
115 'price' => array('Type' => 'Float', 'Caption' => 'Cena', 'Default' => 0),
116 'count' => array('Type' => 'Integer', 'Caption' => 'Počet', 'Default' => 1),
117 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'),
118 'segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Segment sítě', 'Default' => 0),
119 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'),
120 'used' => array('Type' => 'TNetworkDeviceState', 'Caption' => 'Stav', 'Default' => 0),
121 'consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => 0),
122 'user' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0),
123 'info' => array('Type' => 'String', 'Caption' => 'Poznámky', 'Default' => ''),
124 'shop' => array('Type' => 'String', 'Caption' => 'Obchod', 'Default' => ''),
125 'device_id' => array('Type' => 'String', 'Caption' => 'Sériové číslo', 'Default' => ''),
126 ),
127 ),
128 'NewNetworkDeviceHistory' => array(
129 'Title' => 'Vložit záznam historie zařízení',
130 'Table' => 'NetworkDeviceHistory',
131 'Items' => array(
132 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => 0),
133 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'),
134 'Action' => array('Type' => 'TNetworkDeviceAction', 'Caption' => 'Akce', 'Default' => 0),
135 'Notice' => array('Type' => 'String', 'Caption' => 'Poznámka', 'Default' => ''),
136 ),
137 ),
138 'News' => array(
139 'Title' => 'Nová aktualita',
140 'Table' => '',
141 'SubmitText' => 'Vložit',
142 'Items' => array(
143 'Category' => array('Type' => 'TNewsCategory', 'Caption' => 'Kategorie', 'Default' => 0),
144 'Title' => array('Type' => 'String', 'Caption' => 'Nadpis', 'Default' => ''),
145 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''),
146 'Enclosure1' => array('Type' => 'File', 'Caption' => 'Přílohy (Max. velikost souboru 1 MB)', 'Default' => ''),
147 'Enclosure2' => array('Type' => 'File', 'Caption' => '', 'Default' => ''),
148 'Enclosure3' => array('Type' => 'File', 'Caption' => '', 'Default' => ''),
149 ),
150 ),
151 'Email' => array(
152 'Title' => 'Nový email',
153 'Table' => 'EmailQueue',
154 'SubmitText' => 'Odeslat',
155 'Items' => array(
156 'Address' => array('Type' => 'String', 'Caption' => 'Adresa', 'Default' => ''),
157 'Subject' => array('Type' => 'String', 'Caption' => 'Předmět', 'Default' => ''),
158 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''),
159 ),
160 ),
161);
162
163$FormTypes = array(
164 'TNetworkDeviceState' => array(
165 'Type' => 'Enumeration',
166 'States' => array('Vyřazeno', 'Použito', 'Na skladě'),
167 ),
168 'TNetworkDeviceAction' => array(
169 'Type' => 'Enumeration',
170 'States' => array('Zakoupeno', 'Prodáno', 'Zařazeno do použití', 'Vyřazeno z použití', 'Zasláno do reklamace', 'Přijato z reklamace'),
171 ),
172 'TFinanceTariff' => array(
173 'Type' => 'Enumeration',
174 'States' => array(6 => 'Zdarma', 0 => 'Pomalejší', 1 => 'Pomalý', 2 => 'Střední', 3 => 'Rychlý', 4 => 'Rychlejší'),
175 ),
176 'TFinanceBillingPeriod' => array(
177 'Type' => 'Enumeration',
178 'States' => array(2 => 'Měsíčně', 3 => 'Čtvrtletně', 4 => 'Pololetně', 5 => 'Ročně'),
179 ),
180 'TFinanceSubject' => array(
181 'Type' => 'Reference',
182 'Table' => 'Subject',
183 'Id' => 'Id',
184 'Name' => 'Name',
185 'Filter' => '1',
186 ),
187 'TNetworkDevice' => array(
188 'Type' => 'Reference',
189 'Table' => 'network_devices',
190 'Id' => 'id',
191 'Name' => 'name',
192 'Filter' => '1',
193 ),
194 'TNetworkSegment' => array(
195 'Type' => 'Reference',
196 'Table' => 'network_segments',
197 'Id' => 'id',
198 'Name' => 'name',
199 'Filter' => '1',
200 ),
201 'TNewsCategory' => array(
202 'Type' => 'Reference',
203 'Table' => 'NewsCategory',
204 'Id' => 'Id',
205 'Name' => 'Caption',
206 'Filter' => '1',
207 ),
208);
209
210?>
Note: See TracBrowser for help on using the repository browser.