- global $comp_path, $path_to_root, $use_date_picker;
-
- $rep_file = $comp_path.'/'.user_company().
- "/reporting/rep".$this->id.".php";
- if (!file_exists($rep_file))
- $rep_file = $path_to_root ."/reporting/rep".$this->id.".php";
-
- $st = "
-<script language='javascript'>
- function displayReport_" . $this->id . "() {
- pParamCount = " . count($this->ar_params) . ";
- document.forms[0].REP_ID.value = " . $this->id . ";
- document.forms[0].PARAM_COUNT.value = pParamCount;
- for (i=0; i<pParamCount; i++) {
- eval('document.forms[0].PARAM_' + i + '.value=document.forms[0].RP_" . $this->id . "_' + i + '.value');
- }