Changeset 71 for trunk/Pages/UUserControlPage.pas
- Timestamp:
- Feb 11, 2012, 10:43:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Pages/UUserControlPage.pas
r69 r71 170 170 171 171 procedure TUserControlPage.HandleProfile(HandlerData: THTTPHandlerData); 172 begin 173 172 var 173 Form: TQueryForm; 174 begin 175 with MainModule, HtmlDocument.Body do begin 176 Form := TQueryForm.Create; 177 with Form do begin 178 Title := 'Nastavení profilu'; 179 ClassId := 'WideTable'; 180 with AddNewGroup do begin 181 Title := ''; 182 with AddNewItem do begin 183 Caption := 'Jméno'; 184 Name := 'UserName'; 185 Hint := 'Zadejte vaše přihlašovací jméno'; 186 Required := True; 187 end; 188 with AddNewItem do begin 189 Caption := 'Heslo'; 190 Name := 'Password'; 191 Hint := 'Zadejte vaše heslo'; 192 Required := True; 193 ItemType := fitPassword; 194 end; 195 with AddNewItem do begin 196 Caption := 'Email'; 197 Name := 'Email'; 198 Hint := 'Zadejte vaši emailovou adresu'; 199 Required := True; 200 ItemType := fitText; 201 end; 202 with AddNewItem do begin 203 Caption := 'Celé jméno'; 204 Name := 'FullName'; 205 Hint := 'Zadejte vaše celé jméno'; 206 Required := False; 207 ItemType := fitText; 208 end; 209 end; 210 with AddNewAction do begin 211 Caption := 'Uložit'; 212 Action := 'Save'; 213 end; 214 end; 215 if HandlerData.Request.Post.IndexOfName('Save') <> -1 then 216 with HandlerData.Request do begin 217 Form.Load(HandlerData.Request.Post); 218 with THtmlString(SubItems.AddNew(THtmlString.Create)) do 219 Text := 'Profil uživatele: ' + TQueryFormGroup(Form.Groups[0]).Rows.FindByName('UserName').Value.Value + ' uložen'; 220 Form.Free; 221 end else SubItems.AddNew(Form); 222 end; 174 223 end; 175 224
Note:
See TracChangeset
for help on using the changeset viewer.