LISTING PROGRAM
Index
<!DOCTYPE html> <html lang="en"> <head>
<meta charset="utf-8">
<title>Dwicacollection -- Official Website</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bootstrap 3 template for corporate business" />
<!-- css -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="plugins/flexslider/flexslider.css" rel="stylesheet" media="screen" />
<link href="css/cubeportfolio.min.css" rel="stylesheet" /> <link href="css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link id="t-colors" href="skins/default.css" rel="stylesheet" />
<!-- boxed bg -->
<link id="bodybg" href="bodybg/bg1.css" rel="stylesheet" type="text/css" />
</head> <body>
<div id="wrapper">
<!-- start header --> <header>
<div class="top">
<div class="container"> <div class="row">
<div class="col-md-6"></div> <div class="col-md-6">
<marquee><strong>Selamat Datang di Toko Dwicacollection</strong></marquee>
</div> </div>
</div> </div>
<div class="navbar navbar-default navbar-static-top"> <div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span> </button>
<a class="navbar-brand" href="index.php"><img src="img/logo/icon.png" alt="" height="60" /></a>
</div>
<div class="navbar-collapse collapse "> <ul class="nav navbar-nav">
<li class="dropdown active">
<a href="#" class="dropdown-toggle " data-toggle="dropdown" data-hover="dropdown" data-delay="0" data-close-others="false">Beranda </a>
</li> <li class="dropdown">
<a href="#" class="dropdown-toggle " toggle="dropdown" hover="dropdown" delay="0" data-close-others="false">Produk <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu">
<li><a href="page/dress.php">Gaun</a></li> <li><a href="page/atasan.php">Atasan</a></li>
<li><a href="page/bawahan.php">Bawahan</a></li>
<li><a href="page/outerwear.php">Pakaian Luar</a></li>
</ul> </li> <li><a
href="page/lokasi.php">Lokasi</a></li> <li><a
href="page/contact.php">Kontak</a></li>
<li><a href="page/keranjang.php"><i class="fa fa-2x fa-shopping-cart"></i></a></li>
</ul> </div> </div> </div>
</header>
<!-- end header -->
<section id="featured" class="bg"> <!-- start slider -->
<!-- start slider --> <div class="container">
<div class="row">
<div class="col-lg-12"> <!-- Slider -->
<div id="main-slider" class="main-slider flexslider"> <ul class="slides">
<li>
<img src="img/slides/flexslider/1.jpg" alt="" /> </li>
<li>
<img src="img/slides/flexslider/2.jpg" alt="" /> </li>
<li>
</li> </ul> </div>
<!-- end slider --> </div> </div>
</div> </section>
<footer>
<div class="container"> <div class="row">
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Hubungi Kami</h4> <address>
<strong>Dwicacollection</strong><br> Komp. Villa Palem Kencana, Blok L 13<br>
Jl. Medan-Binjai Km 12, Medan <br> Senin s/d Sabtu 08.00 - 16.00 085363000601 <br></address> </div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Informasi</h4> <ul class="link-list">
<li><a href="page/tentang.php">Tentang Kami</a></li>
<li><a
href="page/privasi.php">Ketentuan Privasi</a></li> </ul>
</div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Bantuan</h4>
<ul class="link-list"> <li><a
href="page/pemesanan.php">Cara Pemesanan</a></li> <li><a
href="page/pertanyaan.php">Pertanyaan Umum</a></li> </ul>
</div> </div>
<div class="col-lg-3 col-md-3">
<img src="img/logo/logo.png" alt="" height="150" />
</div> </div>
</div>
<div id="sub-footer">
<div class="container"> <div class="row">
<ul class="social-network"> <li><a
href="https://www.instagram.com/dwicacollection/" data-placement="top" title="instagram"><i class="fa fa-instagram"></i></a></li>
</ul> </div> </div>
</div> </div>
</footer>
</div> </body> </html>
Koneksi
<?php
mysql_connect("localhost","root",""); mysql_select_db("dwicacollection"); ?>
Produk
<?php
include("../koneksi.php"); if (!isset($_SESSION)) { session_start();
}
error_reporting(0); ?>
Produk
<!DOCTYPE html> <html lang="en"> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bootstrap 3 template for corporate business" />
<!-- css -->
<link href="../css/bootstrap.min.css" rel="stylesheet" /> <link href="../css/cubeportfolio.min.css" rel="stylesheet" /> <link href="../css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link id="t-colors" href="../skins/default.css" rel="stylesheet" />
<!-- boxed bg -->
<link id="bodybg" href="../bodybg/bg1.css" rel="stylesheet" type="text/css" />
<div id="wrapper">
<!-- start header --> <header>
<div class="top">
<div class="container"> <div class="row">
<div class="col-md-6"></div> <div class="col-md-6">
<marquee><strong>Selamat Datang di Toko Dwicacollection</strong></marquee>
</div> </div>
</div> </div>
<div class="navbar navbar-default navbar-static-top"> <div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<a class="navbar-brand" href="../index.php"><img src="../img/logo/icon.png" alt="" height="60" /></a>
</div>
<div class="navbar-collapse collapse "> <ul class="nav navbar-nav">
<li class="dropdown"> <a href="../index.php">Beranda</a>
</li>
<li class="dropdown active">
<a href="#" class="dropdown-toggle " toggle="dropdown" hover="dropdown" delay="0" data-close-others="false">Produk <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu">
<li><a href="dress.php">Gaun</a></li>
<li><a href="atasan.php">Atasan</a></li>
<li><a href="bawahan.php">Bawahan</a></li>
<li><a href="outerwear.php">Pakaian Luar</a></li>
</ul> </li>
<li class="dropdown"><a href="lokasi.php">Lokasi</a>
</li>
<li><a href="contact.php">Kontak</a></li> <li><a href="keranjang.php"><i class="fa fa-2x fa-shopping-cart"></i></a></li>
</div> </div>
</header>
<!-- end header -->
<section id="inner-headline"> <div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="breadcrumb">
<li><a href="../index.php"><i class="fa fa-home"></i></a><i class="icon-angle-right"></i></li>
<li><a href="#">Produk</a><i class="icon-angle-right"></i></li>
<li class="active">Gaun</li> </ul>
</div> </div>
</div> </section>
<section id="content"> <div class="container">
<div class="row"> <?php
$per_hal = 9;
$jumlah_record = mysql_query ("SELECT COUNT(*) FROM `produk` WHERE `produk`.`kategori`='dress'");
$jum = mysql_result($jumlah_record, 0); $halaman = ceil($jum/$per_hal);
$page = (isset($_GET['page'])) ? (int)$_GET['page'] : 1;
$start = ($page - 1) * $per_hal;
$query = mysql_query("SELECT * FROM `produk` WHERE `produk`.`kategori`='dress' LIMIT $start, $per_hal");
if ($query === FALSE) { die(mysql_error()); }
$no = 1;
while($de=mysql_fetch_array($query)){ $id=$de['id'];
$nama_brg=$de['nama_brg']; $harga_brg=$de['harga_brg']; $gambar=$de['gambar'];
$harga=number_format($harga_brg,0,",","."); echo "
<div class='col-md-4'>
<div class='thumbnail'> <img class='img-responsive' src=\"../img/$gambar\"></img>
<div class='caption'>
<h4>$nama_brg</h4>
<h5>$harga</h5>
<a
href='detailproduk.php?kd=".$de['id']."' class='btn sm btn-success'>Detail</a>
</div> </div>
"; }
?> <center>
<ul class="pagination">
<li><a href="dress.php?page=<?php echo $page -1 ?>"> « </a></li>
</ul>
<?php
for($x=1;$x<=$halaman;$x++) {
?>
<ul class="pagination"> <li><a
href="dress.php?page=<?php echo $x ?>"><?php echo $x ?></a></li> </ul>
<?php } ?>
<ul class="pagination">
<li><a href="dress.php?page=<?php echo $page +1 ?>"> » </a></li>
</ul> </center> </div>
</section> <footer>
<div class="container"> <div class="row">
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Hubungi Kami</h4> <address>
<strong>Dwicacollection</strong><br> Komp. Villa Palem Kencana, Blok L 13<br>
Jl. Medan-Binjai Km 12, Medan <br> Senin s/d Sabtu 08.00 - 16.00 085363000601 <br></address> </div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Informasi</h4> <ul class="link-list">
<li><a href="tentang.php">Tentang Kami</a></li>
<li><a href="privasi.php">Ketentuan Privasi</a></li>
</ul> </div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Bantuan</h4>
<ul class="link-list"> <li><a
href="pemesanan.php">Cara Pemesanan</a></li> <li><a href="pertanyaan.php">Pertanyaan Umum</a></li>
</ul> </div> </div>
<div class="col-lg-3 col-md-3">
<img src="../img/logo/logo.png" alt="" height="150" />
</div>
</div> </div>
<div id="sub-footer">
<div class="container"> <div class="row">
<div class="col-lg-6"></div> <div class="col-lg-6">
<ul class="social-network"> <li><a
href="https://www.instagram.com/dwicacollection/" data-placement="top" title="instagram"><i class="fa fa-instagram"></i></a></li>
</ul> </div> </div>
</div> </div>
</footer>
</div> </body> </html>
Detail Produk
<?php
include("../koneksi.php"); if (!isset($_SESSION)) { session_start();
} ?>
<!DOCTYPE html> <html lang="en"> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bootstrap 3 template for corporate business" />
<!-- css -->
<link href="../css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link id="t-colors" href="../skins/default.css" rel="stylesheet" />
<!-- boxed bg -->
<link id="bodybg" href="../bodybg/bg1.css" rel="stylesheet" type="text/css" />
</head> <body>
<div id="wrapper">
<!-- start header --> <header>
<div class="top">
<div class="container"> <div class="row">
<div class="col-md-6"></div> <div class="col-md-6">
<marquee><strong>Selamat Datang di Toko Dwicacollection</strong></marquee>
</div> </div>
</div> </div>
<div class="navbar navbar-default navbar-static-top"> <div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<a class="navbar-brand" href="../index.php"><img src="../img/logo/icon.png" alt="" height="60" /></a>
</div>
<div class="navbar-collapse collapse "> <ul class="nav navbar-nav">
<li class="dropdown"> <a href="../index.php">Beranda</a>
</li>
<li class="dropdown active">
<a href="#" class="dropdown-toggle " toggle="dropdown" hover="dropdown" delay="0" data-close-others="false">Produk <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu">
<li><a href="dress.php">Gaun</a></li>
<li><a href="atasan.php">Atasan</a></li>
<li><a
<li><a href="../index.php"><i class="fa fa-home"></i></a><i class="icon-angle-right"></i></li>
<li><a href="#">Produk</a><i class="icon-angle-right"></i></li>
<li class="active">Detail Produk</li>
<section id="content" style="padding-top:30px"> <div class="container">
<div class="row"> <!-- Start Cart -->
<div class="container">
<div class="title"><h3>Keranjang Anda</h3></div> <div class="table-responsive">
<!--<div class="tittle"><h3><strong><span class="glyphicon glyphicon-shopping-cart"></span> Your Cart</strong></h3></div>-->
//MENAMPILKAN DETAIL KERANJANG BELANJA//
$total = 0;
//mysql_select_db($database_conn, $conn); if (isset($_SESSION['items'])) {
foreach ($_SESSION['items'] as $key => $val) {
$query = mysql_query("SELECT id, nama_brg, harga_brg FROM produk WHERE id = '$key'");
$jumlah_harga = $data['harga_brg'] * $val; $total += $jumlah_harga;
?>
<tr>
<td><center><?php echo $data['nama_brg']; ?></center></td>
<td><center><?php echo number_format($val); ?> Pcs</center></td>
<td><center>Rp. <?php echo number_format($jumlah_harga); ?></center></td>
</tr>
<?php
//mysql_free_result($query); }
//$total += $sub; }?>
<?php
if($total == 0){ ?>
<td colspan="4" align="center"><?php echo "Keranjang Kosong!"; ?></td>
<?php } else { ?>
<td colspan="4" style="font-size: 9pt;background-color: #DDD;"><b><div class="pull-right">Total Belanja Anda : Rp. <?php echo number_format($total); ?>,- </div> </b></td>
<?php } ?> </table> </div>
<!-- End Cart -->
<!-- Start Content --> <?php
$q=mysql_query("SELECT * FROM `produk` WHERE `id`='$_GET[kd]'");
$data=mysql_fetch_array($q); ?>
<div class="container">
<center><img style="height:450px" src="../img/<?php echo $data['gambar']; ?>"></center>
</div>
<div class="col-md-4">
<div class="container"> <div class="row">
<h2><?php echo $data['nama_brg']; ?></h2>
<h5>Harga : <?php echo number_format($data['harga_brg'],0,",","."); ?></h5>
<h5>Stock : <?php
if ($data['stok'] >= 3) {
}else{
echo '<strong style="color:red;font-size:14pt;">OUT OF STOCK</strong>';
}; ?></h5>
<h5>Kategori : <?php echo $data['kategori']; ?></h5>
<p><strong>Keterangan</strong> : <br><?php echo $data['keterangan']; ?></p>
<br>
<a class="btn btn-success btn-sm" href="proses-keranjang.php?act=add&barang_id=<?php echo $data['id']; ?>&ref=detailproduk.php?kd=<?php echo $data['id'];?>" data-toggle="modal">Pesan</a>
<a class="btn btn-success btn-sm" href="keranjang.php"><i class="fa fa-shopping-cart"> Keranjang</i></a>
</div> </div>
</div> </div>
</section>
<footer>
<div class="container"> <div class="row">
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Hubungi Kami</h4> <address>
<strong>Dwicacollection</strong><br> Komp. Villa Palem Kencana, Blok L 13<br>
Jl. Medan-Binjai Km 12, Medan <br> Senin s/d Sabtu 08.00 - 16.00 085363000601 <br></address> </div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Informasi</h4> <ul class="link-list">
<li><a href="tentang.php">Tentang Kami</a></li>
<li><a href="privasi.php">Ketentuan Privasi</a></li>
</ul> </div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Bantuan</h4>
<ul class="link-list"> <li><a
<li><a href="pertanyaan.php">Pertanyaan Umum</a></li>
</ul> </div> </div>
<div class="col-lg-3 col-md-3">
<img src="../img/logo/logo.png" alt="" height="150" />
</div>
</div> </div>
<div id="sub-footer">
<div class="container"> <div class="row">
<div class="col-lg-6"></div> <div class="col-lg-6">
<ul class="social-network"> <li><a
href="https://www.instagram.com/dwicacollection/" data-placement="top" title="instagram"><i class="fa fa-instagram"></i></a></li>
</ul> </div> </div>
</div> </div>
</footer> </div>
</body> </html>
Pembayaran
<?php require_once("proses-keranjang.php"); ?> <!DOCTYPE html>
<html lang="en"> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bootstrap 3 template for corporate business" />
<!-- css -->
<link href="../css/bootstrap.min.css" rel="stylesheet" /> <link href="../css/cubeportfolio.min.css" rel="stylesheet" /> <link href="../css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link id="t-colors" href="../skins/default.css" rel="stylesheet" />
<!-- boxed bg -->
<link id="bodybg" href="../bodybg/bg1.css" rel="stylesheet" type="text/css" />
<div id="wrapper">
<section id="inner-headline"> <div class="container">
<div class="row">
<div class="col-lg-12"> <ul class="breadcrumb">
<li><a href="../index.php"><i class="fa fa-home"></i></a><i class="icon-angle-right"></i></li>
<li class="active">Pembayaran</li> </ul>
</div> </div> </div> </section>
<!-- Start Content --> <section id="content"> <div class="container"> <div class="row"> <!-- start: Table -->
<div class="table-responsive">
<div class="title"><h3>Formulir Pembayaran</h3></div>
<div class="hero-unit">Harap isi form dibawah ini dengan lengkap dan benar sesuai idenditas anda!</div><br>
<div class="hero-unit"><h4 style="color:red">Total Belanja Anda Rp. <?php echo number_format(($_GET['total'])); ?>,-</h4></div>
<form id="formku" action="selesai.php" method="post"> <table class="table table-condensed">
<input type="hidden" name="total" value="<?php echo abs((int)$_GET['total']); ?>">
<tr>
<td><label for="nm_usr">Nama</label></td>
<td><input name="nm_usr" type="text" id="nm_usr" size="45" required /></td>
</tr> <tr>
<td><label for="almt_usr">Alamat</label></td> <td><input name="almt_usr" type="text" id="almt_usr" size="45" required/></td>
</tr> <tr>
<td><label for="kp_usr">Kode Pos</label></td> <td><input name="kp_usr" type="text" id="kp_usr" size="45" required/></td>
</tr> <tr>
<td><label for="kota_usr">Kota</label></td>
<td><input name="kota_usr" type="text" id="kota_usr" size="45" required/></td>
</tr> <tr>
<td><label for="tlp">No telepon</label></td>
<td><input name="tlp" type="text" minlength="12" id="tlp" size="45" required/></td>
</tr> <tr>
<td><a href="index.php" class="btn sm btn-primary">Kembali</a> <input type="submit" value="Simpan Data" name="finish" class="btn btn-sm btn-primary"/></td>
</tr> </table> </form> </div> </div> </div> </section>
<footer>
<div class="container"> <div class="row">
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Hubungi Kami</h4> <address>
<strong>Dwicacollection</strong><br> Komp. Villa Palem Kencana, Blok L 13<br> Jl. Medan-Binjai Km 12, Medan <br>
Senin s/d Sabtu 08.00 - 16.00 085363000601 <br></address> </div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Informasi</h4> <ul class="link-list">
<li><a href="tentang.php">Tentang Kami</a></li> <li><a href="privasi.php">Ketentuan Privasi</a></li> </ul>
</div>
</div>
<div class="col-sm-3 col-lg-3"> <div class="widget">
<h4>Bantuan</h4>
<ul class="link-list">
<li><a href="pemesanan.php">Cara Pemesanan</a></li> <li><a href="pertanyaan.php">Pertanyaan Umum</a></li> </ul>
</div> </div>
<div class="col-lg-3 col-md-3">
<img src="../img/logo/logo.png" alt="" height="150" /> </div>
</div> </div>
<div id="sub-footer"> <div class="container"> <div class="row">
<div class="col-lg-6"></div> <div class="col-lg-6">
<ul class="social-network"> <li><a
data-placement="top" title="instagram"><i class="fa fa-instagram"></i></a></li>
</ul> </div> </div> </div> </div> </footer>