Changeset 370 for trunk/Modules/Network/Network.php
- Timestamp:
- Jan 19, 2012, 12:30:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r366 r370 153 153 } 154 154 155 class EmailView extends View 156 { 157 function __construct() 158 { 159 $this->Name = 'NewEmail'; 160 $this->Title = 'Nový email'; 161 $this->SubmitText = 'Odeslat'; 162 AddItemString('Address', 'Adresa', ''); 163 AddItemString('Subject', 'Předmět', ''); 164 AddItemText('Content', 'Obsah', ''); 165 } 166 } 167 168 /*class NetworkDeviceView extends View 169 { 170 function __construct() 171 { 172 $this->Name = 'NetworkDevice'; 173 $ 174 'NewNetworkDevice' => array( 175 'Title' => 'Vložit nové zařízení', 176 'Table' => 'network_devices', 177 'Items' => array( 178 'name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 179 'price' => array('Type' => 'Float', 'Caption' => 'Cena', 'Default' => 0), 180 'count' => array('Type' => 'Integer', 'Caption' => 'Počet', 'Default' => 1), 181 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'), 182 'segment' => array('Type' => 'TNetworkSegment', 'Caption' => 'Segment sítě', 'Default' => 0), 183 'date' => array('Type' => 'Time', 'Caption' => 'Datum zakoupení', 'Default' => 'Now'), 184 'used' => array('Type' => 'TNetworkDeviceState', 'Caption' => 'Stav', 'Default' => 0), 185 'consumption' => array('Type' => 'Integer', 'Caption' => 'Spotřeba', 'Default' => 0), 186 'user' => array('Type' => 'TFinanceSubject', 'Caption' => 'Subjekt', 'Default' => 0), 187 'info' => array('Type' => 'String', 'Caption' => 'Poznámky', 'Default' => ''), 188 'shop' => array('Type' => 'String', 'Caption' => 'Obchod', 'Default' => ''), 189 'device_id' => array('Type' => 'String', 'Caption' => 'Sériové číslo', 'Default' => ''), 190 } 191 } 192 193 $FormClasses = array( 194 'NewNetworkDeviceHistory' => array( 195 'Title' => 'Vložit záznam historie zařízení', 196 'Table' => 'NetworkDeviceHistory', 197 'Items' => array( 198 'Device' => array('Type' => 'TNetworkDevice', 'Caption' => 'Zařízení', 'Default' => 0), 199 'Time' => array('Type' => 'Time', 'Caption' => 'Čas', 'Default' => 'Now'), 200 'Action' => array('Type' => 'TNetworkDeviceAction', 'Caption' => 'Akce', 'Default' => 0), 201 'Notice' => array('Type' => 'String', 'Caption' => 'Poznámka', 'Default' => ''), 202 ), 203 ), 204 ); 205 206 207 */ 208 209 155 210 class ModuleNetwork extends Module 156 211 {
Note:
See TracChangeset
for help on using the changeset viewer.