1: <?php
2: /**
3: * Description of Frame
4: *
5: * @author SARTAJ
6: */
7:
8:
9: class Frame extends Control{
10: private $width = '540px';
11: private $heigth = '380px';
12: public function oncreate($element){
13: $this->setHTMLName("");
14: }
15:
16: public function setWidth($val){
17: $this->width = $val;
18: }
19: public function setHeight($val){
20: $this->height = $val;
21: }
22:
23: public function onjsrender(){
24: if($this->parameterA['class'] == ''){
25: addHeaderCSS('frame', '
26: .frame
27: {
28: border:1px solid #DDDDDD;
29: float:left;
30: height:'.$this->height.';
31: overflow:auto;
32: position:relative;
33: width:'.$this->width.';
34: }
35: ');
36: $this->parameterA['class'] = 'frame';
37: }
38:
39: }
40:
41:
42: }
43: ?>