Esempio n. 1
0
?>
">
	<?php 
echo bitrix_sessid_post();
?>
	<div style="position: relative; vertical-align: top">
		<?php 
$tabControl->DraggableBlocksStart();
?>
		<?php 
foreach ($blocksOrder as $blockCode) {
    $tabControl->DraggableBlockBegin(Loc::getMessage("SALE_OK_BLOCK_TITLE_" . toUpper($blockCode)), $blockCode);
    echo '<a id="' . $blockCode . '"></a>';
    switch ($blockCode) {
        case "basket":
            echo $orderBasket->getEdit($order);
            break;
        case "buyer":
            echo Blocks\OrderBuyer::getEdit($order);
            break;
        case "delivery":
            $shipments = $order->getShipmentCollection();
            if (count($shipments) == 0) {
                $order->getShipmentCollection()->createItem();
            }
            /** @var \Bitrix\Sale\Shipment  $shipment*/
            foreach ($shipments as $shipment) {
                if (!$shipment->isSystem()) {
                    echo Blocks\OrderShipment::getEdit($shipment, 0, '', $_POST['SHIPMENT'][1]);
                }
            }