LAMPIRAN LISTING PROGRAM HALAMAN WEBSITE 1. Script banner.php <table width="800" border="0" align="center" cellpadding="0" cellspacing="0"> <td width="800" colspan="3"><div align="center"><img src="images/banner.jpg" width="800" height="130" /> <a href="index.php">home </a> <a href="?page=profil">profil </a> <a href="struktur.php" target="_blank">struktur Organisasi</a> <a href="?page=bukutamu">buku Tamu </a> <a href="?page=visi"> </a><a href="?page=contact">contact Us </a> <a href="admin/login_admin.php">login</a> 2. Script footer.php <!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> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>untitled Document</title> <style type="text/css"> <!--.style2 {color: #FFFFFF}.style3 { font-family: Tahoma;
font-size: 10px; } --> </style> </head> <body> <table width="800" height="50" border="0" align="center" cellpadding="0" cellspacing="0" background="images/in_10.gif" bgcolor="#333333"> <td bgcolor="#003366"><div align="center" class="style2 style3"><br /> <blink> Copyright 2010 Pemerintah Kota Medan. </blink> 3. Script main.php <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> <div align="justify"><img style="border:solid red 1px" src="images/kantor lurah.jpg" width="250" height="250" hspace="4" vspace="4" align="left"> Pembangunan kelurahan merupakan bagian integral dari pembangunan daerah dan pembangunan daerah dan pembangunan nasional. Undang-undang Nomor 22 Tahun 1999 tentang Pemerintah Daerah memberikan kewenangan yang lebih luas kepada daerah, terutama daerah kabupaten/kota untuk melaksanakan tugas
pemerintahan dan pembangunan yang sifatnya multi sektoral. Sebagai wujud kemampuan melaksanakan kewenangan yang merupakan sebagian dari esensi otonomi daerah tersebut, daerah dituntut untuk merumuskan program pembangunan secara komprehensif mulai dari pembangunan tingkat kelurahan hingga kabupaten/kota. Program pembangunan yang disusun secara komprehensif sangat membutuhkan informasi yang komprehensif pula yang di peroleh melalui pengolahan data akurat. Secara khusus profil kelurahan sebagai alat pendataan kelurahan merupakan kumpulan data komprehensif (multisektor), yang diharapkan dapat mengakomodasikan kebutuhan data bagi pemanfaat data kelurahan. Pendataan kelurahan selama ini dilakukan secara parsial sesuai kebutuhan masing-masing pihak yang melakukannya sehingga kegiatan pembangunan kelurahan juga dilakukan secara parsial, suatu hal yang harus diatasi dengan adanya suatu sistem pendataan yang komprehensif sebagaimana pada profil kelurahan. Oleh karena itu, dibutuhkan langkah penyempurnaan terhadap data profil kelurahan yang telah ada untuk menghasilkan profil kelurahan yang lebih sistematis. Hal ini dapat dilakukan melalui penyederhanaan mekanisme materi dan pengolahan pendataan, pengembangan sistem pengolahan data yang efektif dan efisien, penyiapan alat pendataan sistem peningkatan kapasitas pengolah data kelurahan. </div> <td width="6" background="images/body_04.gif" > </td> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <p class="style10"> </p> 4. Script profil.php
<table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> <div align="justify"> <h3>profil KELURAHAN MEDAN POLONIA </h3> <P>Profil Kelurahan Polonia Medan</P> <ol> <li>nama Kelurahan : Kelurahan Polonia</li> <li>nomor statistik &nb sp; : 414.3/316/PMD</li> <li>provinsi &nbs p; : Sumatera Utara</li> <li>kecamatan &nb sp; : Medan Polonia</li> <li>alamat &nbs p; : Jl. Balai desa no. 81</li>
<li>kode Pos & nbsp; : 20157</li> <li>telepon &nbs p; : -</li> </ol> <p>data Lurah<br /> Nama   ; : Arrahman Pane S.STP.MAP<br /> NIP : 010258474<br /> Jenis Kelamin : Laki-laki<br /> Alamat &nbs p; : Jl. Balaidesa no.81</p> <p>data Sekretaris<br /> Nama   ; : Ahmad<br /> NIP : 400036699<br /> Jenis Kelamin : laki-laki<br /> Alamat &nbs p; : Jl. Balaidesa no.81</p> No telp & nbsp; : 08126439209</div> <td width="6" background="images/body_04.gif" > </td>
<td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <p class="style10"> </p> 5. Script struktur.php <!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> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>untitled Document</title> <style type="text/css"> <!--.style7 {font-family: Tahoma; font-size: 14px; }.style10 {color: #FFFBF0} --> </style> </head> <body> <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td width="600" height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td><div> <p align="center"><strong></strong></p>
<p align="center"><img width="817" height="534" src="struktur_clip_image002.gif" /></p> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <div align="center"><font size="5" color="#006699" face="verdana, Arial, Helvetica, sans-serif"><b><u><img src="bullet8.png" /> Struktur Organisasi <img src="bullet8.png" /></u></b></font></div> <td><p align="center"> </p></td> <p class="style10"> </p> 6. Script bukutamu.php <form action="simpantamu.php" method="post"> <table width="530" align="center"> <td colspan="2"> <div align="center">buku Tamu <td> </td> <td width="455" valign="top"> </td>
<td width="150">nama </td> <td valign="top">: id="nama" size="30" maxlength="30" /> </td> <input name="nama" type="text" <td>email</td> <td>:<label> <input name="email" type="text" id="email" size="30" maxlength="50" /> </label></td> <td>komentar</td> <td>: <textarea name="komentar" cols="40" rows="3" id="komentar"> </textarea></td> <td> </td> <td><input name="submit" type="submit" value="submit" /> <input type="reset" value="batal" /></td> </form> 7. Script contact.php <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td>
<td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> <div align="justify"> <h3>contact US </h3> <P>Data Sekretaris<br /> Nama   ; : Ahmad<br /> NIP : 400036699<br /> Jenis Kelamin : laki-laki<br /> Alamat &nbs p; : Jl. Balaidesa no.81</p> No telp & nbsp; : 08126439209</div> <td width="6" background="images/body_04.gif" > </td> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <p class="style10"> </p>
8. Script lingkungan.php <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> include "./server.php"; <table style="font-size:12px; border-collapse:collapse; width="100%" border="1" align="center" cellpadding="2" cellspacing="1" bgcolor="#ffffff"> $qsel=mysql_query("select * from lingkungan")or die(mysql_error()); <tr bgcolor="#c0c0c0"> <td colspan="4">info Lingkungan </td> <tr bgcolor="#c0c0c0"> <td width="22"><div align="left" class="style5">no. <td width="148"><div align="left" class="style5">nama Lingkungan <td width="162"><span class="style5"> Kepala Lingkungan </span></td> <td width="119">jumlah Kepala Keluarga </td>
<td height="24" align="center" ><span >=$no </span></td> <td > $no=0; while($row = mysql_fetch_array($qsel)) { $no++; <div align="left" > =$row[1] <td >=$row[2]</td> <td ><span > =$row[3] </span></td> } <td width="6" background="images/body_04.gif" > </td> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td>
<p class="style10"> </p> 9. Script penduduk.php <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> include "./server.php"; <table style="font-size:12px; border-collapse:collapse; width="100%" border="1" align="center" cellpadding="2" cellspacing="1" bgcolor="#ffffff"> $qsel=mysql_query("select * from penduduk, lingkungan where penduduk.kd_ling=lingkungan.kd_ling")or die(mysql_error()); <tr bgcolor="#c0c0c0"> <td colspan="10">info Penduduk </td> <tr bgcolor="#c0c0c0"> <td width="22"><div align="left" class="style5">no. <td width="148"><div align="left" class="style5">no.ktp <td width="162"><span class="style5">nama Penduduk </span></td>
<td width="162">jenis Kelamin </td> <td width="119">tempat Lahir </td> <td width="119">tgl.lahir</td> <td width="119">status</td> <td width="119">pendidikan</td> <td width="119">pekerjaan</td> <td width="119">tinggal Di Lingkungan </td> $no=0; while($row = mysql_fetch_array($qsel)) { $no++; <td height="24" align="center" ><span >=$no </span></td> <td > <div align="left" > =$row[no_ktp] <td >=$row[nm_pend]</td> <td >=$row[jenkel]</td> <td ><span > =$row[temp_lhr] </span></td> <td >=$row[tgl_lhr]</td> <td >=$row[status]</td> <td >=$row[pend]</td> <td >=$row[pekerjaan]</td> <td >=$row[nm_ling]</td> }
<td width="6" background="images/body_04.gif" > </td> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <p class="style10"> </p> 10. Script rumahibadah.php <table width="600" border="0" align="left" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <td height="10" colspan="4" valign="top"><img src="images/body_01.gif" width="600" height="10" /></td> <td width="5" background="images/body_02.gif"> </td> <td width="10" ></td> <td width="579" ><div align="left" class="style7"> include "./server.php";
<table style="font-size:12px; border-collapse:collapse; width="100%" border="1" align="center" cellpadding="2" cellspacing="1" bgcolor="#ffffff"> $qsel=mysql_query("select * from rumahibadah, lingkungan where rumahibadah.kd_ling=lingkungan.kd_ling")or die(mysql_error()); <tr bgcolor="#c0c0c0"> <td colspan="4">info Rumah Ibadah </td> <tr bgcolor="#c0c0c0"> <td width="22"><div align="left" class="style5">no. <td width="172"><div align="left" class="style5">rumah Ibadah <td width="48">jumlah</td> <td width="306">lingkungan</td> $no=0; while($row = mysql_fetch_array($qsel)) { $no++; <td height="24" align="center" ><span >=$no </span></td> <td > <div align="left" > =$row[1] <td >=$row[2]</td> <td >=$row[nm_ling]</td>
} <td width="6" background="images/body_04.gif" > </td> <td colspan="4"><img src="images/body_05.gif" width="600" height="10" /></td> <p class="style10"> </p> 11. Script server.php $host="localhost"; $user="root"; $pass=""; $db="db_kelurahan"; $koneksi=mysql_connect($host,$user,$pass) or die (mysql_error()); mysql_select_db($db,$koneksi) or die (mysql_error()); 12. Script menu.php <!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>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>untitled Document</title> <link href="green.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- a:link { text-decoration: underline; } a:visited { text-decoration: underline; } a:hover { text-decoration: none; } a:active { text-decoration: underline; }.style1 {color: #0033CC}.style2 {color: #FFFFFF} --> </style></head> <body> <table style="font-size:12px" width="200" border="0" cellspacing="0" cellpadding="0"> <td colspan="3" bgcolor="#003366"style="color:#ffffff; fontsize:12px">informasi </td> </td> <td colspan="3" bgcolor="#ffffff" class="linkpnsheader"><div align="left"><a href="?page=lingkungan">info Lingkungan </a>
<td colspan="3" bgcolor="#ffffff" class="linkpnsheader"><div align="left"><a href="?page=penduduk">info Penduduk </a> <td colspan="3" bgcolor="#ffffff" class="linkpnsheader"><div align="left"><a href="?page=rumahibadah">info Rumah Ibadah </a> <td colspan="3" bgcolor="#ffffff" class="linkpnsheader"> </td> <td colspan="3" bgcolor="#003366"class="linkpnsheader"><div align="center" class="style1"><span class="style2">galeri</span> <td colspan="3" bgcolor="#ffffff" class="linkpnsheader"><div align="center"><img src="images/pura.jpg" width="150" height="150" /> <td colspan="3" bgcolor="#ffffff" class="linkpnsheader"><div align="center"><img src="images/exmp SD.JPG" width="150" height="150" /> 13. Script simpantamu.php
php include "./server.php"; $nama=$_post['nama']; $email=$_post['email']; $komentar=$_post['komentar']; $insert = "insert into bukutamu values ('','$nama','$email','$komentar')"; $q= mysql_query($insert) or die(mysql_error()); if($q) { echo "<script> window.alert('data sudah disimpan'); location.href='index.php?page=bukutamu' </script>"; }else