Session->Check($Context); // Define properties of the page controls that are specific to this page $Context->PageTitle = $Context->GetDefinition("Search"); $Head->BodyId = 'SearchPage'; $Menu->CurrentTab = "search"; $Panel->CssClass = "SearchPanel"; $Panel->BodyCssClass = "Search"; // 2. BUILD PAGE CONTROLS // Search form $SearchForm = $Context->ObjectFactory->CreateControl($Context, "SearchForm"); // 3. ADD CONTROLS TO THE PAGE $Page->AddRenderControl($Head, $Configuration["CONTROL_POSITION_HEAD"]); $Page->AddRenderControl($Menu, $Configuration["CONTROL_POSITION_MENU"]); $Page->AddRenderControl($Panel, $Configuration["CONTROL_POSITION_PANEL"]); $Page->AddRenderControl($NoticeCollector, $Configuration['CONTROL_POSITION_NOTICES']); $Page->AddRenderControl($SearchForm, $Configuration["CONTROL_POSITION_BODY_ITEM"]); $Page->AddRenderControl($Foot, $Configuration["CONTROL_POSITION_FOOT"]); $Page->AddRenderControl($PageEnd, $Configuration["CONTROL_POSITION_PAGE_END"]); // 4. FIRE PAGE EVENTS $Page->FireEvents(); ?>