Ignore:
Timestamp:
Mar 28, 2011, 9:31:28 AM (13 years ago)
Author:
george
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Pages/UMainPage.pas

    r47 r48  
    2929  App.HtmlDocument.Title := 'Odkazy';
    3030
    31   with App.HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     31  with App.HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    3232    Text := '<strong>Odkazy související s obcí:</strong><br/>' +
    3333
     
    6969    HtmlDocument.Title := 'Historie sítě';
    7070
    71     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     71    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    7272      Text := '<table>';
    7373      try
     
    9595    HtmlDocument.Title := 'Plánované projekty';
    9696
    97     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     97    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    9898      Text := '<table>';
    9999      try
     
    129129    HtmlDocument.Title := 'Internet';
    130130
    131     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     131    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    132132      Text := Text + 'Hlavní náplní činnosti sítě je poskytovat výhodné připojení k internetu pro občany.<br/><br/>' +
    133133      '<strong>Nabídka tarifů:</strong><br/>' +
     
    158158    HtmlDocument.Title := 'Webové kamery';
    159159
    160     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     160    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    161161      Text := '<table style="width: 100%"><tr><td style="width: 20%">' +
    162162        '<strong>Kamery v okolí:</strong><br />' +
     
    201201    HtmlDocument.Title := 'VoIP';
    202202
    203     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     203    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    204204      Text := 'Volejte levněji do pevných a mobilních sítí s sekundovou tarifikací a bez měsíčního paušálu.<br/>' +
    205205      '<br/>' +
     
    238238    HtmlDocument.Title := 'Hosting';
    239239
    240     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     240    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    241241      Text := 'V nabídce je provoz virtualizovaných Linuxových serverů dle dohodnutých parameterů.<br/><br/>' +
    242242      '<strong>Standardní varianty:</strong><br/>' +
     
    301301    HtmlDocument.Title := 'Síť';
    302302
    303     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     303    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    304304      Text := MakeLink('Historie', NavigationLink('/historie/')) + '<br/>' +
    305305        MakeLink('Dokumenty', NavigationLink('/dokumenty/')) + '<br/>' +
     
    316316    HtmlDocument.Title := 'Úvod';
    317317
    318     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     318    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    319319    Text := '<img align="left" src="' + NavigationLink('/images/umisteni.gif') + '" alt="Umístění obce"/>' +
    320320      '<a href="' + NavigationLink('/images/pokryti.jpg') + '">' +
     
    366366    HtmlDocument.Title := 'Dokumenty';
    367367
    368     with HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     368    with HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    369369      Text := '<strong>O obci:</strong><br/>' +
    370370
     
    389389  App.HtmlDocument.Title := 'Kontakt';
    390390
    391   with App.HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     391  with App.HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    392392    Text := '<strong>Kontaktní informace</strong><br/>' +
    393393    'Provozovatel: Ing. Jiří Hajda<br/>' +
     
    414414  if HandlerData.Request.QueryParts.Count > 1 then PageName := HandlerData.Request.QueryParts[1]
    415415    else PageName := '';
    416   with App.HtmlDocument.Body, THtmlString(SubItems[SubItems.Add(THtmlString.Create)]) do begin
     416  with App.HtmlDocument.Body, THtmlString(SubItems.AddNew(THtmlString.Create)) do begin
    417417    if PageName = 'prihlaseni' then begin
    418418      Text := 'Login';
    419       with App.HtmlDocument.Body, TQueryForm(SubItems[SubItems.Add(TQueryForm.Create)]) do begin
     419      with App.HtmlDocument.Body, TQueryForm(SubItems.AddNew(TQueryForm.Create)) do begin
    420420        Title := 'Přihlášení';
    421         with TQueryFormGroup(Groups[Groups.Add(TQueryFormGroup.Create)]) do begin
     421        ClassId := 'Form';
     422        with TQueryFormGroup(Groups.AddNew(TQueryFormGroup.Create)) do begin
    422423          Title := 'Základní údaje';
    423           with TQueryFormItem(Rows[Rows.Add(TQueryFormItem.Create)]) do begin
     424          with TQueryFormItem(Rows.AddNew(TQueryFormItem.Create)) do begin
    424425            Caption := 'Jméno';
    425426            Hint := 'Zadejte vaše přihlašovací jméno';
    426427            Required := True;
    427428          end;
    428           with TQueryFormItem(Rows[Rows.Add(TQueryFormItem.Create)]) do begin
     429          with TQueryFormItem(Rows.AddNew(TQueryFormItem.Create)) do begin
    429430            Caption := 'Heslo';
    430431            Hint := 'Zadejte vaše heslo';
    431432            Required := True;
     433            ItemType := fitPassword;
    432434          end;
    433435        end;
Note: See TracChangeset for help on using the changeset viewer.