Changeset 279 for branches/web/UNews.pas
- Timestamp:
- Mar 5, 2010, 8:52:50 PM (15 years ago)
- Location:
- branches/web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/web
- Property svn:ignore
-
old new 3 3 *.o 4 4 backup 5 6 5 index.cgi 7 8 6 index.compiled 9 10 7 UConfig.pas 8 bin
-
- Property svn:ignore
-
branches/web/UNews.pas
r158 r279 16 16 Title: string; 17 17 Permission: Integer; 18 procedure LoadFromDbRecord(DbRow: TAssoc Array);18 procedure LoadFromDbRecord(DbRow: TAssociativeArray); 19 19 procedure Store; 20 20 end; … … 30 30 IPAddress: string; 31 31 Category: Integer; 32 procedure LoadFromDbRecord(DbRow: TAssoc Array);32 procedure LoadFromDbRecord(DbRow: TAssociativeArray); 33 33 procedure Store; 34 34 end; … … 49 49 50 50 uses 51 URSS, pwmain,dateutils;51 URSS, dateutils; 52 52 53 53 { TNewsItem } 54 54 55 procedure TNewsItem.LoadFromDbRecord(DbRow: TAssoc Array);55 procedure TNewsItem.LoadFromDbRecord(DbRow: TAssociativeArray); 56 56 begin 57 57 Id := StrToInt(DbRow.Values['id']); … … 66 66 procedure TNewsItem.Store; 67 67 var 68 Values: TAssoc Array;69 begin 70 Values := TAssoc Array.Create;68 Values: TAssociativeArray; 69 begin 70 Values := TAssociativeArray.Create; 71 71 Values.AddKeyValue('content', Content); 72 72 Values.AddKeyValue('title', Title); … … 112 112 *) 113 113 114 if GetCgiVar('select') = '' then Select := '' else Select := GetCgiVar('select');114 //if GetCgiVar('select') = '' then Select := '' else Select := GetCgiVar('select'); 115 115 SelectParts := Explode('-', Select); 116 116 Where := ''; … … 182 182 { TNewsCategory } 183 183 184 procedure TNewsCategory.LoadFromDbRecord(DbRow: TAssoc Array);184 procedure TNewsCategory.LoadFromDbRecord(DbRow: TAssociativeArray); 185 185 begin 186 186 Id := StrToInt(DbRow.Values['id']); … … 191 191 procedure TNewsCategory.Store; 192 192 var 193 Values: TAssoc Array;194 begin 195 Values := TAssoc Array.Create;193 Values: TAssociativeArray; 194 begin 195 Values := TAssociativeArray.Create; 196 196 Values.AddKeyValue('permission', IntToStr(Permission)); 197 197 Values.AddKeyValue('title', Title);
Note:
See TracChangeset
for help on using the changeset viewer.