<?php if(!empty($order)){?>
<div class="row edit-list">
	<div class="col-sx-12 col-sm-12">
		<ul>
			<?php foreach($order['proArr'] as $v){?>
			<li>
				<table class="table mart10">
					<thead>
						<tr>
							<td colspan="2">
								<span><?php echo $v['orp_pro_name'];?><?php if($v['orp_prpa_id']>0){?>[套餐]<?php }?></span>
							</td>
						</tr>
						<tr>
							<td colspan="2">原价 x 数量： <span class="oriProPrice red"><?php echo sprintf('%.2f',$v['orp_sale_price']);?></span> x <span class="proNum"><?php echo $v['orp_count'];?></span></td>
						</tr>
						<tr>
							<th>涨价或折扣(负数表示降价)</th>
							<th width="80px;">小计</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>
								<input type="text" min="0" max="10" autocomplete="off" class="form-control edit-discount discount" data-old="<?php echo $v['orp_discount_val'];?>" name="discount[<?php echo $v['orp_id'];?>]" value="<?php echo $v['orp_discount_val'];?>">
								<span>折</span>
								<span>=</span>
								<input type="text" data-maxCut="" autocomplete="off" class="form-control price edit-price" data-old="<?php echo sprintf('%.2f',-($v['orp_sale_price']-$v['orp_price'])*$v['orp_count']);?>" value="<?php echo sprintf('%.2f',-($v['orp_sale_price']-$v['orp_price'])*$v['orp_count']);?>" name="price[<?php echo $v['orp_id'];?>]">
							</td>
							<td>
								<span class="proTotal red"><?php echo $v['orp_price']*$v['orp_count'];?></span>
							</td>
						</tr>
					</tbody>
				</table>
			</li>
			<?php }?>
		</ul>
	</div>
</div>
<div class="row mart10">
	<div class="col-xs-12 col-sm-12 text-right">
		运费：<input type="text" name="frtPrice" data-old="<?php echo sprintf('%.2f',$order['ord_freight_money']);?>" class="form-control edit-discount" value="<?php echo sprintf('%.2f',$order['ord_freight_money']);?>">元
	</div>
</div>
<div class="mart10 text-right">
	<span><?php if($order['ord_product_discount']>0){?>满减活动减<span class="red2 manjian"><?php echo sprintf('%.2f',$order['ord_product_discount']);?></span>元，<?php }?>共优惠<span class="red2 cutMoney"></span>元</span>
	<span>买家实付：<total class='red2'></total>元</span>
</div>
<input type="hidden" name="orderId" value="<?php echo $order['ord_id'];?>">
<?php }?>

<script type="text/javascript">
	$(function(){
		EDITORDER.init();
	})
</script>