예제 #1
0
     if (isset($arProductGroupIDs[$f_ID]) && $arProductGroupIDs[$f_ID]) {
         $strProductType .= ('' != $strProductType ? ', ' : '') . GetMessage('IBEL_CATALOG_TYPE_MESS_GROUP');
     }
     $row->AddViewField('CATALOG_TYPE', $strProductType);
 }
 if ($bCatalog && isset($arSelectedFieldsMap['CATALOG_MEASURE'])) {
     if (isset($arElementOps[$f_ID]["element_edit_price"]) && $boolCatalogPrice) {
         $row->AddSelectField('CATALOG_MEASURE', $measureList);
     } else {
         $measureTitle = isset($measureList[$row->arRes['CATALOG_MEASURE']]) ? $measureList[$row->arRes['CATALOG_MEASURE']] : $measureList[0];
         $row->AddViewField('CATALOG_MEASURE', $measureTitle);
         unset($measureTitle);
     }
 }
 $arActions = array();
 $actionEdit = $lAdmin->getRowAction(CIBlock::GetAdminSubElementEditLink($intSubIBlockID, $intSubPropValue, $row->arRes['orig']['ID'], array('WF' => 'Y', 'TMP_ID' => $strSubTMP_ID), $sThisSectionUrl, defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1));
 $actionCopy = $lAdmin->getRowAction(CIBlock::GetAdminSubElementEditLink($intSubIBlockID, $intSubPropValue, $row->arRes['orig']['ID'], array('WF' => 'Y', 'TMP_ID' => $strSubTMP_ID, 'action' => 'copy'), $sThisSectionUrl, defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1));
 if ($row->arRes['ACTIVE'] == 'Y') {
     $arActive = array("TEXT" => GetMessage("IBSEL_A_DEACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($row->arRes['orig']['ID'], "deactivate", $sThisSectionUrl), "ONCLICK" => "");
 } else {
     $arActive = array("TEXT" => GetMessage("IBSEL_A_ACTIVATE"), "ACTION" => $lAdmin->ActionDoGroup($row->arRes['orig']['ID'], "activate", $sThisSectionUrl), "ONCLICK" => "");
 }
 $clearCounter = array("TEXT" => GetMessage('IBSEL_A_CLEAR_COUNTER'), "TITLE" => GetMessage('IBSEL_A_CLEAR_COUNTER_TITLE'), "ACTION" => "if (confirm('" . GetMessageJS("IBSEL_A_CLEAR_COUNTER_CONFIRM") . "')) " . $lAdmin->ActionDoGroup($row->arRes['orig']['ID'], "clear_counter", $sThisSectionUrl), "ONCLICK" => "");
 if ($boolSubWorkFlow) {
     if (isset($arElementOps[$f_ID]) && isset($arElementOps[$f_ID]["element_edit_any_wf_status"])) {
         $STATUS_PERMISSION = 2;
     } else {
         $STATUS_PERMISSION = CIBlockElement::WF_GetStatusPermission($row->arRes["WF_STATUS_ID"]);
     }
     $intMinPerm = 2;
     $arUnLock = array("ICON" => "unlock", "TEXT" => GetMessage("IBEL_A_UNLOCK"), "TITLE" => GetMessage("IBLOCK_UNLOCK_ALT"), "ACTION" => "if (confirm('" . GetMessageJS("IBLOCK_UNLOCK_CONFIRM") . "')) " . $lAdmin->ActionDoGroup($row->arRes['orig']['ID'], "unlock", $sThisSectionUrl));