} else { $arUserColumns = array( "COLUMN_NUMBER" => GetMessage("SOD_COLUMN_NUMBER"), "COLUMN_IMAGE" => GetMessage("SOD_COLUMN_IMAGE"), "COLUMN_NAME" => GetMessage("SOD_COLUMN_NAME"), "COLUMN_QUANTITY" => GetMessage("SOD_COLUMN_QUANTITY"), "COLUMN_REMAINING_QUANTITY" => GetMessage("SOD_COLUMN_REMAINING_QUANTITY"), "COLUMN_PROPS" => GetMessage("SOD_COLUMN_PROPS"), "COLUMN_PRICE" => GetMessage("SOD_COLUMN_PRICE"), "COLUMN_SUM" => GetMessage("SOD_COLUMN_SUM"), ); } $customTabber = new CAdminTabEngine("OnAdminSaleOrderView", array("ID" => $ID)); $arTransactTypes = array( "ORDER_PAY" => GetMessage("SOD_PAYMENT"), "CC_CHARGE_OFF" => GetMessage("SOD_FROM_CARD"), "OUT_CHARGE_OFF" => GetMessage("SOD_INPUT"), "ORDER_UNPAY" => GetMessage("SOD_CANCEL_PAYMENT"), "ORDER_CANCEL_PART" => GetMessage("SOD_CANCEL_SEMIPAYMENT"), "MANUAL" => GetMessage("SOD_HAND"), "DEL_ACCOUNT" => GetMessage("SOD_DELETE"), "AFFILIATE" => GetMessage("SOD1_AFFILIATES_PAY"), ); $bUserCanViewOrder = CSaleOrder::CanUserViewOrder($ID, $arUserGroups, $intUserID); $bUserCanEditOrder = CSaleOrder::CanUserUpdateOrder($ID, $arUserGroups); $bUserCanCancelOrder = CSaleOrder::CanUserCancelOrder($ID, $arUserGroups, $intUserID);
function BeginNextTab() { if ($this->AUTOSAVE) $this->AUTOSAVE->Init(); //end previous tab $this->EndTab(); if($this->tabIndex >= count($this->tabs)) return; $css = ''; if ($this->tabs[$this->tabIndex]["DIV"] <> $this->selectedTab) $css .= 'display:none; '; echo ' <div class="adm-detail-content" id="'.$this->tabs[$this->tabIndex]["DIV"].'"'.($css != '' ? ' style="'.$css.'"' : '').'>'; /*if($this->tabs[$this->tabIndex]["ICON"] <> "") echo ' <td class="icon"><div id="'.$this->tabs[$this->tabIndex]["ICON"].'"></div></td> ';*/ echo ' <div class="adm-detail-title">'.$this->tabs[$this->tabIndex]["TITLE"].'</div>'; echo ' <div class="adm-detail-content-item-block"> <table class="adm-detail-content-table edit-table" id="'.$this->tabs[$this->tabIndex]["DIV"].'_edit_table"> <tbody> '; if(array_key_exists("CUSTOM", $this->tabs[$this->tabIndex]) && $this->tabs[$this->tabIndex]["CUSTOM"] == "Y") { $this->customTabber->ShowTab($this->tabs[$this->tabIndex]["DIV"]); $this->tabIndex++; $this->BeginNextTab(); } elseif(array_key_exists("CONTENT", $this->tabs[$this->tabIndex])) { echo $this->tabs[$this->tabIndex]["CONTENT"]; $this->tabIndex++; $this->BeginNextTab(); } else { $this->tabIndex++; } }
$arPostParams['bxsku'] = 'Y'; } if ('' != $strProductName) { $arPostParams['PRODUCT_NAME'] = $strProductName; $arPostParams['sessid'] = bitrix_sessid(); } $arListUrl = array('LINK' => $APPLICATION->GetCurPageParam(), 'POST_PARAMS' => $arPostParams); if ($ID > 0) { $rsElement = CIBlockElement::GetList(array(), array("ID" => $ID, "IBLOCK_ID" => $IBLOCK_ID, "SHOW_HISTORY" => "Y"), false, false, array("ID", "CREATED_BY")); if (!($arElement = $rsElement->Fetch())) { $error = new _CIBlockError(1, "BAD_ELEMENT", GetMessage("IBLOCK_BAD_ELEMENT")); $APPLICATION->SetTitle($arIBTYPE["ELEMENT_NAME"] . ": " . GetMessage("IBLOCK_EDIT_TITLE")); break; } } $customTabber = new CAdminTabEngine("OnAdminIBlockElementEdit", array("ID" => $ID, "IBLOCK" => $arIBlock, "IBLOCK_TYPE" => $arIBTYPE)); // workflow mode if ($ID > 0 && $WF == "Y") { // get ID of the last record in workflow $WF_ID = CIBlockElement::WF_GetLast($ID); // check for edit permissions $STATUS_ID = CIBlockElement::WF_GetCurrentStatus($WF_ID, $STATUS_TITLE); $STATUS_PERMISSION = CIBlockElement::WF_GetStatusPermission($STATUS_ID); if ($STATUS_ID > 1 && $STATUS_PERMISSION < 2) { $error = new _CIBlockError(1, "ACCESS_DENIED", GetMessage("IBLOCK_ACCESS_DENIED_STATUS")); break; } elseif ($STATUS_ID == 1) { $WF_ID = $ID; $STATUS_ID = CIBlockElement::WF_GetCurrentStatus($WF_ID, $STATUS_TITLE); $STATUS_PERMISSION = CIBlockElement::WF_GetStatusPermission($STATUS_ID); }