SHOW:
|
|
- or go back to the newest paste.
| 1 | - | <?php // Include MySQL class |
| 1 | + | <?php |
| 2 | // Include MySQL class | |
| 3 | session_start(); | |
| 4 | include('backsite/inc/config.php');
| |
| 5 | require_once ('inc/mysql.class.php');
| |
| 6 | // Include database connection | |
| 7 | require_once ('inc/global.inc.php');
| |
| 8 | // Include functions | |
| 9 | require_once ('inc/functions.inc.php');
| |
| 10 | - | ?>php |
| 10 | + | |
| 11 | /* | |
| 12 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | |
| 13 | */ ?> | |
| 14 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| 15 | <html xmlns="http://www.w3.org/1999/xhtml"> | |
| 16 | <head> | |
| 17 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| 18 | <title>Modern Book Store </title> | |
| 19 | ||
| 20 | <link href="templatemo_style.css" rel="stylesheet" type="text/css" /> | |
| 21 | <link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" /> | |
| 22 | ||
| 23 | </head> | |
| 24 | <body> | |
| 25 | ||
| 26 | <div id="templatemo_wrapper_outer"> | |
| 27 | <div id="templatemo_wrapper"> | |
| 28 | ||
| 29 | <div id="templatemo_header"> | |
| 30 | <div id="site_title"> | |
| 31 | <h1><a href="http://www.templatemo.com"> BOOKStore<span>Cepat, Murah, Lengkap</span></a></h1> | |
| 32 | </div> <!-- end of site_title --> | |
| 33 | ||
| 34 | <ul id="social_box"> | |
| 35 | <li><a href="http://www.facebook.com/templatemo"><img src="images/facebook.png" alt="facebook" /></a></li> | |
| 36 | <li><a href="#"><img src="images/twitter.png" alt="twitter" /></a></li> | |
| 37 | ||
| 38 | </ul> | |
| 39 | ||
| 40 | <div class="cleaner"></div> | |
| 41 | </div> | |
| 42 | ||
| 43 | <div id="templatemo_menu"> | |
| 44 | <ul > | |
| 45 | <li> | |
| 46 | <a href="index.php?page=home">Home</a> | |
| 47 | </li> | |
| 48 | <li> | |
| 49 | <a href="index.php?page=cart"> keranjang </a> | |
| 50 | </li> | |
| 51 | <li> | |
| 52 | <a href="index.php?page=cara_pesan">Cara pesan</a> | |
| 53 | </li> | |
| 54 | <li> | |
| 55 | <a href="index.php?page=profil">profil</a> | |
| 56 | </li> | |
| 57 | <li> | |
| 58 | <a href="index.php?page=bayar_form_add"> Pembayaran</a> | |
| 59 | </li> | |
| 60 | ||
| 61 | </ul> | |
| 62 | </div> <!-- end of templatemo_menu --> | |
| 63 | ||
| 64 | <div id="templatemo_slider_wrapper"> | |
| 65 | ||
| 66 | <div id="templatemo_slider"> | |
| 67 | ||
| 68 | <div id="one" class="contentslider"> | |
| 69 | <div class="cs_wrapper"> | |
| 70 | <div class="cs_slider"> | |
| 71 | <?php | |
| 72 | $sql="select * from buku order by rand() limit 3"; | |
| 73 | - | while($get_data=mysql_fetch_array($hasil)){
|
| 73 | + | |
| 74 | - | |
| 74 | + | |
| 75 | while($get_data=mysql_fetch_array($hasil)) | |
| 76 | {
| |
| 77 | ||
| 78 | ?> | |
| 79 | ||
| 80 | <div class="cs_article"> | |
| 81 | <div class="slider_content_wrapper"> | |
| 82 | ||
| 83 | - | <img src="cover/<?=$get_data['cover']?>" width='150px' heigth='150px'> |
| 83 | + | |
| 84 | <img src="cover/<?php echo $get_data['cover']?>" width='150px' heigth='150px'> | |
| 85 | </div> | |
| 86 | ||
| 87 | - | <h2><?=$get_data['judul'] |
| 87 | + | |
| 88 | - | ?> |
| 88 | + | <h2><?php echo $get_data['judul'];?> |
| 89 | - | </h2> <?=$get_data['deskripsi'];?> |
| 89 | + | </h2> <?php echo $get_data['deskripsi'];?> |
| 90 | ||
| 91 | - | <div class="btn_more"><a href="index.php?page=cart&action=add&id=<?=$get_data['kd_buku']?>">Add to cart</a></div> |
| 91 | + | <div class="btn_more"><a href="index.php?page=cart&action=add&id=<?php echo $get_data['kd_buku']?>">Add to cart</a></div> |
| 92 | </div> | |
| 93 | ||
| 94 | </div> | |
| 95 | </div><!-- End cs_article --> | |
| 96 | ||
| 97 | - | <? |
| 97 | + | <?php |
| 98 | }//end while | |
| 99 | ?> | |
| 100 | ||
| 101 | ||
| 102 | ||
| 103 | </div><!-- End cs_slider --> | |
| 104 | </div><!-- End cs_wrapper --> | |
| 105 | </div><!-- End contentslider --> | |
| 106 | ||
| 107 | <!-- Site JavaScript --> | |
| 108 | <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script> | |
| 109 | <script type="text/javascript" src="js/jquery.easing.1.3.js"></script> | |
| 110 | <script type="text/javascript" src="js/jquery.ennui.contentslider.js"></script> | |
| 111 | <script type="text/javascript"> | |
| 112 | $(function() {
| |
| 113 | $('#one').ContentSlider({
| |
| 114 | width : '940px', | |
| 115 | height : '240px', | |
| 116 | speed : 400, | |
| 117 | easing : 'easeOutSine' | |
| 118 | }); | |
| 119 | }); | |
| 120 | </script> | |
| 121 | <script src="js/jquery.chili-2.2.js" type="text/javascript"></script> | |
| 122 | <script src="js/chili/recipes.js" type="text/javascript"></script> | |
| 123 | <div class="cleaner"></div> | |
| 124 | ||
| 125 | </div> | |
| 126 | ||
| 127 | </div> | |
| 128 | ||
| 129 | <div id="templatemo_content_wrapper"> | |
| 130 | <div id="content"> | |
| 131 | ||
| 132 | <h2>Mengapa Membeli buku di sini adalah pilihan tepat</h2> | |
| 133 | ||
| 134 | <div class="reasons"> | |
| 135 | <h3>Murah</h3> | |
| 136 | <img src="images/reason1.png" alt="Reason1" /> | |
| 137 | <p>Buku yang anda dapat mempunyai harga dibawah rata rata toko </p> | |
| 138 | </div> | |
| 139 | ||
| 140 | <div class="reasons"> | |
| 141 | <h3>Cepat</h3> | |
| 142 | <img src="images/reason2.png" alt="Reason2" /> | |
| 143 | <p>Pemesanan cepat dan mudah </p> | |
| 144 | </div> | |
| 145 | ||
| 146 | <div class="reasons"> | |
| 147 | <h3>100% Satisfaction</h3> | |
| 148 | <img src="images/reason3.png" alt="Reason3" /> | |
| 149 | <p> Anda tidak puas, uang kembali </p> | |
| 150 | </div> | |
| 151 | ||
| 152 | <div class="hr_divider"></div> | |
| 153 | ||
| 154 | <div class="col_w560"> | |
| 155 | <?php | |
| 156 | /* kode untuk meload halaman yang berbeda*/ | |
| 157 | - | if(isset($_GET['page'])) {
|
| 157 | + | if(isset($_GET['page'])) |
| 158 | {
| |
| 159 | $page = $_GET['page'] . ".php"; | |
| 160 | include ($page); | |
| 161 | ||
| 162 | } else {
| |
| 163 | include ('detail.php');
| |
| 164 | }?> | |
| 165 | ||
| 166 | </div> | |
| 167 | ||
| 168 | <div class="col_w280"> | |
| 169 | - | <?php |
| 169 | + | |
| 170 | - | include('kategori.php');
|
| 170 | + | <?php |
| 171 | - | ?> |
| 171 | + | include('kategori.php');
|
| 172 | ?> | |
| 173 | <h2>Alamat kami</h2> | |
| 174 | <p> | |
| 175 | Jl Lurus no 5 Yogyakarta | |
| 176 | <br> | |
| 177 | Telp (0274) 123456 | |
| 178 | <br> | |
| 179 | Email:[email protected] | |
| 180 | </p> | |
| 181 | </div> | |
| 182 | ||
| 183 | <div class="cleaner"></div> | |
| 184 | ||
| 185 | </div> | |
| 186 | ||
| 187 | <div class="cleaner"></div> | |
| 188 | ||
| 189 | </div> | |
| 190 | ||
| 191 | <div id="templatemo_content_wrapper_bottm"></div> | |
| 192 | ||
| 193 | <div id="templatemo_footer"> | |
| 194 | ||
| 195 | Copyright © 2013 <a href="#">Candralab</a> | |
| 196 | ||
| 197 | </div> | |
| 198 | ||
| 199 | </div> <!-- end of wrapper --> | |
| 200 | </div> <!-- end of wrapper_outer --> | |
| 201 | ||
| 202 | </body> | |
| 203 | </html> |