- Timestamp:
- Jan 16, 2009, 1:41:07 PM (16 years ago)
- Location:
- devel/web
- Files:
-
- 12 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/web
- Property svn:ignore
-
old new 7 7 8 8 index.compiled 9 10 UConfig.pas
-
- Property svn:ignore
-
devel/web/UCore.pas
r137 r139 36 36 37 37 uses 38 pwenvvar, pwmain, SysUtils ;38 pwenvvar, pwmain, SysUtils, UConfig; 39 39 40 40 procedure RegisterPage(Name: string; Producer: TPageProducer); … … 65 65 ' <title>Centrála - ' + Path + '</title>' + 66 66 ' </head><body>' + 67 '<div id="Title">' + Title + '</div>'+67 '<div class="PageTitle">' + Title + '</div>'+ 68 68 '<div class="Navigation"><strong>Navigace >></strong> ' + Navigace + '</div>'; 69 69 end; … … 76 76 UpdateDate := '2.5.2007'; 77 77 GenerateTime := '1 s'; 78 Result := '<div id="Footer">| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770 | Vygenerováno za ' + GenerateTime + ' s | Verze: 1.0 | Naposledy aktualizováno: ' + UpdateDate + ' |' +78 Result := '<div class="Footer">| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770 | Vygenerováno za ' + GenerateTime + ' s | Verze: 1.0 | Naposledy aktualizováno: ' + UpdateDate + ' |' + 79 79 '</div>'; 80 80 //ShowArray($GLOBALS); … … 117 117 Database := TSqlDatabase.Create; 118 118 with Database do begin 119 Hostname := 'localhost';120 Database := 'is';121 UserName := 'root';122 Password := 'severjih';119 Hostname := DatabaseHostName; 120 Database := DatabaseDatabase; 121 UserName := DatabaseUserName; 122 Password := DatabasePassword; 123 123 Connect; 124 124 end; -
devel/web/UMainPage.pas
r138 r139 10 10 11 11 uses 12 USqlDatabase, UCore, UHtmlClasses, SysUtils; 13 14 function ShowNews(Category: Integer): string; 15 var 16 DbRows: TDbRows; 17 Index: Integer; 18 FontSize: Integer; 19 I: Integer; 20 II: Integer; 21 Enclosures: TArrayOfString; 22 Content: string; 23 const 24 NewsCountPerCategory = 3; 25 // UploadedFilesFolder = 'aktuality/uploads/'; 26 begin 27 // global $NewsCategoryNames, $NewsCountPerCategory, $UploadedFilesFolder; 28 29 DbRows := Database.Select('news_category', '*', 'id=' + IntToStr(Category)); 30 31 Result := '<table class="MainTable"><tr>' + 32 '<td>' + DbRows[0].Values['caption'] + '</td><td align="right">'+ 33 '<a href="?p=news-list&category=' + IntToStr(Category) + '">Zobrazit všechny aktuality</a> '; 34 if StrToInt(DbRows[0].Values['permission']) = 1 then 35 Result := Result + '<a href="aktuality/index.php?action=add&category=' + IntToStr(Category) + '">Přidat aktualitu</a> '; 36 Result := Result + '</td></tr><tr><td colspan="2">'+ 37 '<table>'; 38 Index := 0; 39 FontSize := 12; 40 DbRows := Database.Select('news', '*', 'category=' + IntToStr(Category) + ' ORDER BY date DESC LIMIT 0,' + IntToStr(NewsCountPerCategory)); 41 for I := 0 to DbRows.Count - 1 do with DbRows[I] do begin 42 Content := Values['content']; 43 Content := StringReplace(Content, '<br>', '<br />', [rfReplaceAll]); 44 Result := Result + '<tr><td onmouseover="zobraz(''new' + IntToStr(Category) + '_' + IntToStr(I) + ''')" style="cursor: pointer; margin: 0px;"><table cellspacing="0" cellpadding="0" style="padding: 0px; margin: 0px; font-size: small; color: red;" width="100%">'+ 45 '<tr><td style="font-size: ' + IntToStr(FontSize) + 'pt"><strong>' + Values['title'] + '</strong></td>'+ 46 '<td align="right" style="font-size: ' + IntToStr(FontSize) + 'pt">' + Values['author'] + ' (' + HumanDate(Values['date']) + ')</td></tr></table>'+ 47 '<div id="new' + IntToStr(Category) + '_' + IntToStr(Index) + '" class="skryty" style="display: none; border-width: 1; border-style: solid; border-color: blue; padding: 3px; font-size: 9pt;">' + Content; 48 49 if Values['enclosure'] <> '' then begin 50 Result := Result + '<br />Přílohy: '; 51 Enclosures := Explode(';', Values['enclosure']); 52 for II := 0 to High(Enclosures) do begin 53 // if(file_exists($UploadedFilesFolder.$Enclosure)) echo(' <a href="'.$UploadedFilesFolder.$Enclosure.'">'.$Enclosure.'</a>') 54 end; 55 end; 56 Result := Result + '</div></td></tr>'; 57 Index := Index + 1; 58 FontSize := FontSize - 2; 59 end; 60 Result := Result + '</table></td></tr></table>'; 61 end; 12 USqlDatabase, UCore, SysUtils, UNews; 62 13 63 14 function MainPage: string; … … 66 17 DbRows: TDbRows; 67 18 I: Integer; 19 News: TNews; 68 20 begin 69 21 Output := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Rozcestník'); … … 132 84 '<div class="Panel">'; 133 85 134 // Zobrazení seznamu online po èítaèù86 // Zobrazení seznamu online počítačů 135 87 Output := Output + '<strong>Online počítače:</strong><br /><span style="font-size: smaller;">'; 136 88 DbRows := Database.Select('hosts', 'name', 'online=1 AND show_online=1 ORDER BY name'); … … 169 121 $Uptime = str_replace('day,','den a',$Uptime); 170 122 $Uptime = str_replace('min,','minut',$Uptime); 171 echo('Server b ì¾í '.$Uptime);123 echo('Server běží '.$Uptime); 172 124 *) 173 125 Output := Output + '</div></td><td valign="top">'; … … 183 135 *) 184 136 185 Output := Output + '<div onmouseout="skryj(predchozi)">' + ShowNews(5) + ShowNews(3) + ShowNews(1) + ShowNews(2) + ShowNews(4) + ShowNews(6) + ShowNews(8) + ShowNews(9) + ShowNews(10); 137 News := TNews.Create; 138 News.LoadFromDb; 139 with News do 140 Output := Output + '<div onmouseout="skryj(predchozi)">' + ShowNews(5) + ShowNews(3) + ShowNews(1) + ShowNews(2) + ShowNews(4) + ShowNews(6) + ShowNews(8) + ShowNews(9) + ShowNews(10); 141 News.Free; 186 142 187 Output := Output + '<a href=" aktuality/subscription.php"><img src="images/rss20.png" alt="Aktuality přes RSS" /></a> <a href="aktuality/subscription.php">Automatické sledování novinek</a>'+143 Output := Output + '<a href="?p=news-selection"><img src="images/rss20.png" alt="Aktuality přes RSS" /></a> <a href="?p=news-selection">Automatické sledování novinek</a>'+ 188 144 '</div></td></tr></table>'; 189 145 Output := Output + ShowFooter; … … 191 147 end; 192 148 193 //var194 // MainPage: THtmlPage;195 149 begin 196 //MainPage := THtmlPage.Create; 197 RegisterPage('index', @MainPage); 150 RegisterPage('index', @MainPage); 198 151 end. -
devel/web/UNews.pas
r138 r139 6 6 7 7 uses 8 USqlDatabase, SysUtils, UCore, Classes, DOM;8 USqlDatabase, SysUtils, UCore, Classes, UDatabase; 9 9 10 10 type … … 12 12 { TNewsCategory } 13 13 14 TNewsCategory = class 15 Id: Integer; 14 TNewsCategory = class(TDbObject) 16 15 Title: string; 17 16 Permission: Integer; 18 17 procedure LoadFromDbRecord(DbRow: TAssocArray); 18 procedure Store; override; 19 19 end; 20 20 21 TNewsItem = class 22 Id: Integer; 21 { TNewsItem } 22 23 TNewsItem = class(TDbObject) 23 24 Title: string; 24 25 Content: string; … … 28 29 Category: Integer; 29 30 procedure LoadFromDbRecord(DbRow: TAssocArray); 31 procedure Store; override; 30 32 end; 31 33 … … 37 39 destructor Destroy; override; 38 40 procedure LoadFromDb; 41 function ShowNews(Category: Integer): string; 39 42 end; 40 43 … … 59 62 end; 60 63 64 procedure TNewsItem.Store; 65 var 66 Values: TAssocArray; 67 begin 68 Values := TAssocArray.Create; 69 Values.AddKeyValue('content', Content); 70 Values.AddKeyValue('title', Title); 71 Values.AddKeyValue('author', Author); 72 Values.AddKeyValue('ip', IPAddress); 73 Values.AddKeyValue('time', IntToStr(DateTimeToUnix(Time))); 74 Values.AddKeyValue('category', IntToStr(Category)); 75 Database.Update('news', Values, 'id=' + IntToStr(Id)); 76 Values.Free; 77 inherited; 78 end; 79 61 80 function GenerateRSS: string; 62 81 const 63 82 MaxNewsItemCount = 15; 64 UploadedFilesFolder = 'uploads/';83 // UploadedFilesFolder = 'uploads/'; 65 84 var 66 85 RSSChannel: TRSSChannel; … … 168 187 end; 169 188 189 procedure TNewsCategory.Store; 190 var 191 Values: TAssocArray; 192 begin 193 Values := TAssocArray.Create; 194 Values.AddKeyValue('permission', IntToStr(Permission)); 195 Values.AddKeyValue('title', Title); 196 Database.Update('news_category', Values, 'id=' + IntToStr(Id)); 197 Values.Free; 198 inherited; 199 end; 200 201 function TNews.ShowNews(Category: Integer): string; 202 var 203 DbRows: TDbRows; 204 FontSize: Integer; 205 I: Integer; 206 II: Integer; 207 Enclosures: TArrayOfString; 208 Content: string; 209 const 210 NewsCountPerCategory = 5; 211 // UploadedFilesFolder = 'aktuality/uploads/'; 212 begin 213 // global $NewsCategoryNames, $NewsCountPerCategory, $UploadedFilesFolder; 214 Result := '<table class="MainTable"><tr>' + 215 '<td>' + TNewsCategory(NewsCategoryList[Category]).Title + '</td><td align="right">'+ 216 '<a href="?p=news-list&category=' + IntToStr(Category) + '">Zobrazit všechny aktuality</a> '; 217 if TNewsCategory(NewsCategoryList[Category]).Permission = 1 then 218 Result := Result + '<a href="?p=news-add&category=' + IntToStr(Category) + '">Přidat aktualitu</a> '; 219 Result := Result + '</td></tr><tr><td colspan="2" style="NewsTable">' + 220 '<table class="NewsTable" cellspacing="0" cellpadding="0">'; 221 FontSize := 12; 222 DbRows := Database.Select('news', '*', 'category=' + IntToStr(Category) + ' ORDER BY date DESC LIMIT 0,' + IntToStr(NewsCountPerCategory)); 223 for I := 0 to DbRows.Count - 1 do with DbRows[I] do begin 224 Content := Values['content']; 225 Content := StringReplace(Content, '<br>', '<br />', [rfReplaceAll]); 226 Result := Result + '<tr><td onclick="window.location=''?p=news-item&id=' + Values['id'] + '''" onmouseover="zobraz(''new' + Values['id'] + ''')" class="NewsTableItemTitle">' + 227 '<table class="NewsTableItemTitle">' + 228 '<tr><td style="font-size: ' + IntToStr(FontSize) + 'pt"><strong>' + Values['title'] + '</strong></td>'+ 229 '<td align="right" style="font-size: ' + IntToStr(FontSize) + 'pt">' + Values['author'] + ' (' + HumanDate(Values['date']) + ')' + 230 '</td></tr></table>' + 231 '<div id="new' + Values['id'] + '" class="NewsTableItem">' + Content; 232 233 if Values['enclosure'] <> '' then begin 234 Result := Result + '<br />Přílohy: '; 235 Enclosures := Explode(';', Values['enclosure']); 236 for II := 0 to High(Enclosures) do begin 237 // if(file_exists($UploadedFilesFolder.$Enclosure)) echo(' <a href="'.$UploadedFilesFolder.$Enclosure.'">'.$Enclosure.'</a>') 238 end; 239 end; 240 Result := Result + '</div></td></tr>'; 241 FontSize := FontSize - 1; 242 end; 243 Result := Result + '</table></td></tr></table>'; 244 end; 245 170 246 end. -
devel/web/UNewsPage.pas
r138 r139 12 12 13 13 uses 14 USqlDatabase, UCore, SysUtils, pwmain, UNews; 14 USqlDatabase, UCore, SysUtils, pwmain, UNews, UConfig; 15 16 function NewsChannelBuild: string; 17 var 18 URL: string; 19 I: Integer; 20 Count: Integer; 21 Index: string; 22 begin 23 Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality'); 24 URL := ''; 25 Count := CountCgiVars; 26 for I := 0 to Count - 1 do begin 27 Index := FetchCgiVarName(I); 28 if Copy(Index, 1, 8) = 'category' then URL := URL + '-' + Copy(Index, 9, Length(Index)); 29 end; 30 URL := WebServerAddress + '?p=news-rss&select=' + Copy(URL, 2, Length(URL)); 31 Result := Result + 'Výsledný RSS kanál: <a href="' + URL + '">' + URL + '</a>'; 32 Result := Result + ShowFooter; 33 end; 15 34 16 35 function NewsChannelSelection: string; 36 var 37 DbRows: TDbRows; 38 I: Integer; 17 39 begin 18 40 Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality'); 41 Result := Result + 'Vytvořte si vlastní RSS kanál, díky kterému budete moci automaticky sledovat novinky pomocí vaší RSS čtečky. ' + 42 'Informace o technologii RSS a programech pro čtení kanálů najdete např. <a href="http://www.lupa.cz/clanky/prehled-rss-ctecek/">zde</a><br />' + 43 '<br />Kategorie:<br />'; 44 Result := Result + '<form action="?p=news-build" method="post">'; 45 DbRows := Database.Select('news_category', '*', '1 ORDER BY caption'); 46 for I := 0 to DbRows.Count - 1 do 47 Result := Result + '<input type="checkbox" name="category' + DbRows[I].Values['id'] + '">' + 48 DbRows[I].Values['caption']+ '<br />'; 49 Result := Result + '<input type="submit" value="Sestavit ">' + 50 '</form>'; 19 51 Result := Result + ShowFooter; 20 52 end; … … 36 68 Result := ShowHeader('<strong>ZděchovNET</strong> - komunitní počítačová síť', 'Aktuality'); 37 69 if GetCgiVar('id') = '' then Id := 1 else Id := StrToInt(GetCgiVar('id')); 38 DbRows := Database.Query('SELECT `news`.*, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `news`.`id`=' + IntToStr(Id));70 DbRows := Database.Query('SELECT `news`.*, UNIX_TIMESTAMP(`news`.date) as time, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `news`.`id`=' + IntToStr(Id)); 39 71 if DbRows.Count > 0 then begin 40 72 NewsItem.LoadFromDbRecord(DbRows[0]); … … 89 121 Result := Result + PagesList('?p=news-list&category=' + IntToStr(Category) + '&page=', Page, PageMax, PerPage); 90 122 91 DbRows := Database.Query('SELECT `news`.*, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `category`=' + IntToStr(Category) + ' ORDER BY `news`.`id` DESC LIMIT ' + IntToStr(Page * PerPage) + ',' + IntToStr(PerPage));123 DbRows := Database.Query('SELECT `news`.*, UNIX_TIMESTAMP(`news`.date) as time, `User`.`Name` FROM `news` LEFT JOIN `User` ON `User`.`Id`=`news`.`User` WHERE `category`=' + IntToStr(Category) + ' ORDER BY `news`.`id` DESC LIMIT ' + IntToStr(Page * PerPage) + ',' + IntToStr(PerPage)); 92 124 for I := 0 to DbRows.Count - 1 do begin 93 125 NewsItem.LoadFromDbRecord(DbRows[I]); … … 128 160 RegisterPage('news-rss', @RSSChannel); 129 161 RegisterPage('news-selection', @NewsChannelSelection); 162 RegisterPage('news-build', @NewsChannelBuild); 130 163 131 164 end. -
devel/web/index.lpi
r138 r139 12 12 <MainUnit Value="0"/> 13 13 <TargetFileExt Value=".exe"/> 14 <ActiveEditorIndexAtStart Value=" 9"/>14 <ActiveEditorIndexAtStart Value="2"/> 15 15 </General> 16 16 <VersionInfo> … … 29 29 </local> 30 30 </RunParams> 31 <Units Count=" 17">31 <Units Count="23"> 32 32 <Unit0> 33 33 <Filename Value="index.pas"/> 34 34 <IsPartOfProject Value="True"/> 35 35 <UnitName Value="Index"/> 36 <CursorPos X=" 1" Y="21"/>37 <TopLine Value="1"/> 38 <EditorIndex Value=" 1"/>39 <UsageCount Value=" 44"/>36 <CursorPos X="37" Y="7"/> 37 <TopLine Value="1"/> 38 <EditorIndex Value="3"/> 39 <UsageCount Value="57"/> 40 40 <Loaded Value="True"/> 41 41 </Unit0> … … 44 44 <IsPartOfProject Value="True"/> 45 45 <UnitName Value="UMainPage"/> 46 <CursorPos X=" 32" Y="33"/>47 <TopLine Value="1 55"/>48 <EditorIndex Value=" 2"/>49 <UsageCount Value=" 44"/>46 <CursorPos X="80" Y="21"/> 47 <TopLine Value="1"/> 48 <EditorIndex Value="5"/> 49 <UsageCount Value="57"/> 50 50 <Loaded Value="True"/> 51 51 </Unit1> … … 54 54 <IsPartOfProject Value="True"/> 55 55 <UnitName Value="USqlDatabase"/> 56 <CursorPos X=" 51" Y="97"/>57 <TopLine Value=" 84"/>56 <CursorPos X="74" Y="69"/> 57 <TopLine Value="45"/> 58 58 <EditorIndex Value="0"/> 59 <UsageCount Value=" 44"/>59 <UsageCount Value="57"/> 60 60 <Loaded Value="True"/> 61 61 </Unit2> … … 63 63 <Filename Value="UXmlClasses.pas"/> 64 64 <IsPartOfProject Value="True"/> 65 <UsageCount Value=" 44"/>65 <UsageCount Value="57"/> 66 66 </Unit3> 67 67 <Unit4> … … 69 69 <IsPartOfProject Value="True"/> 70 70 <UnitName Value="UCore"/> 71 <CursorPos X=" 50" Y="18"/>72 <TopLine Value="1 "/>73 <EditorIndex Value=" 4"/>74 <UsageCount Value=" 44"/>71 <CursorPos X="21" Y="33"/> 72 <TopLine Value="15"/> 73 <EditorIndex Value="8"/> 74 <UsageCount Value="57"/> 75 75 <Loaded Value="True"/> 76 76 </Unit4> … … 81 81 <CursorPos X="1" Y="1"/> 82 82 <TopLine Value="81"/> 83 <EditorIndex Value="3"/> 84 <UsageCount Value="44"/> 85 <Loaded Value="True"/> 83 <UsageCount Value="57"/> 86 84 </Unit5> 87 85 <Unit6> … … 89 87 <IsPartOfProject Value="True"/> 90 88 <UnitName Value="UFinancePage"/> 91 <CursorPos X="3 8" Y="65"/>89 <CursorPos X="31" Y="19"/> 92 90 <TopLine Value="11"/> 93 <EditorIndex Value=" 7"/>94 <UsageCount Value=" 44"/>91 <EditorIndex Value="10"/> 92 <UsageCount Value="57"/> 95 93 <Loaded Value="True"/> 96 94 </Unit6> … … 101 99 <CursorPos X="34" Y="30"/> 102 100 <TopLine Value="17"/> 103 <EditorIndex Value="5"/> 104 <UsageCount Value="44"/> 105 <Loaded Value="True"/> 101 <UsageCount Value="57"/> 106 102 </Unit7> 107 103 <Unit8> … … 109 105 <IsPartOfProject Value="True"/> 110 106 <UnitName Value="UNews"/> 111 <CursorPos X=" 38" Y="118"/>112 <TopLine Value=" 98"/>107 <CursorPos X="17" Y="232"/> 108 <TopLine Value="1"/> 113 109 <EditorIndex Value="9"/> 114 <UsageCount Value=" 44"/>110 <UsageCount Value="57"/> 115 111 <Loaded Value="True"/> 116 112 </Unit8> … … 119 115 <IsPartOfProject Value="True"/> 120 116 <UnitName Value="UNewsPage"/> 121 <CursorPos X=" 93" Y="96"/>122 <TopLine Value=" 78"/>123 <EditorIndex Value=" 8"/>124 <UsageCount Value=" 44"/>117 <CursorPos X="81" Y="123"/> 118 <TopLine Value="96"/> 119 <EditorIndex Value="7"/> 120 <UsageCount Value="57"/> 125 121 <Loaded Value="True"/> 126 122 </Unit9> … … 130 126 <CursorPos X="10" Y="94"/> 131 127 <TopLine Value="81"/> 132 <UsageCount Value=" 8"/>128 <UsageCount Value="6"/> 133 129 </Unit10> 134 130 <Unit11> … … 136 132 <CursorPos X="26" Y="17"/> 137 133 <TopLine Value="121"/> 138 <UsageCount Value=" 8"/>134 <UsageCount Value="6"/> 139 135 </Unit11> 140 136 <Unit12> … … 142 138 <CursorPos X="4" Y="33"/> 143 139 <TopLine Value="18"/> 144 <UsageCount Value=" 8"/>140 <UsageCount Value="6"/> 145 141 </Unit12> 146 142 <Unit13> … … 149 145 <CursorPos X="24" Y="364"/> 150 146 <TopLine Value="351"/> 151 <EditorIndex Value="6"/> 152 <UsageCount Value="23"/> 153 <Loaded Value="True"/> 147 <UsageCount Value="21"/> 154 148 </Unit13> 155 149 <Unit14> … … 159 153 <CursorPos X="56" Y="86"/> 160 154 <TopLine Value="42"/> 161 <EditorIndex Value="1 0"/>162 <UsageCount Value=" 32"/>155 <EditorIndex Value="11"/> 156 <UsageCount Value="45"/> 163 157 <Loaded Value="True"/> 164 158 </Unit14> … … 167 161 <CursorPos X="10" Y="117"/> 168 162 <TopLine Value="115"/> 169 <UsageCount Value=" 10"/>163 <UsageCount Value="8"/> 170 164 </Unit15> 171 165 <Unit16> … … 173 167 <CursorPos X="3" Y="624"/> 174 168 <TopLine Value="34"/> 175 <UsageCount Value=" 10"/>169 <UsageCount Value="8"/> 176 170 </Unit16> 171 <Unit17> 172 <Filename Value="uconfig.pas"/> 173 <IsPartOfProject Value="True"/> 174 <UnitName Value="UConfig"/> 175 <CursorPos X="28" Y="14"/> 176 <TopLine Value="1"/> 177 <EditorIndex Value="4"/> 178 <UsageCount Value="32"/> 179 <Loaded Value="True"/> 180 </Unit17> 181 <Unit18> 182 <Filename Value="style/style.css"/> 183 <IsPartOfProject Value="True"/> 184 <CursorPos X="1" Y="134"/> 185 <TopLine Value="108"/> 186 <UsageCount Value="32"/> 187 <SyntaxHighlighter Value="None"/> 188 </Unit18> 189 <Unit19> 190 <Filename Value="style/global.js"/> 191 <IsPartOfProject Value="True"/> 192 <CursorPos X="1" Y="1"/> 193 <TopLine Value="1"/> 194 <UsageCount Value="32"/> 195 <SyntaxHighlighter Value="JScript"/> 196 </Unit19> 197 <Unit20> 198 <Filename Value="udatabase.pas"/> 199 <IsPartOfProject Value="True"/> 200 <UnitName Value="UDatabase"/> 201 <CursorPos X="3" Y="52"/> 202 <TopLine Value="50"/> 203 <EditorIndex Value="1"/> 204 <UsageCount Value="26"/> 205 <Loaded Value="True"/> 206 </Unit20> 207 <Unit21> 208 <Filename Value="uuser.pas"/> 209 <IsPartOfProject Value="True"/> 210 <UnitName Value="UUser"/> 211 <CursorPos X="47" Y="52"/> 212 <TopLine Value="34"/> 213 <EditorIndex Value="6"/> 214 <UsageCount Value="26"/> 215 <Loaded Value="True"/> 216 </Unit21> 217 <Unit22> 218 <Filename Value="uuserpage.pas"/> 219 <IsPartOfProject Value="True"/> 220 <UnitName Value="UUserPage"/> 221 <CursorPos X="69" Y="18"/> 222 <TopLine Value="5"/> 223 <EditorIndex Value="2"/> 224 <UsageCount Value="22"/> 225 <Loaded Value="True"/> 226 </Unit22> 177 227 </Units> 178 <JumpHistory Count=" 23" HistoryIndex="22">228 <JumpHistory Count="30" HistoryIndex="29"> 179 229 <Position1> 180 <Filename Value="U News.pas"/>181 <Caret Line="1 4" Column="3" TopLine="11"/>230 <Filename Value="UMainPage.pas"/> 231 <Caret Line="138" Column="17" TopLine="111"/> 182 232 </Position1> 183 233 <Position2> 184 <Filename Value=" UNews.pas"/>185 <Caret Line=" 113" Column="64" TopLine="97"/>234 <Filename Value="index.pas"/> 235 <Caret Line="7" Column="33" TopLine="1"/> 186 236 </Position2> 187 237 <Position3> 188 <Filename Value=" UNews.pas"/>189 <Caret Line="1 15" Column="2" TopLine="95"/>238 <Filename Value="uuser.pas"/> 239 <Caret Line="14" Column="3" TopLine="1"/> 190 240 </Position3> 191 241 <Position4> 192 <Filename Value=" UNews.pas"/>193 <Caret Line="1 39" Column="33" TopLine="128"/>242 <Filename Value="udatabase.pas"/> 243 <Caret Line="19" Column="3" TopLine="9"/> 194 244 </Position4> 195 245 <Position5> 196 <Filename Value="u rss.pas"/>197 <Caret Line=" 56" Column="1" TopLine="26"/>246 <Filename Value="uuser.pas"/> 247 <Caret Line="43" Column="5" TopLine="7"/> 198 248 </Position5> 199 249 <Position6> 200 <Filename Value=" UNews.pas"/>201 <Caret Line="4 6" Column="8" TopLine="18"/>250 <Filename Value="uuser.pas"/> 251 <Caret Line="42" Column="12" TopLine="11"/> 202 252 </Position6> 203 253 <Position7> 204 <Filename Value=" UNews.pas"/>205 <Caret Line="1 18" Column="20" TopLine="100"/>254 <Filename Value="udatabase.pas"/> 255 <Caret Line="13" Column="31" TopLine="1"/> 206 256 </Position7> 207 257 <Position8> 208 258 <Filename Value="UNews.pas"/> 209 <Caret Line=" 76" Column="14" TopLine="58"/>259 <Caret Line="173" Column="5" TopLine="137"/> 210 260 </Position8> 211 261 <Position9> 212 262 <Filename Value="UNews.pas"/> 213 <Caret Line="17 1" Column="24" TopLine="150"/>263 <Caret Line="178" Column="8" TopLine="171"/> 214 264 </Position9> 215 265 <Position10> 216 <Filename Value="U News.pas"/>217 <Caret Line=" 120" Column="29" TopLine="94"/>266 <Filename Value="UCore.pas"/> 267 <Caret Line="33" Column="21" TopLine="15"/> 218 268 </Position10> 219 269 <Position11> 220 270 <Filename Value="UNews.pas"/> 221 <Caret Line=" 55" Column="73" TopLine="37"/>271 <Caret Line="23" Column="3" TopLine="21"/> 222 272 </Position11> 223 273 <Position12> 224 <Filename Value="UNews Page.pas"/>225 <Caret Line=" 18" Column="50" TopLine="1"/>274 <Filename Value="UNews.pas"/> 275 <Caret Line="65" Column="1" TopLine="64"/> 226 276 </Position12> 227 277 <Position13> 228 <Filename Value=" urss.pas"/>229 <Caret Line=" 22" Column="3" TopLine="20"/>278 <Filename Value="UNews.pas"/> 279 <Caret Line="72" Column="50" TopLine="64"/> 230 280 </Position13> 231 281 <Position14> 232 <Filename Value=" urss.pas"/>233 <Caret Line=" 96" Column="9" TopLine="64"/>282 <Filename Value="UNews.pas"/> 283 <Caret Line="74" Column="45" TopLine="53"/> 234 284 </Position14> 235 285 <Position15> 236 <Filename Value=" urss.pas"/>237 <Caret Line=" 92" Column="26" TopLine="64"/>286 <Filename Value="UNews.pas"/> 287 <Caret Line="73" Column="61" TopLine="55"/> 238 288 </Position15> 239 289 <Position16> 240 <Filename Value="u rss.pas"/>241 <Caret Line=" 8" Column="31" TopLine="1"/>290 <Filename Value="uuser.pas"/> 291 <Caret Line="27" Column="3" TopLine="25"/> 242 292 </Position16> 243 293 <Position17> 244 <Filename Value="u rss.pas"/>245 <Caret Line=" 92" Column="63" TopLine="64"/>294 <Filename Value="udatabase.pas"/> 295 <Caret Line="14" Column="3" TopLine="2"/> 246 296 </Position17> 247 297 <Position18> 248 <Filename Value="u rss.pas"/>249 <Caret Line=" 93" Column="15" TopLine="64"/>298 <Filename Value="udatabase.pas"/> 299 <Caret Line="28" Column="3" TopLine="25"/> 250 300 </Position18> 251 301 <Position19> 252 <Filename Value="u rss.pas"/>253 <Caret Line=" 96" Column="16" TopLine="64"/>302 <Filename Value="udatabase.pas"/> 303 <Caret Line="36" Column="3" TopLine="34"/> 254 304 </Position19> 255 305 <Position20> 256 <Filename Value="u rss.pas"/>257 <Caret Line=" 8" Column="39" TopLine="1"/>306 <Filename Value="uuserpage.pas"/> 307 <Caret Line="17" Column="5" TopLine="1"/> 258 308 </Position20> 259 309 <Position21> 260 <Filename Value="u rss.pas"/>261 <Caret Line=" 91" Column="22" TopLine="64"/>310 <Filename Value="udatabase.pas"/> 311 <Caret Line="37" Column="31" TopLine="11"/> 262 312 </Position21> 263 313 <Position22> 264 <Filename Value=" UNewsPage.pas"/>265 <Caret Line=" 43" Column="101" TopLine="25"/>314 <Filename Value="udatabase.pas"/> 315 <Caret Line="31" Column="18" TopLine="13"/> 266 316 </Position22> 267 317 <Position23> 268 <Filename Value=" UNews.pas"/>269 <Caret Line=" 104" Column="27" TopLine="99"/>318 <Filename Value="udatabase.pas"/> 319 <Caret Line="75" Column="14" TopLine="54"/> 270 320 </Position23> 321 <Position24> 322 <Filename Value="udatabase.pas"/> 323 <Caret Line="53" Column="5" TopLine="17"/> 324 </Position24> 325 <Position25> 326 <Filename Value="uuser.pas"/> 327 <Caret Line="29" Column="23" TopLine="1"/> 328 </Position25> 329 <Position26> 330 <Filename Value="uuser.pas"/> 331 <Caret Line="73" Column="5" TopLine="37"/> 332 </Position26> 333 <Position27> 334 <Filename Value="uuser.pas"/> 335 <Caret Line="72" Column="3" TopLine="40"/> 336 </Position27> 337 <Position28> 338 <Filename Value="uuser.pas"/> 339 <Caret Line="44" Column="39" TopLine="26"/> 340 </Position28> 341 <Position29> 342 <Filename Value="uuserpage.pas"/> 343 <Caret Line="29" Column="33" TopLine="3"/> 344 </Position29> 345 <Position30> 346 <Filename Value="uuserpage.pas"/> 347 <Caret Line="23" Column="48" TopLine="1"/> 348 </Position30> 271 349 </JumpHistory> 272 350 </ProjectOptions> -
devel/web/index.pas
r138 r139 5 5 uses 6 6 UCore, USqlDatabase, SysUtils, UMainPage, pwinit, pwmain, 7 UFinancePage, UNewsPage ;7 UFinancePage, UNewsPage, UUserPage; 8 8 9 9 var … … 14 14 SetHeader('Content-Type', 'text/html; charset=utf-8'); 15 15 PageName := GetCgiVar('p'); 16 if PageName = '' then PageName := ' news-rss';16 if PageName = '' then PageName := 'index'; 17 17 I := 0; 18 18 while (I < Length(Pages)) and (Pages[I].Name <> PageName) do Inc(I); -
devel/web/style
-
Property svn:ignore
set to
backup
-
Property svn:ignore
set to
-
devel/web/style/style.css
r137 r139 4 4 } 5 5 6 #MainTable7 { 8 width: 100%; 9 } 10 11 #MainTable td6 .MainTable 7 { 8 width: 100%; 9 } 10 11 .MainTable td 12 12 { 13 13 border-width: 0px 1px 0px 0px; … … 17 17 } 18 18 19 #MainTable td .Panel19 .MainTable td .Panel 20 20 { 21 21 border-width: 0px 0px 0px 0px; … … 25 25 } 26 26 27 #MainTable td .PanelTitle27 .MainTable td .PanelTitle 28 28 { 29 29 border-width: 0px 0px 2px 0px; … … 34 34 } 35 35 36 #MainTable td .PanelTitleRight36 .MainTable td .PanelTitleRight 37 37 { 38 38 border-width: 0px 0px 2px 0px; … … 43 43 } 44 44 45 #MainTable td td45 .MainTable td td 46 46 { 47 47 border-width: 0px 0px 0px 0px; … … 67 67 } 68 68 69 #Footer69 .Footer 70 70 { 71 71 border-style: solid; … … 95 95 } 96 96 97 #Title97 .PageTitle 98 98 { 99 99 padding: 3px; … … 108 108 .NewsTable 109 109 { 110 padding: 2px 2px 2px 2px;110 padding: 0px; 111 111 font-size: small; 112 112 border-style: solid; … … 114 114 border-width: 1px; 115 115 background-color: #FFF0F0; 116 width: 100%; 117 border-spacing: 0px; 118 margin: 0px; 116 119 } 117 120 … … 124 127 padding: 3px; 125 128 font-size: 9pt; 129 color: black; 130 } 131 132 .NewsTableItemTitle 133 { 134 cursor: pointer; 135 margin: 0px; 136 padding: 0px; 137 padding: 0px; 138 color: red; 139 width: 100%; 140 border-spacing: 0px; 126 141 } 127 142
Note:
See TracChangeset
for help on using the changeset viewer.