Login.php
<html>
<head><title>login...</title></head>
<body>
<?php
include"menu.php"?>
<form
action="checklogin.php" method="post">
<table
width="45%" border="0" align="center" bgcolor="grayy">
<tr><td
colspan="3">
<div
align="center"><B>masukkan user dan password di
sini!</B><div></td></tr>
<tr>
<td>
user name</td>
<td>:</td>
<td><input
name="user" type="text"></td>
</tr>
<tr>
<td>
password</td>
<td>:</td>
<td><input
name="pass" type="password"></td>
</tr>
<tr>
<td
colspan="3"><div align="center">
<input
type="submit" value="login">
</div></td>
</tr>
</table>
</form>
</body>
</html>
Ouput login.php
Profiledealer.php
<?php
include
"koneksi.php";
include
"menu.php"; ?>
<html>
<head><title>Selamat
Datang Di Dealer Mobil Sport PEMATANGSIANTAR </title>
<link
rel="stylesheet" href="style.css"
type="text/css"></head>
<body
bgcolor="grey">
<marquee
direction="down" behavior="alternate"
height="120"><center><font face="Trebuchet MS"
size="10">Selamat Datang Di Dealer
Kami</center></font></marquee>
<div
class="all-wrapper">
<div
class="menu">
Lihat
Koleksi Mobil
<div
style="width:250px; margin-top:13px; padding:5px; box-shadow:0px 0px 2px
2px #000">
<a
href="Gallardo.php">Lamborghini Gallardo</a></div>
<div
style="width:250px; margin-top:13px; padding:5px; box-shadow:0px 0px 2px
2px #000">
<a
href="BMW.php">BMW</a></div>
<div
style="width:250px; margin-top:13px; padding:5px; box-shadow:0px 0px 2px
2px #000">
<a
href="Alfa.php">Alfa Romeo</a></div>
<div
style="width:250px; margin-top:13px; padding:5px; box-shadow:0px 0px 2px
2px #000">
<a
href="Galery.php">Galery</a></div>
<div
style="width:250px; margin-top:13px; padding:5px; box-shadow:0px 0px 2px
2px #000">
<a
href="inputdealer.php">Keluar</a></div></div>
<div
class="gambar">
<img
src="image.jpg" height="180"/>
<img
src="image1.jpg" height="185"/>
</div></div>
</body></html>
Output
Profiledealer.php
Lamborghini
Gallardo.php
<html>
<head>
<title> Lamborghini Gallardo</title>
<link
rel="stylesheet" href="style.css"
type="text/css">
</head>
<bodybgcolor="#water
blue">
<div
class="main">
<img
src="a.jpg" width="260" height="200">
<div
class="isi">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Jenis
Mobil </div>: <div style="float:right;
margin-right:90px">Lamborghini Gallardo </div><br>
<div
align="left" style="margin-left:5px; margin-right:73px;
float:left">
Harga
</div>: <div style="float:right; margin-right:95px">Rp
5.800.000.000 </div><br>
<FORM
action="" METHOD="POST" NAME="input">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Pilihan
Warna</div>: <div style="float:right; margin-right:133px;
margin-top:5px">
<select
name="warna">
<option
value="Kuning">Kuning
<option
value="Hitam">Hitam
<option
value="Hijau">hijau
<option
value="Merah">Merah</select></div>
<div
align="left" style="margin-left:5px; margin-right:20px;
float:left">Sistem Pembayaran</div>
<div
align="left" style="margin-left:5px; margin-right:53px;
float:left">
<input
type="radio" name="sistem" value="Cash">Cash
<input
type="radio" name="sistem"
value="Kredit">Kredit</div><br>
<input
type="submit" name="Beli"
value="Beli"></div></div>
<?php
if
(isset($_POST['Beli'])) {
$warna
= $_POST['warna'];
$harga
= "5800000000";
$sistem
= $_POST['sistem'];
if
($sistem == "Cash"){
echo
"<div class='keluaran'><div align='left'
style='margin-left:5px;'>Warna Mobil : $warna</div>";
echo
"<div align='left' style='margin-left:5px;'>Sistem Pembayaran :
$sistem</div>";
echo
"<div align='left' style='margin-left:5px;'>Harga
:$harga</div>";
echo
"<div align='left' style='margin-left:5px;'>Yang harus anda bayar :
$harga</div>";
}}
echo
"<FORM ACTION='' METHOD='POST' NAME='INPUT'><div align='left'
style='margin-left:5px;'><p>Cek untuk harga kredit</div>
<div
align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Uang Muka</div>:
<input
name='uang'></div><div align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Diangsur</div>:
<input
name='angsur' maxlength='2'> x</div><input type='submit'
name='INPUT' value='Lanjut'><br>";
if
(isset($_POST['INPUT'])){
$uang
= $_POST['uang'];
$angsur
= $_POST['angsur'];
$harga
= "Rp 5.800.000.000";
$total
= ($harga - $uang)/$angsur;
echo
"Tanggungan / Bulan: $total</form><br>";
}
?>
Output Lamborghini Gallardo.php
BMW i8.php
<html>
<head>
<title>BMW
i8</title>
<link
rel="stylesheet" href="style.css"
type="text/css"></head>
<body>
<div
class="main">
<img
src="BMW.jpg" width="290" height="230">
<div
class="isi">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Jenis
Mobil </div>: <div style="float:right;
margin-right:175px">BMW i8</div><br>
<div
align="left" style="margin-left:5px; margin-right:73px;
float:left">
Harga
</div>: <div style="float:right; margin-right:93px">Rp.
16.000.000.000</div><br>
<FORM
action="" METHOD="POST" NAME="input">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Pilih
Warna</div>: <div style="float:right; margin-right:133px;
margin-top:5px">
<select
name="warna">
<option
value="Silver">Silver
<option
value="Biru">Biru
<option
value="Hitam">Hitam
<option
value="Merah">Merah</select></div>
<div
align="left" style="margin-left:5px; margin-right:20px;
float:left">Sistem Pembayaran</div>
<div
align="left" style="margin-left:5px; margin-right:53px;
float:left">
<input
type="radio" name="sistem" value="Cash">Cash
<input
type="radio" name="sistem"
value="Kredit">Kredit</div><br>
<input
type="submit" name="Beli"
value="Beli"></div></div>
<?php
if
(isset($_POST['Beli'])) {
$warna
= $_POST['warna'];
$harga
= "Rp 16.000.000.000";
$sistem
= $_POST['sistem'];
if
($sistem == "Cash"){
echo
"<div class='keluaran'><div align='left'
style='margin-left:5px;'>Warna Mobil : $warna</div>";
echo
"<div align='left' style='margin-left:5px;'>Sistem Pembayaran :
$sistem</div>";
echo
"<div align='left' style='margin-left:5px;'>Harga
:$harga</div>";
echo
"<div align='left' style='margin-left:5px;'>Yang harus anda bayar :
$harga</div>";
}}
echo
"<FORM ACTION='' METHOD='POST' NAME='INPUT'><div align='left' style='margin-left:5px;'><p>Cek
untuk harga kredit</div>
<div
align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Uang Muka</div>:
<input
name='uang'></div><div align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Diangsur</div>:
<input
name='angsur' maxlength='2'> x</div><input type='submit'
name='INPUT' value='Lanjut'><br>";
if
(isset($_POST['INPUT'])){
$uang
= $_POST['uang'];
$angsur
= $_POST['angsur'];
$harga
= "150000000";
$total
= ($harga - $uang)/$angsur;
echo
"Tanggungan / Bulan: $total</form><br>";
}
?>
Output BMW i8.php
Alpa Romeo 4C
<html>
<head>
<title>Alfa
Romeo 4C</title>
<link
rel="stylesheet" href="style.css"
type="text/css"></head>
<body
bgcolor=”coco09”>
<div
class="main">
<img
src="Alfa.jpg" width="280" height="200">
<div
class="isi">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Jenis
Mobil </div>: <div style="float:right;
margin-right:118px">Alfa Romeo 4C</div><br>
<div
align="left" style="margin-left:5px; margin-right:73px;
float:left">
Harga
</div>: <div style="float:right; margin-right:93px">Rp
2.000.000.000 </div><br>
<FORM
action="" METHOD="POST" NAME="input">
<div
align="left" style="margin-left:5px; margin-right:40px;
float:left">
Pilih
Warna</div>: <div style="float:right; margin-right:133px;
margin-top:5px">
<select
name="warna">
<option
value="Merah">Merah
<option
value="Hitam">Hitam
<option
value="Merah">Biru</select></div>
<div
align="left" style="margin-left:5px; margin-right:20px; float:left">Sistem
Pembayaran</div>
<div
align="left" style="margin-left:5px; margin-right:53px;
float:left">
<input
type="radio" name="sistem" value="Cash">Cash
<input
type="radio" name="sistem"
value="Kredit">Kredit</div><br>
<input
type="submit" name="Beli" value="Beli"></div></div>
<?php
if
(isset($_POST['Beli'])) {
$warna
= $_POST['warna'];
$harga
= "Rp 2.000.000.000";
$sistem
= $_POST['sistem'];
if
($sistem == "Cash"){
echo
"<div class='keluaran'><div align='left'
style='margin-left:5px;'>Warna Mobil : $warna</div>";
echo
"<div align='left' style='margin-left:5px;'>Sistem Pembayaran :
$sistem</div>";
echo
"<div align='left' style='margin-left:5px;'>Harga
:$harga</div>";
echo
"<div align='left' style='margin-left:5px;'>Yang harus anda bayar :
$harga</div>";
}}
echo
"<FORM ACTION='' METHOD='POST' NAME='INPUT'><div align='left'
style='margin-left:5px;'><p>Cek untuk harga kredit</div>
<div
align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Uang Muka</div>:
<input
name='uang'></div><div align='left' style='margin-left:5px;'>
<div
style='width:110px; float:left'>Diangsur</div>:
<input
name='angsur' maxlength='2'> x</div><input type='submit'
name='INPUT' value='Lanjut'><br>";
if
(isset($_POST['INPUT'])){
$uang
= $_POST['uang'];
$angsur
= $_POST['angsur'];
$harga
= "150000000";
$total
= ($harga - $uang)/$angsur;
echo
"Tanggungan / Bulan: $total</form><br>";
}
?>
Output Alpa Romeo
4C.php
Mobil Galery.php
<html>
<head><title>MOBILE
GALERY</title></head>
<body
text= text=black
bgcolor="black" >>
<table
width="60%" border="1" align="center"
cellpadding="0"
cellspacing="1">
<tr
bgcolor="red"><td colspan="5">
<H1
align="center">MOBILE GALERY</H1></td></tr>
<tr>
<td><img
src="o1.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o2.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o3.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o7.jpg" width="260" height="220"
border="1"></td>
</tr>
<tr
bgcolor="#000000">
<td><div
align="center">o1</div></td>
<td><div
align="center">o2</div></td>
<td><div
align="center">o3</div></td>
<td><div
align="center">o7</div></td>
</tr>
<tr>
<td><img
src="o4.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o5.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o6.jpg" width="260" height="220"
border="1"></td>
<td><img
src="o8.jpg" width="260" height="220"
border="1"></td>
</tr>
<tr
bgcolor="#000000">
<td><div
align="center">o4</div></td>
<td><div
align="center">o5</div></td>
<td><div
align="center">o6</div></td>
<td><div
align="center">o8</div></td>
</tr>
</table>
</body>
</html>
Output Galery.php
DATABASE MYSQL
dealerlogin
profiledealer
0 Response to "Tugas Program Aplikasi Web PHP MySQL"
Post a Comment