Changeset 66 for trunk/Pages/UUserControlPage.pas
- Timestamp:
- Dec 20, 2011, 9:37:35 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UUserControlPage.pas
r65 r66 42 42 if HandlerData.Request.QueryParts.Count > 1 then PageName := HandlerData.Request.QueryParts[1] 43 43 else PageName := ''; 44 with MainModule, HtmlDocument.Body , THtmlString(SubItems.AddNew(THtmlString.Create))do begin45 PageName := 'prihlaseni';44 with MainModule, HtmlDocument.Body do begin 45 if PageName = '' then PageName := 'prihlaseni'; 46 46 if PageName = 'prihlaseni' then begin 47 Text := 'Login'; 48 with HtmlDocument.Body, TQueryForm(SubItems.AddNew(TQueryForm.Create)) do begin 47 with TQueryForm(SubItems.AddNew(TQueryForm.Create)) do begin 49 48 Title := 'Přihlášení'; 50 ClassId := ' Form';51 with TQueryFormGroup(Groups.AddNew(TQueryFormGroup.Create))do begin52 Title := ' Základní údaje';53 with TQueryFormItem(Rows.AddNew(TQueryFormItem.Create))do begin49 ClassId := 'WideTable'; 50 with AddNewGroup do begin 51 Title := ''; 52 with AddNewItem do begin 54 53 Caption := 'Jméno'; 55 54 Hint := 'Zadejte vaše přihlašovací jméno'; 56 55 Required := True; 57 56 end; 58 with TQueryFormItem(Rows.AddNew(TQueryFormItem.Create))do begin57 with AddNewItem do begin 59 58 Caption := 'Heslo'; 60 59 Hint := 'Zadejte vaše heslo'; … … 63 62 end; 64 63 end; 64 with AddNewAction do 65 Name := 'Přihlásit'; 65 66 end; 66 end else Text := ''; 67 end else 68 if PageName = 'registrace' then begin 69 with TQueryForm(SubItems.AddNew(TQueryForm.Create)) do begin 70 Title := 'Registrace nového účtu'; 71 ClassId := 'WideTable'; 72 with AddNewGroup do begin 73 Title := ''; 74 with AddNewItem do begin 75 Caption := 'Jméno'; 76 Hint := 'Zadejte vaše přihlašovací jméno'; 77 Required := True; 78 end; 79 with AddNewItem do begin 80 Caption := 'Email'; 81 Hint := 'Zadejte vaši elektronickou poštovní schránku'; 82 Required := True; 83 end; 84 with AddNewItem do begin 85 Caption := 'Heslo'; 86 Hint := 'Zadejte vaše heslo'; 87 Required := True; 88 ItemType := fitPassword; 89 end; 90 with AddNewItem do begin 91 Caption := 'Ověření hesla'; 92 Hint := 'Zadejte znovu vaše heslo pro ověření'; 93 Required := True; 94 ItemType := fitPassword; 95 end; 96 end; 97 with AddNewAction do 98 Name := 'Registrovat'; 99 end; 100 end; 67 101 end; 68 102 MainModule.GeneratePage(HandlerData, Self);
Note:
See TracChangeset
for help on using the changeset viewer.