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

Legend:

Unmodified
Added
Removed
  • trunk/Application/UCustomApplication.pas

    r46 r48  
    4141    Keywords: string;
    4242    HtmlDocument: THtmlDocument;
    43     Pages: TListObject;
     43    Pages: TListObject; // TListObject<TRegistredPage>
    4444    Database: TSqlDatabase;
    4545    PageName: string;
     
    111111  HtmlDocument.Scripts.Add(NavigationLink('/Style/' + Style + '/jquery.js'));
    112112
    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';
    116116
    117117  if Request.QueryParts.Count > 0 then PageName := Request.QueryParts[0]
     
    169169  TextNode: TXmlString;
    170170begin
    171   with TXmlTag(HtmlDocument.Body.SubItems[HtmlDocument.Body.SubItems.Add(TXmlTag.Create)]) do begin
     171  with TXmlTag(HtmlDocument.Body.SubItems.AddNew(TXmlTag.Create)) do begin
    172172    Name := 'ul';
    173173    Attributes.Values['class'] := 'Footer';
    174     with TXmlTag(SubElements[SubElements.Add(TXmlTag.Create)]) do begin
     174    with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin
    175175      Name := 'li';
    176       with TXmlString(SubElements[SubElements.Add(TXmlString.Create)]) do begin
     176      with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin
    177177        Text := Admin;
    178178      end;
    179179    end;
    180     with TXmlTag(SubElements[SubElements.Add(TXmlTag.Create)]) do begin
     180    with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin
    181181      Name := 'li';
    182       with TXmlString(SubElements[SubElements.Add(TXmlString.Create)]) do begin
     182      with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin
    183183        Text := AdminEmail;
    184184      end;
    185185    end;
    186186    if ShowRuntimeInfo then begin
    187       with TXmlTag(SubElements[SubElements.Add(TXmlTag.Create)]) do begin
     187      with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin
    188188        Name := 'li';
    189         with TXmlString(SubElements[SubElements.Add(TXmlString.Create)]) do begin
     189        with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin
    190190          Text := 'Doba generování: ' +
    191191            FloatToStr(Round(((Now - TimeStart) / OneMillisecond) * 100) / 100) + ' s / '; // + ini_get('max_execution_time') + ' s';
    192192        end;
    193193      end;
    194       with TXmlTag(SubElements[SubElements.Add(TXmlTag.Create)]) do begin
     194      with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin
    195195        Name := 'li';
    196         with TXmlString(SubElements[SubElements.Add(TXmlString.Create)]) do begin
     196        with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin
    197197          //Text := 'Použitá paměť: '  + System.PrefixMultiplier.AddPrefixMultipliers(memory_get_peak_usage(FALSE), 'B').' / '.ini_get('memory_limit').'B';
    198198        end;
     
    231231procedure TCustomApplication.TopMenu;
    232232begin
    233   with THtmlString(HtmlDocument.Body.SubItems[HtmlDocument.Body.SubItems.Add(THtmlString.Create)]) do begin
     233  with THtmlString(HtmlDocument.Body.SubItems.AddNew(THtmlString.Create)) do begin
    234234    Text := '<div class="Navigation">';
    235235    // Visitor
     
    249249      Text := Text + '</ul>' +
    250250        '<ul class="MenuItem2">' +
    251         '<li>' + MakeLink('Přihlášení', NavigationLink('/uzivatel/prihlaseni/')) + '</li>';
     251        //'<li>' + MakeLink('Přihlášení', NavigationLink('/uzivatel/prihlaseni/')) + '</li>';
     252        '<li></li>';
    252253      // $Output .= '<li>'.$this->System->HTML->MakeLink($this->System->Translate('UserRegistration'), $this->System->MakeLink('UserList', 'Register')).'</li>';
    253254    end else begin
Note: See TracChangeset for help on using the changeset viewer.