Ignore:
Timestamp:
Jan 15, 2009, 9:57:44 PM (16 years ago)
Author:
george
Message:
  • Přidáno: Zobrazení RSS kanálu aktualit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/web/UNewsPage.pas

    r137 r138  
    66
    77function NewsShowItemPage: string;
    8  
     8function NewsShowListPage: string;
     9function RSSChannel: string;
     10
    911implementation
    1012
    1113uses
    12   USqlDatabase, UCore, UHtmlClasses, SysUtils, pwmain, UNews;
     14  USqlDatabase, UCore, SysUtils, pwmain, UNews;
     15
     16function NewsChannelSelection: string;
     17begin
     18  Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality');
     19  Result := Result + ShowFooter;
     20end;
     21
     22function RSSChannel: string;
     23begin
     24//  Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality');
     25  Result := GenerateRSS;
     26//  Result := Result + ShowFooter;
     27end;
    1328
    1429function NewsShowItemPage: string;
     
    2641    Result := Result + '<div style="border: thin dotted #97ADFF; background: #F6F7FF; margin-top: 5px; ' +
    2742          '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>';
    2944(*            if($this->System->Modules['User']->User['Id'] == $Row['User'])
    3045            {
     
    7994        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;' +
    8095         'border-bottom-style: solid; border-bottom-color: silver;"><strong><a href="?p=news-item&amp;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>';
    8297      (*
    8398          if($this->System->Modules['User']->User['Id'] == $Row['User'])
     
    111126RegisterPage('news-item', @NewsShowItemPage);   
    112127RegisterPage('news-list', @NewsShowListPage);   
     128RegisterPage('news-rss', @RSSChannel);
     129RegisterPage('news-selection', @NewsChannelSelection);
    113130
    114131end.
Note: See TracChangeset for help on using the changeset viewer.