OPERATOR PHP

 MEMBUAT DAFTAR HARGA TRAVEL


PHP

<!DOCTYPE html>

<html>

<head>

<link rel="stylesheet"  type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">

<title>

Membuat Website Pribadi

</title>

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

</head>

<body>

<?php

$nama = "VIKAS VERLIAN";

$tujuan = "MONTENEGRO";

$paket = "LIBURAN";

$montenegro = 10900000;

$makedonia = 15000000;

$bosnia = 20900000;

$rumania = 20000000;

$greece = 35000000;

$turkey = 20000000;

$tunai = 50000000;

?>


<div class="logo" >

<i class="fa-solid fa-bars"></i>

</div>

<div class="header" align="center">

<h2> TRAVEL AGENCY </h2>

</div>

<div class="table">

<table border="5" align="center">

<tr>

<th colspan="4"> European Balcan Travel Agent </th>

</tr>

<tr>

   <th> Tujuan </th>

   <th> Foto </th>

   <th> Biaya </th>

   <th> Infomarsi </th>

</tr>

<tr>

<td align="center"> Montenegro </td>

<td> <img src="abb4.jpg" width="250px" height="150px"> </td>

<td> Rp.10.900.000/minggu

</td>

<td>

<a href="https://www.montenegro.travel/en" > Montenegro</a>

</td>

</tr>

<tr>

  <td align="center"> Makedonia Utara </td>

<td> <img src="abb.jpeg" width="250px" height="150px"> </td>

<td> Rp.15.000.000/minggu

    </td>

<td>

<a href="https://www.macedoniatravel.com/" > Makedonia Utara</a>

</td>

</tr>

<tr>

  <td align="center"> Bosnia </td>

<td> <img src="abb2.jpg" width="250px" height="150px"> </td>

<td> Rp.20.900.000/minggu

</td>

<td>

<a href="https://www.smartraveller.gov.au/destinations/europe/bosnia-and-herzegovina" > Bosnia</a>

</td>

</tr>

<tr>

  <td align="center"> Rumania </td>

<td> <img src="abb5.jpeg" width="250px" height="150px"> </td>

<td> Rp.20.000.000/Minggu

</td>

<td>

<a href="https://romaniatourism.com/" >Rumania</a>

</td>

</tr>

<tr>

  <td align="center"> Greece </td>

<td> <img src="acd.jpg" width="250px" height="150px"> </td>

<td> Rp.35.000.000/Minggu

</td>

<td>

<a href="https://www.greecetours.com/" >Greece</a>

</td>

</tr>

<tr>

  <td align="center"> Turkey </td>

<td> <img src="abb12.jpg" width="250px" height="150px"> </td>

<td> Rp.20.000.000/Minggu

</td>

<td>

<a href="https://visaturkey.com.tr/" >Turkey </a>

</td>

</br>

</table>

</div>

<div class="transaksi">

<table align="center" class="transaksi">

    <tr align="center">

        <td colspan="6">========TRANSAKSI=========</td>

    </tr>

      <tr>

        <td colspan="3">Nama Lengkap</td>

        <td colspan="2"> </td>

        <td><?php echo $nama; ?></</td>

    </tr>

    <tr>

        <td colspan="3">Tujuan</td>

        <td colspan="2"></td>

        <td><?php echo $tujuan; ?></td>

    </tr>

    <tr>

        <td colspan="3">Paket Perjalanan</td>

        <td colspan="2"></td>

        <td><?php echo $paket; ?></td>

    </tr>

    

    <tr>

        <td colspan="5">Total</td>

        <td colspan="2"><?php echo $montenegro ; ?></td>

    </tr>

    <tr>

        <td colspan="5">Diskon 10%</td>

        <td colspan="2"><?php echo ($montenegro  )*10/100; ?></td>

    </tr>

    <tr>

        <td colspan="5">Total Bayar</td>

        <td colspan="2"><?php echo ($montenegro)-($montenegro)*10/100; ?></td>

    </tr>

    <tr>

        <td colspan="5">Tunai</td>

        <td colspan="2"><?php echo $tunai; ?></td>

    </tr>

    <tr>

        <td colspan="5">Kembali</td>

        <td colspan="2"><?php echo $tunai-($montenegro ); ?></td>

    </tr>

    <tr align="center">

        <td colspan="6"></td>

    </tr>

    <tr align="center">

        <td colspan="6">========TERIMAKASIH=========</<td>

    </tr>

</table>

</div>

<div class="testi" align="center">

<h1>TESTIMONI</h1>

<img src="testi.png">

</div>

</body>

</html>


CSS

@font-face {
font-family: 'vikas';
    src: url('font/BhuTukaExpandedOne-Regular.ttf');
}

.logo{
float :left;
margin: 10px;
}

.header{
background-color: red;
height: 40px;

}


.h2{
font-family: 'vikas';
}

.table{
background-color: #1affd1;
color:white;
}

.testi{
background-color: #ff1a8c;
}

.foto{
background-image: url('testi.png');
height:300px;
}

.foot{
background-color: yellow;
}

.transaksi{
   background-color: silver;
   color: white;
}

HASIL :






Komentar

Postingan Populer