\n" . "\n" . " " . getLngt("BETRIEBSMELDUNGEN:") . "    \n" . "\n" . "
\n"; if ($outDataArrayLen > 0) : $outputData .= "" . " " . " " . " " . " " . " " . " " . " " . " "; for ($j = 0; $j < $outDataArrayLen; $j++) : $outputData .= $outDataArray[$j]; endfor; $outputData .= "
" . $actionObjId . "
" . getLngt("Code") . "" . getLngt("Beschreibung") . "" . getLngt("Text") . "
"; endif; return $outputData; } // Output log data function outSuHistoryData($actionObjType, $actionObjId, $rootStockSU, $outDataArray, $filter_1) { global $colArray, $containerCssWidth; $outputData = ""; $outDataArrayLen = count($outDataArray); $outputData .= "\n" . "\n" . " \n" . " \n" . " \n" . "\n" . "
" . getLngt("ZUSTANDSVERLAUF:") . "    \n" . "     \n" . " \n" . defineButtonType08("Aktualisieren", "action_log_reload", "finishPage('processAction');", "140", "", "", "", "", "", "", "1") . "

\n"; if ($outDataArrayLen > 0) : $outputData .= "" . " " . " " . " " . " " . " " . " " . " " . " " . " "; for ($j = 0; $j < $outDataArrayLen; $j++) : $outputData .= $outDataArray[$j]; endfor; $outputData .= "
" . $actionObjId . "
" . getLngt("Zeitpunkt") . "" . getLngt("BEK") . "" . getLngt("MEK") . "" . getLngt("H1") . "" . getLngt("H2") . "" . getLngt("H3") . "
"; endif; return $outputData; } // *********** // * ACTIONS * // *********** if ($mode == "getSuMessageData") : // Service unit messages $retVal = ""; if ($actionObjId != "") : $outMessageArray = array(); getSuMessageData($actionObjId); $retVal = outSuMsgData($actionObjId, $outMessageArray); endif; echo $retVal; elseif ($mode == "getSuHistoryData") : $retVal = ""; if ($actionObjType != "" && $actionObjId != "" && $rootStockSU != "") : // Get vector of article(type) IDs ("at_id") of service units // $suAtIdArray = getColVectorFromDB2ArrayByClause("phoenix.article", "at_id", "at_group = '," . $suGroupId . ",'", "", "at_id"); $suAtIdString = getParameterValue("0", "SU_AT_TYPES_FOR_TV", $hq_id); $suAtIdArray = explode(",", $suAtIdString); $suAtIdArrayLen = count($suAtIdArray); // Get thresholdvalues getThresholdValues($suAtIdArray); // Get type of the service unit for corresponding threashold values $atId = getFieldValueFromId("phoenix.articleitem", "ati_serialno ", $actionObjId, "at_id"); /* $jsTv = ""; for ($j = 1; $j <= $maxNumOfAtiDataFields; $j++) : if ($f_tv[$atId][$j] != "" && is_numeric($f_tv[$atId][$j])) : $jsTv .= "&value_". pad($j,2) . "=" . $f_tv[$atId][$j]; endif; endfor; */ if ($filter_1 == "") : $filter_1 = "0"; endif; $f_log_filter_1 = $filter_1; $outLogArray = array(); getSuHistoryData("0", "AND stk.stk_pre_id = '" . $rootStockSU . "' AND atih.atih_serialno = '" . $actionObjId . "'"); $retVal = outSuHistoryData($actionObjType, $actionObjId, $rootStockSU, $outLogArray, $filter_1); endif; echo $retVal; endif; ?>