<?php include '../model/model-pesan.php'; include_once 'header.php'; echo "<div class='span7 offset1'>"; $id_detail = $_POST['id_detail']; $id_etnik = $_POST['id_etnik']; $id_paket = $_POST['id_paket']; $hitung = new Pesan("localhost", "root", "", "wedding"); $sewa = $hitung->detailpesan($id_detail); //if (!empty($vFoo) && !empty($vSomeValue) && !empty($vAnother)) //$dtime = new DateTime($result->my_datetime); //print $dtime->format("Y-m-d H:i:s"); if (!empty($id_etnik) && !empty($id_paket)) { //echo $id_etnik.",".$id_paket.",".$id_detail; $paket = $hitung->hargapaket($id_paket); foreach ($sewa as $val) { setlocale(LC_MONETARY, 'id_ID'); //echo money_format('%i', $number) . "\n"; //$dataetnik=$obj->etnik(); //foreach($dataetnik as $etnik){ ?> <!-- DETAIL PESAN --> <div class="well"> <table width="100%"><tr> <td width="1%"></td> <td width="90%"><h4>Detail gedung: </h4></td> </tr> <tr> <td></td> <td><p>
<?php include '../model/model-subtotal.php'; //error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); //include('../model/model-pesan.php'); include_once 'header.php'; echo "<div class='span7 offset1'>"; $obj = new Pesan("localhost", "root", "", "wedding"); if (isset($_REQUEST['detail'])) { $detail = $obj->detailpesan($_REQUEST['detail']); $id_detail = $_REQUEST['detail']; foreach ($detail as $val) { extract($val); ?> <html> <body> <!-- VIEW DETAIL --> <div class="well"> <table width="100%"><tr> <td width="1%"></td> <td width="90%"><h4>Detail gedung: </h4></td> </tr> <tr> <td></td> <td><p> Gedung : <?php echo $nama_gedung; ?> </br> Tanggal : <?php