Exemplo n.º 1
0
echo Admin\Blocks\OrderAnalysis::getScripts();
echo $orderBasket->getScripts();
$fastNavItems = array();
foreach ($defaultBlocksOrder as $item) {
    $fastNavItems[$item] = Loc::getMessage("SALE_OVIEW_BLOCK_TITLE_" . toUpper($item));
}
// navigation
echo Admin\OrderEdit::getFastNavigationHtml($fastNavItems);
// yellow block with brief
echo Admin\Blocks\OrderInfo::getView($saleOrder, $orderBasket);
// Problem block
if ($saleOrder->getField("MARKED") == "Y") {
    echo Admin\OrderEdit::getProblemBlockHtml($saleOrder->getField("REASON_MARKED"));
}
$aTabs = array(array("DIV" => "tab_order", "TAB" => Loc::getMessage("SALE_OVIEW_TAB_ORDER"), "TITLE" => Loc::getMessage("SALE_OVIEW_TAB_ORDER"), "SHOW_WRAP" => "N", "IS_DRAGGABLE" => "Y"), array("DIV" => "tab_history", "TAB" => Loc::getMessage("SALE_OVIEW_TAB_HISTORY"), "TITLE" => Loc::getMessage("SALE_OVIEW_TAB_HISTORY")), array("DIV" => "tab_analysis", "TAB" => Loc::getMessage("SALE_OVIEW_TAB_ANALYSIS"), "TITLE" => Loc::getMessage("SALE_OVIEW_TAB_ANALYSIS")));
$tabControl = new CAdminTabControlDrag($formId, $aTabs, $moduleId, false, true);
$tabControl->Begin();
//TAB order --
$tabControl->BeginNextTab();
$blocksOrder = $tabControl->getCurrentTabBlocksOrder($defaultBlocksOrder);
$statusOnPaid = Bitrix\Main\Config\Option::get('sale', 'status_on_paid');
$statusOnAllowDelivery = Bitrix\Main\Config\Option::get('sale', 'status_on_allow_delivery');
$statusOnPaid2AllowDelivery = Bitrix\Main\Config\Option::get('sale', 'status_on_payed_2_allow_delivery');
$autoChangeStatus = 'Y';
if (empty($statusOnPaid) && (empty($statusOnAllowDelivery) || empty($statusOnPaid2AllowDelivery))) {
    $autoChangeStatus = 'N';
}
?>
<tr><td>
	<input type="hidden" id="ID" name="ID" value="<?php 
echo $ID;
Exemplo n.º 2
0
echo $orderBasket->getScripts();
// navigation
echo OrderEdit::getFastNavigationHtml($fastNavItems);
// yellow block with brief
echo Blocks\OrderInfo::getView($order, $orderBasket);
// Problem block
if ($order->getField("MARKED") == "Y") {
    echo OrderEdit::getProblemBlockHtml($order->getField("REASON_MARKED"));
}
$aTabs = array(array("DIV" => "tab_order", "TAB" => Loc::getMessage("SALE_TAB_ORDER"), "SHOW_WRAP" => "N", "IS_DRAGGABLE" => "Y"), array("DIV" => "tab_analysis", "TAB" => Loc::getMessage("SALE_TAB_ANALYSIS"), "TITLE" => Loc::getMessage("SALE_TAB_ANALYSIS")));
?>
<form method="POST" action="<?php 
echo $APPLICATION->GetCurPage() . "?lang=" . LANGUAGE_ID . "&ID=" . $ID . "&" . $urlForm . GetFilterParams("filter_", false);
?>
" name="sale_order_edit_form" id="sale_order_edit_form" enctype="multipart/form-data"><?php 
$tabControl = new CAdminTabControlDrag($formId, $aTabs, $moduleId, false, true);
$tabControl->Begin();
//TAB order --
$tabControl->BeginNextTab();
$blocksOrder = $tabControl->getCurrentTabBlocksOrder($defaultBlocksOrder);
?>
<tr><td>
	<input type="hidden" id="ID" name="ID" value="<?php 
