Advertisement
agung_indra_wijaya

index2.php

Apr 26th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. <?php
  2. include 'includes/koneksi/koneksi.php';
  3. include 'include/fungsi/fungsi.php';
  4.  
  5.  
  6.  
  7. include 'includes/fungsi/functions.php';
  8. include 'admin/includes/db.php';
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>JUAL BUKU BSI</title>
  14. <link rel="stylesheet" type="text/css" href="css/style.css">
  15. </head>
  16. <body>
  17.  
  18. <div id="wripper">
  19.  
  20. <div class ="header">
  21. <?php include 'page/header/header.php'; ?>
  22. </div>
  23.  
  24. <div class="menu">
  25. <?php include 'page/menu/v.menu.php'; ?>
  26. </div>
  27.  
  28. <div id="conten2">
  29.  
  30. <div class="menu2">
  31.  
  32. <?php include 'page/menu/menu.php'; ?>
  33.  
  34. </div>
  35.  
  36.  
  37.  
  38.  
  39. <div>
  40. <div id="contenisi2">
  41.  
  42. <?php
  43. include 'includes/fungsi/fungsi.php';
  44.  
  45. getCatPro();
  46.  
  47. //BAGIAN START LIHAT DETAIL
  48.  
  49. echo " <table width='100%' border='1' bgcolor='yellow' >";
  50.  
  51. if (isset($_GET['pro_id'])){
  52.  
  53. $product_id = $_GET['pro_id'];
  54.  
  55. $get_pro = "SELECT * FROM buku WHERE id_buku='$product_id'";
  56.  
  57. $run_pro = mysqli_query($con,$get_pro);
  58.  
  59. while ($row_pro=mysqli_fetch_array($run_pro)){
  60.  
  61. $pro_id = $row_pro['id_buku'];
  62. $judul = $row_pro['judul_buku'];
  63. $desk=$row_pro['deskripsi_buku'];
  64. $harga = $row_pro['harga'];
  65. $diskon=$row_pro['discount_buku'];
  66. $Th_terbit=$row_pro['tahun_terbit'];
  67. $bahasa = $row_pro['bahasa'];
  68. $halaman=$row_pro['halaman'];
  69. $isbn=$row_pro['isbn'];
  70. $dimensi=$row_pro['dimensi'];
  71.  
  72. $gambar= $row_pro['gambar_buku'];
  73.  
  74.  
  75. echo "
  76. <tr>
  77. <td colspan='3' align='center'> <h2>$judul</h2> </td>
  78. </tr>
  79. <tr>
  80. <td colspan='2' valign='top'>
  81. <img src='admin/buku_images/$gambar' width='400' height='300' />
  82. </td>
  83. <td valign='top'>
  84. <b> Rp. $harga </b> <br>
  85. <p> <i> Rp. $diskon </i> </p>
  86. <p> <b> Rp. $Th_terbit </b> </p>
  87. <p> <b> Rp. $bahasa </b> </p>
  88. <p> <b> Rp. $halaman </b> </p>
  89. <p> <b> Rp. $isbn </b> </p>
  90. <p> <b> Rp. $dimensi </b> </p>
  91. </td>
  92.  
  93. </tr>
  94. <tr>
  95. <td colspan='3'> <p>$desk</p> </td>
  96. </tr>
  97. <tr>
  98. <td colspan='3' align='center'>
  99. <a href='index.php' style='float:left;' >Go Back</a>
  100.  
  101. <a href='index2.php?pro_id=$pro_is'><button style='float:right'>Add to cart</button></a>
  102. </td>
  103. </tr>
  104.  
  105.  
  106.  
  107.  
  108.  
  109. ";
  110.  
  111. }
  112.  
  113. }
  114. echo"</table>";
  115.  
  116. //END LIHAT DETAIL
  117.  
  118. ?>
  119.  
  120.  
  121. <!-- UNTUK PENCARIAN -->
  122. <?php pencarian(); ?>
  123. <!-- END PENCARIAN -->
  124. </div>
  125.  
  126.  
  127. </div>
  128.  
  129. </div>
  130.  
  131. <div id="footer">
  132. <hr>
  133. <h1>ISI SEMUA CATATAN KAKI DI SINI</h1>
  134. </div>
  135.  
  136.  
  137. </div>
  138.  
  139. </body>
  140. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement