function auth_gen_form() { global $sql; $page = new dom_root(); $page->title = 'Вход в систему'; $auth_div = new dom_auth_request(); //$page->append_child($auth_div); $cont = new dom_table(); $tr = new dom_tr(); $td = new dom_td(); $d = new dom_div(); $d->css_style['top'] = '1px'; $d->css_style['bottom'] = '1px'; $d->css_style['left'] = '1px'; $d->css_style['right'] = '1px'; $d->css_style['position'] = 'fixed'; $d->css_style['display'] = 'block'; $cont->css_style['height'] = '100%'; $cont->css_style['width'] = '100%'; $td->css_style['height'] = '100%'; $cont->append_child($tr); $tr->append_child($td); $td->append_child($auth_div); $d->append_child($cont); $page->append_child($d); //$txt=new dom_statictext; //$txt->text=md5('test'); //$page->append_child($txt); $page->scripts['core.js'] = '/js/core.js'; $page->scripts['commoncontrols.js'] = '/js/commoncontrols.js'; $page->endscripts[] = "var ct=\$i('" . $auth_div->username->id_gen() . "');ct.focus();ct.selectionStart=0;ct.selectionEnd=ct.value.length;"; $settings_tool = new settings_tool(); $page->for_each_set('oid', -1); $page->collect_oids($settings_tool); $page->settings_array = $settings_tool->read_oids($sql); $page->after_build(); print $page->html(); //print_r($_SERVER); exit; }
div.table_div{ display:block;position:absolute;left:500;top:20;background-color:yellow;border: 1px solid blue;border-collapse:collapse;width:400px; } div.table_div div[width="0"]{ background-color:white;overflow:hidden;width:auto; } div.table_div div[width="1"]{ overflow:hidden;width:auto; } div.table_div div div{ float:left;border:1px solid black;width:46%; } aaaaa; $style_tag = new dom_any(); $style_tag->node_name = 'style'; $style_tag->attributes['type'] = 'text/css'; $txt = new dom_statichtml(); $txt->text = $style_text; $style_tag->append_child($txt); //$test->insert_before($test->nodes[0],$style_tag); $test->inlinestyles[0] = $style_text; //$tbl->css_class='ab'; //$test->endscripts[]='alert("after page loading");'; //$test->inlinescripts[]='alert("inline before page loading");'; $prof = new dom_profiler(); $test->append_child($prof); print $test->html();