You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
610 B

  1. <?php
  2. use yii\widgets\DetailView;
  3. use backend\modules\shop\models\ars\DeliveryGoods;
  4. ?>
  5. <?php
  6. $deliveryGoods = DeliveryGoods::findAll(['delivery_id' => $model->id]);
  7. if ($deliveryGoods) {
  8. echo '<table>';
  9. foreach ($deliveryGoods as $value) {
  10. echo
  11. '<tr>' .
  12. '<td>商品名称:</td>' .
  13. '<td>' . $value->goods_name . '</td>' .
  14. '</tr>' .
  15. '<tr>' .
  16. '<td>商品数量:</td>' .
  17. '<td>' . $value->goods_count . '</td>' .
  18. '</tr>';
  19. }
  20. echo '</table>';
  21. }
  22. ?>