Changeset 46
- Timestamp:
- Jan 30, 2011, 11:06:37 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UCustomApplication.pas
r45 r46 111 111 HtmlDocument.Scripts.Add(NavigationLink('/Style/' + Style + '/jquery.js')); 112 112 113 Request.QueryParts.Count := 2;114 Request.QueryParts[0] := 'uzivatel';115 Request.QueryParts[1] := 'prihlaseni';113 //Request.QueryParts.Count := 2; 114 //Request.QueryParts[0] := 'uzivatel'; 115 //Request.QueryParts[1] := 'prihlaseni'; 116 116 117 117 if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0] … … 235 235 // Visitor 236 236 Text := Text + '<ul class="MenuItem">' + 237 '<li>' + MakeLink(' O síti', NavigationLink('/')) + '</li>' +237 '<li>' + MakeLink('Úvod', NavigationLink('/')) + '</li>' + 238 238 '<li>' + MakeLink('Internet', NavigationLink('/internet/')) + '</li>' + 239 239 '<li>' + MakeLink('Hosting', NavigationLink('/hosting/')) + '</li>' + 240 240 '<li>' + MakeLink('VoIP', NavigationLink('/voip/')) + '</li>' + 241 '<li>' + MakeLink('Historie', NavigationLink('/historie/')) + '</li>' + 242 '<li>' + MakeLink('Dokumenty', NavigationLink('/dokumenty/')) + '</li>' + 241 '<li>' + MakeLink('Síť', NavigationLink('/sit/')) + '</li>' + 243 242 '<li>' + MakeLink('Odkazy', NavigationLink('/odkazy/')) + '</li>' + 244 243 '<li>' + MakeLink('Kontakt', NavigationLink('/kontakt/')) + '</li>' + -
trunk/Application/UWebObjects.pas
r45 r46 44 44 TQueryForm = class(THtmlForm) 45 45 private 46 function GetAsXmlElement: TXmlElement; override;47 46 public 48 47 Title: string; 49 48 Groups: TListObject; 50 49 Actions: TListObject; // TListObject<THtmlInput> 50 function GetAsXmlElement: TXmlElement; override; 51 51 constructor Create; 52 52 destructor Destroy; override; … … 88 88 function TQueryForm.GetAsXmlElement: TXmlElement; 89 89 var 90 NewItem: TXmlElement;91 90 I: Integer; 92 91 G: Integer; 93 NewHtml: THtmlElement;94 92 begin 95 93 Result := inherited GetAsXmlElement; 96 for G := 0 to Groups.Count - 1 do 97 with TQueryFormGroup(Groups[G]) do 98 begin 99 NewItem := TXmlString.Create; 100 TXmlString(NewItem).Text := Title; 101 TXmlTag(Result).SubElements.Add(NewItem); 102 NewHtml := THtmlLineBreak.Create; 103 TXmlTag(Result).SubElements.Add(NewHtml.AsXmlElement); 104 for I := 0 to Rows.Count - 1 do 105 with TQueryFormItem(Rows[I]) do begin 106 NewItem := TXmlString.Create; 107 TXmlString(NewItem).Text := Caption + ': '; 108 TXmlTag(Result).SubElements.Add(NewItem); 109 TXmlTag(Result).SubElements.Add(Value.AsXmlElement); 110 NewHtml := THtmlLineBreak.Create; 111 TXmlTag(Result).SubElements.Add(NewHtml.AsXmlElement); 94 with TXmlTag(Result).SubElements do begin 95 for G := 0 to Groups.Count - 1 do 96 with TQueryFormGroup(Groups[G]) do 97 begin 98 with TXmlString(Items[Add(TXmlString.Create)]) do begin 99 Text := Title; 100 end; 101 with THtmlLineBreak.Create do begin 102 Add(AsXmlElement); 103 end; 104 for I := 0 to Rows.Count - 1 do 105 with TQueryFormItem(Rows[I]) do begin 106 with TXmlString(Items[Add(TXmlString.Create)]) do begin 107 Text := Caption + ': '; 108 end; 109 Add(Value.AsXmlElement); 110 with THtmlLineBreak.Create do begin 111 Add(AsXmlElement); 112 end; 113 end; 114 end; 115 with THtmlInput.Create do begin 116 Value := 'Přihlásit'; 117 InputType := itSubmit; 118 Add(AsXmlElement); 112 119 end; 113 120 end; 114 NewHtml := THtmlInput.Create;115 THtmlInput(NewHtml).Value := 'Přihlásit';116 THtmlInput(NewHtml).InputType := itSubmit;117 TXmlTag(Result).SubElements.Add(NewHtml.AsXmlElement);118 121 end; 119 122 -
trunk/CGI.lpi
r45 r46 48 48 </Item3> 49 49 </RequiredPackages> 50 <Units Count="6 5">50 <Units Count="69"> 51 51 <Unit0> 52 52 <Filename Value="CGI.lpr"/> … … 56 56 <WindowIndex Value="0"/> 57 57 <TopLine Value="1"/> 58 <CursorPos X="3 4" Y="30"/>58 <CursorPos X="32" Y="29"/> 59 59 <UsageCount Value="203"/> 60 60 <Loaded Value="True"/> … … 65 65 <IsPartOfProject Value="True"/> 66 66 <UnitName Value="UMainPage"/> 67 <IsVisibleTab Value="True"/> 67 68 <EditorIndex Value="0"/> 68 69 <WindowIndex Value="0"/> 69 <TopLine Value=" 349"/>70 <CursorPos X=" 20" Y="366"/>70 <TopLine Value="291"/> 71 <CursorPos X="71" Y="305"/> 71 72 <UsageCount Value="200"/> 72 73 <Loaded Value="True"/> … … 79 80 <TopLine Value="291"/> 80 81 <CursorPos X="1" Y="311"/> 81 <UsageCount Value="9 2"/>82 <UsageCount Value="91"/> 82 83 <DefaultSyntaxHighlighter Value="Delphi"/> 83 84 </Unit2> 84 85 <Unit3> 85 86 <Filename Value="UXmlClasses.pas"/> 86 <UsageCount Value="9 2"/>87 <UsageCount Value="91"/> 87 88 <DefaultSyntaxHighlighter Value="Delphi"/> 88 89 </Unit3> … … 91 92 <IsPartOfProject Value="True"/> 92 93 <UnitName Value="UCore"/> 93 <EditorIndex Value=" 4"/>94 <EditorIndex Value="6"/> 94 95 <WindowIndex Value="0"/> 95 96 <TopLine Value="82"/> 96 <CursorPos X=" 21" Y="99"/>97 <CursorPos X="73" Y="89"/> 97 98 <UsageCount Value="203"/> 98 99 <Loaded Value="True"/> … … 105 106 <TopLine Value="217"/> 106 107 <CursorPos X="5" Y="236"/> 107 <UsageCount Value="9 2"/>108 <UsageCount Value="91"/> 108 109 <DefaultSyntaxHighlighter Value="Delphi"/> 109 110 </Unit5> … … 114 115 <TopLine Value="10"/> 115 116 <CursorPos X="27" Y="19"/> 116 <UsageCount Value="9 2"/>117 <UsageCount Value="91"/> 117 118 <DefaultSyntaxHighlighter Value="Delphi"/> 118 119 </Unit6> … … 122 123 <TopLine Value="17"/> 123 124 <CursorPos X="34" Y="30"/> 124 <UsageCount Value="9 2"/>125 <UsageCount Value="91"/> 125 126 <DefaultSyntaxHighlighter Value="Delphi"/> 126 127 </Unit7> … … 131 132 <TopLine Value="204"/> 132 133 <CursorPos X="25" Y="226"/> 133 <UsageCount Value="9 2"/>134 <UsageCount Value="91"/> 134 135 <DefaultSyntaxHighlighter Value="Delphi"/> 135 136 </Unit8> … … 140 141 <TopLine Value="102"/> 141 142 <CursorPos X="25" Y="107"/> 142 <UsageCount Value="9 2"/>143 <UsageCount Value="91"/> 143 144 <DefaultSyntaxHighlighter Value="Delphi"/> 144 145 </Unit9> … … 149 150 <TopLine Value="40"/> 150 151 <CursorPos X="9" Y="59"/> 151 <UsageCount Value=" 80"/>152 <UsageCount Value="79"/> 152 153 <DefaultSyntaxHighlighter Value="Delphi"/> 153 154 </Unit10> … … 157 158 <TopLine Value="91"/> 158 159 <CursorPos X="10" Y="110"/> 159 <UsageCount Value="6 2"/>160 <UsageCount Value="61"/> 160 161 </Unit11> 161 162 <Unit12> … … 191 192 <TopLine Value="608"/> 192 193 <CursorPos X="44" Y="627"/> 193 <UsageCount Value="6 1"/>194 <UsageCount Value="60"/> 194 195 <DefaultSyntaxHighlighter Value="Delphi"/> 195 196 </Unit15> … … 200 201 <TopLine Value="39"/> 201 202 <CursorPos X="25" Y="58"/> 202 <UsageCount Value="6 1"/>203 <UsageCount Value="60"/> 203 204 <DefaultSyntaxHighlighter Value="Delphi"/> 204 205 </Unit16> … … 209 210 <TopLine Value="1"/> 210 211 <CursorPos X="69" Y="19"/> 211 <UsageCount Value="5 7"/>212 <UsageCount Value="56"/> 212 213 <DefaultSyntaxHighlighter Value="Delphi"/> 213 214 </Unit17> … … 218 219 <TopLine Value="1"/> 219 220 <CursorPos X="52" Y="124"/> 220 <UsageCount Value="5 4"/>221 <UsageCount Value="53"/> 221 222 <DefaultSyntaxHighlighter Value="Delphi"/> 222 223 </Unit18> … … 226 227 <TopLine Value="539"/> 227 228 <CursorPos X="14" Y="556"/> 228 <UsageCount Value="6 3"/>229 <UsageCount Value="62"/> 229 230 </Unit19> 230 231 <Unit20> … … 233 234 <TopLine Value="10"/> 234 235 <CursorPos X="22" Y="23"/> 235 <UsageCount Value="6 3"/>236 <UsageCount Value="62"/> 236 237 </Unit20> 237 238 <Unit21> … … 241 242 <TopLine Value="1140"/> 242 243 <CursorPos X="26" Y="1143"/> 243 <UsageCount Value="6 3"/>244 <UsageCount Value="62"/> 244 245 </Unit21> 245 246 <Unit22> … … 248 249 <TopLine Value="43"/> 249 250 <CursorPos X="5" Y="61"/> 250 <UsageCount Value="6 3"/>251 <UsageCount Value="62"/> 251 252 </Unit22> 252 253 <Unit23> … … 255 256 <TopLine Value="50"/> 256 257 <CursorPos X="10" Y="63"/> 257 <UsageCount Value="6 3"/>258 <UsageCount Value="62"/> 258 259 </Unit23> 259 260 <Unit24> … … 263 264 <TopLine Value="17"/> 264 265 <CursorPos X="32" Y="36"/> 265 <UsageCount Value="18 2"/>266 <UsageCount Value="181"/> 266 267 <DefaultSyntaxHighlighter Value="Delphi"/> 267 268 </Unit24> … … 272 273 <TopLine Value="8"/> 273 274 <CursorPos X="17" Y="19"/> 274 <UsageCount Value=" 9"/>275 <UsageCount Value="8"/> 275 276 <DefaultSyntaxHighlighter Value="Delphi"/> 276 277 </Unit25> … … 281 282 <TopLine Value="25"/> 282 283 <CursorPos X="86" Y="94"/> 283 <UsageCount Value="18 2"/>284 <UsageCount Value="181"/> 284 285 <DefaultSyntaxHighlighter Value="Delphi"/> 285 286 </Unit26> … … 290 291 <TopLine Value="549"/> 291 292 <CursorPos X="19" Y="569"/> 292 <UsageCount Value="18 3"/>293 <UsageCount Value="182"/> 293 294 <DefaultSyntaxHighlighter Value="Delphi"/> 294 295 </Unit27> … … 299 300 <TopLine Value="1"/> 300 301 <CursorPos X="64" Y="14"/> 301 <UsageCount Value="18 3"/>302 <UsageCount Value="182"/> 302 303 <DefaultSyntaxHighlighter Value="Delphi"/> 303 304 </Unit28> … … 308 309 <TopLine Value="6"/> 309 310 <CursorPos X="5" Y="33"/> 310 <UsageCount Value="18 3"/>311 <UsageCount Value="182"/> 311 312 <DefaultSyntaxHighlighter Value="Delphi"/> 312 313 </Unit29> … … 317 318 <TopLine Value="99"/> 318 319 <CursorPos X="33" Y="117"/> 319 <UsageCount Value=" 10"/>320 <UsageCount Value="9"/> 320 321 <DefaultSyntaxHighlighter Value="Delphi"/> 321 322 </Unit30> … … 325 326 <TopLine Value="61"/> 326 327 <CursorPos X="14" Y="78"/> 327 <UsageCount Value="6 2"/>328 <UsageCount Value="61"/> 328 329 </Unit31> 329 330 <Unit32> … … 332 333 <TopLine Value="519"/> 333 334 <CursorPos X="23" Y="526"/> 334 <UsageCount Value="5 8"/>335 <UsageCount Value="57"/> 335 336 </Unit32> 336 337 <Unit33> … … 350 351 <TopLine Value="1"/> 351 352 <CursorPos X="16" Y="164"/> 352 <UsageCount Value="32 4"/>353 <UsageCount Value="323"/> 353 354 <DefaultSyntaxHighlighter Value="Delphi"/> 354 355 </Unit34> … … 359 360 <TopLine Value="81"/> 360 361 <CursorPos X="1" Y="96"/> 361 <UsageCount Value="32 3"/>362 <UsageCount Value="322"/> 362 363 <DefaultSyntaxHighlighter Value="Delphi"/> 363 364 </Unit35> … … 368 369 <TopLine Value="1"/> 369 370 <CursorPos X="18" Y="45"/> 370 <UsageCount Value="32 3"/>371 <UsageCount Value="322"/> 371 372 <DefaultSyntaxHighlighter Value="Delphi"/> 372 373 </Unit36> … … 377 378 <TopLine Value="142"/> 378 379 <CursorPos X="52" Y="165"/> 379 <UsageCount Value="32 3"/>380 <UsageCount Value="322"/> 380 381 <DefaultSyntaxHighlighter Value="Delphi"/> 381 382 </Unit37> … … 386 387 <TopLine Value="109"/> 387 388 <CursorPos X="36" Y="96"/> 388 <UsageCount Value="32 3"/>389 <UsageCount Value="322"/> 389 390 <DefaultSyntaxHighlighter Value="Delphi"/> 390 391 </Unit38> … … 395 396 <TopLine Value="44"/> 396 397 <CursorPos X="27" Y="61"/> 397 <UsageCount Value="32 3"/>398 <UsageCount Value="322"/> 398 399 <DefaultSyntaxHighlighter Value="Delphi"/> 399 400 </Unit39> … … 404 405 <TopLine Value="1"/> 405 406 <CursorPos X="50" Y="8"/> 406 <UsageCount Value="32 3"/>407 <UsageCount Value="322"/> 407 408 <DefaultSyntaxHighlighter Value="Delphi"/> 408 409 </Unit40> … … 413 414 <TopLine Value="1"/> 414 415 <CursorPos X="21" Y="1"/> 415 <UsageCount Value="32 2"/>416 <UsageCount Value="321"/> 416 417 <DefaultSyntaxHighlighter Value="Delphi"/> 417 418 </Unit41> … … 422 423 <TopLine Value="1"/> 423 424 <CursorPos X="53" Y="8"/> 424 <UsageCount Value="32 2"/>425 <UsageCount Value="321"/> 425 426 <DefaultSyntaxHighlighter Value="Delphi"/> 426 427 </Unit42> … … 431 432 <TopLine Value="1"/> 432 433 <CursorPos X="52" Y="92"/> 433 <UsageCount Value="32 2"/>434 <UsageCount Value="321"/> 434 435 <DefaultSyntaxHighlighter Value="Delphi"/> 435 436 </Unit43> … … 440 441 <TopLine Value="83"/> 441 442 <CursorPos X="47" Y="106"/> 442 <UsageCount Value="32 2"/>443 <UsageCount Value="321"/> 443 444 <DefaultSyntaxHighlighter Value="Delphi"/> 444 445 </Unit44> … … 449 450 <TopLine Value="1"/> 450 451 <CursorPos X="3" Y="687"/> 451 <UsageCount Value="32 2"/>452 <UsageCount Value="321"/> 452 453 <DefaultSyntaxHighlighter Value="Delphi"/> 453 454 </Unit45> … … 458 459 <TopLine Value="383"/> 459 460 <CursorPos X="15" Y="397"/> 460 <UsageCount Value="4 3"/>461 <UsageCount Value="42"/> 461 462 </Unit46> 462 463 <Unit47> … … 466 467 <EditorIndex Value="1"/> 467 468 <WindowIndex Value="0"/> 468 <TopLine Value=" 106"/>469 <CursorPos X="1" Y=" 116"/>469 <TopLine Value="227"/> 470 <CursorPos X="1" Y="242"/> 470 471 <UsageCount Value="339"/> 471 472 <Loaded Value="True"/> … … 477 478 <TopLine Value="690"/> 478 479 <CursorPos X="3" Y="695"/> 479 <UsageCount Value="4 3"/>480 <UsageCount Value="42"/> 480 481 </Unit48> 481 482 <Unit49> … … 485 486 <TopLine Value="1"/> 486 487 <CursorPos X="43" Y="79"/> 487 <UsageCount Value="31 9"/>488 <UsageCount Value="318"/> 488 489 <DefaultSyntaxHighlighter Value="Delphi"/> 489 490 </Unit49> 490 491 <Unit50> 491 492 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericList.inc"/> 492 <WindowIndex Value="0"/> 493 <TopLine Value="373"/> 494 <CursorPos X="1" Y="398"/> 495 <UsageCount Value="179"/> 493 <EditorIndex Value="4"/> 494 <WindowIndex Value="0"/> 495 <TopLine Value="426"/> 496 <CursorPos X="11" Y="453"/> 497 <UsageCount Value="178"/> 498 <Loaded Value="True"/> 496 499 </Unit50> 497 500 <Unit51> … … 501 504 <TopLine Value="1"/> 502 505 <CursorPos X="26" Y="18"/> 503 <UsageCount Value="8 3"/>506 <UsageCount Value="82"/> 504 507 </Unit51> 505 508 <Unit52> … … 509 512 <TopLine Value="1"/> 510 513 <CursorPos X="15" Y="20"/> 511 <UsageCount Value="9 6"/>514 <UsageCount Value="95"/> 512 515 </Unit52> 513 516 <Unit53> … … 517 520 <TopLine Value="1"/> 518 521 <CursorPos X="44" Y="17"/> 519 <UsageCount Value="9 5"/>522 <UsageCount Value="94"/> 520 523 </Unit53> 521 524 <Unit54> … … 525 528 <TopLine Value="1"/> 526 529 <CursorPos X="34" Y="13"/> 527 <UsageCount Value="1 3"/>530 <UsageCount Value="12"/> 528 531 </Unit54> 529 532 <Unit55> … … 533 536 <TopLine Value="1"/> 534 537 <CursorPos X="60" Y="11"/> 535 <UsageCount Value="1 3"/>538 <UsageCount Value="12"/> 536 539 </Unit55> 537 540 <Unit56> … … 541 544 <TopLine Value="92"/> 542 545 <CursorPos X="7" Y="119"/> 543 <UsageCount Value=" 9"/>546 <UsageCount Value="8"/> 544 547 </Unit56> 545 548 <Unit57> 546 549 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UXmlClasses.pas"/> 547 550 <UnitName Value="UXmlClasses"/> 548 <EditorIndex Value=" 5"/>551 <EditorIndex Value="7"/> 549 552 <WindowIndex Value="0"/> 550 553 <TopLine Value="18"/> 551 554 <CursorPos X="1" Y="25"/> 552 <UsageCount Value="1 5"/>555 <UsageCount Value="17"/> 553 556 <Loaded Value="True"/> 554 557 </Unit57> … … 556 559 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 557 560 <UnitName Value="UHtmlClasses"/> 558 <EditorIndex Value=" 6"/>559 <WindowIndex Value="0"/> 560 <TopLine Value="1 33"/>561 <CursorPos X=" 5" Y="150"/>562 <UsageCount Value="1 5"/>561 <EditorIndex Value="8"/> 562 <WindowIndex Value="0"/> 563 <TopLine Value="1"/> 564 <CursorPos X="8" Y="4"/> 565 <UsageCount Value="18"/> 563 566 <Loaded Value="True"/> 564 567 </Unit58> … … 567 570 <IsPartOfProject Value="True"/> 568 571 <UnitName Value="UWebObjects"/> 569 <IsVisibleTab Value="True"/>570 572 <EditorIndex Value="3"/> 571 573 <WindowIndex Value="0"/> 572 <TopLine Value=" 98"/>573 <CursorPos X=" 43" Y="115"/>574 <UsageCount Value=" 24"/>574 <TopLine Value="31"/> 575 <CursorPos X="1" Y="51"/> 576 <UsageCount Value="30"/> 575 577 <Loaded Value="True"/> 576 578 <DefaultSyntaxHighlighter Value="Delphi"/> … … 590 592 <TopLine Value="1"/> 591 593 <CursorPos X="1" Y="1"/> 592 <UsageCount Value="1 1"/>594 <UsageCount Value="10"/> 593 595 </Unit61> 594 596 <Unit62> … … 598 600 <TopLine Value="14"/> 599 601 <CursorPos X="5" Y="31"/> 600 <UsageCount Value="1 1"/>602 <UsageCount Value="10"/> 601 603 </Unit62> 602 604 <Unit63> … … 613 615 <TopLine Value="168"/> 614 616 <CursorPos X="23" Y="185"/> 617 <UsageCount Value="9"/> 618 </Unit64> 619 <Unit65> 620 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Specialized/SpecializedList.pas"/> 621 <UnitName Value="SpecializedList"/> 622 <EditorIndex Value="5"/> 623 <WindowIndex Value="0"/> 624 <TopLine Value="1"/> 625 <CursorPos X="31" Y="126"/> 626 <UsageCount Value="12"/> 627 <Loaded Value="True"/> 628 </Unit65> 629 <Unit66> 630 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 631 <EditorIndex Value="9"/> 632 <WindowIndex Value="0"/> 633 <TopLine Value="1"/> 634 <CursorPos X="14" Y="3"/> 635 <UsageCount Value="11"/> 636 <Loaded Value="True"/> 637 </Unit66> 638 <Unit67> 639 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Specialized/SpecializedMatrix.pas"/> 640 <UnitName Value="SpecializedMatrix"/> 641 <EditorIndex Value="10"/> 642 <WindowIndex Value="0"/> 643 <TopLine Value="32"/> 644 <CursorPos X="24" Y="63"/> 645 <UsageCount Value="11"/> 646 <Loaded Value="True"/> 647 </Unit67> 648 <Unit68> 649 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericListObject.inc"/> 650 <EditorIndex Value="11"/> 651 <WindowIndex Value="0"/> 652 <TopLine Value="5"/> 653 <CursorPos X="16" Y="22"/> 615 654 <UsageCount Value="10"/> 616 </Unit64> 655 <Loaded Value="True"/> 656 </Unit68> 617 657 </Units> 618 <JumpHistory Count=" 29" HistoryIndex="28">658 <JumpHistory Count="30" HistoryIndex="29"> 619 659 <Position1> 620 <Filename Value=" Application/UWebObjects.pas"/>621 <Caret Line=" 81" Column="13" TopLine="51"/>660 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 661 <Caret Line="455" Column="3" TopLine="433"/> 622 662 </Position1> 623 663 <Position2> 624 <Filename Value="../../PascalClassLibrary/ Network/CoolWeb/Common/UHtmlClasses.pas"/>625 <Caret Line=" 96" Column="1" TopLine="66"/>664 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 665 <Caret Line="467" Column="5" TopLine="446"/> 626 666 </Position2> 627 667 <Position3> 628 <Filename Value="../../PascalClassLibrary/ Network/CoolWeb/Common/UHtmlClasses.pas"/>629 <Caret Line=" 253" Column="23" TopLine="250"/>668 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 669 <Caret Line="474" Column="10" TopLine="455"/> 630 670 </Position3> 631 671 <Position4> 632 <Filename Value="../../PascalClassLibrary/ Network/CoolWeb/Common/UHtmlClasses.pas"/>633 <Caret Line=" 99" Column="1" TopLine="79"/>672 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 673 <Caret Line="479" Column="16" TopLine="457"/> 634 674 </Position4> 635 675 <Position5> 636 <Filename Value=" Application/UWebObjects.pas"/>637 <Caret Line=" 83" Column="48" TopLine="60"/>676 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 677 <Caret Line="73" Column="53" TopLine="50"/> 638 678 </Position5> 639 679 <Position6> 640 <Filename Value=" Application/UWebObjects.pas"/>641 <Caret Line=" 65" Column="23" TopLine="55"/>680 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 681 <Caret Line="498" Column="19" TopLine="470"/> 642 682 </Position6> 643 683 <Position7> 644 <Filename Value=" Application/UWebObjects.pas"/>645 <Caret Line=" 74" Column="5" TopLine="57"/>684 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 685 <Caret Line="28" Column="1" TopLine="11"/> 646 686 </Position7> 647 687 <Position8> 648 <Filename Value=" Application/UWebObjects.pas"/>649 <Caret Line=" 79" Column="1" TopLine="65"/>688 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 689 <Caret Line="8" Column="52" TopLine="1"/> 650 690 </Position8> 651 691 <Position9> 652 <Filename Value=" Application/UWebObjects.pas"/>653 <Caret Line="8 6" Column="1" TopLine="65"/>692 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 693 <Caret Line="81" Column="19" TopLine="59"/> 654 694 </Position9> 655 695 <Position10> 656 <Filename Value="../../PascalClassLibrary/ Network/CoolWeb/Common/UHtmlClasses.pas"/>657 <Caret Line=" 253" Column="1" TopLine="236"/>696 <Filename Value="../../PascalClassLibrary/Generics/TemplateGenerics/Generic/GenericMatrix.inc"/> 697 <Caret Line="3" Column="14" TopLine="1"/> 658 698 </Position10> 659 699 <Position11> 660 700 <Filename Value="Application/UWebObjects.pas"/> 661 <Caret Line="9 1" Column="11" TopLine="65"/>701 <Caret Line="99" Column="1" TopLine="81"/> 662 702 </Position11> 663 703 <Position12> 664 704 <Filename Value="Application/UWebObjects.pas"/> 665 <Caret Line=" 90" Column="10" TopLine="74"/>705 <Caret Line="124" Column="1" TopLine="107"/> 666 706 </Position12> 667 707 <Position13> 668 <Filename Value=" Pages/UMainPage.pas"/>669 <Caret Line=" 389" Column="12" TopLine="360"/>708 <Filename Value="Application/UWebObjects.pas"/> 709 <Caret Line="120" Column="43" TopLine="87"/> 670 710 </Position13> 671 711 <Position14> 672 <Filename Value=" Pages/UMainPage.pas"/>673 <Caret Line=" 366" Column="20" TopLine="349"/>712 <Filename Value="Application/UWebObjects.pas"/> 713 <Caret Line="125" Column="16" TopLine="107"/> 674 714 </Position14> 675 715 <Position15> 676 <Filename Value=" Application/UWebObjects.pas"/>677 <Caret Line=" 29" Column="74" TopLine="11"/>716 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 717 <Caret Line="9" Column="3" TopLine="1"/> 678 718 </Position15> 679 719 <Position16> 680 <Filename Value=" Application/UWebObjects.pas"/>681 <Caret Line=" 71" Column="1" TopLine="58"/>720 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 721 <Caret Line="179" Column="3" TopLine="162"/> 682 722 </Position16> 683 723 <Position17> 684 <Filename Value=" Application/UWebObjects.pas"/>685 <Caret Line="2 4" Column="10" TopLine="8"/>724 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 725 <Caret Line="211" Column="1" TopLine="194"/> 686 726 </Position17> 687 727 <Position18> 688 <Filename Value=" Application/UWebObjects.pas"/>689 <Caret Line="2 0" Column="1" TopLine="10"/>728 <Filename Value="../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/> 729 <Caret Line="278" Column="3" TopLine="261"/> 690 730 </Position18> 691 731 <Position19> 692 <Filename Value=" ../../PascalClassLibrary/Network/CoolWeb/Common/UHtmlClasses.pas"/>693 <Caret Line=" 273" Column="32" TopLine="265"/>732 <Filename Value="Application/UWebObjects.pas"/> 733 <Caret Line="116" Column="1" TopLine="1"/> 694 734 </Position19> 695 735 <Position20> 696 736 <Filename Value="Application/UWebObjects.pas"/> 697 <Caret Line=" 25" Column="45" TopLine="3"/>737 <Caret Line="91" Column="1" TopLine="91"/> 698 738 </Position20> 699 739 <Position21> 700 740 <Filename Value="Application/UWebObjects.pas"/> 701 <Caret Line=" 24" Column="59" TopLine="2"/>741 <Caret Line="46" Column="14" TopLine="29"/> 702 742 </Position21> 703 743 <Position22> 704 744 <Filename Value="Application/UWebObjects.pas"/> 705 <Caret Line=" 71" Column="51" TopLine="52"/>745 <Caret Line="124" Column="1" TopLine="107"/> 706 746 </Position22> 707 747 <Position23> 708 748 <Filename Value="Application/UWebObjects.pas"/> 709 <Caret Line=" 65" Column="11" TopLine="49"/>749 <Caret Line="46" Column="14" TopLine="29"/> 710 750 </Position23> 711 751 <Position24> 712 752 <Filename Value="Application/UWebObjects.pas"/> 713 <Caret Line=" 16" Column="26" TopLine="1"/>753 <Caret Line="98" Column="1" TopLine="87"/> 714 754 </Position24> 715 755 <Position25> 716 756 <Filename Value="Application/UWebObjects.pas"/> 717 <Caret Line=" 67" Column="11" TopLine="50"/>757 <Caret Line="46" Column="14" TopLine="29"/> 718 758 </Position25> 719 759 <Position26> 720 760 <Filename Value="Application/UWebObjects.pas"/> 721 <Caret Line=" 16" Column="52" TopLine="1"/>761 <Caret Line="44" Column="29" TopLine="29"/> 722 762 </Position26> 723 763 <Position27> 724 764 <Filename Value="Application/UWebObjects.pas"/> 725 <Caret Line=" 67" Column="43" TopLine="50"/>765 <Caret Line="48" Column="1" TopLine="29"/> 726 766 </Position27> 727 767 <Position28> 728 <Filename Value=" Application/UWebObjects.pas"/>729 <Caret Line=" 115" Column="26" TopLine="99"/>768 <Filename Value="CGI.lpr"/> 769 <Caret Line="28" Column="32" TopLine="1"/> 730 770 </Position28> 731 771 <Position29> 732 <Filename Value=" Application/UWebObjects.pas"/>733 <Caret Line=" 116" Column="36" TopLine="99"/>772 <Filename Value="Pages/UMainPage.pas"/> 773 <Caret Line="303" Column="79" TopLine="298"/> 734 774 </Position29> 775 <Position30> 776 <Filename Value="CGI.lpr"/> 777 <Caret Line="28" Column="32" TopLine="1"/> 778 </Position30> 735 779 </JumpHistory> 736 780 </ProjectOptions> -
trunk/CGI.lpr
r42 r46 26 26 RegisterPage('kamery', WebCam); 27 27 RegisterPage('uzivatel', UserControl); 28 RegisterPage('plany', Plans); 29 RegisterPage('sit', Network); 28 30 RegisterPage('', About); 29 31 HTTPServer := THTTPServerCGI.Create; -
trunk/Pages/UMainPage.pas
r45 r46 20 20 procedure WebCam(App: TCustomApplication; HandlerData: THTTPHandlerData); 21 21 procedure UserControl(App: TCustomApplication; HandlerData: THTTPHandlerData); 22 procedure Plans(App: TCustomApplication; HandlerData: THTTPHandlerData); 23 procedure Network(App: TCustomApplication; HandlerData: THTTPHandlerData); 22 24 23 25 implementation … … 37 39 '<a href="http://fotbal.zdechov.net/">TJ Sokol Zděchov</a> - stránky věnované Zděchovskému fotbalovému týmu<br/>' + 38 40 '<a href="http://farnost.zdechov.net/">Farnost Zděchov</a> - informace k místní farnosti<br/>' + 39 '<br/>' +40 41 '<strong>Hostované servery:</strong><br/>' +42 //'<a href="http://www.heroesoffantasy.cz/">Heroes of Fantasy</a> - free World of Warcraft server<br/>' +43 '<a href="http://wowpreklad.zdechov.net/">WoWpřeklad</a> - překlad hry WoW do češtiny<br/>' +44 '<a href="http://www.unitedstorm.eu/">UnitedStorm</a> - herní server<br/>' +45 '<a href="http://victus.cz/">Victus</a> - herní server hry WoW<br/>' +46 '<a href="http://gameshoot.eu/">GameShoot</a> - herní portál<br/>' +47 '<a href="http://sharp.zdechov.net/"></a> - Sharp MZ community web<br/>' +48 49 41 '<br/>' + 50 42 … … 87 79 DbRows[I].Values['Text'] + '</td></tr>'; 88 80 end; 81 finally 82 DbRows.Free; 83 end; 84 Text := Text + '</table>'; 85 end; 86 end; 87 end; 88 89 procedure Plans(App: TCustomApplication; HandlerData: THTTPHandlerData); 90 var 91 DbRows: TDbRows; 92 I: Integer; 93 begin 94 with App do begin 95 HtmlDocument.Title := 'Plánované projekty'; 96 97 with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin 98 Text := '<table>'; 99 try 100 DbRows := TDbRows.Create; 101 Text := '<br/><strong>Plánované úkoly:</strong><br />' + 102 '<div><ul>'; 103 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NULL ORDER BY `TimeCreate`'); 104 for I := 0 to DbRows.Count - 1 do begin 105 Text := Text + '<li>' + DbRows[I].Values['Description'] + '</li>'; 106 end; 107 Text := Text + '</ul></div><br/>'; 108 109 Text := Text + '<br/><strong>Hotové úkoly:</strong><br />' + 110 '<div><ul>'; 111 Database.Query(DbRows, 'SELECT * FROM `Plans` WHERE `TimeFinished` IS NOT NULL ORDER BY `TimeCreate`'); 112 for I := 0 to DbRows.Count - 1 do begin 113 Text := Text + '<li>' + DbRows[I].Values['Description'] + '<br/>' + 114 '<i style="padding-left: 30px;">' + DbRows[I].Values['Conclusion'] + '</i></li>'; 115 end; 116 Text := Text + '</ul></div><br/>'; 117 89 118 finally 90 119 DbRows.Free; … … 181 210 '<li>V sítí Mikrotech: 0 Kč/minutu</li>' + 182 211 '<li>Volání do pevných sítí: 0,5 Kč/minutu</li>' + 183 '<li>Volání do mobilních sítí: 2,33Kč/minutu</li>' +212 '<li>Volání do mobilních sítí: 1,95 Kč/minutu</li>' + 184 213 '<li>Přenesení vašeho čísla: 1200 Kč</li>' + 185 214 '</ul><br/>' + … … 265 294 end; 266 295 296 procedure Network(App: TCustomApplication; HandlerData: THTTPHandlerData); 297 var 298 TextBlock: THtmlString; 299 begin 300 with App do begin 301 HtmlDocument.Title := 'Síť'; 302 303 with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin 304 Text := MakeLink('Historie', NavigationLink('/historie/')) + '<br/>' + 305 MakeLink('Dokumenty', NavigationLink('/dokumenty/')) + '<br/>' + 306 MakeLink('Plánované projekty', NavigationLink('/plany/')) + '<br/>'; 307 end; 308 end; 309 end; 310 267 311 procedure About(App: TCustomApplication; HandlerData: THTTPHandlerData); 268 312 var … … 270 314 begin 271 315 with App do begin 272 HtmlDocument.Title := ' O síti';316 HtmlDocument.Title := 'Úvod'; 273 317 274 318 with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin … … 373 417 if PageName = 'prihlaseni' then begin 374 418 Text := 'Login'; 375 NewForm := TQueryForm.Create; 376 NewForm.Title := 'Přihlášení'; 377 // NewForm.Action := THTMLInput.Create; 378 // NewForm.Action 379 NewGroup := TQueryFormGroup.Create; 380 NewGroup.Title := 'Základní údaje'; 381 NewItem := TQueryFormItem.Create; 382 NewItem.Caption := 'Jméno'; 383 NewItem.Hint := 'Zadejte vaše přihlašovací jméno'; 384 NewItem.Required := True; 385 NewGroup.Rows.Add(NewItem); 386 NewItem := TQueryFormItem.Create; 387 NewItem.Caption := 'Heslo'; 388 NewItem.Hint := 'Zadejte vaše heslo'; 389 NewItem.Required := True; 390 NewGroup.Rows.Add(NewItem); 391 NewForm.Groups.Add(NewGroup); 392 App.HtmlDocument.Body.SubItems.Add(NewForm); 419 with App.HtmlDocument.Body, TQueryForm(SubItems[SubItems.Add(TQueryForm.Create)]) do begin 420 Title := 'Přihlášení'; 421 with TQueryFormGroup(Groups[Groups.Add(TQueryFormGroup.Create)]) do begin 422 Title := 'Základní údaje'; 423 with TQueryFormItem(Rows[Rows.Add(TQueryFormItem.Create)]) do begin 424 Caption := 'Jméno'; 425 Hint := 'Zadejte vaše přihlašovací jméno'; 426 Required := True; 427 end; 428 with TQueryFormItem(Rows[Rows.Add(TQueryFormItem.Create)]) do begin 429 Caption := 'Heslo'; 430 Hint := 'Zadejte vaše heslo'; 431 Required := True; 432 end; 433 end; 434 end; 393 435 end else Text := ''; 394 436 end;
Note:
See TracChangeset
for help on using the changeset viewer.