Exemple #1
0
echo bitrix_sessid_post();
?>
	<div style="position: relative; vertical-align: top">
		<?php 
$tabControl->DraggableBlocksStart();
?>
		<?php 
foreach ($blocksOrder as $blockCode) {
    echo '<a id="' . $blockCode . '"></a>';
    $tabControl->DraggableBlockBegin(Loc::getMessage("SALE_BLOCK_TITLE_" . toUpper($blockCode)), $blockCode);
    switch ($blockCode) {
        case "statusorder":
            echo Blocks\OrderStatus::getEdit($order, $USER, false, false);
            break;
        case "buyer":
            echo Blocks\OrderBuyer::getEdit($order);
            break;
        case "delivery":
            $shipments = $order->getShipmentCollection();
            $index = 0;
            /** @var \Bitrix\Sale\Shipment  $shipment*/
            foreach ($shipments as $shipment) {
                if (!$shipment->isSystem()) {
                    echo Blocks\OrderShipment::getView($shipment, ++$index, 'edit');
                }
            }
            break;
        case "payment":
            $payments = $order->getPaymentCollection();
            $index = 0;
            foreach ($payments as $payment) {