• Tidak ada hasil yang ditemukan

Sistem Penjualan Pakaian Online Berbasis Web Menggunakan PHP dan MySQL

N/A
N/A
Protected

Academic year: 2017

Membagikan "Sistem Penjualan Pakaian Online Berbasis Web Menggunakan PHP dan MySQL"

Copied!
84
0
0

Teks penuh

(1)

LISTNING PROGRAM

1.

ARCHIVE.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Filtering Product</title>

<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>

<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

</script>

</head>

<body class="distro">

<div id="container">

(2)

<?php

include "header.php";

?>

<!-- end #header --></div>

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

<?php

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

<?php

include "tarik.php";

?>

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">Hasil Pencarian Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$cari=$_POST['cari'];

$oke=mysql_query("select * from product where name_product like '%$cari%' ");

(3)

while($data=mysql_fetch_array($oke)){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

}

}

if($no==0){

echo " <tr><td><center>Product dengan kategori ($cari) Belum Tersedia</center><td></tr>";

?>

</table>

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">Recent Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke) and $no<=11){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

(4)

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

}

}

}

?>

</table>

<table width="100%" border="0">

<tr><td><div id="view-product">Recent Post</div></td></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <=3){

echo "<tr><td id='judul'><a

href='post.php?id=$data[id_post]'><b

id='judul'>$data[title_post]</b></a></td></tr>";

echo"<tr><td><div id='date'><img

src='images/calendar.png'>$data[date_post] by $data[author_post]</div></td></tr>";

$isi_berita = htmlentities(strip_tags($data['content_post'])); // membuat paragraf pada isi berita dan mengabaikan tag html

$isi = substr($isi_berita,0,150); // ambil sebanyak 260 karakter

$isi = substr($isi_berita,0,strrpos($isi," ")); // potong per spasi kalimat

(5)

<a href='post.php?id=$data[id_post]'> <img

src='images/readmore.png' border='0' style='margin-top:8px' /></td></tr>";

$no++;

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

<div id="footer">

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

</html>

2.

CATEGORY.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

(6)

<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>

<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

</script>

</head>

<body class="distro">

<div id="container">

<div id="header">

<?php

include "header.php";

?>

<!-- end #header --></div>

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

(7)

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

<?php

include "tarik.php";

?>

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">Hasil Pencarian Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$category=$_REQUEST['cat'];

$oke=mysql_query("select * from product where category_product like '%$category%' ");

$no=0;

while($data=mysql_fetch_array($oke)){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

(8)

}

if($no==0){

echo " <tr><td><center>Product dengan kategori ($category) Belum Tersedia</center><td></tr>";

?>

</table>

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">Recent Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke) and $no<=11){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

}

}

}

(9)

</table>

<table width="100%" border="0">

