Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Index
- <!DOCTYPE html>
- <html>
- <head>
- <title>Halaman Utama</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
- <body>
- <div id="container">
- <div id="header"><h1 > Volume Silinder dan Suhu</h1></div>
- <div id="navigation">
- <ol>
- <li><a href="silinder.php">Mencari Volume Silinder</a></li>
- <li><a href="suhu.php">Mencari Suhu Celcius Ke Fahrenheit</a></li>
- </ol>
- </div>
- <div id="footer">
- © BIT, 2013
- </div>
- </body>
- </html>
- /* Proses Silinder
- <?php
- $phi=3.14;
- $r =$_POST['r'];
- $t =$_POST['t'];
- $volum=$phi * $r* $r* $t;
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>MENGHITUNG VOLUME SILINDER</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
- <body>
- <div id="container">
- <div id="header"><h1 >Hasil Hitung Volum Silinder</h1></div>
- <div id="isi">
- <label> Jari-Jari: </label><span><?php echo $r; ?></span><br/>
- <label> Tinggi: </label><span><?php echo $t; ?></span><br/>
- <label> Volum silinder adalah: </label><?php echo $volum; ?> </span><br/>
- </div>
- <div id="footer">
- © BIT, 2013
- </div>
- <body>
- </html>
- /* Silinder
- <!DOCTYPE html>
- <html>
- <head>
- <title>menghitung volum silinder</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
- <body>
- <div id="container">
- <div id="header"><h1 >Hitung Volume Silinder</h1></div>
- <form action="prosesvolum.php" method="post">
- <div id="isi">
- <div id="data">
- <label>Input Jari-Jari: </label><input type="text" name="r"/><br/>
- <label>Input Tinggi: </label><input type="text" name="t"/><br/>
- </div>
- <div id="buttons"><input type="submit" value="Hitung"/><br/></div>
- </div>
- </form>
- </body>
- </html>
- /*suhu
- <!DOCTYPE html>
- <html>
- <head>
- <title>Menghitung Suhu</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
- <body>
- <div id="container">
- <div id="header"><h1 >Hitung Suhu</h1></div>
- <form action="prosessuhu.php" method="post">
- <div id="isi">
- <div id="data">
- <label> Input suhu dalam Celcius: </label><input type="text" name="suhu_celcius"/><br/>
- </div>
- <div id="buttons"><input type="submit" value="konversi suhu! "/><br/></div>
- </div>
- </form>
- </body>
- </html>
- /Proses Suhu
- <?php
- $suhu_celcius =$_POST['suhu_celcius'];
- $suhu_fahrenheit=$suhu_celcius * 1.8 + 32;
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>MENGHITUNG SUHU</title>
- <link rel="stylesheet" type="text/css" href="style.css"/>
- </head>
- <body>
- <div id="container">
- <div id="header"><h1 >Hasil Hitung Suhu</h1></div>
- <div id="isi">
- <h2>KONVERSI SUHU</h2>
- <label> Suhu Celcius: </label><span><?php echo $suhu_celcius; ?></span><br/>
- <label> Suhu Dalam Fahrenheit: </label><?php echo $suhu_fahrenheit; ?> </span><br/>
- </div>
- <body>
- </html>
- /* CSS
- #container{
- margin: 0 auto;
- width: 400px;
- background:#569724;
- #header{
- background:black;
- padding: 20px;
- text-align: right;
- #navigation{
- float: left;
- width: 400px;
- background:#333;
- }
- #body{
- font-family: arial, times-new-roman, sans-serif;
- margin: 20px;
- padding: 0;
- }
- #isi{
- width: 500px;
- margin: 0 auto;
- padding-right: 2em;
- padding-left:2em;
- background: green;
- border: 1px solid purple;
- }
- label{
- font-family: times-new-roman, sans-serif;
- width:10em;
- padding-right: 1em;
- padding-bottom: 1em;
- float: left;
- }
- #data{
- float: left;
- width: 15 em;
- margin-bottom: .5em;
- }
- #buttons input{
- font-family: Comic Sans MS, sans-serif;
- float: left;
- margin-bottom: .5em;
- }
- br{clear: left;}
- #footer{
- background:#ccc;
- text-align: center;
- padding: 2px;
- height: 10%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement