function html_inner() { $this->btn->attributes['onkeydown'] = "return keyboard_test_btn_key(event,this,0);"; $this->btn->attributes['onkeypress'] = "return keyboard_test_btn_key(event,this,1);"; $this->btn->attributes['onkeyup'] = "return keyboard_test_btn_key(event,this,2);"; parent::html_inner(); $sn = ''; for ($k = 1; $k <= keyboard_test::TEST_NUM; $k++) { $sn .= "btn.result_divs[" . $k . "]=new Array('" . $this->tbl->cells[$k][1]->id_gen() . "',"; $sn .= "'" . $this->tbl->cells[$k][2]->id_gen() . "',"; $sn .= "'" . $this->tbl->cells[$k][3]->id_gen() . "'"; $sn .= ");"; } $this->rootnode->endscripts[] = "(function(){" . "var btn=\$i('" . $this->btn->id_gen() . "');" . "btn.result_struct=new Array();" . "btn.result_divs=new Array();" . $sn . "btn.focus();" . "})();"; }
function html_inner() { $this->subm_btn->attributes['onclick'] = "\$i('" . $this->res->id_gen() . "').is_uploading=true;" . "\$i('" . $this->res_div->id_gen() . "').style.display='';" . "\$i('" . $this->file_inp->id_gen() . "').style.display='none';\$i('" . $this->subm_btn->id_gen() . "').style.display='none';"; $reset = "\$i('" . $this->res_div->id_gen() . "').style.display='none';" . "\$i('" . $this->file_inp->id_gen() . "').value='';" . "\$i('" . $this->file_inp->id_gen() . "').style.display='';\$i('" . $this->subm_btn->id_gen() . "').style.display='';"; if (isset($this->normal_postback)) { $this->res->attributes['onload'] = "if(this.is_uploading){" . "chse.send_or_push({static:" . $this->send . ",val:this.contentWindow.document.firstChild[text_content],c_id:this.id});" . "\$i('" . $this->res_div->id_gen() . "').style.display='none';" . "\$i('" . $this->file_inp->id_gen() . "').value='';" . "\$i('" . $this->file_inp->id_gen() . "').style.display='';\$i('" . $this->subm_btn->id_gen() . "').style.display='';" . "this.is_uploading=false;};"; } else { if (isset($this->onload)) { $this->res->attributes['onload'] = "this.reset=function(){" . $reset . "};if(this.is_uploading){" . "var resdiv=\$i('" . $this->res_div->id_gen() . "');" . $this->onload . "this.is_uploading=false;};"; } else { $this->res->attributes['onload'] = "if(this.is_uploading){" . "\$i('" . $this->res_div->id_gen() . "').innerHTML=this.contentWindow.document.firstChild.innerHTML;" . "this.is_uploading=false;};"; } } //$this->file_inp->attributes['onchange']="alert(this.value);if(\$i('".js_escape($this->form->id_gen())."').submit())this.style.display='none';"; $this->res->attributes['name'] = $this->res->id_gen(); $this->form->attributes['target'] = $this->res->attributes['name']; parent::html_inner(); }
function html_inner() { foreach ($this->opts as $a) { $a->attributes['onclick'] = "var t=\$i('" . $this->set_htmlid . "');" . "t.focus();" . "t.value='" . $a->val . "';" . 'return false;'; } dom_div::html_inner(); }
function html_inner() { $num = $this->rootnode->setting_val($this->oid, $this->long_name . '.test_multi_exec_n', '1'); for ($k = 0; $k < $num; $k++) { $this->editors['qsel']->options[$k] = '"' . $k . '"'; } $sel = $this->rootnode->setting_val($this->oid, $this->long_name . '.test_multi_exec_s', '0'); $this->args['qsel'] = $sel; $this->args['qed'] = $this->rootnode->setting_val($this->oid, $this->long_name . '.test_multi_exec_q' . $sel, ''); //print $this->args['qed']; parent::html_inner(); }
function html_inner() { //foreach($this->editors as $e)$e->bootstrap(); parent::html_inner(); }
function html_inner() { global $sql; $sres = $sql->query("SELECT a.name,a.id as depid, '" . $sql->esc($this->keys['id']) . "' as id FROM `%dev_list` as a, `%dev_list_deps` as b WHERE a.id=b.depid AND b.id='" . $sql->esc($this->keys['id']) . "' ORDER BY a.name"); while ($row = $sql->fetcha($sres)) { foreach ($this->editors as $a) { $a->keys['depid'] = $row['dep']; $a->args =& $row; $a->id_alloc(); $a->bootstrap(); } dom_div::html_inner(); } if ($sres) { $sql->free($sres); } }
function html_inner() { global $sql; if ($_GET['id'] == '') { $this->rootnode->out('Select node on the left'); return; } $r = $sql->fetch1($sql->query("SELECT count(1) FROM `" . TABLE_META_TREE_TMP . "`")); if ($r > 0) { $t = TABLE_META_TREE_TMP; } else { //working on real !! $t = TABLE_META_TREE; } $q = new query_gen_ext('SELECT'); $q->from->exprs[] = new sql_column(NULL, $t); foreach ($this->collist as $col) { $q->what->exprs[] = new sql_column(NULL, NULL, $col['name']); //$q->what->exprs[]=new sql_immed($col['name'],'pr-'.$col['name']); } $q->where->exprs[] = new sql_expression('=', array(new sql_column(NULL, NULL, 'id'), new sql_immed($_GET['id']))); $res = $sql->query($q->result()); if (!$res) { $this->rootnode->out('Hmmm.. Query failed. Maybe selected object has been deleted in another window.<br>'); $this->rootnode->out($q->result()); return; } $row = $sql->fetcha($res); if (!$row) { $this->rootnode->out('Hmmm.. Query failed. Maybe selected object has been deleted in another window.<br>'); $this->rootnode->out($q->result()); return; } foreach ($row as $i => $v) { $this->args[$i] = $v; } parent::html_inner(); }
function html_inner() { $this->args['ed_count'] = $this->rootnode->setting_val($this->oid, $this->long_name . '._count', 20); $this->args['ed_offset'] = $this->rootnode->setting_val($this->oid, $this->long_name . '._offset', 0); $this->args['ed_filters'] = unserialize($this->rootnode->setting_val($this->oid, $this->long_name . '._filters', 0)); $this->args['ed_order'] = unserialize($this->rootnode->setting_val($this->oid, $this->long_name . '._order', 0)); $this->args['ed_insert'] = unserialize($this->rootnode->setting_val($this->oid, $this->long_name . '._insert', 0)); $this->editors['ed_list']->table_name = 'samples_raw'; parent::html_inner(); }
function html_inner() { $this->fold_state = $this->rootnode->setting_val($this->oid, $long_name . '.fold_state', ''); if (isset($this->title)) { $this->title_text->text =& $this->title; } $this->hideshow_button->attributes['onclick'] = 'var div=$i(\'' . js_escape($this->hidden_div->id_gen()) . '\');' . 'if(div)' . '{' . 'if(div.style.display==\'none\')' . '{' . 'div.style.display=\'\';' . "save_setting_value('" . js_escape($this->oid) . "','" . js_escape($long_name . ".fold_state") . "','1');" . '}' . 'else' . '{' . 'div.style.display=\'none\';' . "save_setting_value('" . js_escape($this->oid) . "','" . js_escape($long_name . ".fold_state") . "','');" . '}' . '};'; $this->hideshow_button->attributes['onclick'] .= 'var hsbtn=$i(\'' . js_escape($this->hideshow_button->id_gen()) . '\');' . 'if(div && hsbtn){' . 'if(div.style.display==\'none\')' . '{' . 'hsbtn.src=\'' . js_escape(container_hidden::PLUS_PNG) . '\';' . 'hsbtn.alt=\'+\';' . '}' . 'else ' . '{' . 'hsbtn.src=\'' . js_escape(container_hidden::MINUS_PNG) . '\';' . 'hsbtn.alt=\'-\';' . '};' . '};'; if ($this->fold_state == '1') { $this->hideshow_button->attributes['src'] = container_hidden::MINUS_PNG; $this->hideshow_button->attributes['alt'] = '-'; unset($this->hidden_div->css_style['display']); } parent::html_inner(); }
function html_inner() { foreach ($this->settings_list as $i => $v) { $this->args[$i] = $this->settings_type[$i] == 's' ? unserialize($this->rootnode->setting_val($this->oid, $this->long_name . $v, '')) : $this->rootnode->setting_val($this->oid, $this->long_name . $v, ''); } // if($this->args['ed_csv_encoding']=='')$this->args['ed_csv_encoding']='utf-8'; $this->editors['clear_accept']->attributes['onclick'] = "if(confirm('Table contents will be deleted!')){" . $this->editors['clear_accept']->attributes['onclick'] . "};"; parent::html_inner(); }
function html_inner() { $this->args['isref'] = $this->args[$this->context[$this->long_name]['var']]->isref; $this->args['main'] = $this->args[$this->context[$this->long_name]['var']]->main; $this->args['unit'] = $this->args[$this->context[$this->long_name]['var']]->unit; parent::html_inner(); }
function html_inner() { $this->args['file_picker'] = $this->rootnode->setting_val($this->oid, $this->long_name . '!file', ''); $this->args['task'] = $this->rootnode->setting_val($this->oid, $this->long_name . '!task', '0'); parent::html_inner(); }