}
}
$params = array();
$params["id"] = $id;
$params['xt'] =& $xt;
$params["mode"] = $mode;
$params['chartName'] = $cname;
$params['reportName'] = $rname;
$params['tName'] = $strTableName;
$params['pageType'] = PAGE_SEARCH;
$params['templatefile'] = $templatefile;
$params['shortTableName'] = 'CompanyMaster';
$params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id;
$params['ctrlField'] = postvalue('ctrlField');
//crosstab report params
$params['axis_x'] = postvalue('axis_x');
$params['axis_y'] = postvalue('axis_y');
$params['field'] = postvalue('field');
$params['group_func'] = postvalue('group_func');
if ($mode == SEARCH_DASHBOARD) {
    $params["dashTName"] = postvalue("table");
    $params["dashElementName"] = postvalue("dashelement");
}
$pageObject = new SearchPage($params);
if ($mode == SEARCH_LOAD_CONTROL) {
    $pageObject->displaySearchControl();
    return;
}
$pageObject->init();
$pageObject->process();
Esempio n. 2
0
<?php

include "require.php";
require_once DATA_PATH . "class/pages/search.php";
$page = new SearchPage();
$page->process();
?>