$query->where = "order_id = {$refunds['order_id']} and goods_id = {$refunds['goods_id']} and product_id = {$refunds['product_id']}"; $items = $query->find(); foreach ($items as $key => $item) { ?> <?php $goods = JSON::decode($item['goods_array']); ?> <?php echo isset($goods['name']) ? $goods['name'] : ""; ?> X <?php echo isset($item['goods_nums']) ? $item['goods_nums'] : ""; ?> 件 【<?php echo Order_Class::goodsSendStatus($item['is_send']); ?> 】 <?php } ?> <?php if ($refunds['seller_id']) { ?> <a href="<?php echo IUrl::creatUrl("/site/home/id/" . $refunds['seller_id'] . ""); ?> " target="_blank"><img src="<?php echo IUrl::creatUrl("") . "views/" . $this->theme . "/skin/" . $this->skin . "/images/admin/seller_ico.png"; ?> " /></a>