您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

shopping-cart-labels.php 605B

1234567891011121314151617181920
  1. <?php
  2. use common\logic\Distribution\Distribution\Export\DistributionShoppingCartLabelsPdfGenerator;
  3. $distributionShoppingCartLabelsPdfGenerator = DistributionShoppingCartLabelsPdfGenerator::getInstance();
  4. $index = 0;
  5. $i = 0;
  6. foreach($ordersArray as $key => $order) {
  7. $index ++;
  8. echo $distributionShoppingCartLabelsPdfGenerator->getShoppingCartLabelAsHtml($order, $index, $isSpecificFormat);
  9. if($index == $shoppingCartLabelsPerColumn) {
  10. $index = 0;
  11. }
  12. if(!$isSpecificFormat && $index == 0 && $key !== array_key_last($ordersArray)) {
  13. echo '<columnbreak />';
  14. }
  15. }
  16. ?>