} $row->AddViewField("SITE_ID", $str_SITE); $row->AddInputField("NAME", array("size" => "35")); $row->AddInputField("PRIORITY", array("size" => "3")); $str = ""; if (intval($f_RESPONSE_TIME) > 0) { $str .= $f_RESPONSE_TIME . " "; switch ($f_RESPONSE_TIME_UNIT) { case "hour": $str .= __PrintRussian($f_RESPONSE_TIME, array(GetMessage("SUP_HOUR_1"), GetMessage("SUP_HOUR_3"), GetMessage("SUP_HOUR_5"))); break; case "minute": $str .= __PrintRussian($f_RESPONSE_TIME, array(GetMessage("SUP_MINUTE_1"), GetMessage("SUP_MINUTE_3"), GetMessage("SUP_MINUTE_5"))); break; case "day": $str .= __PrintRussian($f_RESPONSE_TIME, array(GetMessage("SUP_DAY_1"), GetMessage("SUP_DAY_3"), GetMessage("SUP_DAY_5"))); break; } } else { $str .= "<nobr>" . GetMessage("SUP_NO_LIMITS") . "</nobr>"; } $row->AddViewField("RESPONSE_TIME", $str); $str = ""; $arG = CTicketSLA::GetGroupArray($f_ID); foreach ($arG as $gid) { if (!is_array($arGROUPS) || !in_array($gid, array_keys($arGROUPS))) { $rs = CGroup::GetByID($gid); if ($ar = $rs->Fetch()) { $arGROUPS[$gid] = $ar["NAME"]; } }
$str = ""; if (intval($arRes['RESPONSE_TIME'])>0): $str .= $arRes['RESPONSE_TIME']." "; switch ($arRes['RESPONSE_TIME_UNIT']) { case "hour": $str .= __PrintRussian($arRes['RESPONSE_TIME'], array(GetMessage("SUP_HOUR_1"), GetMessage("SUP_HOUR_3"), GetMessage("SUP_HOUR_5"))); break; case "minute": $str .= __PrintRussian($arRes['RESPONSE_TIME'], array(GetMessage("SUP_MINUTE_1"), GetMessage("SUP_MINUTE_3"), GetMessage("SUP_MINUTE_5"))); break; case "day": $str .= __PrintRussian($arRes['RESPONSE_TIME'], array(GetMessage("SUP_DAY_1"), GetMessage("SUP_DAY_3"), GetMessage("SUP_DAY_5"))); break; } else: $str .= "<nobr>".GetMessage("SUP_NO_LIMITS")."</nobr>"; endif; $row->AddViewField("RESPONSE_TIME", $str); $str = ""; if (isset($slaGroupList[$arRes['ID']])) { $arG = $slaGroupList[$arRes['ID']];