<tr><td><div id="view-product">Recent Post</div></td></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <=3){

echo "<tr><td id='judul'><a

href='post.php?id=$data[id_post]'><b

id='judul'>$data[title_post]</b></a></td></tr>";

echo"<tr><td><div id='date'><img

src='images/calendar.png'>$data[date_post] by $data[author_post]</div></td></tr>";

$isi_berita = htmlentities(strip_tags($data['content_post'])); // membuat paragraf pada isi berita dan mengabaikan tag html

$isi = substr($isi_berita,0,150); // ambil sebanyak 260 karakter

$isi = substr($isi_berita,0,strrpos($isi," ")); // potong per spasi kalimat

echo"<tr><td>$isi....<br>

<a href='post.php?id=$data[id_post]'> <img

src='images/readmore.png' border='0' style='margin-top:8px' /></td></tr>";

$no++;

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

(10)

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

</html>

3.

FOOTER.PHP

<?php

echo"<center><table width='100%' border='0' id='footer'>

<tr>

<th width='25%'>Support</th>

<th width='25%'>Informasi</th>

<th width='25%'>Category</th>

<th width='25%'>Join in facebook</th>

</tr>

<tr id='like'>

<td>

Buat Toko<br>

Fitur Toko<br>

Demo Toko Online<br>

Paket & Harga<br>

Toko Online Gratis<br>

Cara Buat Toko<br>

(11)

</td>

<td>

Tentang Kami<br>

Contact US<br>

Semua Product<br>

Panduan Belanja<br></td>

<td>

"; ?>

<?php

include "koneksi.php";

$oke=mysql_query("select * from category where status_category='public'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <= 15){

echo "<img src='images/icon-post.png'> &nbsp; <a

href='category.php?cat=$data[category]'>$data[name_category]</ a><br>";

$no++;

}

?>

<?php

echo "<td>

<div class='fb-like'

data-href='https://www.facebook.com/pages/KampoengWebId/30109804662 6242?ref=hl' width='180' colorscheme='dark' data-show-faces='true' data-send='false'></div></td>

</tr>

</table>

<p>&copy; Powered 2013 All right reserved</p></center>";

(12)

4.

FOOTER2.PHP

<?php

echo"<center>

<p>&copy; Powered 2013 All right reserved</p></center>";

?>

5.

HEADER.PHP

<div id="fb"><img src="images/fb.png"><img

src="images/t.png"><img src="images/rss.png"><br /><br /> <form method="post" action="archive.php"><input name="cari" type="text" onfocus="this.value='';" value="Cari Product" maxlength="30" /><input name="submit" type="submit"

value="Search" /></form></div>

<img src="images/logo.png" />

6.

INDEX.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Distro Palestina</title>

<link rel="stylesheet" type="text/css" href="style.css" />

(13)

<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

</script>

<div id="fb-root"></div>

<script>(function(d, s, id) {

var js, fjs = d.getElementsByTagName(s)[0];

if (d.getElementById(id)) return;

js = d.createElement(s); js.id = id;

js.src = "//connect.facebook.net/id_ID/all.js#xfbml=1";

fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>

<meta name="google-translate-customization"

content="6c4781192c95003-97d5158c26efcbe4-gf498eccff66c2cbc-13"></meta>

</head>

<body class="distro">

<div id="container">

<div id="header">

<?php

include "header.php";

?>

(14)

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

<?php

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

<?php

include "tarik.php";

?>

<marquee> Selamat Datang Di Web Distro Palestina</marquee>

<!-- slide -->

<div id="featured" >

<ul class="ui-tabs-nav">

<li class="ui-tabs-nav-item" id="nav-fragment-1"><a href="#fragment-1"><img src="images/image1-small.jpg" alt="" /><span>15+ Excellent High Speed

Photographs</span></a></li>

<li class="ui-tabs-nav-item" id="nav-fragment-2"><a href="#fragment-2"><img src="images/image2-small.jpg" alt="" /><span>20 Beautiful Long Exposure

Photographs</span></a></li>

<li class="ui-tabs-nav-item" id="nav-fragment-3"><a href="#fragment-3"><img src="images/image3-small.jpg" alt="" /><span>35 Amazing Logo Designs</span></a></li>

<li class="ui-tabs-nav-item" id="nav-fragment-4"><a href="#fragment-4"><img src="images/image4-small.jpg" alt="" /><span>Create a Vintage Photograph in

(15)

</ul>

<!-- First Content -->

<div id="fragment-1" class="ui-tabs-panel" style="">

<img src="images/image1.jpg" alt="" />

<div class="info" >

<h2><a href="#" >15+ Excellent High Speed Photographs</a></h2>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tincidunt condimentum lacus. Pellentesque ut diam....<a href="#" >read more</a></p>

</div>

</div>

<!-- Second Content -->

<div id="fragment-2" class="panel ui-tabs-hide" style="">

<img src="images/image2.jpg" alt="" />

<div class="info" >

<h2><a href="#" >20 Beautiful Long Exposure Photographs</a></h2>

<p>Vestibulum leo quam, accumsan nec porttitor a, euismod ac tortor. Sed ipsum lorem, sagittis non egestas id, suscipit....<a href="#" >read more</a></p>

</div>

</div>

<!-- Third Content -->

(16)

<img src="images/image3.jpg" alt="" />

<div class="info" >

<h2><a href="#" >35 Amazing Logo Designs</a></h2>

<p>liquam erat volutpat. Proin id volutpat nisi. Nulla facilisi. Curabitur facilisis sollicitudin ornare....<a href="#" >read more</a></p>

</div>

</div>

<!-- Fourth Content -->

<div id="fragment-4" class="panel ui-tabs-hide" style="">

<img src="images/image4.jpg" alt="" />

<div class="info" >

<h2><a href="#" >Create a Vintage Photograph in Photoshop</a></h2>

<p>Quisque sed orci ut lacus viverra interdum ornare sed est. Donec porta, erat eu pretium luctus, leo augue sodales....<a href="#" >read more</a></p>

</div>

</div>

</div>

<!-- end slide -->

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">View Product</div></td></tr>

(17)

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke) and $no<=11){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

}

}

?>

</table>

<table width="100%" border="0">

<tr><td><div id="view-product">Recent Post</div></td></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post' order by id_post desc");

$no=1;

while($data=mysql_fetch_array($oke) and $no <=4){

echo "<tr><td id='judul'><a

href='post.php?id=$data[id_post]'><b

(18)

echo"<tr><td><div id='date'><img

src='images/calendar.png'>$data[date_post] by $data[author_post]</div></td></tr>";

$isi_berita = htmlentities(strip_tags($data['content_post'])); // membuat paragraf pada isi berita dan mengabaikan tag html

$isi = substr($isi_berita,0,150); // ambil sebanyak 260 karakter

$isi = substr($isi_berita,0,strrpos($isi," ")); // potong per spasi kalimat

echo"<tr><td>$isi....<br>

<a href='post.php?id=$data[id_post]'> <img

src='images/readmore.png' border='0' style='margin-top:8px' /></td></tr>";

$no++;

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

<div id="footer">

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

(19)

7.

KANAN.PHP

<center><div id="google_translate_element"></div><script type="text/javascript">

function googleTranslateElementInit() {

new google.translate.TranslateElement({pageLanguage: 'id', includedLanguages: 'ar,de,en,es,fr,hi,it,ja,ms,nl,pt,tl,tr,zh-CN', layout:

google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');

}

</script><script type="text/javascript"

src="//translate.google.com/translate_a/element.js?cb=googleTr anslateElementInit"></script>

</center>

<table border="0" width="100%" id="sidebar">

<tr><th id="title" colspan="2">Category</th></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from category where status_category='public'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <= 15){

echo "<tr id='sidebar-name'><td width='10%'><img src='images/icon-post.png'></td>

<td><a

href='category.php?cat=$data[category]'><b>$data[name_category ]</b></a></td></tr>";

$no++;

}

?>

(20)

<table border="0" width="100%" id="sidebar">

<tr><th id="title" colspan="2">Recent Post</th></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <= 15){

echo "<tr id='sidebar-name'><td width='10%'><img src='images/icon-post.png'></td>

<td><a

href='post.php?id=$data[id_post]'><b>$data[title_post]</b></a> </td></tr>";

$no++;

}

?>

</table>

<table border="0" width="100%" id="sidebar">

<tr><th id="title" colspan="2">Customer Service</th></tr>

<tr>

<td><a href="ymsgr:sendIM?nahwan_nur92"> <img border="0" height="20" width="100"

src="http://opi.yahoo.com/online?u=nahwan_nur92&m=g&t=1&l=us"/ >&nbsp; Evan</a></td>

</tr>

<tr>

<td><a href="ymsgr:sendIM?hidayahqm"> <img border="0" height="20" width="100"

src="http://opi.yahoo.com/online?u=hidayahqm&m=g&t=1&l=us"/>&n bsp; Mudita</a></td>

</tr>

(21)

<td><a href="ymsgr:sendIM?janah_smart"> <img border="0" height="20" width="100"

src="http://opi.yahoo.com/online?u=janah_smart&m=g&t=1&l=us"/> &nbsp; Janah</a></td>

</tr>

<tr>

<td><a href="ymsgr:sendIM?lisferi_setiarini_se"> <img border="0" height="20" width="100"

src="http://opi.yahoo.com/online?u=lisferi_setiarini_se&m=g&t= 1&l=us"/>&nbsp; Lisferi</a></td>

</tr>

<tr>

</table>

<table border="0" width="100%" id="sidebar">

<tr><th id="title">Lihat Peta</th></tr>

<tr><td><iframe width="180" height="200" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"

src="https://maps.google.com/maps?f=d&amp;source=s_d&amp;saddr ut=embed"></iframe><br /><small>Lihat <a

href="https://maps.google.com/maps?f=d&amp;source=embed&amp;sa

style="color:#0000FF;text-align:left">Tanpa judul</a> di peta yang lebih besar</small></td></tr>

(22)

8.

KIRI.PHP

<center><?php

//menentukan hari

$a_hari = array(1=>"Senin","Selasa","Rabu","Kamis","Jumat", "Sabtu","Minggu");

$hari = $a_hari[date("N")];

//menentukan tanggal

$tanggal = date ("j");

//menentukan bulan

$a_bulan = array(1=>"Januari","Februari","Maret", "April", "Mei", "Juni","Juli","Agustus","September","Oktober", "November","Desember");

$bulan = $a_bulan[date("n")];

//menentukan tahun

$tahun = date("Y");

//dan untuk menampilkan nya dengan format contoh Jumat, 22 Februari 2013

echo $hari . ", " . $tanggal ." ". $bulan ." ". $tahun;

?></center>

<table border="0" width="100%" id="sidebar">

<tr><th id="title" colspan='2'>Page</th></tr>

<?php

(23)

$oke=mysql_query("select * from post where type_post='page'");

while($data=mysql_fetch_array($oke)){

echo "<tr id='sidebar-name'><td width='10%'><img src='images/icon-page.png'></td>

<td><a

href='page.php?id=$data[id_post]'><b>$data[title_post]</b></a> </td></tr>";

}

?>

</table>

<table border="0" width="100%" id="sidebar">

<tr><th id="title" colspan="2">Link</th></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from link where status_link='public'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <= 10){

echo "<tr id='sidebar-name'><td width='10%'><img src='images/link.png'></td>

<td><a

href='$data[url_link]'><b>$data[name_link]</b></a></td></tr>";

$no++;

}

?>

</table>

</table>

<table border="0" width="100%" id="sidebar">

<tr><th id="title">Sharing</th></tr>

(24)

<!-- BEGIN CBOX - www.cbox.ws - v001 -->

<div id="cboxdiv" style="text-align: center; line-height: 0">

<div><iframe frameborder="0" width="180" height="305"

src="http://www4.cbox.ws/box/?boxid=4206933&amp;boxtag=8qsx3d& amp;sec=main" marginheight="2" marginwidth="2"

scrolling="auto" allowtransparency="yes" name="cboxmain4-4206933" style="border:#F6F3E0 1px solid;" id="cboxmain4-4206933"></iframe></div>

<div><iframe frameborder="0" width="180" height="75"

src="http://www4.cbox.ws/box/?boxid=4206933&amp;boxtag=8qsx3d& amp;sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform4-4206933"

style="border:#F6F3E0 1px solid;border-top:0px" id="cboxform4-4206933"></iframe></div>

</div>

<!-- END CBOX --></td>

</tr></table>

9.

KONEKSI.PHP

<?php

$koneksi=mysql_connect('localhost','root','');

if (!$koneksi)

{print "koneksi tidak berhasil bost, di cobo meneh ae. smngat2 bost";

}

mySQL_select_db("distropalestina");

(25)

10.

ORDER.PHP

<?php

if(isset($_POST['submit'])!="")

{

include "koneksi.php";

$name=$_POST['name'];

$no=$_POST['no'];

$telpon=$_POST['telpon'];

$email=$_POST['email'];

$address=$_POST['address'];

$city=$_POST['city'];

$poscode=$_POST['code-pos'];

$item=$_POST['item'];

//memeriksa apakah form kosong

if(($name==null)or($no==null)or($telpon==null)or($email==null) or($address==null)or($item==null)){

echo("<script> alert('Maaf, Isi data dengan lengkap')</script>");

include("product.php");exit;}

else{$auth=true;}

//proses pengiriman

if($auth){

$data=mysql_query("INSERT INTO pemesanan

values(id_pemesan,'name_pemesan','identitas_pemesan','address_ pemesan','city_pemesan','poscode_pemesan','email_pemesan','pho ne_pemesan','item_pemesan',date_pemesan,'status_pemesan'),('', '$name','$no','$address','$city','$poscode','$email','$telpon' ,'$item',now(),'pending')") or die (mysql_error());

(26)

exit; }

else{

echo("<script> alert('Maaf, pemesanan gagal silahkan coba lagi')</script>");

exit;}

}

?>

11.

ORDER_PRODUCT.PHP

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">View Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke) and $no<=7){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

(27)

echo"<tr>";

}

}

?>

</table>

12.

PAGE.PHP

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">View Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke) and $no<=7){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b id='name-product'>$data[name_product]</b>

<br><b id='harga'>$data[price_product]</b>

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

(28)

}

?>

</table>

13.

POST.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php

include "koneksi.php";

$id=$_REQUEST['id'];

$oke=mysql_query("select * from post where id_post=$id and type_post='post'");

$data=mysql_fetch_array($oke);

$date=$data['date_post'];

$author=$data['author_post'];

$title=$data['title_post'];

$content=$data['content_post'];

?>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php echo $title; ?></title>

<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>

(29)

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

</script>

</head>

<body class="distro">

<div id="container">

<div id="header">

<?php

include "header.php";

?>

<!-- end #header --></div>

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

<?php

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

(30)

include "tarik.php";

?>

<table width="100%" border="0" id="single-post">

<?php

echo "<tr><td><b id='judul-single'>$title</b></td></tr>";

echo"<tr><td><div id='date'><img

src='images/calendar.png'>$date by $author</div></td></tr>";

echo"<tr><td>$content</td></tr>";

?>

</table>

<?php

include "other-product.php";

?>

<table width="100%" border="0">

<tr><td><div id="view-product">Recent Post</div></td></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <=3){

if($data['id_post']==$id){

continue;

}

else{

echo "<tr><td id='judul'><a

href='post.php?id=$data[id_post]'><b

id='judul'>$data[title_post]</b></a></td></tr>";

echo"<tr><td><div id='date'><img

(31)

$isi_berita = htmlentities(strip_tags($data['content_post'])); // membuat paragraf pada isi berita dan mengabaikan tag html

$isi = substr($isi_berita,0,150); // ambil sebanyak 260 karakter

$isi = substr($isi_berita,0,strrpos($isi," ")); // potong per spasi kalimat

echo"<tr><td>$isi....<br>

<a href='post.php?id=$data[id_post]'> <img

src='images/readmore.png' border='0' style='margin-top:8px' /></td></tr>";

}

$no++;

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

<div id="footer">

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

(32)

14.

PRODUCT.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>

<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

</script>

</head>

<body class="distro">

<div id="container">

<div id="header">

<?php

include "header.php";

(33)

<!-- end #header --></div>

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

<?php

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

<?php

include "tarik.php";

?>

<table width="100%" border="0">

<tr><td colspan="4"><div id="view-product">View Product</div></td></tr>

<tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from product");

$no=0;

while($data=mysql_fetch_array($oke)){

echo "<td width='25%' id='bgproduct'><img

src='admin/product/upload/$data[picture_product]' width='120' height='100'>

<br><b>$data[name_product]</b>

(34)

<br><a href='product-detail.php?code=$data[code_product]'><img src='images/detail.png'></a></td>";

$no++;

if($no % 4==0){

echo"<tr>";

}

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

<div id="footer">

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

</html>

15.

PRODUCT_DETAIL.PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php

(35)

$code=$_REQUEST['code'];

$oke=mysql_query("select * from product where code_product='$code'");

$data=mysql_fetch_array($oke);

$picture=$data['picture_product'];

$name=$data['name_product'];

$code=$data['code_product'];

$size=$data['size_product'];

$color=$data['color_product'];

$stock=$data['stock_product'];

$price=$data['price_product'];

$description=$data['description_product'];

?>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title><?php echo $name; ?></title>

<link rel="stylesheet" type="text/css" href="style.css" />

<script type="text/javascript" src="js/jquery-1.6.2.min.js" ></script>

<script type="text/javascript" src="js/jquery-ui-1.9.0.custom.min.js"></script>

<script type="text/javascript" src="js/jquery-ui-tabs-rotate.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);});

(36)

</head>

<body class="distro">

<div id="container">

<div id="header">

<?php

include "header.php";

?>

<!-- end #header --></div>

<div id="sidebar1">

<?php

include "kiri.php";

?>

<!-- end #sidebar1 --></div>

<div id="sidebar2">

<?php

include "kanan.php";

?>

<!-- end #sidebar2 --></div>

<div id="mainContent">

<?php

include "tarik.php";

?>

<table width="100%" id="product-detail">

<?php

echo "

(37)

<td rowspan='8' id='gambar-detail'><img src='admin/product/upload/$picture' width='300' height='270'></td>

<td width='50%' colspan='2' detail'><b id='judul-detail'>$name</b></td></tr>

<tr><td width='10%'>Code</td><td>: $code</td></tr>

<tr><td>Ukuran</td><td>: $size</td></tr>

<tr><td>Warna</td><td>: $color</td></tr>

<tr><td>Stock</td><td>: $stock</td></tr>

<tr><td>Harga</td><td>: $price</td></tr>

<tr><td colspan='2'>Deskripsi : </td></tr>

<tr><td id='des'colspan='2'>$description</td></tr>

<tr>

<td colspan='3'><form method='POST'><center><input name='pesan' type='submit' value='Pesan

Sekarang'/></center></form></td>

</tr>";

?>

</table>

<!-- form order -->

<?php

if(isset($_POST['pesan'])!=""){

echo"<form action='order.php' method='post' name='order'>

<table width='100%' border='0' bgcolor='#D9FFB3'>

<tr>

<th colspan='3' id='view-product'>Form Pemesanan Barang</th>

</tr>

<tr>

(38)

<td width='5%'>:</td>

<td width='65%'><label>

<input type='text' name='name' maxlength='100' size='40'>

</label></td>

</tr>

<tr>

<td>No SIM,KTP,MHS</td>

<td>:</td>

<td><input type='text' name='no' maxlength='100' size='40'></td>

</tr>

<tr>

<td>Telpon/HP</td>

<td>:</td>

<td><input type='text' name='telpon' maxlength='12' size='20'></td>

</tr>

<tr>

<td>Email</td>

<td>:</td>

<td><input type='text' name='email' maxlength='100' size='40'></td>

</tr>

<tr>

<td>Kode Pos</td>

<td>:</td>

<td><input type='text' name='code-pos' maxlength='10' size='10'></td>

(39)

<tr>

<td>Kota</td>

<td>:</td>

<td><input type='text' name='city' maxlength='30' size='20'></td>

</tr>

<tr>

<td>Alamat lengkap</td>

<td>:</td>

<td><label>

<textarea name='address' cols='35' rows='3'></textarea>

</label></td>

</tr>

<tr>

<td rowspan='2'>Item </td>

<td>:</td>

<td><label>

<textarea name='item' cols='35' rows='3'></textarea>

</label></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>Example : code1=2, code4=5</td>

</tr>

<tr>

<td>&nbsp;</td>

(40)

<td><label>

<input type='submit' name='submit' value='Kirim'>

<input type='reset' name='reset' value='Reset'>

</label></td>

</tr>

</table>

</form>";

}

?>

<!-- end form -->

<?php

include "other-product.php";

?>

<table width="100%" border="0">

<tr><td><div id="view-product">Recent Post</div></td></tr>

<?php

include "koneksi.php";

$oke=mysql_query("select * from post where type_post='post'");

$no=1;

while($data=mysql_fetch_array($oke) and $no <=3){

echo "<tr><td id='judul'><a

href='post.php?id=$data[id_post]'><b

id='judul'>$data[title_post]</b></a></td></tr>";

echo"<tr><td><div id='date'><img

src='images/calendar.png'>$data[date_post] by $data[author_post]</div></td></tr>";

$isi_berita = htmlentities(strip_tags($data['content_post'])); // membuat paragraf pada isi berita dan mengabaikan tag html

(41)

$isi = substr($isi_berita,0,strrpos($isi," ")); // potong per spasi kalimat

echo"<tr><td>$isi....<br>

<a href='post.php?id=$data[id_post]'> <img

src='images/readmore.png' border='0' style='margin-top:8px' /></td></tr>";

$no++;

}

?>

</table>

<!-- end #mainContent --></div>

<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to

contain all child floats --><br class="clearfloat" />

<div id="footer">

<?php

include "footer.php";

?>

<!-- end #footer --></div>

<!-- end #container --></div>

</body>

</html>

16.

STYLE.PHP

<style type="text/css">

body {

background-color:#330;

(42)

margin: 0;

padding: 0;

text-align: center;

}

.distro #container {

width: 100%;

background: #FFFFFF;

text-align: left;

}

.distro #header {

background-image:url(images/header.jpg);

width:100%;

height:113px;

padding: 0 10px;

}

.distro #header h1 {

color:#FFF;

margin: 0;

padding: 10px 0;

}

.distro #sidebar1 {

float: left;

width: 12em;

background:#C8C9CA;

padding: 5px 0;

}

.distro #sidebar2 {

(43)

width: 12em;

background:#C8C9CA; #FDD;

padding: 5px 0;

}

.distro #sidebar1 h3, .distro#sidebar1 p, .distro#sidebar2 p, .distro#sidebar2 h3 {

margin-left: 10px;

margin-right: 10px;

}

.distro #mainContent {

margin: 0 10em 0 10em;

padding: 0 2em 0 2em;

}

.distro #footer {

padding: 0 10px;

height:270px;

}

.distro #footer p {

margin: 0;

padding: 10px 0;

color:#600;

}

/* Miscellaneous classes for reuse */

.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */

float: right;

(44)

}

.fltlft { /* this class can be used to float an element left in your page */

float: left;

margin-right: 8px;

}

.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */

clear:both;

height:0;

font-size: 1px;

line-height: 0px;

}

a:hover {

text-decoration:none;

color:#C00

}

#view-product{

background-image:url(images/product-menu.png);

background-repeat:repeat-x;

font-weight:bolder;

font-size:large;

text-align:center;

}

#bgproduct{

background-color:#FFB18C;

padding:5px;

(45)

}

#bgproduct:hover{

background-color:#FFC;

border-width:thin;

border-style:solid;

border-color:#036}

th#title{

background-image:url(images/sidebar.jpg);

background-repeat:repeat-x;

color:#FF0;

text-align:center;

}

table#sidebar{

padding:5px;

}

table#single-post{

padding:5px;

}

table#product-detail{

background-color:#FFFFD5;

padding:5px;

}

td#judul-detail{

background-color:#FC9;

}

tr#sidebar-name{

background-color:#DAAC6D;

(46)

}

td#judul{

background-image:url(images/bg-title2.png);

background-repeat:repeat-x;

}

b#judul{

margin-left:10px;

font-size:1.3em;

color:#600;

}

td#judul_single{

font-size:1.4em;

}

b#judul-single{

font-size:1.3em;

color:#600;

}

b#judul-detail{

margin-left:5px;

font-size:1.3em;

color:#600;

}

#gambar-detail{

vertical-align:top;

}

a{

text-decoration:none;

(47)

}

#fb{

float:right;

text-align:right;

}

#date{

color:grey;

font-size:0.7em;

}

#des{

background-color:#fff;

padding:5px;

}

table#footer{

background-image:url(images/bg2.png);

color:#fff;

}

table#footer tr#like{

vertical-align:top;

}

th{font-size:18px;

text-align:left;

}

div#cari{

text-align:right;

}

b#harga{

(48)

}

b#name-product{

color:#039;

font-size:15px;

}

/* slide show*/

#featured{

width:343px;

padding-right:255px;

position:relative;

border:5px solid #ccc;

height:250px; overflow:hidden;

background:#fff;

}

#featured ul.ui-tabs-nav{

position:absolute;

top:0; left:355px;

list-style:none;

padding:0; margin:0;

width:240px; height:250px;

overflow:auto;

overflow-x:hidden;

}

#featured ul.ui-tabs-nav li{

padding:1px 0; padding-left:13px;

font-size:12px;

color:#666;

(49)

#featured ul.ui-tabs-nav li img{

float:left; margin:2px 5px;

background:#fff;

padding:2px;

border:1px solid #eee;

}

#featured ul.ui-tabs-nav li span{

font-size:11px; font-family:Verdana;

line-height:18px;

}

#featured li.ui-tabs-nav-item a{

display:block;

height:60px; text-decoration:none;

color:#333; background:#fff;

line-height:20px; outline:none;

}

#featured li.ui-tabs-nav-item a:hover{

background:#f2f2f2;

}

#featured li.ui-tabs-selected, #featured li.ui-tabs-active{

background:url('images/selected-item.gif') top left no-repeat;

}

#featured ul.ui-tabs-nav li.ui-tabs-selected a, #featured ul.ui-tabs-nav li.ui-tabs-active a{

background:#ccc;

}

#featured .ui-tabs-panel{

(50)

background:#999; position:relative;

}

#featured .ui-tabs-panel .info{

position:absolute;

bottom:0; left:0;

height:70px;

background: url('images/transparent-bg.png');

}

#featured .ui-tabs-panel .info a.hideshow{

position:absolute; font-size:11px; font-family:Verdana; color:#f0f0f0; right:10px; top:-20px; line-height:20px;

margin:0; outline:none; background:#333;

}

#featured .info h2{

font-size:1em; font-family:Georgia, serif;

color:#fff; padding:5px; margin:0; font-weight:normal;

overflow:hidden;

}

#featured .info p{

margin:0 5px;

font-family:Verdana; font-size:11px;

line-height:15px; color:#f0f0f0;

}

#featured .info a{

text-decoration:none;

color:#fff;

}

#featured .info a:hover{

(51)

}

#featured .ui-tabs-hide{

display:none;

}

/*Menu tarik */

a:hover, a:active, a:focus {

outline:0;

direction:ltr;

}

.wrapper {

position:relative; height:25px;

background-color:red;

}

.mainmenu {

position:absolute;

z-index:100;

font-family:Verdana, Geneva, sans-serif;

font-weight:normal;

font-size:90%;

line-height:25px;

left:50%;

margin-left:-303px;

width:606px;

}

(52)

padding:0;

margin:0;

list-style:none;

width:100px;

overflow:hidden;

float:left;

margin-right:1px;

}

ul.menu a {

text-decoration:none;

color:#fff;

padding-left:5px;

}

ul.menu li.list {

float:left;

width:250px;

margin:-32767px -125px 0px 0px;

background:url(images/top1.png) no-repeat left bottom;

}

ul.menu li.list a.category {

position:relative;

z-index:50;

display:block;

float:left;

(53)

margin-top:32767px;

background-image:url(images/cat.jpg);

background-repeat:repeat;

font-weight:bold

}

ul.menu li.list a.category:hover,

ul.menu li.list a.category:focus,

ul.menu li.list a.category:active {

margin-right:1px;

background-image:url(images/tophover1.png);

background-repeat:repeat;

background-position:left top;

}

ul.submenu {

float:left;

padding:25px 0px 0px 0px;

margin:0;

list-style:none;

background-image:url(images/tophover1.png);

background-repeat:repeat;

background-position:left top;

margin:-25px 0px 0px 0px;

}

ul.submenu li a {

(54)

width:120px;

background:#369;

clear:left;

}

ul.submenu li a.endlist {

background:url(images/bottom1.png);

}

ul.submenu li a.endlist:hover,

ul.submenu li a.endlist:focus,

ul.submenu li a.endlist:active {

background:url(images/bottomhover1.png);

}

ul.submenu a:hover,

ul.submenu a:focus,

ul.submenu a:active {

background-image:url(images/tophover1.png);

background-repeat:repeat;

margin-right:1px;

}

(55)

17.

TARIK.PHP

<!-- menu tarik -->

<div class="wrapper">

<div class="mainmenu">

<ul class="menu">

<li class="list">

<a class="category" href="index.php">Home</a>

</li>

</ul>

<ul class="menu">

<li class="list">

<a class="category"

href="category.php?cat=baju">Baju&nbsp;&nbsp;&raquo;</a>

<ul class="submenu">

<li><a href="category.php?cat=baju-batik">Baju Batik</a></li>

<li><a href="category.php?cat=baju-kemeja">Baju Kemeja</a></li>

<li><a href="category.php?cat=baju-muslim">Baju Muslim</a></li>

<li><a href="category.php?cat=kaos-oblong">Kaos Oblong</a></li>

<li><a href="category.php?cat=baju-jaket">Baju Jaket</a></li>

</ul>

</li>

</ul>

<ul class="menu">

(56)

<a class="category"

href="#articles">Tas&nbsp;&nbsp;&raquo;</a>

<ul class="submenu">

<li><a href="category.php?cat=tas-ransel">Tas Ransel</a></li>

<li><a href="category.php?cat=tas-wanita">Tas Wanita</a></li>

<li><a href="category.php?cat=tas-anak">Tas Anak</a></li>

<li><a href="category.php?cat=koper">Koper</a></li>

<li><a href="category.php?cat=tas-laptop">Tas Laptop</a></li>

</ul>

</li>

</ul>

<ul class="menu">

<li class="list">

<a class="category"

href="#news">Accesoris&nbsp;&nbsp;&raquo;</a>

<ul class="submenu">

<li><a href="category.php?cat=topi">Topi</a></li>

<li><a href="category.php?cat=pin">Pin</a></li>

<li><a href="category.php?cat=dompet">Dompet</a></li>

<li><a href="category.php?cat=kemeja">Kemeja</a></li>

<li><a href="category.php?cat=jam-tangan">Jam Tangan</a></li>

</ul>

</li>

</ul>

<ul class="menu">

(57)

<a class="category"

href="category.php?cat=alat">Peralatan</a>

</li>

</ul>

<ul class="menu">

<li class="list">

<a class="category"

href="category.php?cat=elektronik">elektronik</a>

</li>

</ul>

<!-- end mainmenu --></div>

<!-- end wrapper --></div>

<!-- end menu tari -->

18.

DISTROPALESTIN.sql

-- phpMyAdmin SQL Dump

-- version 3.3.9

-- http://www.phpmyadmin.net

--

-- Host: localhost

-- Generation Time: Nov 27, 2014 at 03:49 PM

-- Server version: 5.5.8

-- PHP Version: 5.3.5

(58)

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;

/*!40101 SET

@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;

/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;

/*!40101 SET NAMES utf8 */;

--

-- Database: `distropalestina`

--

-- ---

--

-- Table structure for table `admin`

--

CREATE TABLE IF NOT EXISTS `admin` (

`id_admin` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`name_admin` varchar(50) CHARACTER SET utf8 NOT NULL,

`address_admin` text CHARACTER SET utf8 NOT NULL,

`email_admin` varchar(100) CHARACTER SET utf8 NOT NULL,

`phone_admin` varchar(12) CHARACTER SET utf8 NOT NULL,

`username_admin` varchar(30) CHARACTER SET utf8 NOT NULL,

`password_admin` varchar(50) CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_admin`)

(59)

--

-- Dumping data for table `admin`

--

INSERT INTO `admin` (`id_admin`, `name_admin`, `address_admin`, `email_admin`, `phone_admin`, `username_admin`, `password_admin`) VALUES

(7, 'ganang', 'Yogyakarta', 'ganang.julianto@gmail.com', '089678720078', 'admin', 'admin');

-- ---

--

-- Table structure for table `bukutamu`

--

CREATE TABLE IF NOT EXISTS `bukutamu` (

`id_bukutamu` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`name` varchar(30) CHARACTER SET utf8 NOT NULL,

`email` varchar(100) CHARACTER SET utf8 NOT NULL,

`website` varchar(50) CHARACTER SET utf8 NOT NULL,

`date` datetime NOT NULL,

`message` text CHARACTER SET utf8 NOT NULL,

`status` enum('wait','approve') CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_bukutamu`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

(60)

-- Dumping data for table `bukutamu`

--

INSERT INTO `bukutamu` (`id_bukutamu`, `name`, `email`, `website`, `date`, `message`, `status`) VALUES

(1, 'ganang', 'ganang@yahoo.com', 'distro.com', '0000-00-00 00:00:00', 'Baju Batik distro palestina.', 'approve');

-- ---

--

-- Table structure for table `category`

--

CREATE TABLE IF NOT EXISTS `category` (

`id_category` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`name_category` varchar(30) CHARACTER SET utf8 NOT NULL,

`category` varchar(30) NOT NULL,

`status_category` enum('public','draft') CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_category`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

--

-- Dumping data for table `category`

--

(61)

(1, 'Kaos Oblong', 'kaos-oblong', 'public'),

(2, 'Baju Pria', 'baju-pria', 'public'),

(3, 'Baju Wanita', 'baju-wanita', 'public'),

(4, 'Baju Koko', 'baju-koko', 'public'),

(5, 'Tas Anak', 'tas-anak', 'public');

-- ---

--

-- Table structure for table `link`

--

CREATE TABLE IF NOT EXISTS `link` (

`id_link` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`name_link` varchar(30) CHARACTER SET utf8 NOT NULL,

`url_link` varchar(50) CHARACTER SET utf8 NOT NULL,

`status_link` enum('draft','public') CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_link`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--

-- Dumping data for table `link`

--

INSERT INTO `link` (`id_link`, `name_link`, `url_link`, `status_link`) VALUES

(1, 'JadiBaru.Com', 'http://jadibaru.com', 'public'),

(62)

(3, 'Stmik Elrahma', 'http://stmikelrahma.ac.id', 'public'),

(4, 'Detik.Com', 'http://detik.com', 'public');

-- ---

--

-- Table structure for table `options`

--

CREATE TABLE IF NOT EXISTS `options` (

`id_option` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`option_name` varchar(30) CHARACTER SET utf8 NOT NULL,

`values_name` text CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_option`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;

--

-- Dumping data for table `options`

--

INSERT INTO `options` (`id_option`, `option_name`, `values_name`) VALUES

(1, 'blogname', 'distropalestina.com'),

(2, 'description', 'selamat datang di situs distro pelestina terbaru.'),

(4, 'siteurl', 'http://distropalestina.com');

(63)

--

-- Table structure for table `pemesanan`

--

CREATE TABLE IF NOT EXISTS `pemesanan` (

`id_pemesan` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`name_pemesan` varchar(50) CHARACTER SET utf8 NOT NULL,

`identitas_pemesan` varchar(30) CHARACTER SET utf8 NOT NULL,

`address_pemesan` text CHARACTER SET utf8 NOT NULL,

`city_pemesan` varchar(20) CHARACTER SET utf8 NOT NULL,

`poscode_pemesan` int(10) NOT NULL,

`email_pemesan` varchar(100) CHARACTER SET utf8 NOT NULL,

`phone_pemesan` varchar(12) CHARACTER SET utf8 NOT NULL,

`item_pemesan` text CHARACTER SET utf8 NOT NULL,

`date_pemesan` datetime NOT NULL,

`status_pemesan` enum('pending','approve') NOT NULL,

PRIMARY KEY (`id_pemesan`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

--

-- Dumping data for table `pemesanan`

--

INSERT INTO `pemesanan` (`id_pemesan`, `name_pemesan`, `identitas_pemesan`, `address_pemesan`, `city_pemesan`, `poscode_pemesan`, `email_pemesan`, `phone_pemesan`, `item_pemesan`, `date_pemesan`, `status_pemesan`) VALUES

(64)

-- ---

--

-- Table structure for table `post`

--

CREATE TABLE IF NOT EXISTS `post` (

`id_post` bigint(10) unsigned NOT NULL AUTO_INCREMENT,

`title_post` varchar(50) CHARACTER SET utf8 NOT NULL,

`type_post` enum('post','page') CHARACTER SET utf8 NOT NULL,

`content_post` text CHARACTER SET utf8 NOT NULL,

`date_post` datetime NOT NULL,

`author_post` varchar(30) CHARACTER SET utf8 NOT NULL,

`status_post` enum('public','draft') CHARACTER SET utf8 NOT NULL,

PRIMARY KEY (`id_post`)

) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;

--

-- Dumping data for table `post`

--

INSERT INTO `post` (`id_post`, `title_post`, `type_post`, `content_post`, `date_post`, `author_post`, `status_post`) VALUES

(65)

(2, 'Profil', 'page', 'Ini merupakan Profil kami', '2006-12-20 01:26:02', 'gng', 'public'),

(8, 'Sejarah', 'page', '<p>Sejarah berdirinya perusahaan ini</p>', '2006-12-20 05:22:21', 'gng', 'public'),

(9, 'Galery', 'page', '<p>Galery Foto usaha ini</p>', '2006-12-20 05:24:39', 'gng', 'public'),

(10, 'Contact US', 'page', '<p>Berisi Kontak Person yang ada/p>', '2006-12-20 05:24:57', 'gng', 'public'),

(11, 'Pertunjukan galery', 'post', '<p>Pertunjukan Galery motiv batik distro palestina dengan berbagai macam warna dan ukuran. Distro Palestina &ndash; Bandung Tanggal: 1 &ndash; 7 Desember 2014 Tempat:&nbsp;BTC FASHION MALL, Bandung Waktu: 10.00 &ndash; 21.00 WIB Pameran ini dielenggarakan sebagai wujud kecintaan&nbsp; kepada budaya sekaligus mencari bakat kreatif dari para pencinta batik, bordir dan tenun nusantara. Diharapkan dengan adanya Pameran Batik di Bandung&nbsp;ini maka batik, bordir dan tenun Indonesia dapat terus lestari sepanjang masa, sehingga karya cipta nusantara ini</p>', '2014-11-29 20:16:45', 'ganang', 'public'),

(12, 'Pemasaran Distrto Palestina', 'post', '<p style="text-align: justify;"><em><strong>Peminat produk distro

palestina&nbsp; beragam.</strong></em> Tidak hanya &nbsp;di <span style="color: #ff0000;">Yogyakarta</span> saja, tetapi sudah sampai &nbsp;Jakarta, Bandung, Bali, dan beberapa kota besar lainnya. Seiring dengan perkembangan pasar, saat ini produk distro palestinasudah menembus ke pasar luar

negeri.&nbsp; Untuk pasar ekspor misalnya, kap lampu peminatnya terbanyak dari Yunani, kaligrafi dari Turki, sedangkan penyekat buku banyak diminati pasar Jepang dan Amerika.&nbsp;</p>', '2006-12-20 18:13:28', 'gng', 'public'),

(13, 'Distro Palestina Clothing Line', 'post', '<p style="text-align: justify;"><span style="color:

Referensi

Dokumen terkait

The money supply of a country consists of currency (banknotes and coins) and bank money (the balance held in checking accounts and savings accounts). Bank money, which consists only

2.5 Menunjukkan perilaku jujur, disiplin, tanggung jawab, peduli (gotong royong, kerjasama, toleran, damai), santun, responsif, dan proaktif dalam menggunakan bahasa Jawa

Cepiring Kabupaten Kendal 1 paket Kab Kendal 200.000.000 2 Pembangunan Saluran Irigasi Dukuh Gading Desa Kedung Gading Kec.. Ringinarum Kabupaten Kendal 1 paket Kab

Remaja perlu pondasi untuk membentengi dirinya agar tidak terjebak pada arus liar dunia komunikasi sosial media, pondasi didapat melalui sebuah pembelajaran nilai-nilai

Method :  This  study  aims  to  determine  the  relationship  between  parity  and  the  incidence  of  uterine  myomas  at  RSUP  H.  Adam  Malik  Medan.  A 

Dengan demikian Ha diterima dan Ho ditolak atau dengan kata lain ada hubungan antara kualitas pelayanan kesehatan empati dengan tingkat kepuas- an pasien di

penelitian lebih lanjut tentang hubungan paritas dengan kejadian

Penggunaan katalis heterogen dalam pembuatan metil ester baik reaksi esterifikasi maupun reaksi transesterifikasi, dalam prosesnya katalis heterogen sedikitnya dapat melalui 4