Tampilkan postingan dengan label Web Programming. Tampilkan semua postingan
Tampilkan postingan dengan label Web Programming. Tampilkan semua postingan

Aplikasi Login Form Sederhana (tanpa database)



Jika Berhasil Login akan keluar tampilan berikut :


Jika password dan atau user name salah maka akan keluar tampilan berikut :





Berikut adalah kode html untuk menampilkan aplikasi ogin form sederhana (tanpa database) :

<em><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Login Form</title>
<style type="text/css">
#apDiv1 {
position:absolute;
width:373px;
height:300px;
z-index:1;
left: 449px;
top: 136px;
background-color: #FFFFFF;
border: 2px solid Green;
background-image: url(1.JPG);
}
#apDiv3 {
position:absolute;
width:80px;
height:27px;
z-index:2;
left: 289px;
top: 274px;
}
.style3 {
font-size: 10px;
font-weight: bold;
}
#apDiv2 {
position:absolute;
width:412px;
height:115px;
z-index:2;
top: 0px;
left: 2px;
}
#header{
width:373px;
height:98px;
background-image: url(top1.JPG);
}
#footer{
width:373px;
height:40px;
background-image: url(footer.JPG);
}

body {
background-image: url(win.jpg);
}
</style>

</head>

<body onLoad="document.form1.user.focus();">
<script type="text/javascript">
function error1(){
alert('Masukkan User Name dan Password Terlebih Dahulu ');
}
function check()
{
if(form1.pass.value == "" || form1.user.value=="")
{
error1();
}
}
</script>
<form name="form1" method="post" action="use.php">
<div id="apDiv1">
<div id="header">
</div>
<div>
<div align="center"><strong><br>User Name :</strong>
<br>
<input type="text" name="user" size="35" value="" style="background-color:#99FFFF" autocomplete="off">
<br>
<br>
<strong>Password : </strong>
<br>
<input type="password" name="pass" size="35" style="background-color:#99FFFF" autocomplete="off">
<br>
<br>
</div>
</div>
<br>
<div id="apDiv3">
<input type="submit" name="submit" value=" ENTER " onClick="check()">
</div>
<div id="footer" align="left"><br>
</div>
</div>
</form>
</body>
</html></em>

Dan kode php-nya adalah :
<em><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Form Admin</title>
</head>
<body>
<?php
if(($_POST['user']=='romita') AND ($_POST['pass']=='teftum')) {
echo '.:Sukses:. Anda Telah Masuk Halaman Admin Dengan User Name :'.$_POST['user'];
echo '<br><br>Welcome ' . $_POST['user'];
}
else {
echo "<br><br><br><body text='red'><strong><center>Ada Kesalahan Pada Waktu Anda Login!!<br><br><a href='cobatugaslogin.html'><h4>Kembali Ke Login</h4></a></center></strong></body>";
}
?>
</body>
</html> </em>
READ MORE - Aplikasi Login Form Sederhana (tanpa database)

Generate Table





Berikut adalah kode html-nya, simpan dengan nama tablegenerate.html





Dan berikut kode php, simpan dengan nama proses.php






READ MORE - Generate Table

Form Pemesanan Berbasis JavaScript


Berikut adalah kode html yang telah disisipi JavaScript untuk membuat tampilan seperti di atas.



Jika ada yang kurang jelas silahkan tinggalakan komentar.

READ MORE - Form Pemesanan Berbasis JavaScript

Desain Halaman Web Sederhana



Berikut adalah kode file css (simpan dengan nama new2.css) untuk membuat halaman web seperti di atas :

#wrapper {
margin: auto;
width: 997px;
border: 0;
}
#header {
height: 120px;
border: 1px solid blue;
margin-bottom:2px;
background:blue url('header.jpg');
}
#Gambarum {
float: left;
height: 63px;
width:61px;
margin-top:20px;
margin-left:50px;
border: 0;
background:red url('UM.PNG');
}
#Te {
float: left;
height: 35px;
width:300px;
margin-top:35px;
margin-left:5px;
}
#extra {
float: right;
height: 120px;
width:400px;
border: 0;
}
#atas {
float: left;
height: 25px;
width:350px;
margin-left:30px;
margin-top:2px;
border: 0;
}
#search {
clear:both;
float: right;
height: 20px;
width:300px;
margin-top:67px;
margin-right:20px;
border: 0;
}
#search1 {
float: left;
height: 15px;
width:120px;
margin-left:50px;
margin-top:4px;
border: 0;
}
#search2 {
float: right;
height: 17px;
width:110px;
margin-right:2px;
margin-top:4px;
border: 1px solid white;
background:white;
}
#inner {
float: left;
border: 0;
}
#sidebar {
float: left;
margin-right: 0px;
width: 250px;
height:420px;
border: 1px solid blue;
background:blue url('sidebar.jpg');
}
#Inner2 {
float: left;
width: 745px;
height: 420px;
border: 0;
}
#top{
height: 80px;
border: 0;
background:blue url('top.jpg');
}
#content {
float: left;
margin-top:10px;
margin-right:15px;
margin-left:15px;
width: 460px;
height: 323px;
border: 0;
}
#right {
float: left;
width: 250px;
height: 200px;
margin-top:10px;
border: 1px solid green;
background:blue url('right.jpg');
}

#footer {
margin:auto;
clear: both;
height: 80px;
width:997px;
border: 1px solid blue;
background:blue url('footer.jpg');
}
#leftmenu ul {
width: 250px;
list-style-type:none;
padding:0; margin:0;
}
#leftmenu a:link, #leftmenu a:visited, #leftmenu a:active {
padding-left: 15px;
text-decoration: none;
}
#leftmenu a {
padding: 5px 0px 5px 15px; display: block;
background: blue url('button.jpg');
margin: 0px 0px 1px; color: #ffffff;
}
#leftmenu a:hover {
background: #000066 no-repeat left center; color: #ffffff
}
.style2 {
font-size: 24px;
font-weight: bold;
color: #000099;
}
.style3 {
color: #0000CC;
font-weight: bold;
}
.style4 {
font-family: "Times New Roman", Times, serif;
font-size: xx-large;
color: #FFFFFF;
font-weight: bold;
}
.style6 {
font-family: "Times New Roman", Times, serif;
font-weight: bold;
}
.style7 {color: #FFFFFF}
.style8 {
font-family: "Times New Roman", Times, serif;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
.style10 {
color: #FFFFFF; font-size: 12px;
}
.style11 {
color: #000066;
font-weight: bold;
}


Dan kode html-nya sebagai berikut (simpan dengan nama 2.html)


READ MORE - Desain Halaman Web Sederhana

posted under | 0 Comments

Desain Layout Halaman Web



Gambar tersebut adalah tampilan desain layout halaman web dengan memanfaatkan CSS (Cascade Style Sheet).
Untuk dapat membuat desain layout seperti itu yang pertama adalah membuat file css kemudian simpan dengan nama new1.css sebagai berikut :

#wrapper {
margin: auto;
width: 750px;
border: 1px solid black;
}
#header {
height: 90px;
border: 1px solid black;
margin-bottom:5px;
}

#inner {
float: left;
margin: 10px 0;
width: 750px;
border: 1px solid green;
}

#inner2{
float: left;
margin-left:12px;
width: 589px;
height:310px;
border: 1px solid green;
}

#sidebar {
float: left;
margin-right: 0;
width: 145px;
height:310px;
border: 1px solid red;
}

#top{
height: 100px;
border: 1px solid black;
}
#content {
float: left;
margin-right:15px;
width: 385px;
height: 201px;
border: 1px solid red;
margin-bottom: 5px;
}
#right {
float: right;
width: 185px;
height: 155px;
border: 1px solid red;
}

#footer {
clear: both;
margin-top: 5px;
height: 79px;
border: 1px solid black;
}

Selanjutnya adalah membuat file html kemudian simpan dengan nama 1.html




Letakkan file css dan html pada satu folder kemudian jalankan melalui localhost.
Selamat mencoba. Semoga bermanfaat...
READ MORE - Desain Layout Halaman Web

posted under | 0 Comments

Kreasi Grafik Batang Statis


Source code untuk tampilan di atas adalah (click here)
READ MORE - Kreasi Grafik Batang Statis

posted under | 0 Comments

DESAIN TABEL PERBANDINGAN

Source code untuk tampilan seperti di atas adalah : (click here)
READ MORE - DESAIN TABEL PERBANDINGAN

posted under | 0 Comments
Beranda

Label

Followers


Recent Comments