?> </td> <td><?php echo $all->summary->destination; ?> </td> </tr> </table> <br> <table class="table"> <?php foreach ($all->manifest as $ue) { ?> <tr> <td><?php echo tgl_indo_lengkap($ue->manifest_date) . " " . $ue->manifest_time; ?> </td> <td><?php echo $ue->city_name; ?> </td> <td><?php echo $ue->manifest_description; ?> </td> <?php } ?> </table> <?php
<div class="col-md-7"> <div class="panel panel-default" style="height:520px"> <br/> <div style="border-left: 5px solid #8BC34A;background: rgba(210, 210, 210, 0.37);color:black;padding-left: 20px;padding-right: 20px;padding-top: 10px;padding-bottom: 10px;margin-top: 10px;margin-bottom:10px;"> <p style="text-align:justify"><b><i>Orderan Ditanggapi</i></b> adalah transaksi yang sudah diterima pembayarannya oleh indobaba. Silahkan lihat produk yang dibeli, ketersediaan barang, dan resi pengiriman untuk dikirim ke pembeli.</p> </div> <div class="panel-body"> <h4><i>Informasi Akun Pembeli</i></h4> <hr/> <table class="table table-striped"> <tr> <td><b>Tanggal Transaksi</b></td> <td>:</td> <td><b><i><?php echo tgl_indo_lengkap($pembeli->TGL_TRANS); ?> </i></b></td> </tr> <tr> <td><b>Nama Pembeli</b></td> <td>:</td> <td><?php echo $pembeli->NAMA; ?> </td> </tr> <tr> <td><b>Alamat</b></td> <td>:</td>
function kirimemail($trans, $toko) { $iki = $this->db->query("SELECT * FROM view_detail_transaksi WHERE ID_TRANS='{$trans}' AND ID_TOKO='{$toko}'")->result(); $mai = $this->db->query("SELECT * FROM mp_toko WHERE ID_TOKO='{$toko}'")->row(); $data_login = $this->db->query("SELECT * FROM mp_user WHERE ID_AUTH='{$mai->ID_TOKO}'")->row(); $username = $data_login->USERNAME; $password = $data_login->PASSWORD; $isi = "<table cellspacing='0' bordercolor='#000000' cellpadding='4' border='1' style='border: solid 1.5pt black; border-collapse: collapse'>"; $isi .= "<thead>"; $isi .= "<tr>"; $isi .= "<th>No</th>"; $isi .= "<th>Produk</th>"; $isi .= "<th>QTY</th>"; $isi .= "<th>Berat @</th>"; $isi .= "<th>Harga @</th>"; $isi .= "<th>Total Berat</th>"; $isi .= "<th>Total Harga</th>"; $isi .= "<th>Ongkir</th>"; $isi .= "<th>Total</th>"; $isi .= "</tr>"; $isi .= "</thead>"; $isi .= "<tbody>"; $no = 1; $tot_web = 0; $tot_pj = 0; $tot_akh = 0; $tot_akh_ongkir = 0; $tot_ongkir = 0; foreach ($iki as $detail) { $namatoko = $detail->NM_TOKO; $tgl_transaksi = $detail->TGL_TRANS; $isi .= "<tr>"; $isi .= "<td>" . $no++ . "</td>"; $isi .= "<td>" . $detail->NM_PRODUK . "</td>"; $isi .= "<td>" . $detail->QTY . "</td>"; $isi .= "<td>" . $detail->BERAT_PRODUK . "</td>"; $isi .= "<td>" . formatRp($detail->HARGA_PER) . "</td>"; $isi .= "<td>" . konversiGram($detail->BERAT_PRODUK * $detail->QTY) . "</td>"; $totharga = $detail->HARGA_PER * $detail->QTY; $isi .= "<td>" . formatRp($detail->HARGA_PER * $detail->QTY) . "</td>"; $tot_ongkir += $detail->HARGA_ONGKIR; $isi .= "<td>" . formatRp($detail->HARGA_ONGKIR) . "</td>"; $tot_akh += $totharga + $detail->HARGA_ONGKIR; $isi .= "<td>" . formatRp($totharga + $detail->HARGA_ONGKIR) . "</td>"; $isi .= "<tr>"; } $isi .= "</tbody>"; $isi .= "<tfoot>"; $isi .= "<td colspan='7' align='center'>Jumlah</td>"; $isi .= "<td>" . formatRp($tot_ongkir) . "</td>"; $isi .= "<td>" . formatRp($tot_akh) . "</td>"; $isi .= "</tfoot>"; $isi .= "</table>"; $this->load->library('email'); $config = array("mailtype" => "html"); $this->email->initialize($config); $this->email->from('*****@*****.**', 'INDOBABA'); $this->email->to($mai->EMAIL); $this->email->cc('*****@*****.**'); $this->email->bcc('*****@*****.**'); $this->email->subject('Orderan dari indobaba'); $this->email->message("Hai <b>" . $namatoko . "</b> ,<br/><br/> Anda mendapatkan orderan pada tanggal <b>" . tgl_indo_lengkap($tgl_transaksi) . "</b> di ID Transaksi <b>" . $trans . "</b><br/><br/>Silahkan klik link dibawah ini untuk melihat orderan anda<br/><br/> <a href='" . base_url() . "admin_transaksi/detailTransaksiUkmEmail'>" . base_url() . "ukm_info</a><br/><br/>Terima kasih atas perhatiannya. Dimohon segera konfirmasi ketersediaan dan melakukan pengiriman orderan anda.<br/><br/><br/>Salam Indobaba Group"); $this->email->send(); }