echo $ID;
?>
">
	<input type="hidden" id="SITE_ID" name="SITE_ID" value="<?php 
echo htmlspecialcharsbx($order->getSiteId());
?>
">
	<input type="hidden" id="OLD_USER_ID" name="OLD_USER_ID" value="<?php 
Exemplo n.º 3
0
    $aTabs[] = array("DIV" => "tab_history", "TAB" => GetMessage("SOP_TAB_HISTORY"), "TITLE" => GetMessage("SOP_TAB_HISTORY"));
    $aTabs[] = array("DIV" => "tab_analysis", "TAB" => GetMessage("SOP_TAB_ANALYSIS"), "TITLE" => GetMessage("SOP_TAB_ANALYSIS"));
}
$formId = "order_shipment_edit_info";
?>
<form method="POST" action="<?php 
echo $APPLICATION->GetCurPage() . "?lang=" . $lang . '&order_id=' . $orderId . $urlForm . GetFilterParams("filter_", false) . ($shipmentId > 0 ? '&shipment_id=' . $shipmentId : '') . '&backurl=' . urlencode($backUrl);
?>
" name="<?php 
echo $formId;
?>
_form" id="<?php 
echo $formId;
?>
_form"><?php 
$tabControl = new CAdminTabControlDrag($formId, $aTabs, $moduleId, false, true);
$tabControl->Begin();
//TAB order --
$tabControl->BeginNextTab();
//prepare blocks order
$defaultBlocksOrder = array("goodsList", "shipmentStatus", "shipment", "buyer", "additional");
$blocksOrder = $tabControl->getCurrentTabBlocksOrder($defaultBlocksOrder);
$shipmentOrderBasket = new \Bitrix\Sale\Helpers\Admin\Blocks\OrderBasketShipment($shipment, "BX.Sale.Admin.ShipmentBasketObj", "sale_shipment_basket");
?>

<input type="hidden" name="lang" id="lang" value="<?php 
echo $lang;
?>
">
<input type="hidden" id="order_id" name="order_id" value="<?php 
echo $orderId;
Exemplo n.º 4
0
<?php 
// TABS
$tabControlTabs = array();
foreach ($personsDomainsWithCommon as $personId => $personDomain) {
    if (!$activeCodeDomains[$personDomain]) {
        continue;
    }
    $tabControlTabs[] = array('DIV' => 'mapTab' . $personId, 'TAB' => $personsWithCommon[$personId], 'TITLE' => $personsWithCommon[$personId], 'SHOW_WRAP' => 'N', 'IS_DRAGGABLE' => 'Y');
}
$tabControlTabs[] = array('DIV' => 'domainTab', 'TAB' => Loc::getMessage('BIZVAL_PAGE_PTYPES'), 'TITLE' => Loc::getMessage('BIZVAL_PAGE_DOMAIN'));
?>
<form method="POST" action="<?php 
echo $APPLICATION->GetCurPage() . '?lang=' . LANGUAGE_ID . GetFilterParams('filter_', false);
?>
" name="bizvalTabs_form" id="bizvalTabs_form"><?php 
$tabControl = new CAdminTabControlDrag('bizvalTabs', $tabControlTabs, 'sale', false, true);
$tabControl->Begin();
foreach ($personsDomainsWithCommon as $personId => $savedPersonDomain) {
    if (!$activeCodeDomains[$savedPersonDomain]) {
        continue;
    }
    //TAB PERSON CODE MAP --
    $tabControl->BeginNextTab();
    $customFieldId = 'MAP_' . $personId;
    if ($personId == BusinessValue::COMMON_PERSON_ID) {
        $entityInput = $commonEntityInput;
        $itemInputs['PROPERTY']['OPTIONS'] = array();
    } else {
        $entityInput = $personEntityInput;
        $itemInputs['PROPERTY']['OPTIONS'] = $propertyOptions[$personId];
    }