1: <?php
2: /**
3: * Description of Frame
4: *
5: * @author SARTAJ
6: */
7:
8:
9: class Frame extends Sphp\tools\Component{
10: private $width = '540px';
11: private $heigth = '380px';
12: protected function oncreate($element){
13: $this->setHTMLName("");
14: }
15:
16: public function fu_setWidth($val){
17: $this->width = $val;
18: }
19: public function fu_setHeight($val){
20: $this->height = $val;
21: }
22:
23: protected 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: ?>