LISTING PROGRAM
Bagian tengah 2.php
<div class="box-pemesanan">
<form method="post" action="proses-link.php">
<table>
<tr>
<td>
<select name="kota-asal">
<option>kota asal</option>
<option value="medan">Medan</option>
<option value="pekanbaru">Pekanbaru</option>
<option value="jakarta">Jakarta</option>
<option value="dumai">Dumai</option>
<option value="sibuhuan">Sibuhuan</option>
<option value="bandung">Bandung</option>
<option value="sibolga">Sibolga</option>
<option value="jawa">Jawa</option>
<option value="parapat">Parapat</option>
</td>
<td><input type="date" name="tanggal" ></td>
</tr>
<tr>
<td>
<select name="kota-tujuan">
<option>kota tujuan</option>
<option value="bandung">Bandung</option>
<option value="purwokerto">purwokerto</option>
<option value="tangerang">tangerang</option>
<option value="solo">solo</option>
<option value="jember">jember</option>
<option value="palembang">palembang</option>
<option value="tarutung">tarutung</option>
<option value="lampung">lampung</option>
<option value="surabaya">surabaya</option>
</select>
</td>
</tr>
<tr>
<td align="right"
colspan="2"><input type="submit" value="cek"></td>
</tr>
</table>
</form>
</div>
Confirm.php
<?php
$kota_asal = $_GET['kota-asal'];
$kota_tujuan = $_GET['kota-tujuan'];
$tanggal = $_GET['tanggal'];
$kursi = $_GET['kursi'];
if($kota_asal=='medan'){
$harga_kota_asal = 150000;
} elseif($kota_asal=='medan'){
$harga_kota_asal = 100000;
}
if($kota_tujuan=='bandung'){
} elseif($kota_tujuan=='bandung'){
$harga_kota_tujuan = 100000;
}
if($kota_asal=='pekanbaru'){
$harga_kota_asal = 200000;
} elseif($kota_asal=='pekanbaru'){
$harga_kota_asal = 150000;
}
if($kota_tujuan=='purwokerto'){
$harga_kota_tujuan = 200000;
} elseif($kota_tujuan=='purwokerto'){
$harga_kota_tujuan = 150000;
}
if($kota_asal=='jakarta'){
$harga_kota_asal = 250000;
} elseif($kota_asal=='jakarta'){
$harga_kota_asal = 153000;
if($kota_tujuan=='tangerang'){
$harga_kota_tujuan = 250000;
} elseif($kota_tujuan=='tangerang'){
$harga_kota_tujuan = 153000;
}
if($kota_asal=='dumai'){
$harga_kota_asal = 275000;
} elseif($kota_asal=='dumai'){
$harga_kota_asal = 155000;
}
if($kota_tujuan=='solo'){
$harga_kota_tujuan = 275000;
} elseif($kota_tujuan=='solo'){
$harga_kota_tujuan = 155000;
}
if($kota_asal=='sibuhuan'){
} elseif($kota_asal=='sibuhuan'){
$harga_kota_asal = 153000;
}
if($kota_tujuan=='jember'){
$harga_kota_tujuan = 230000;
} elseif($kota_tujuan=='jember'){
$harga_kota_tujuan = 153000;
}
if($kota_asal=='bandung'){
$harga_kota_asal = 190000;
} elseif($kota_asal=='bandung'){
$harga_kota_asal = 152000;
}
if($kota_tujuan=='palembang'){
$harga_kota_tujuan = 190000;
} elseif($kota_tujuan=='palembang'){
$harga_kota_tujuan = 152000;
if($kota_asal=='sibolga'){
$harga_kota_asal = 140000;
} elseif($kota_asal=='sibolga'){
$harga_kota_asal = 120000;
}
if($kota_tujuan=='tarutung'){
$harga_kota_tujuan = 140000;
} elseif($kota_tujuan=='tarutung'){
$harga_kota_tujuan = 120000;
}
if($kota_asal=='jawa'){
$harga_kota_asal = 140000;
} elseif($kota_asal=='jawa'){
$harga_kota_asal = 120000;
}
if($kota_tujuan=='lampung'){
} elseif($kota_tujuan=='lampung'){
$harga_kota_tujuan = 153000;
}
if($kota_asal=='parapat'){
$harga_kota_asal = 250000;
} elseif($kota_asal=='parapat'){
$harga_kota_asal = 157000;
}
if($kota_tujuan=='surabaya'){
$harga_kota_tujuan = 250000;
} elseif($kota_tujuan=='surabaya'){
$harga_kota_tujuan = 157000;
}
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
$total_harga = $kursi * $harga_kota_tujuan + $harga_kota_asal;
echo "
<table class=\"box-confirm\">
<tr>
<th>KODE BOOKING</th>
<td><b>".substr(md5($total_harga.$kota_tujuan.$kot a_asal.$kursi), 0, 7)."<b></td>
</tr>
<tr>
<th>KOTA ASAL</th>
<td>$kota_asal</td>
</tr>
<tr>
<th>KOTA TUJUAN</th>
<td>$kota_tujuan</td>
</tr>
<th>TANGGAL</th>
<td>$tanggal</td>
</tr>
<tr>
<th>JUMLAH KURSI</th>
<td>$kursi</td>
</tr>
<tr>
<th>HARGA</th>
<td>Rp. ".$total_harga.",-</td>
</tr>
</table>
";
?>
<div class="info-pembayaran">
<h1>Proses Pembayaran</h1>
<p>Silahkan Transfer ke no Rekening 2082-01-00628-1 A.n PT. ALS dengan membawa Kode Booking.
Terima Kasih.</p>
</div>
Proses link.php
<?php
$kota_asal = $_POST['kota-asal'];
$kota_tujuan = $_POST['kota-tujuan'];
$kursi = $_POST['kursi'];
header("location:index.php?datalink=confirm&kota-
asal=".$kota_asal."&kota-tujuan=".$kota_tujuan."&tanggal=".$tanggal."&kursi=".$k ursi."");
?>
Payment link
<?php
header("location:index.php?datalink=terima-kasih");
?>
Payment.php
<div class="box-pemesanan">
<h2>Konfirmasi pembayaran</h2>
<form method="post" action="payment-link.php">
<table>
<tr>
<th>Kode booking</th>
<td><input type="text" name=""></td>
</tr>
<tr>
<th>Upload bukti pembayaran</th>
</tr>
<tr>
<td align="right"
colspan="2"><input type="submit" value="upload"></td>
</tr>
</table>
</form>
</div>
Style.css
@charset "utf-8";
@import url(button.css);
#wrapper{
width: 1000px;
margin: 15px auto;
height: auto;
padding: 20px;
background-color:#FFF;
box-shadow: 0px 0px 20px #F60;
-moz-box-shadow: 0px 0px 20px #F60;
-webkit-box-shadow: 0px 0px 20px #F60;
border-radius: 17px;
-webkit-border-radius: 17px;
body{
background:url(images/bg.jpg) no-repeat #fff center top;
padding:0;
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
margin:0px auto auto auto;
color:#000;
}
p{
padding:2px;
margin:0px;
}
#main_container{
width:1000px;
height:auto;
margin:auto;
padding:0px;
}
.top_bar{
width:1000px;
height:38px;
background-color:#4a4a4a;
.top_search{
width:370px;
height:32px;
margin:0px 20px 0 0;
_margin:0px 10px 0 0;
float:right;
background:url(images/top_search_bg.gif) no-repeat center;
}
input.search_input{
width:182px;
height:18px;
float:left;
margin:5px 0 0 0 ;
border:1px solid #dbdbdb;
border-bottom-color:#ffffff;
border-right-color:#ffffff;
}
.search_text{
float:left;
width:110px;
padding:8px 0 0 15px;
color:#999999;
.search_text a{
text-decoration:none;
color:#999999;
}
.search_bt{
float:left;
padding:2px 0 0 15px;
}
input,textarea,select{
font-family:Arial, Helvetica, sans-serif;
font-size:11px;
}
.lang_text{
float:left;
padding:0 5px 0 0;
color:#b3adad;
}
a.lang{
display:block;
float:left;
}
#header{
width:1000px;
height:173px;
background:url(images/header_bg.jpg) no-repeat center;
background-position:0px 0px;
margin:auto;
}
#logo{
float:left;
padding:15px;
}
/*---oferte_content---*/
.oferte_content{
width:600px;
height:164px;
float:left;
padding:0 0 0 50px;
}
.top_divider{
float:left;
width:1px;
}
.oferta{
width:538px;
float:left;
padding:15px 30px 0 30px;
}
.oferta_img{
float:left;
padding:0 10px 10px 0;
}
.oferta_title{
font-size:15px;
color:#b72c24;
font-weight:bold;
}
.oferta_details{
width:400px;
float:left;
padding:0 0 0 30px;
}
.oferta_text{
padding:5px 0 5px 0;
font-size:12px;
color:#FFFFFF;
text-align:justify;
}
a.details{
width:83px;
height:21px;
display:block;
float:right;
margin:5px 0 0 0;
padding-left:5px;
background:url(images/details_bt_bg.gif) no-repeat center;
text-align:center;
line-height:21px;
text-decoration:none;
color:#000000;
}
/*---oferta_pagination---*/
div.oferta_pagination {
clear:both;
padding:10px 0 0 0;
_padding:0px 0 0 0;
margin:5px;
text-align:center;
float:left;
font-size:10px;
div.oferta_pagination a {
width:22px;
height:22px;
display:block;
float:left;
margin:0 0 0 5px;
_margin:0 0 0 3px;
line-height:23px;
text-align:center;
background:url(images/pag_bg.gif) no-repeat center;
text-decoration:none;
color:#9d8b8b;
}
div.oferta_pagination a:hover, div.pagination a:active {
width:22px;
height:22px;
display:block;
float:left;
line-height:23px;
text-align:center;
background:url(images/pag_bg_a.gif) no-repeat center;
text-decoration:none;
color:#ad1614;
}
width:22px;
height:22px;
display:block;
float:left;
line-height:23px;
text-align:center;
background:url(images/pag_bg_a.gif) no-repeat center;
text-decoration:none;
color:#ad1614;
}
#main_content{
clear:both;
}
/*--- menu tab---*/
#menu_tab{
width:1000px;
height:50px;
background-color:#fff;
}
.left_menu_corner{
width:9px;
height:50px;
float:left;
background:url(images/menu_left.gif) no-repeat center;
}
width:9px;
height:50px;
float:left;
background:url(images/menu_right.gif) no-repeat center;
}
ul.menu {
list-style-type:none; float:left; display:block; width:982px;
margin:0px;
padding:0px;background:url(images/menu_bg.gif) repeat-x;}
ul.menu li {
display:inline;
font-size:11px;
font-weight:bold;
line-height:50px;
}
ul.menu li.divider {
display:inline;
width:2px;
height:50px;
float:left;
background:url(images/menu_divider.gif) no-repeat center;
}
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/home.png) no-repeat left;
color:#000;}
a.nav2:link, a.nav2:visited {
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/profil.png) no-repeat left;
color:#000;}
a.nav3:link, a.nav3:visited {
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/services.png) no-repeat left; color:#000;}
a.nav4:link, a.nav4:visited {
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/favs.png) no-repeat left;
color:#000;}
a.nav5:link, a.nav5:visited {
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/car.png) no-repeat left;
color:#000;}
a.nav6:link, a.nav6:visited {
display:block; float:left; padding:0px 8px 0px 22px; margin:0 14px 0 14px;height:50px;text-decoration:none; background:url(images/contact-new.png) no-repeat left; color:#000;}
a.nav1:hover, a.nav2:hover, a.nav3:hover, a.nav4:hover, a.nav5:hover, a.nav6:hover {
li.currencies{
width:180px;
float:left;
padding:0 0 0 15px;
_padding:12px 0 0 15px;
color:#000;
font-size:11px;
font-weight:bold;
}
/*---crumb_navigation---*/
.crumb_navigation{
width:980px;
height:15px;
padding:5px 10px 0 20px;
color:#333333;
background:url(images/navbullet.png) no-repeat left;
background-position:5px 6px;
}
.crumb_navigation a{
color:#0fa0dd;
text-decoration:underline;
}
span.current{
color:#0fa0dd;
/*---left_content---*/
.left_content{
width:196px;
float:left;
}
.title_box{
width:196px;
height:30px;
margin:5px 0 0 0;
background:url(images/menu_title_bg.gif) no-repeat center;
text-align:center;
font-size:13px;
font-weight:bold;
color:#000;
line-height:30px;
}
/*---left menu---*/
ul.left_menu{
width:196px;
padding:0px;
margin:0px;
list-style:none;
}
ul.left_menu li{
list-style:none;
}
.ganjil a{
width:166px;height:25px;display:block;background:url(im ages/checked.png) no-repeat left #dad0d0;
background-position:5px 5px;border-bottom:1px #FFFFFF solid;
text-decoration:none;padding:0 0 0 30px; line-height:25px;
}
.genap a{
width:166px;height:25px;display:block;background:url(im ages/checked.png) no-repeat left #FC9;
background-position:5px 5px;border-bottom:1px #FFFFFF solid;
text-decoration:none;padding:0 0 0 30px; line-height:25px;
}
ul.left_menu li.ganjil a:hover, ul.left_menu li.genap a:hover{
background:url(images/checked.png) no-repeat left #F95; color:#FFFFFF;background-position:5px 5px;
}
.border_box{
width:194px;
height:auto;
border:1px #6da6b1 solid;
}
.border_boxshout{
width:194px;
height:auto;
text-align:left;
border:1px #6da6b1 solid;
}
.kursi{
color:#F00;
font-size:18px;
padding:5px 0 5px 0;
font-weight:bold;
}
.tgl_jam{
color:#000;
font-size:15px;
padding:5px 0 5px 0;
font-weight:bold;
}
.product_title{
color:#ea2222;
font-size:14px;
padding:5px 0 5px 0;
}
.product_title a{
text-decoration:none;
color:#ea2222;
padding:5px 0 5px 0;
font-weight:bold;
}
.product_title a:hover{
color:#064E5A;
}
.product_img{
padding:5px 0 5px 0;
}
.prod_price{
padding:5px 0 5px 0;
}
span.reduce{
color:#999999;
text-decoration:line-through;
}
span.price{
color:#ea2222;
}
/*---newsletter---*/
input.newsletter_input{
height:16px;
border:1px #ddd9d9 solid;
margin:10px 0 5px 0;
font-size:12px;
padding:3px;
color:#999999;
}
a.join{
width:17px;
display:block;
margin:5px 0 5px 140px;
_margin:5px 0 5px 130px;
background:url(images/blue-add.png) no-repeat left;
padding:0 0 0 20px;
text-decoration:none;
color:#1c4a52;
}
.banner_adds{
width:194px;
text-align:center;
padding:10px 0 10px 0;
}
/*center content---*/
.center_content{
float:left;
padding:5px 10px;
}
.center_title_bar{
width:520px;
height:33px;
float:left;
padding:0 0 0 40px;
margin:0 0 0 12px;
_margin:0 0 0 6px;
line-height:33px;
font-size:12px;
color:#847676;
font-weight:bold;
background:url(images/bar_bg.gif) no-repeat center;
}
.keterangan{
width:520px;
height:33px;
float:left;
padding:0 0 0 40px;
margin:0 0 0 12px;
_margin:0 0 0 6px;
line-height:33px;
font-size:12px;
}
/*---right content---*/
.right_content{
width:196px;
float:left;
padding:5px 0 0 0;
}
.shopping_cart{
width:195px;
height:84px;
text-align:center;
background:url(images/cart_bg.gif) no-repeat center;
}
.cart_title{
font-size:12px;
font-size:12px;
color:#847676;
font-weight:bold;
padding:8px 0 0 0;
}
.cart_details{
width:115px;
float:left;
padding:5px 0 0 15px;
}
.cart_icon{
float:left;
padding:5px 0 0 5px;
}
span.border_cart{
width:100px;
height:1px;
margin:3px 0 3px 0;
display:block;
border-top:1px #999999 dashed;
}
/*---prod_box---*/
.prod_box{
width:173px;
height:auto;
float:left;
padding:10px 10px 10px 11px;
}
.top_prod_box{
width:173px;height:12px;background:url(images/product_b ox_top.gif) no-repeat center bottom;float:left;
padding:0px; margin:0px;
}
.bottom_prod_box{
width:173px;height:10px;background:url(images/product_b ox_bottom.gif) no-repeat center
}
.center_prod_box{
width:173px;height:180px;background:url(images/product_ box_center.gif) repeat-y;float:left;
text-align:center;padding:0px; margin:0px;
}
.prod_details_tab{
width:173px;
height:31px;
float:left;
background:url(images/products_details_bg.gif) no-repeat center;
margin:3px 0 0 0;
}
.prod_details_cari{
width:373px;
height:31px;
padding-left: 20px;
margin:43px 0 0 0;
}
img.left_bt{
float:left;
padding:6px 0 0 6px;
}
a.prod_details{
width:25px;
float:left;
background:url(images/square-blue-add.gif) no-repeat left;
padding:0 0 0 20px;
margin:7px 0 0 28px;
_margin:6px 0 0 35px;
text-decoration:none;
color:#0fa0dd;
}
a.prod_cart{
font-size:18px;
width:25px;
display:block;
float:left;
background:url(images/cart.gif) no-repeat left;
padding:0 0 0 20px;
margin:7px 0 0 8px;
_margin:6px 0 0 35px;
text-decoration:none;
color:#0fa0dd;
}
.prod_cart_habis{
font-size:18px;
width:25px;
display:block;
float:left;
padding:0 0 0 20px;
margin:7px 0 0 8px;
_margin:6px 0 0 35px;
text-decoration:none;
color:red;
}
/*---prod_box_big---*/
.prod_box_big{
width:554px;
height:auto;
float:left;
padding:10px 10px 10px 15px;
}
.top_prod_box_big{
width:554px;height:12px;background:url(images/details_b ox_top.gif) no-repeat center bottom;float:left;
padding:0px; margin:0px;
}
.bottom_prod_box_big{
width:554px;height:12px;background:url(images/details_b ox_bottom.gif) no-repeat center
top;float:left;padding:0px; margin:0px;
}
.center_prod_box_big{
width:554px;height:
}
.tengah{
width:534px;height:
auto;background:url(images/details_box_center.gif) repeat-y;float:left; text-align:justify; padding:10px; margin:0px;
}
.product_img_big{
width:170px;
padding:5px 0 5px 10px;
float:left;
}
.details_big_box{
width:345px;
float:left;
padding:0 0 0 15px;
text-align:left;
}
.details_big_cari{
width:540px;
float:left;
padding:0 0 0 15px;
text-align:left;
}
.product_title_big{
color:#ea2222;
font-weight:bold;
font-size:14px;
}
.specifications{
font-size:12px;
font-weight:bold;
line-height:18px;
}
.thumbs{
padding:8px 5px 8px 5px;
border:1px #DFD1D1 solid;
margin:3px 0 0 0;
}
.thumbs a{
padding:3px;
}
.prod_price_big{
padding:5px 0 5px 0;
font-size:16px;
}
span.reduce{
color:#999999;
text-decoration:line-through;
}
span.price{
}
a.addtocart{
width:36px;
height:27px;
display:block;
float:left;
background:url(images/addtocart.gif) no-repeat left;
padding:0 0 0 35px;
margin-left:50px;
text-decoration:none;
line-height:27px;
color:#1c4a52;
}
span.blue{
color:#5F9FAB;
}
/*---contact_form---*/
.contact_form{
width:355px;
float:left;
padding:0px 0 0 75px;
}
.form_row{
width:335px;
clear:both;
_padding:5px 0 5px 0;
color:#a53d17;
}
label.contact{
width:75px;
float:left;
font-size:12px;
text-align:right;
padding:4px 5px 0 0;
color: #333333;
}
input.contact_input{
width:210px;
height:18px;
background-color:#fff;
color:#999999;
border:1px #DFDFDF solid;
float:left;
}
textarea.contact_textarea{
width:248px;
height:50px;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color: #999999;
border:1px #DFDFDF solid;
float:left;
}
a.contact{
width:99px;
height:27px;
display:block;
float:right;
margin:0 0 0 10px;
background:url(images/contact_bt.gif) no-repeat left;
padding:0 0 0 10px;
text-decoration:none;
line-height:27px;
color:#1c4a52;
}
/*---footer---*/
.footer{
width:1000px;
clear:both;
height:65px;
background:url(images/footer_bg.gif) repeat-x top;
}
.center_footer{
text-align:center;
color:#666666;
padding:10px 0 0 60px;
}
.kategori{
line-height:33px;
font-size:12px;
color:#847676;
font-weight:bold;
}
.image {
float: left;
margin-right: 10px;
}
span.border_garis{
width:530px;
height:1px;
margin:3px 0 3px 0;
display:block;
border-top:1px #999999 dashed;