Пример #1
0
    global $sql, $idcounter;
    $settings_tool = new settings_tool();
    $tr = new dom_root_reload();
    $tr->append_child($obj);
    $tr->for_each_set('oid', -1);
    $tr->collect_oids($settings_tool);
    $tr->settings_array = $settings_tool->read_oids($sql);
    $tr->after_build();
    //print "\$i('dom_meta_treeview_resize_style').innerHTML=".$tr->html();
    if ($inneronly) {
        return $tr->firstinner();
    }
    return $tr->html();
}
//default path
$page = new dom_root_print();
$page->title = 'dbmanage tests';
$ttab = new dom_tab_control();
$ttab->add_tab('tree', 'tree');
$ttab->oid = '-1';
$ttab->name = 'dbmanage.tabcontrol';
$page->append_child($ttab);
//some text flood
/*
for($k=0;$k<400;$k++)
{
	$tex=new mazafaker;
	$page->append_child($tex);
}
*/
$leftdiv = new dom_meta_treeview();
Пример #2
0
        			}
        			print '$i(\''.js_escape($htmlid).'\').as_objects=['.$js.'];';
        		
        		exit;*/
        default:
    }
    //	$obj=new $classes[$etype];
    if (class_exists($etype)) {
        $obj = new $etype();
        if (method_exists($obj, 'handle_event')) {
            $obj->handle_event($event);
        }
    }
    exit;
}
$page = new dom_root_print();
$page->title = 'Коды';
$editor_name = $_GET['p'];
if (!class_exists($editor_name)) {
    $editor_name = 'query_result_viewer_codessel';
}
//$pk=new path_view_control;
$pk = new $editor_name();
$pk->name = 'pk';
$page->append_child($pk);
$page->context =& $page->context;
$settings_tool = new settings_tool();
$pk->oid = -1;
$page->collect_oids($settings_tool);
$page->settings_array = $settings_tool->read_oids($sql);
$pk->bootstrap();
Пример #3
0
<?php

set_include_path($_SERVER['DOCUMENT_ROOT']);
session_start();
//$_SESSION['uid']=0;
//$_SESSION['sql_design']=false;
$profiler = microtime(true);
require_once 'lib/ddc_meta.php';
require_once 'lib/dom.php';
require_once 'lib/settings.php';
require_once 'lib/commctrls.php';
require_once 'lib/query_gen.php';
$page = new dom_root_print();
$page->title = 'Тестовый отчет';
$page->scripts[] = '/js/core.js';
$page->scripts[] = '/js/commoncontrols.js';
$page->exstyle['*'] = array('margin' => '0mm', 'padding' => '0mm');
$page->exstyle['div'] = array('font-family' => 'serif,sans', 'font-size' => '5mm', 'padding' => '0mm');
$page->exstyle['td>div'] = array('overflow' => 'hidden', 'height' => '16mm');
$page->exstyle['tr.head>td>div'] = array('border' => '0.5mm solid black', 'border-collapse' => 'collapse');
$page->exstyle['tr.even'] = array('background-color' => '#ffeeee');
$page->exstyle['tr.odd'] = array('background-color' => 'white');
$page->exstyle['@page'] = array('margin' => '0mm', 'padding' => '0mm');
class qres extends dom_any
{
    function __construct($qg)
    {
        parent::__construct('div');
        $this->qg = $qg;
        $this->css_style['padding'] = '0px';
        $this->css_style['margin'] = '0px';