$arGroupActions["deactivate"] = GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"); break; } } $arParams = array('disable_action_sub_target' => true); if ($bWorkFlow) { $arGroupActions["unlock"] = GetMessage("IBEL_A_UNLOCK_ACTION"); $arGroupActions["lock"] = GetMessage("IBEL_A_LOCK_ACTION"); $statuses = '<div id="wf_status_id" style="display:none">' . SelectBox("wf_status_id", CWorkflowStatus::GetDropDownList("N", "desc")) . '</div>'; $arGroupActions["wf_status"] = GetMessage("IBEL_A_WF_STATUS_CHANGE"); $arGroupActions["wf_status_chooser"] = array("type" => "html", "value" => $statuses); $arParams["select_onchange"] .= "BX('wf_status_id').style.display = (this.value == 'wf_status'? 'block':'none');"; } elseif ($bBizproc) { $arGroupActions["unlock"] = GetMessage("IBEL_A_UNLOCK_ACTION"); } $lAdmin->AddGroupActionTable($arGroupActions, $arParams); ?> <script type="text/javascript"> function CheckProductName(id) { if (!id) return false; var obj = BX(id); if (!obj) return false; var obFormElement = BX.findParent(obj,{tag: 'form'}); if (!obFormElement) return false; if ((obFormElement.elements['NAME']) && (0 < obFormElement.elements['NAME'].value.length)) return obFormElement.elements['NAME'].value; else
if ($selectFieldsMap['USER_ID']) { $userName = ''; if ($row->arRes['USER_ID'] > 0 && isset($userList[$row->arRes['USER_ID']])) { $userName = $userList[$row->arRes['USER_ID']]; } $row->AddViewField('USER_ID', $userName); } unset($userName); } if (isset($row)) { unset($row); } } $adminList->AddFooter(array(array('title' => Loc::getMessage('MAIN_ADMIN_LIST_SELECTED'), 'value' => $couponIterator->SelectedRowsCount()), array('counter' => true, 'title' => Loc::getMessage('MAIN_ADMIN_LIST_CHECKED'), 'value' => 0))); if (!$couponsReadOnly) { $adminList->AddGroupActionTable(array('delete' => Loc::getMessage('MAIN_ADMIN_LIST_DELETE'), 'activate' => Loc::getMessage('MAIN_ADMIN_LIST_ACTIVATE'), 'deactivate' => Loc::getMessage('MAIN_ADMIN_LIST_DEACTIVATE'))); } if (!isset($_REQUEST["mode"]) || $_REQUEST["mode"] != 'excel' && $_REQUEST["mode"] != 'subsettings') { ?> <script type="text/javascript"> function ShowNewCoupons(id, multi) { var PostParams = { lang: '<?php echo LANGUAGE_ID; ?> ', DISCOUNT_ID: id, MULTI: multi, ID: 0, bxpublic: 'Y',
} if (array_key_exists('MODIFIED_BY', $arSelectFieldsMap)) { $strModifiedBy = ''; if (0 < $row->arRes['MODIFIED_BY'] && array_key_exists($row->arRes['MODIFIED_BY'], $arUserList)) { $strModifiedBy = '<a href="/bitrix/admin/user_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $row->arRes['MODIFIED_BY'] . '">' . $arUserList[$row->arRes['MODIFIED_BY']] . '</a>'; } $row->AddViewField("MODIFIED_BY", $strModifiedBy); } } if (isset($row)) { unset($row); } } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); if (!$boolCouponsReadOnly) { $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"))); } ?> <script type="text/javascript"> function ShowNewCoupon(id) { var PostParams = { 'lang': '<?php echo LANGUAGE_ID; ?> ', 'DISCOUNT_ID': id, 'MULTI': 'N', 'ID': 0, 'bxpublic': 'Y', 'sessid': BX.bitrix_sessid()