Changeset 158 for devel/web/UFinancePage.pas
- Timestamp:
- Feb 18, 2009, 12:11:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/web/UFinancePage.pas
r138 r158 4 4 5 5 interface 6 7 uses 8 UDatabase, UConfig; 9 10 type 11 12 { TBaseObject } 13 14 TBaseObject = class(TDbObject) 15 private 16 FName: string; 17 published 18 property Name: string read FName write FName; 19 end; 6 20 7 21 function FinanceOverviewPage: string; … … 94 108 end; 95 109 110 function Test: string; 111 var 112 Base: TBaseObject; 113 begin 114 Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Finance'); 115 Base := TBaseObject.Create(nil); 116 Base.Database := TDatabase.Create; 117 Base.Database.Hostname := DatabaseHostname; 118 Base.Database.Database := 'centrala'; 119 Base.Database.UserName := DatabaseUserName; 120 Base.Database.Password := DatabasePassword; 121 Base.Database.Connect; 122 //Base.Store; 123 124 Result := Result + ShowFooter; 125 end; 126 127 { TBaseObject } 128 96 129 begin 97 130 RegisterPage('finance', @FinanceOverviewPage); 98 RegisterPage('finance-clenove', @FinanceClientList); 131 RegisterPage('finance-clenove', @FinanceClientList); 132 RegisterPage('test', @Test); 99 133 end.
Note:
See TracChangeset
for help on using the changeset viewer.