Esempio n. 1
0
 function html()
 {
     $this->main->attributes['value'] = $this->args[$this->context[$this->long_name]['var']];
     parent::html();
 }
Esempio n. 2
0
 function html()
 {
     if (is_array($this->args[$this->context[$this->long_name]['var']])) {
         parent::html();
     }
 }
Esempio n. 3
0
 function html()
 {
     $this->attributes['onscroll'] = "if(this.savetimeout)clearTimeout(this.savetimeout);" . "this.savetimeout=setTimeout(\"" . "save_setting_value('" . $this->oid . "','tree_scroll_x',\" + this.scrollLeft + \");" . "save_setting_value('" . $this->oid . "','tree_scroll_y',\" + this.scrollTop + \");" . "\",1000);" . "";
     //unset($this->attributes['onscroll']);
     $this->css_style['margin'] = "-1px";
     //$this->css_style['height']="100%";
     //$this->css_style['height']="auto";
     $this->css_style['width'] = "100%";
     $this->css_style['position'] = "absolute";
     $this->css_style['top'] = "22px";
     $this->css_style['bottom'] = "0px";
     $this->css_style['overflow'] = "auto";
     $this->rootnode->endscripts['tree_scroll_settings'] = "\$i('" . $this->id_gen() . "').scrollLeft=" . $this->rootnode->setting_val($this->oid, 'tree_scroll_x', '0') . ";" . "\$i('" . $this->id_gen() . "').scrollTop=" . $this->rootnode->setting_val($this->oid, 'tree_scroll_y', '0') . ";" . "";
     //$this->rootnode->out($this->rootnode->setting_val($this->oid,'tree_scroll_y',''));
     dom_div::html();
 }
Esempio n. 4
0
 function html()
 {
     $thisid = $this->id_gen();
     foreach ($this->tabs as $ind => $tab) {
         $tabdivid = $tab->div->id_gen();
         $this->activetab = $this->rootnode->setting_val($this->oid, $this->name . '.activetab', '');
         $setting_store = "save_setting_value('" . js_escape($this->oid) . "','" . js_escape($this->name . ".activetab") . "','" . js_escape($ind) . "');";
         $setting_store_null = "save_setting_value('" . js_escape($this->oid) . "','" . js_escape($this->name . ".activetab") . "','" . js_escape($ind) . "');";
         $tab->selector->attributes['onclick'] = "if(\$i('" . $thisid . "').active_tab)" . "\$i(\$i('" . $thisid . "').active_tab).style.display='none';" . "if(\$i('" . $thisid . "').active_tab_selector)" . "{" . "var inactive_sel_style=\$i(\$i('" . $thisid . "').active_tab_selector).style;" . "inactive_sel_style.fontWeight='';" . "inactive_sel_style.backgroundColor='white';" . "inactive_sel_style.borderTop='';" . "inactive_sel_style.borderLeft='';" . "inactive_sel_style.borderRight='';" . "}" . "if(\$i('" . $thisid . "').active_tab!='" . $tabdivid . "'){\n" . $setting_store . "var st=\$i('" . $tabdivid . "').style;" . "st.display='block';" . "this.style.backgroundColor=st.backgroundColor;" . "this.style.borderTop='2px groove black';" . "this.style.borderLeft='2px groove black';" . "this.style.borderRight='2px groove black';" . "this.style.fontWeight='bold';" . "\$i('" . $thisid . "').active_tab='" . $tabdivid . "';" . "\$i('" . $thisid . "').active_tab_selector=this.id;" . "}else{\n" . $setting_store_null . "\$i('" . $thisid . "').active_tab=null;" . "\$i('" . $thisid . "').active_tab_selector=null;}" . "";
     }
     if (isset($this->activetab)) {
         #if(isset($this->tabs[$this->activetab]->selector))$this->rootnode->endscripts[]="\$i('".$this->tabs[$this->activetab]->selector->id_gen()."').onclick();";
         if (isset($this->tabs[$this->activetab]->selector)) {
             $this->js->script = "\$i('" . $this->tabs[$this->activetab]->selector->id_gen() . "').onclick();";
         }
     }
     dom_div::html();
 }