47 lines
1.8 KiB
PHP
47 lines
1.8 KiB
PHP
<div class="col-sm-10" id="contents">
|
|
<?php //print_r($data['profil'][0]) ?>
|
|
Nama = <?php echo $data['profil'][0]['Nama'] ?> </br>
|
|
Email = <?php echo $data['profil'][0]['email'] ?> </br>
|
|
Telp = <?php echo $data['profil'][0]['telp'] ?> </br>
|
|
Alamat = <?php echo $data['profil'][0]['Alamat'] ?> </br>
|
|
Kota/Kab = <?php echo $data['profil'][0]['kota_kab'] ?> </br>
|
|
Provinsi = <?php echo $data['profil'][0]['provinsi'] ?> </br>
|
|
<hr>
|
|
Barang
|
|
<table>
|
|
<thead><tr>
|
|
<td width="100px">Nama</td>
|
|
<td width="50px">Qty</td>
|
|
<td>Harga</td>
|
|
<td>Total</td>
|
|
</tr></thead>
|
|
<tbody>
|
|
<?php foreach ($data['barang'] as $brg) { ?>
|
|
<tr>
|
|
<td><?php echo $brg['nama'] ?></td>
|
|
<td><?php echo $brg['qty'] ?></td>
|
|
<td><?php echo $brg['harga'] ?></td>
|
|
<td><?php echo $brg['harga']*$brg['qty'] ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
<tfoot><tr style="border-top:solid 1px #000000">
|
|
<td colspan="3">Total</td>
|
|
<td><?php echo $data['transaksi'][0]['total_harga'] ?></td>
|
|
</tr></tfoot>
|
|
</table>
|
|
<hr>
|
|
Tanggal Order = <?php echo $data['transaksi'][0]['tanggal_order']?></br>
|
|
Tanggal Kirim =</br>
|
|
Pembayaran = <?php if($data['transaksi'][0]['cara_bayar']==1)echo "Transfer";else echo "Cash On Delivery" ?> </br>
|
|
|
|
<form method="POST" action="<?php echo site_url("su/order/update_order/".$data['transaksi'][0]['id']) ?>">
|
|
Status = <select name="status">
|
|
<option value="PENDING" <?php if ($data['transaksi'][0]['status']=="PENDING")echo "selected"?>>Pending</option>
|
|
<option value="SHIPPED" <?php if ($data['transaksi'][0]['status']=="SHIPPED")echo "selected"?>>Shipped</option>
|
|
<option value="CANCEL" <?php if ($data['transaksi'][0]['status']=="CANCEL")echo "selected"?>>Cancel</option>
|
|
</select>
|
|
<input type="submit"></input>
|
|
<button type="button" onClick="history.back();return false;">Back</button>
|
|
</form>
|
|
</div>
|