Assalamualaikum,..
setelah sy edit hasilnya seperti di capture ini
<?php
echo "<p class='sidebar-title text-danger produk-title'> Data Profile Anda
<a class='btn btn-success btn-xs pull-right' href='".base_url()."members/edit_profile'><span class='glyphicon glyphicon-edit'></span> Edit Profile</a>
</p>";
echo $this->session->flashdata('message');
$this->session->unset_userdata('message');
echo "<p>Berikut Informasi Data Profile anda.<br>
Pastikan data-data dibawah ini sudah benar, agar tidak terjadi kesalahan saat transaksi.</p>";
$rows = $this->model_app->edit('rb_konsumen',array('id_konsumen'=>$this->session->id_konsumen))->row_array(); if (trim($row['foto'])=='' OR
!file_exists("asset/foto_user/".$row['foto'])){ echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/a9.png'>";
}else{
echo "<img class='img-thumbnail' style='width:155px' src='".base_url()."asset/foto_user/$rows[foto]'>";
}
?>
<div class='block-content'>
<div id='writecomment'>
<p class='contact-form-user'>
<label for='c_name'>Username</label>
$row[username]
</p>
<p class='contact-form-user'>
<label for='c_name'>Nama Lengkap</label>
$row[nama_lengkap]
</p>
<p class='contact-form-user'>
<label for='c_name'>Email</label>
$row[email]
</p>
<p class='contact-form-user'>
<label for='c_name'>Jenis Kelamin</label>
$row[jenis_kelamin]
</p>
<p class='contact-form-user'>
<label for='c_name'>Tanggal Lahir</label>
tgl_indo($row['tanggal_lahir'])
</p>
<p class='contact-form-user'>
<label for='c_name'>Tempat Lahir</label>
$row[tempat_lahir]
</p>
<p class='contact-form-user'>
<label for='c_name'>Alamat</label>
$row[alamat_lengkap]
</p>
<p class='contact-form-user'>
<label for='c_name'>Propinsi</label>
$row['propinsi']
</p>
<p class='contact-form-user'>
<label for='c_name'>kota</label>
$row['kota']
</p>
<p class='contact-form-user'>
<label for='c_name'>Kecamatan</label>
$row[kecamatan]
</p>
<p class='contact-form-user'>
<label for='c_name'>No. HP</label>
$row[no_hp]
</p>
</div>
</div>
<div class='block-content'>
<div id='writecomment'>
<p class='contact-form-user'>
<label for='c_name'>No</label>
</p>
<p class='contact-form-user'>
<label for='c_name'>Nama Penjual</label>
</p>
<p class='contact-form-user'>
<label for='c_name'>Belanja & Ongkir</label>
</p>
<p class='contact-form-user'>
<label for='c_name'>Status</label>
</p>
<p class='contact-form-user'>
<label for='c_name'>Total + Ongkir</label>
</p>
</div>
</div>
<?php
$no = 1;
$record = $this->model_reseller->orders_report($this->session->id_konsumen,'reseller');
foreach ($record->result_array() as $row){
if ($row['proses']=='0'){ $proses = '<i class="text-danger">Pending</i>'; }elseif($row['proses']=='1'){ $proses = '<i class="text-success">Proses</i>'; }else{ $proses = '<i class="text-info">Konfirmasi</i>'; }
$total = $this->db->query("SELECT sum((a.harga_jual*a.jumlah)-a.diskon) as total FROM `rb_penjualan_detail` a where a.id_penjualan='$row[id_penjualan]'")->row_array();
echo "<tr><td>$no</td>
<td><a href='".base_url()."members/produk_reseller/$row[id_reseller]'><small><b>$row[nama_reseller]</b></small><br><small class='text-success'>$row[kode_transaksi]</small></a></td>
<td><span style='color:blue;'>Rp ".rupiah($total['total'])."</span> <br> <small><i style='color:green;'><b style='text-transform:uppercase'>$row[kurir]</b> - Rp ".rupiah($row['ongkir'])."</i></small></td>
<td>$proses <br><small>$row[nama_reseller]</small></td>
<td style='color:red;'>Rp ".rupiah($total['total']+$row['ongkir'])."</td>
<td width='130px'>";
if ($row['proses']=='0'){
echo "<a style='margin-right:3px' class='btn btn-success btn-sm' title='Konfirmasi Pembayaran' href='".base_url()."konfirmasi?kode=$row[kode_transaksi]'>Konfirmasi</a>";
}else{
echo "<a style='margin-right:3px' class='btn btn-default btn-sm' href='#' onclick=\"return confirm('Maaf, Pembayaran ini sudah di konfirmasi!')\">Konfirmasi</a>";
}
echo "<a class='btn btn-info btn-sm' title='Detail data pesanan' href='".base_url()."members/keranjang_detail/$row[id_penjualan]'><span class='glyphicon glyphicon-search'></span></a></td>
</tr>";
$no++;
}
?>