Label1->Caption = 'Clicked'; } function Show() { $Element1 = new Element(); $Element1->Id = 'Element1'; $Button1 = new Button(); $Button1->Id = 'Button1'; $Button1->Caption = 'Toggle'; $Edit1 = new Edit(); $Edit1->Id = 'Edit1'; $Edit1->Text = 'Text'; $ListView1 = new PageListView(); $ListView1->Id = 'ListView1'; $Column1 = new ListViewColumn(); $Column1->Name = 'Column1'; $Column1->Id = 'Column1'; $Column2 = new ListViewColumn(); $Column2->Name = 'Column2'; $Column2->Id = 'Column2'; $ListView1->Columns = array($Column1, $Column2); for($I = 0; $I < 30; $I++) { $Row = array('Cell1', 'Cell2'); $ListView1->Rows[] = $Row; } $ListView2 = new PageListView(); $ListView2->Id = 'ListView2'; $Column1 = new ListViewColumn(); $Column1->Name = 'Column1'; $Column1->Id = 'Column1'; $Column2 = new ListViewColumn(); $Column2->Name = 'Column2'; $Column2->Id = 'Column2'; $ListView2->Columns = array($Column1, $Column2); for($I = 0; $I < 30; $I++) { $Row = array('Cell1', 'Cell2'); $ListView2->Rows[] = $Row; } $this->Label1 = new Label(); $this->Label1->Id = 'Label1'; $this->Label1->Caption = 'Link'; $this->Label1->OnExecute = array($this, 'Test'); $Layout2 = new Layout(); $Layout1->Id = 'Layout2'; $Layout2->Items[] = $Element1; $Layout2->Items[] = $Button1; $Layout2->Items[] = $Edit1; $Layout1 = new TableLayout(); $Layout1->Id = 'Layout1'; $Layout1->Span[] = array(2); $Layout1->Span[] = array(2); $Layout1->Span[] = array(1, 1); $Layout1->Rows[] = array($Layout2); $Layout1->Rows[] = array($this->Label1); $Layout1->Rows[] = array($ListView1, $ListView2); $Page = new Page(); $Page->Items[] = $Layout1; $Page->Prepare(); echo($Page->Show()); } } $MainPage = new MainPage(); $MainPage->Show();