JezK
Edit File: invoice.php
<div style="margin-top:10px"> <div class="dleft"> Invoice ID<h1 class="less"><?php echo $x->invoice;?></h1> Dipesan oleh<br/> <h3 style="margin:0"><?php echo $x->titel_cust.' '.$x->nama1_cust.' '.$x->nama2_cust; ?></h3> <?php echo $x->hp_cust;?> <a href="mailto:<?php echo $x->email_cust;?>" title="Klik untuk kirim email"><?php echo $x->email_cust;?></a> </div> <?php if ($x->imgtour == '') { ?> <img class="dright" src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.jpg"> <?php } else { ?> <img class="dright" src="<?php echo $x->imgtour;?>"> <?php } ?> <div style="clear: both"></div> </div> <div class="tindakan"> <?php if (($x->status == 'unpaid') || ($x->status == 'dp')) { ?> <a href="admin.php?page=booking&action=paid&id=<?php echo $x->id;?>"><button class="button">Tandai Lunas</button></a> <?php } ?> <?php if (($x->status == 'unpaid') && ($x->dp != '100')) { ?> <a href="admin.php?page=booking&action=dp&id=<?php echo $x->id;?>"><button class="button">Tandai DP Lunas</button></a> <?php } ?> <?php if (($x->status == 'paid') || ($x->status == 'dp')) { ?> <a href="admin.php?page=booking&action=unpaid&id=<?php echo $x->id;?>"><button class="button">Tandai Belum Bayar</button></a> <?php } ?> <a href="admin.php?page=booking&action=hapus&id=<?php echo $x->id;?>"><button class="button">Hapus</button></a> </div> <div class="moretail"> <h2 class="less"><a href="<?php echo $x->urltour;?>" target="blank"><?php echo $x->judultour;?></a></h2> <?php if ($x->pil != '') { ?> <div style="margin-top:-7px"><strong class="torange"><?php echo $x->pil;?></strong></div> <?php } ?> <table width="100%"> <tr> <td class="tede1"><strong>Durasi</strong></td> <td class="tede2"><?php echo $x->durasi;?></td> </tr> <tr> <td class="tede1"><strong>Berangkat</strong></td> <td class="tede2"><?php echo $x->datetour;?></td> </tr> <tr> <td class="tede1"><strong>Tamu</strong></td> <td class="tede2"><?php echo $x->tamu;?> Orang</td> </tr> <tr> <td class="tede1"><strong>Harga</strong></td> <td class="tede2">Rp <?php echo $x->hargatour;?> /<?php echo $oketheme['t_pax'];?></td> </tr> <?php if ($x->paystatus) { ?> <tr> <td class="tede1"><strong>Pembayaran</strong></td> <td class="tede2"><?php if ($x->dp == '100') { echo 'Full'; } else { echo 'DP '.$x->dp.'%';} ?></td> </tr> <?php } ?> <tr> <td class="tede1"><strong>Status</strong></td> <td class="tede2"> <?php if ($x->status == 'unpaid') {?> <div class="topstatus borange">Belum Bayar</div> <?php } else if ($x->status == 'dp'){ ?> <div class="topstatus bblue">Down Payment</div> <?php } else if ($x->status == 'paid'){?> <div class="topstatus bgreen"><span class="dashicons dashicons-yes"></span>Lunas</div> <?php } ?> </td> </tr> </table> <div class="tedetotal"> <strong style="margin-right:10px">TOTAL</strong> <strong style="font-size:120%"><?php echo $x->payment=='paypal'?'USD '.$x->ammount:'Rp '.$x->hargatotal;?></strong> </div> <?php if ($x->dp != '100') { ?> <div class="tedetotal" style="margin-top:15px;display:block;text-align:left"> <strong>DP <?php echo $x->dp;?>%</strong> <strong style="font-size:120%">Rp <?php echo $x->depe;?></strong> <br/> Pembayaran berikutnya sebesar <strong>Rp <?php echo $x->sdepe;?></strong> <?php if ($x->payment == 'Paypal') { ?> = <strong>USD <?php echo $x->sdp_ammount;?></strong> <?php } ?> </div> <?php } ?> </div> <?php if ($x->dp_paydata || $x->paydata) { echo '<div class="moretail"><h3 class="less">Riwayat Pembayaran</h3><ul>'; if ($x->dp_paydata) { $y = explode("|",$x->dp_paydata); echo '<li>'.$y[3].' <b class="tgreen">'.($y[2]=='Paypal'?'USD '.$x->dp_ammount:'Rp '.$x->depe).'</b> '.$y[2].'<br>'.$y[1].'<br><span class="small">'.date('d M Y - H:i', strtotime($y[0])).'</span></li>'; } if ($x->paydata) { $y = explode("|",$x->paydata); if ($x->dp_paydata) { echo '<li>Pelunasan <b class="tgreen">'.($y[2]=='Paypal'?'USD '.$x->sdp_ammount:'Rp '.$x->sdepe).'</b> '.$y[2].'<br>'.$y[1].'<br><span class="small">'.date('d M Y - H:i', strtotime($y[0])).'</span></li>'; } else { echo '<li>Full payment <b class="tgreen">'.($y[2]=='Paypal'?'USD '.$x->ammount:'Rp '.$x->hargatotal).'</b> '.$y[2].'<br>'.$y[1].'<br><span class="small">'.date('d M Y - H:i', strtotime($y[0])).'</span></li>'; } } echo '</ul></div>'; }?> <?php if ($x->guestlist != '') { ?> <div class="moretail"> <h3 class="less">Daftar Tamu</h3> <?php echo $x->guestlist;?> </div> <?php } if ($x->pesan_cust != '') {?> <div class="moretail"> <h3 class="less">Keterangan Tambahan</h3> <?php echo $x->pesan_cust;?> </div> <?php } ?>