1: <?php
2:
3: require_once('../qcubed.inc.php');
4:
5: class TestImageBrowser extends QForm {
6: 7: 8:
9: protected $imbBrowser;
10:
11: protected function Form_Create() {
12: $this->imbBrowser = new QImageBrowser($this);
13: $this->imbBrowser->Template = 'image_browser.tpl.php';
14:
15:
16: $this->imbBrowser->MainImage->Width = 150;
17: $this->imbBrowser->MainImage->Height = 150;
18: $this->imbBrowser->MainImage->AddAction(new QClickEvent(), new QAjaxControlAction($this->imbBrowser, 'btnNext_Click'));
19: $this->imbBrowser->LoadImagesFromDirectory("../images/emoticons", '/png/i');
20: }
21: }
22:
23: TestImageBrowser::Run('TestImageBrowser', 'test_image_browser.tpl.php');
24: ?>
25: