Changeset 138 for devel/web/UNewsPage.pas
- Timestamp:
- Jan 15, 2009, 9:57:44 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/web/UNewsPage.pas
r137 r138 6 6 7 7 function NewsShowItemPage: string; 8 8 function NewsShowListPage: string; 9 function RSSChannel: string; 10 9 11 implementation 10 12 11 13 uses 12 USqlDatabase, UCore, UHtmlClasses, SysUtils, pwmain, UNews; 14 USqlDatabase, UCore, SysUtils, pwmain, UNews; 15 16 function NewsChannelSelection: string; 17 begin 18 Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality'); 19 Result := Result + ShowFooter; 20 end; 21 22 function RSSChannel: string; 23 begin 24 // Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality'); 25 Result := GenerateRSS; 26 // Result := Result + ShowFooter; 27 end; 13 28 14 29 function NewsShowItemPage: string; … … 26 41 Result := Result + '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; ' + 27 42 'padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1; border-bottom-style: ' + 28 'solid; border-bottom-color: silver;"><strong>' + NewsItem.Title + ' (' + DateToStr(NewsItem. Date) + ', ' + NewsItem.Author + ')</strong>';43 'solid; border-bottom-color: silver;"><strong>' + NewsItem.Title + ' (' + DateToStr(NewsItem.Time) + ', ' + NewsItem.Author + ')</strong>'; 29 44 (* if($this->System->Modules['User']->User['Id'] == $Row['User']) 30 45 { … … 79 94 Result := Result + '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; padding: 0px 5px 5px 5px;"><div style="padding-bottom: 1px; border-bottom-width: 1;' + 80 95 'border-bottom-style: solid; border-bottom-color: silver;"><strong><a href="?p=news-item&id=' + 81 IntToStr(NewsItem.Id) + '">' + NewsItem.Title + '</a> (' + DateToStr(NewsItem. Date) + ', ' + NewsItem.Author + ')</strong>';96 IntToStr(NewsItem.Id) + '">' + NewsItem.Title + '</a> (' + DateToStr(NewsItem.Time) + ', ' + NewsItem.Author + ')</strong>'; 82 97 (* 83 98 if($this->System->Modules['User']->User['Id'] == $Row['User']) … … 111 126 RegisterPage('news-item', @NewsShowItemPage); 112 127 RegisterPage('news-list', @NewsShowListPage); 128 RegisterPage('news-rss', @RSSChannel); 129 RegisterPage('news-selection', @NewsChannelSelection); 113 130 114 131 end.
Note:
See TracChangeset
for help on using the changeset viewer.