BAB V KESIMPULAN DAN SARAN
5.2 Saran
Berikut beberapa saran yang dapat digunakan untuk menambahkan fitur-fitur tambahan dalam pengembangan web selanjutnya yaitu, pembuatan laporan atau rakap pelanggan saat pemesanan hewan qurban.
DAFTAR PUSTAKA
Adan Hasanuddin Yusuf. (2013). Syiar dan Dakwah / /aceh.tribunnews.com/2013/07/19/syiar-dan-dakwah. (19 Juli 2013).
Alessi & Trollip (2004). Multimedia for Learning : Methods and Development (3th ed.). Massachusetts : Ally & Bacon A Pearson Education Company
Astuti, D. (2012). Manajemen Penyediaan Ternak Sapi sebagai Hewan Qurban di Perusahaan Mitra Tani Farm.
Batara, R. (2014) Pengembangan E-Learning Berbasis Web Menggunakan CMS (Content
Management System) Wordpress Di Sma Negeri 1 Kota Magelang. Skripsi.UNY.
Faroqi, A., & Ismail, N. (2015). PORTAL MUI ONLINE: OPTIMALISASI DAKWAH ISLAM
MELALUI INTERNET (Studi Kasus MUI Kecamatan Ujungberung). JURNAL ISTEK,
7(1).
Maryanto, D. (2014). Sistem Pakar Kelayakan Hewan Qurban Secara Syariah Dan Kesehatan
Berbasis Web (Doctoral dissertation, Universitas Muhammadiyah Surakarta).
Miftahuddin, M. (2015). aplikasi pemilihan hewan qurban dengan metode forward chaining
berbasis web (Doctoral dissertation, Universitas Muria Kudus).
Shulha, Amalia (2014) Dakwah melalui Internet (analisis terhadap materi dakwah tentang syariah pada kolom Mozaik Fiqih situs www.pesantrenvirtual.com). Undergraduate (S1) thesis, UIN Walisongo.
LAMPIRAN
1. Source Code Form Order
<di lass="fo _o e la " id="fo -o de ">
<fo a tio ="<?php the_pe ali k ; ?>" id=" o ta tFo " ethod="post"> <di lass="fo -o de ">
<h >Fo Pe esa a </h > <h >Detail P oduk</h >
<li><la el>Na a P oduk </la el><i put t pe="te t" a e=" a aP oduk" id=" a aP oduk" eado l ="t ue" alue="<?php the_title ; ?>" size=" " lass=" e ui edField"/></li>
<li><la el fo ="ha gaP oduk">Ha ga P oduk </la el>
<i put t pe="te t" a e="ha gaP oduk" id="ha gaP oduk" eado l ="t ue" alue="Rp <?php if get_post_ eta $post->ID, "ha ga_disko ", $si gle = t ue != "" { ?><?php $ha gadisko = get_post_ eta $post->ID, "ha ga_disko ", $si gle = t ue ; e ho $ha gadisko ; ?> <?php } else { ?><?php $ha ga = get_post_ eta $post->ID, "ha ga", $si gle = t ue ; e ho $ha ga; ?> <?php } ?>"
lass=" e ui edField" /></li> <h >Data a da</h >
<li><la el fo =" o ta tNa e">Na a</la el>
<i put t pe="te t" a e=" o ta tNa e" id=" o ta tNa e" alue="" lass=" e ui edField" /></li>
<li><la el fo ="e ail">E ail</la el><i put t pe="te t" a e="e ail" id="e ail" lass=" e ui edField e ail" /></li>
<li><la el fo =" o o Telpo ">No o Telpo </la el><i put t pe="te t" a e=" o o Telpo " id=" o o Telpo " alue="" lass=" e ui edField" /></li>
<li><la el fo ="ala atPe gi i a ">Ala at ki i </la el><i put t pe="te t"
a e="ala atPe gi i a " id="ala atPe gi i a " alue="" lass=" e ui edField" /></li> <li lass="te ta ea"><la el fo =" o e tsTe t">I fo Ta aha </la el>
<te ta ea a e=" o e ts" id=" o e tsTe t" o s=" " ols=" " lass=" e ui edField"></te ta ea></li>
<di st le=" lea : oth"></di >
<li lass="i li e"><i put t pe=" he k o " a e="se dCop " id="se dCop " alue="t ue" he ked=" he ked" /><la el fo ="se dCop ">Se d a op of this e ail to ou self</la el></li>
<li lass="s ee Reade "><la el fo =" he ki g" lass="s ee Reade ">If ou a t to su it this fo , do ot e te a thi g i this field</la el><i put t pe="te t" a e=" he ki g"
id=" he ki g" lass="s ee Reade " alue="<?php if isset $_POST[' he ki g'] e ho $_POST[' he ki g'];?>" /></li>
<li lass=" utto s"><i put t pe="hidde " a e="su itted" id="su itted" alue="t ue" />< utto t pe="su it">Ki i Fo Pe esa a </ utto ></li></di >
</fo > </di >
2. Source Code Konfirmasi Email
<?php
//If the form is submitted
if(isset($_POST['submitted'])) {
//Check to see if the honeypot captcha field was filled in if(trim($_POST['checking']) !== '') {
$captchaError = true; } else {
//Check to make sure that the name field is not empty if(trim($_POST['contactName']) === '') {
$nameError = 'You forgot to enter your name.'; $hasError = true;
} else {
$name = trim($_POST['contactName']); }
if(trim($_POST['email']) === '') {
$emailError = 'You forgot to enter your email address.'; $hasError = true;
} else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))) {
$emailError = 'You entered an invalid email address.'; $hasError = true;
} else {
$email = trim($_POST['email']); }
//Check to make sure comments were entered if(trim($_POST['comments']) === '') {
$commentError = 'You forgot to enter your comments.'; $hasError = true; } else { if(function_exists('stripslashes')) { $comments = stripslashes(trim($_POST['comments'])); } else { $comments = trim($_POST['comments']); } }
//If there is no error, send the email if(!isset($hasError)) {
$subject = 'Pesanan dari : '.$name; $namaProduk=$_POST['namaProduk']; $urlProduk=$_POST['urlProduk']; $hargaProduk=$_POST['hargaProduk']; $contactName=$_POST['contactName']; $email=$_POST['email']; $nomorTelpon=$_POST['nomorTelpon']; $alamatPengiriman=$_POST['alamatPengiriman']; $namaBank = get_theme_option('nama_bank'); $namaUsaha = get_theme_option('nama_toko'); $atasNamarekening = get_theme_option('atas_nama_rekening'); $noRekening = get_theme_option('no_rekening'); $emailPaypal = get_theme_option('email_paypal'); $sendCopy = trim($_POST['sendCopy']);
$body = "Terima kasih saudara/i $contactName berikut ini detail pesanan anda :
Produk : $namaProduk Harga : $hargaProduk \n Data anda \n Nama : $contactName Telp : $nomorTelpon Alamat: $alamatPengiriman Email : $email
Info Tambahan : $comments
Anda dapat melakukan pembayaran ke nomor rekening berikut ini \n Bank : $namaBank
atas nama : $atasNamarekening No rek : $noRekening
$emailPaypal
Kami akan memproses order Anda setelah kami menerima bukti atau pembayaran yang telah Anda lakukan.
Terima kasih atas perhatian dan kepercayaan Anda. $namaUsaha
";
$headers = 'From: Order Baru <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email; mail($emailTo, $subject, $body, $headers);
if($sendCopy == true) {
$subject = 'Detail order dan cara pembayaran '; $toko = get_theme_option('nama_toko');
$email_order = get_theme_option('email_order'); $headers = 'From: '.$toko.' <'.$email_order.'>'; mail($email, $subject, $body, $headers); }
$emailSent = true; } }
$servername="localhost";
$username="pphqammc_wp293"; $password="19051994";
$dbname="pphqammc_wp293";
$conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error()); }
$sql="INSERT INTO `pphqammc_wp293`.`order` (`namaProduk`, `hargaProduk`, `contactName`, `email`, `nomorTelpon`, `alamat`, `infotambahan`, `id_order`) VALUES('$namaProduk', '$hargaProduk', '$contactName', '$email',
'$nomorTelpon','$alamatPengiriman','$comments',NULL)"; if ($conn->query($sql) === TRUE) {
echo "New record created successfully"; } else {
echo "Error: " . $sql . "<br>" . $conn->error; }
$conn->close(); ?>