if (CModule::IncludeModule('form'))
{
if ($groupId == 9) {
$FORM_ID = 63;
}
if ($groupId == 95) {
$FORM_ID = 74;
}
$rsFormResult = CFormResult::GetList($FORM_ID,"s_timestamp", "desc",
Array(
'USER_ID' => $USER_ID
)
);
$ResultArray = $rsFormResult->Fetch();
$resultID = $ResultArray['ID'];
if ($groupId == 95) {
$GetByID = CFormResult::GetDataByID($resultID,array( $some1 ),$arResult,$arAnswer2);
$Rcompany = $GetByID[$some1][0]['USER_TEXT'];
}
if ($groupId == 9) {
$GetByID = CFormResult::GetDataByID($resultID,array( $some1 ),$arResult,$arAnswer2);
$Rcompany = $GetByID[ $some1 ][0]['USER_TEXT'];
}
} |