$statusdefault = getstatusdefault(); $hasil2 = $koneksi_db->sql_query("INSERT INTO transmaster VALUES ('','{$tglskrg}','{$lastid}','{$idcustomer}','{$calculateberat}','{$calculate}','','','{$statusdefault}')"); $idtrans = mysql_insert_id(); if (is_array(@$_SESSION['product_id']) && count(@$_SESSION['product_id']) >= 1) { foreach ($_SESSION['product_id'] as $key => $val) { $id = $_SESSION['product_id'][$key]['product_id']; $jumlah = $_SESSION['product_id'][$key]['jumlah']; $total = $_SESSION['product_id'][$key]['total']; $hasil3 = $koneksi_db->sql_query("INSERT INTO transdetail VALUES ('','{$idtrans}','{$id}','{$jumlah}')"); } } $subject1 = "Ada Pemesan Baru dari " . $nama; $subject2 = "Data Pemesanan Anda di " . $judul_situs; mail_send($email_master, $email, $subject1, $send_admin, 1, 1); mail_send($email, $email_master, $subject2, $send_user, 1, 1); Posted('checkout'); //$tengah ='<div class="sukses">'.$pesancheckout.'</div>'; unset($nama); unset($email); unset($alamat); unset($keterangan); unset($kota); unset($provinsi); unset($kodepos); unset($telp); unset($_SESSION["product_id"]); //session_unregister ('product_id'); Header("Location: sukses.html"); } } $nama = !isset($nama) ? '' : $nama;
</td> </tr> <tr> <td style="font-size: 10px; font-family: arial; padding: 5px; color: red; text-align: center;"> catatan : "Jangan membalas (reply) email ini, karena ini merupakan pemberitahuan otomatis"</td> </tr> <tr> <td style="font-size: 10px; font-family: arial; display: block; padding: 5px; color: rgb(51, 51, 51); text-align: center;"> <img src="' . $url_situs . '/images/foot.png" alt="footer" width="670" height="10"/> <p><a href="http://www.teamworks.co.id/" target="_blank" rel="nofollow">teamworks.co.id</a> - your smile is our creation</p></td> </tr></table>'; $msg = '' . $pesan . ''; kirim_mail($emailuser, $email_master, $subject, $msg, 1, 1); Posted('contact'); $tengah .= '<div class="sukses">Thank you, mail has been sent! at : ' . $emailuser . ' from ' . $email_master . '</div>'; } } } $tengah .= '<div class="borderhal">'; $tengah .= ' <p>Lupa password / User? Bukan masalah.</p> <p>Pertama, masukkan email Anda, dan klik Send Password.<br> Kami akan membuat password baru untuk anda. <form action="" method="post"> <table> <tr> <td>Email</td> <td>:</td>
} if ($error != '') { $open['pesanError'] = $error; $open['error'] = true; } else { $getconfig = mysql_query("SELECT * FROM `bukutamu_config` WHERE `id` = '1'"); $dataconfig = mysql_fetch_assoc($getconfig); $gbconfig = unserialize($dataconfig['config']); $maxChar = empty($gbconfig['char']) ? 500 : $gbconfig['char']; $komentar = substr($komentar, 0, $maxChar); $sekarang = date("d-M-Y"); $perintah1 = "INSERT INTO bukutamu (sekarang, nama, email, homepage, alamat, komentar) VALUES ('{$sekarang}', '{$nama}', '{$email}', '{$homepage}', '{$alamat}', '{$komentar}')"; $hasil = mysql_query($perintah1); if ($hasil) { $open['error'] = false; Posted('guestbook'); } else { $open['error'] = true; $open['pesanError'] = "gagal Memasukkan Data Kedalam Database"; } } $j = new JSON_obj(); echo $j->encode($open); break; default: $query1 = mysql_query("SELECT count(`id`) AS `total` FROM `bukutamu`"); $getdata1 = mysql_fetch_assoc($query1); $jumlah = $getdata1['total']; $getconfig = mysql_query("SELECT * FROM `bukutamu_config` WHERE `id` = '1'"); $dataconfig = mysql_fetch_assoc($getconfig); $gbconfig = unserialize($dataconfig['config']);