1: | <?php
|
2: | |
3: | |
4: | |
5: | |
6: |
|
7: |
|
8: |
|
9: | class Desktop extends Control{
|
10: |
|
11: | public function oncreate($element){
|
12: | $this->unsetrenderTag();
|
13: | }
|
14: |
|
15: |
|
16: | public function onjsrender(){
|
17: | addHeaderJSCode($this->name,"
|
18: | function setContentWin(frmid){
|
19: | $('#{$this->name}').html($('#'+frmid).html());
|
20: | return false;
|
21: | }
|
22: | ");
|
23: | }
|
24: |
|
25: | public function onrender(){
|
26: | $this->preTag = '<div id="'.$this->name.'"> </div><div style="display:none;">';
|
27: | $this->postTag = '</div>';
|
28: | }
|
29: |
|
30: | public function setJSContent($val){
|
31: | return "setContentWin('$val');";
|
32: | }
|
33: |
|
34: | }
|
35: | ?> |