source: trunk/www/form_classes.php@ 10

Last change on this file since 10 was 10, checked in by george, 16 years ago
  • Upraveno: Použití vrstvy typového zobecnění práce s daty.
  • Opraveno: Umožnit editaci pouze vlastního serveru.
File size: 3.5 KB
Line 
1<?php
2
3$FormClasses = array(
4 'UserOptions' => array(
5 'Title' => 'Základní nastavení',
6 'Table' => 'User',
7 'SubmitText' => 'Uložit',
8 'Items' => array(
9 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
10 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
11 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
12 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
13 //'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
14 //'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
15 ),
16 ),
17 'UserRegister' => array(
18 'Title' => 'Registrace uživatele',
19 'SubmitText' => 'Registrovat',
20 'Table' => 'User',
21 'Items' => array(
22 'Login' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
23 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
24 'Password2' => array('Type' => 'Password', 'Caption' => 'Potvrzení hesla', 'Default' => ''),
25 'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
26 'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
27 //'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
28 //'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
29 ),
30 ),
31 'UserLogin' => array(
32 'Title' => 'Přihlášení uživatele',
33 'SubmitText' => 'Přihlásit',
34 'Table' => '',
35 'Items' => array(
36 'Username' => array('Type' => 'String', 'Caption' => 'Přihlašovací jméno', 'Default' => ''),
37 'Password' => array('Type' => 'Password', 'Caption' => 'Heslo', 'Default' => ''),
38 ),
39 ),
40 'NewServer' => array(
41 'Title' => 'Nový server',
42 'Table' => 'Server',
43 'SubmitText' => 'Registrovat',
44 'Items' => array(
45 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'),
46 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
47 'Homepage' => array('Type' => 'String', 'Caption' => 'Webové stránky', 'Default' => ''),
48 'Type' => array('Type' => 'TServerType', 'Caption' => 'Typ', 'Default' => 0),
49 'Database' => array('Type' => 'TDatabase', 'Caption' => 'Databáze', 'Default' => 0),
50 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
51 ),
52 ),
53 'EditServer' => array(
54 'Title' => 'Nastavení',
55 'Table' => 'Server',
56 'SubmitText' => 'Uložit',
57 'Items' => array(
58 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'),
59 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''),
60 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Webové stránky', 'Default' => ''),
61 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0),
62 'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0),
63 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'),
64 ),
65 ),
66);
67
68RegisterType('ServerType', 'Enumeration', array('Normální', 'PvP', 'RP', 'RPPvP'));
69//RegisterType('Database', 'PointerOneToOne', array('Table' => 'Database', 'Id' => 'Id', 'Name' => 'CONCAT(Name, " ", Version, " r", Revision)'));
70
71?>
Note: See TracBrowser for help on using the repository browser.