Ejemplo n.º 1
0
     }
     $list_report_form->assign("SHOWCHARTS", $showCharts);
 }
 //Monolithic Changes Ends
 // Performance Optimization: Direct output of the report result
 if ($_REQUEST['submode'] == 'generateReport' && empty($advft_criteria)) {
     $filtersql = '';
 }
 $sshtml = array();
 $totalhtml = '';
 $list_report_form->assign("DIRECT_OUTPUT", true);
 $list_report_form->assign_by_ref("__REPORT_RUN_INSTANCE", $oReportRun);
 $list_report_form->assign_by_ref("__REPORT_RUN_FILTER_SQL", $filtersql);
 //Ends
 $ogReport->getPriModuleColumnsList($ogReport->primodule);
 $ogReport->getSecModuleColumnsList($ogReport->secmodule);
 $ogReport->getAdvancedFilterList($reportid);
 $COLUMNS_BLOCK = getPrimaryColumns_AdvFilter_HTML($ogReport->primodule, $ogReport);
 $COLUMNS_BLOCK .= getSecondaryColumns_AdvFilter_HTML($ogReport->secmodule, $ogReport);
 $list_report_form->assign("COLUMNS_BLOCK", $COLUMNS_BLOCK);
 $FILTER_OPTION = Reports::getAdvCriteriaHTML();
 $list_report_form->assign("FOPTION", $FILTER_OPTION);
 $rel_fields = $ogReport->adv_rel_fields;
 $list_report_form->assign("REL_FIELDS", Zend_Json::encode($rel_fields));
 $list_report_form->assign("CRITERIA_GROUPS", $ogReport->advft_criteria);
 $list_report_form->assign("MOD", $mod_strings);
 $list_report_form->assign("APP", $app_strings);
 $list_report_form->assign("IMAGE_PATH", $image_path);
 $list_report_form->assign("REPORTID", $reportid);
 $list_report_form->assign("IS_EDITABLE", $ogReport->is_editable);
 $list_report_form->assign("REP_FOLDERS", $ogReport->sgetRptFldr());
Ejemplo n.º 2
0
    $ogReport->getSecModuleColumnsList($oReport->secmodule);
    $list_report_form->assign('BACK_WALK', 'true');
} else {
    $reportname = vtlib_purify($_REQUEST["reportname"]);
    $reportdescription = vtlib_purify($_REQUEST["reportdes"]);
    $folderid = vtlib_purify($_REQUEST["reportfolder"]);
    $ogReport = new Reports();
    $primarymodule = vtlib_purify($_REQUEST["primarymodule"]);
    $secondarymodule = '';
    $secondarymodules = array();
    if (!empty($ogReport->related_modules[$primarymodule])) {
        foreach ($ogReport->related_modules[$primarymodule] as $key => $value) {
            if (isset($_REQUEST["secondarymodule_" . $value])) {
                $secondarymodules[] = $_REQUEST["secondarymodule_" . $value];
            }
            $ogReport->getSecModuleColumnsList($_REQUEST["secondarymodule_" . $value]);
            if (!isPermitted($_REQUEST["secondarymodule_" . $value], 'index') == "yes" && !isset($_REQUEST["secondarymodule_" . $value])) {
                $permission = false;
            }
        }
    }
    $secondarymodule = implode(":", $secondarymodules);
    $ogReport->getPriModuleColumnsList($primarymodule);
    //$ogReport->getSecModuleColumnsList($secondarymodule);
    $list_report_form->assign('BACK_WALK', 'true');
}
$list_report_form->assign('USER_DATE_FORMAT', $current_user->date_format);
if (isset($current_user->currency_grouping_separator) && $current_user->currency_grouping_separator == '') {
    $list_report_form->assign('USER_CURRENCY_SEPARATOR', ' ');
} else {
    $list_report_form->assign('USER_CURRENCY_SEPARATOR', html_entity_decode($current_user->currency_grouping_separator, ENT_QUOTES, $default_charset));