public StandardHandler(Path.Parser path, bool useRightMenu, bool containsAjax, bool containsSearch, bool containsPrintContent, bool containsForm) : base(TemplateTypes.Base, path) { this._headerTags = new Elements.HeaderTags.Collection(); this._tabs = new Elements.Tabs.Collection(); this._containsAjax = containsAjax; this._containsSearch = containsSearch; this._containsPrintContent = containsPrintContent; this._containsForm = containsForm; this.InitialChecks(); this.SetPageLayout(useRightMenu); this.SetCommonHeaderTags(); this.SetHeaderTags(); this.SetPageTitle(); this.ApplyHeaderTags(); this.SetTabs(); this.SetAlerts(); this.SetBreadcrumbTrails(); this.SetMenu90(); this.SetTabSpecific(); this.ApplyTabs(); this.ApplySchoolName(); this.SetTopRight(); this.SpecificCommands(); if (this._containsPrintContent) { this.Page.SetVariable("Printable", new Constructor("/Templates/printable.html")); } else { this.Page.DeleteVariable("Printable"); } }
public BaseHandler(TemplateTypes templateType, Path.Parser path) { this._path = path; switch (templateType) { case TemplateTypes.Base: this._page = new Constructor("/Templates/base.html"); break; case TemplateTypes.Quote: this._page = new Constructor("/Templates/quote.html"); break; default: this._page = new Constructor(); break; } this.Page.SetServedTimestamp(); this.Output.PrepareOutput(); }
public AjaxHandler(Path.Parser path) : base(TemplateTypes.None, path) { this._source = new Path.Parser(Core.WebServer.Request["sourcePath"]); this.GenerateOutput(); }