google.com, pub-9922355301914235, DIRECT, f08c47fec0942fa0 LAPORAN PEMBUATAN APLIKASI PENJUALAN AKSESORIS LAPTOP BERBASIS WEB - Tutorial Kampus
Banner IDwebhost

LAPORAN PEMBUATAN APLIKASI PENJUALAN AKSESORIS LAPTOP BERBASIS WEB















Aplikasi berbasis web ini saya buat tertuju untuk orang-orang yang akan melakukan pembelian aksesoris laptop dengan mudah. Dengan aplikasi ini maka jual beli akan terasa cepat, serta tidak memakan waktu yang banyak. Berikut screenshoot disertai dengan scriptnya :


Tampilan pertama yaitu login.

Script login.php :
<html>
<head><title>Halaman Login</title></head>
<body bgcolor="CCCCFF">
<meta charset="utf-8">
<style type="text/css">
    .login {
        margin: 150px auto;
        width: 400px;
        padding: 30px;
        border: 2px solid #fff;
    }
    input[type=text], input[type=password] {
        margin: 5px auto;
        width: 100%;
        padding: 10px;
    }
    input[type=submit] {
        margin 5px auto;
        float: right;
        padding: 5px;
        width: 70px;
        border: 1px solid #ccc;
        cursor: pointer;
    }
</style>
</head>
<body>
<div class="login">
<form method="post" action="input_penjualan.php">
<h3 align="center" class="text-center title-login">Aplikasi Penjualan Aksesoris Laptop</h3>
    <input type="text" name="username" placeholder="Masukan Username"><br>
    <input type="password" name="pass" placeholder="Masukan Password"><br>
    <input type="submit" name="LOGIN" value="LOGIN">
</form>
</div>
</body>
</html>



Tampilan ke dua yaitu input data.

Script input.php :
 <html>
<head><title>PENJUALAN AKSESORIS LAPTOP</title></head>
<body bgcolor="CCCCFF">
<form name="form1" method="post" action="output_penjualan.php">
  <table align="center" bgcolor="#CCCCCC" border="10px" width="31%">
    <tr>
      <td bgcolor="#CCCCFF" colspan="2" align="center"><strong>PENJUALAN AKSESORIS LAPTOP</strong></td>
    </tr>
    <tr>
      <td>No.Transaksi</td>
      <td><label for="nomor"></label>
      <input type="text" name="nomor" id="nomor"></td>
    </tr>
    <tr>
      <td>Nama Aksesoris</td>
      <td><label for="nama"></label>
        <select name="aksesoris" id="nama">
        <option>Pilih</option>
            <option value="Mousepad">Mousepad</option>
            <option value="Silicone Keyboard">Silicone Keyboard</option>
            <option value="Cardreader">Cardreader</option>
      </select></td>
    </tr>
    <tr>
      <td>Jumlah Pembelian</td>
      <td><label for="jumlah"></label>
      <input type="text" name="jumlah" id="jumlah"></td>
    </tr>
    <tr>
      <td bgcolor="#CCCCCC" height="39" colspan="2" align="center"><input type="submit" name="hitung" id="hitung" value="Jumlahkan"></td>
    </tr>
  </table>
</form>
</html>



Tampilan ke tiga yaitu output data.

Script output.php :
<html>
<head><title>PENJUALAN AKSESORIS LAPTOP</title></head>
<body bgcolor="CCCCFF">
<?php
@$nomor=$_POST['nomor'];
@$aksesoris=$_POST['aksesoris'];
@$jumlah=$_POST['jumlah'];


//harga setiap aksesoris
if (@$aksesoris=='Mousepad'){
    $harga=5000;
    }
else if (@$aksesoris=='Silicone Keyboard'){
    $harga=10000;
    }
else if (@$aksesoris=='Cardreader'){
    $harga=15000;
    }

//hitungan sub total
@$subtotal=$jumlah*$harga;

//buat diskon pembelian
if ($jumlah > 2) {
    $diskon=$subtotal*0.05;
    }
else if ($jumlah <= 2) {
    $diskon=0;
    }
  
@$total=$subtotal-$diskon;
?>

<table width="24%" border="10px" align="center">
  <tr>
    <td height="25" colspan="2" align="center" bgcolor="#CCCCCC"><strong>HASIL PENJUALAN</strong></td>
  </tr>
  <tr>
    <td width="37%" bgcolor="#CCCCCC">No.Transaksi</td>
    <td width="37%" bgcolor="#CCCCCC"><strong><?php echo $nomor ;?></strong></td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC">Nama Aksesoris</td>
    <td bgcolor="#CCCCCC"><strong><?php echo @$aksesoris; ?></strong></td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC">Jumlah Aksesoris</td>
    <td bgcolor="#CCCCCC"><strong><?php echo $jumlah; ?></strong></td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC">Sub Total</td>
    <td bgcolor="#CCCCCC"><strong><?php echo "Rp." .number_format ($subtotal); ?></strong></td>
  </tr>
  <tr>
    <td bgcolor="#CCCCCC">Diskon</td>
    <td bgcolor="#CCCCCC"><strong><?php echo "Rp." .number_format (@$diskon); ?></strong></td>
  </tr>
  <tr>
    <td height="27" bgcolor="#CCCCCC"><strong>Total</strong></td>
    <td bgcolor="#CCCCCC"><strong><?php echo "Rp." .number_format ($total); ?></strong></td>
  </tr>
   <tr>
    <td colspan="2" align="center" bgcolor="#CCCCCC"> <a href="input_penjualan.php"><input name="" type="button" value="Kembali"></a></td>
  </tr>
  <tr>
  <td colspan="2" align="center" bgcolor="#CCCCCC"> <a href="cetak.php"><input name="" type="button" value="Cetak"></a></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#CCCCCC"> <a href="logout.php"><input name="" type="button" value="Logout"></a></td>
</tr>
  </table>
  </html>




Tampilan ke empat yaitu data dicetak.

Script cetak.php:
<html>
<head><title>PENJUALAN AKSESORIS LAPTOP</title></head>
<body bgcolor="CCCCFF">
<?php
session_start();
unset($_SESSION['cetak']);
echo "<center><h3>Data Berhasil Dicetak</h3>";
?>
</html>
<tr>
<td> <a href="output_penjualan.php"><input name="" type="button" value="Kembali"></a></td>
</tr>




Tampilan ke lima yaitu logout.

Script logout.php :
<html>
<head><title>PENJUALAN AKSESORIS LAPTOP</title></head>
<body bgcolor="CCCCFF">
<?php
session_start();
unset($_SESSION['namauser']);
echo "<center><h1>Terimakasih</h1>";
echo "<center><h2>Anda Berhasil Logout</h2>";
?>
</html>




Tampilan ke enam yaitu database.

Script koneksi.php :
<?php
error_reporting(0);
$koneksi = mysql_connect("localhost","root","") or die("Koneksi Gagal !" . mysql_error());
mysql_select_db("aksesoris");

?>



Link "PEMBUATAN APLIKASI PENJUALAN AKSESORIS LAPTOP BERBASIS WEB" 

Muhammad Jefri Febriansyah
A2.1400074
TI-VID
0 Komentar untuk "LAPORAN PEMBUATAN APLIKASI PENJUALAN AKSESORIS LAPTOP BERBASIS WEB"

Silakan tinggalkan komentar anda. DILARANG KERAS menyimpan link blog/web pada komentar dengan tujuan backlink, Spam.

 
Copyright © 2014 Tutorial Kampus - All Rights Reserved
Template By. Catatan Info