$page->settings_array = $settings_tool->read_oids($sql); //$tree_width=$page->setting_val(-1,'tree_width',''); //$tree_height=$page->setting_val(-1,'tree_height',''); $page->styles[] = '/css/default.css'; /* $page->inlinestyles[]=<<<aaaa body{ font-family:arial; font-size:16px; } input{ border: 1px solid blue; } .left{ border:4px solid black; position:fixed; overflow:hidden; top:40px; } .left:hover{ border:4px solid red; position:fixed; overflow:hidden; top:40px; } aaaa; */ //$leftdiv->oid=-1; $page->after_build(); print $page->html();
$ch += $this->row_height; foreach ($row as $k => $v) { $this->txts[$k]->text = $v; } if ($oe) { $oe = false; $this->row->css_class = 'odd'; } else { $oe = true; $this->row->css_class = 'even'; } $this->row->html(); } $this->table->html_tail(); } } $div = new dom_div(); $div->css_style['width'] = '190mm'; $qg = new query_gen_ext('select'); $qg->from->exprs[] = new sql_column(NULL, 'barcodes_raw', NULL, NULL); $qg->what->exprs[] = new sql_column(NULL, NULL, 'id', 'id'); $qg->what->exprs[] = new sql_column(NULL, NULL, 'name', 'name'); $qg->what->exprs[] = new sql_column(NULL, NULL, 'code', 'code'); $qg->lim_count = 500; $q = new qres($qg); $qid = $q->id_gen(); $div->append_child($q); $page->append_child($div); $page->endscripts[] = "\r\nwindow.onload=function()\r\n{\r\n\tvar d=document.createElement('div');\r\n\td.appendChild(document.createTextNode(' '));\r\n\td.style.width='1000mm';\r\n\td.style.height='1000mm';\r\n\tdocument.body.appendChild(d);\r\n\tvar r=document.createTextNode('1000mm is '+d.offsetWidth.toString()+'px');\r\n\tvar px_h=Math.round((d.offsetWidth*260)/1000);\r\n\tvar px_w=Math.round((d.offsetWidth*200)/1000);\r\n\t//document.body.appendChild(r);\r\n\tdocument.body.removeChild(d);\r\n\t//alert(px280+','+px200);\r\n\t\r\n};\r\n"; $page->html();