Changeset 48 for trunk/Application/UCustomApplication.pas
- Timestamp:
- Mar 28, 2011, 9:31:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UCustomApplication.pas
r46 r48 41 41 Keywords: string; 42 42 HtmlDocument: THtmlDocument; 43 Pages: TListObject; 43 Pages: TListObject; // TListObject<TRegistredPage> 44 44 Database: TSqlDatabase; 45 45 PageName: string; … … 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] … … 169 169 TextNode: TXmlString; 170 170 begin 171 with TXmlTag(HtmlDocument.Body.SubItems [HtmlDocument.Body.SubItems.Add(TXmlTag.Create)]) do begin171 with TXmlTag(HtmlDocument.Body.SubItems.AddNew(TXmlTag.Create)) do begin 172 172 Name := 'ul'; 173 173 Attributes.Values['class'] := 'Footer'; 174 with TXmlTag(SubElements [SubElements.Add(TXmlTag.Create)]) do begin174 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin 175 175 Name := 'li'; 176 with TXmlString(SubElements [SubElements.Add(TXmlString.Create)]) do begin176 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin 177 177 Text := Admin; 178 178 end; 179 179 end; 180 with TXmlTag(SubElements [SubElements.Add(TXmlTag.Create)]) do begin180 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin 181 181 Name := 'li'; 182 with TXmlString(SubElements [SubElements.Add(TXmlString.Create)]) do begin182 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin 183 183 Text := AdminEmail; 184 184 end; 185 185 end; 186 186 if ShowRuntimeInfo then begin 187 with TXmlTag(SubElements [SubElements.Add(TXmlTag.Create)]) do begin187 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin 188 188 Name := 'li'; 189 with TXmlString(SubElements [SubElements.Add(TXmlString.Create)]) do begin189 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin 190 190 Text := 'Doba generování: ' + 191 191 FloatToStr(Round(((Now - TimeStart) / OneMillisecond) * 100) / 100) + ' s / '; // + ini_get('max_execution_time') + ' s'; 192 192 end; 193 193 end; 194 with TXmlTag(SubElements [SubElements.Add(TXmlTag.Create)]) do begin194 with TXmlTag(SubElements.AddNew(TXmlTag.Create)) do begin 195 195 Name := 'li'; 196 with TXmlString(SubElements [SubElements.Add(TXmlString.Create)]) do begin196 with TXmlString(SubElements.AddNew(TXmlString.Create)) do begin 197 197 //Text := 'Použitá paměť: ' + System.PrefixMultiplier.AddPrefixMultipliers(memory_get_peak_usage(FALSE), 'B').' / '.ini_get('memory_limit').'B'; 198 198 end; … … 231 231 procedure TCustomApplication.TopMenu; 232 232 begin 233 with THtmlString(HtmlDocument.Body.SubItems [HtmlDocument.Body.SubItems.Add(THtmlString.Create)]) do begin233 with THtmlString(HtmlDocument.Body.SubItems.AddNew(THtmlString.Create)) do begin 234 234 Text := '<div class="Navigation">'; 235 235 // Visitor … … 249 249 Text := Text + '</ul>' + 250 250 '<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>'; 252 253 // $Output .= '<li>'.$this->System->HTML->MakeLink($this->System->Translate('UserRegistration'), $this->System->MakeLink('UserList', 'Register')).'</li>'; 253 254 end else begin
Note:
See TracChangeset
for help on using the changeset viewer.