
<?php
include('config/koneksi2.php');

	$id =$_POST['inv'];

	   			$query=mysql_query("select * from listinvoice where invoice='$id'") ;
			
	?>
	
            <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel"><?php echo $id ?></h4>
      </div>
      <div class="modal-body">
        <!-- image -->        
<!-- end -->
       <div class="table-responsive">
           	<table id="example1" class="table table-striped table-bordered dt-responsive nowrap" width="100%" cellspacing="0">
		<thead>
					<tr>
					<th>SO</th>
					<th>Produk</th>
					<th>Qty</th>
					<th>Price</th>
					<th>Diskon Rp</th>
					<th>Diskon %</th>
					</tr>
		</thead>
		
		<tbody>
		<?php

		while($data=mysql_fetch_array($query))
		{
			$harga=number_format($data[harga]);
				$diskon=number_format($data[diskon]);
		?>
		<tr>
		<td><?php echo $data['so'];?></td>
		<td><?php echo $data[nama]; ?><br /> <?php echo $data[config_ax]; ?><br /> <?php echo $data[size_ax]; ?><br /> <?php echo $data[color_ax]; ?></td>
		<td><?php echo $data['qty'];?></td>
		<td>Rp. <?php echo $harga ;?></td>
		<td>Rp. <?php echo $diskon;?></td>
		<td><?php echo $data['disc_percent'];?></td>
		
		<?php
		}
		?>
		</tr>
		</tbody>
		</table>
	</div>
			</div>
      
    </div>