L
A
M
P
I
R
A
N
A
Tampilan index.php
Script Index.php
<html><head>
<link rel="shortcut icon" href="image/tut-wuri-handayani.png"> <title>.:SMP Negeri 1 DoBaNa :.</title>
<link href="template.css" rel="stylesheet" type="text/css" /> <style type="text/css">
<!--
.style1 {font-family: Georgia}
.style2 {font-family: Georgia; font-weight: bold; } .style4 {color: #0000FF}
--> </style> </head> <body>
<div id="Header"> <?php include "menu.php";?> </div> </div>
<div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div>
<div id="Content"> <p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swf lash.cab#version=7,0,19,0" width="200" height="100" align="left"> <param name="movie" value="Kalender.swf">
<param name="quality" value="high"> <embed src="Kalender.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="310" height="130"></embed> </object></p> <p> <br /> <br /> <br /> </p> <p> <br /> <br /> <br /> </p> <p> <br></p> <p> <br> </p> <p>
<h3 align="left" class="style4"> Profil </h3> <a href="profil.php"> profil sekolah</a> <a href="galeri.php">Galeri</a>
<a href="fasilitas_lengkap.php">Fasilitas</a> <br>
<a href="org.php">Struktur organisasi</a>
<a href="kepsek.php">pimpinan sekolah</a> </p> <p>
<h3 align="left" class="style4"> Akademik</h3> <a href="tampilsiswa.php"> Data Siswa</a> <a href="tampil_dataguru.php">Data Guru</a> <a href="#">Jadwal Pelajaran</a>
</p> <p>
<h2 class="style2">BERITA MENGENAI SEKOLAH </h2></p> <h2>Pengumuman Hasil UN</h2>
Untuk melihat pengumuman hasil UN silahkan <a href="nilai un.htm">klik disini...</a>
</p> <p>
<h2>Melihat NISN(Nomor Induk siswa Nasional)</h2> <p>Untuk melihat NISN anda dapat berkunjung ke <a href="www.jardiknas.go.id/nisn">link berikut ini</a> </p> </p> <p> </p> <p> </p> </div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr> <tr><?php include"counter.php"; ?></tr> </table> </div> </div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="44" height="22" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
</html>
Script Halaman Visi& Misi
<!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" />
<link rel="shortcut icon" href="image/tut-wuri-handayani.png"> <title>Profil Sekolah</title>
<link href="template.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {color: #0033FF} --> </style> </head> <body> <div id="Header"> <?php include"menu.php" ?></div> <div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div>
<div id="Content">
<div class="feature"> <h2 align="right"><?php
include"tanggal.php";?></h2><img src="image/gbr.JPG" alt="" width="239" height="159" />
</div>
<h2>Visi dan Misi Sekolah</h2> <h3>Visi Sekolah</h3><br />
<h4>“ Berprestasi dan Terampil yang Berwawasan Iptek dan Imtak”</h4><br />
<h3>Indikator : </h3> <ul>
<li>Terwujudnya Pengembangan Kurikulum Adaptif dan Produktif.</li>
<li>Terwujudnya Proses Pembelajaran yang Efektif & Efisiens.</li>
<li>Terwujudnya Tamatan yang Handal dan Berstandar Nasional.</li>
<li>Terwujudnya Sarana & Prasarana Pendidikan yang Sesuai Perkembangan Zaman.</li>
<li>Terwujudnya SDM Pendidikan yang Handal dan Profesional.</li>
<li>Terwujudnya Sekolah Menjadi Pusat Pembelajaran setiap Waktu.</li>
<li>Terwujudnya Partisipasi yang baik dalam Penggalangan Biaya Pendidikan.</li>
</ul>
<h3>Misi Sekolah</h3><br /> <ol>
<li>Mewujudkan Perangkat Kurikulum yang lengkap yang berwawasan kemasa depan</li>
<li>Mewujudkan system penilaian yang otentik</li> <li>Mewujudkan lulusan yang cerdas dan terampil</li> <li>Mewujudkan proses pembelajaran yang aktif , kreatif, efektif dan menyenangkan</li>
<li>Mewujudkan fasilitas sekolah yang mutkhir</li> <li>Mewujudkan pendidik dan tenaga kependidikan yang professional</li>
<li>Mewujudkan sekolah menjadi pusat pembelajaran setiap waktu.</li>
<li>Mewujudkan Managemen Berbasis Sekolah ( MBS ) yang tangguh.</li> </ol> </div> </div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr>
<tr><?php include"counter.php"; ?></tr> </table>
</div> </div>
<div id="Footer">
<img src="image/tut-wuri-handayani.png" width="44" height="22" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site
Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR
</span></div> </body> </html> Tampilan Fasilitas Script fasilitas.php <head>
<link rel="shortcut icon" href="image/tut-wuri-handayani.png"> <title>.: SMP Negeri 1 DoBaNa :.</title>
<style type="text/css"> <!--
.style3 {font-family: "Comic Sans MS"}
.style4 {font-family: Arial, Helvetica, sans-serif} .style1 {color: #0033FF}
--> </style>
<link href="template.css" rel="stylesheet" type="text/css" /> </head>
<body>
<div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div> <div id="Content"> <div class="style3"> <p><?php include"date.php";?></p> <p align="center"><?php include "conf/koneksi.php"; if(!isset($_GET['page'])){ $page = 1;} else { $page = $_GET['page'];}
// Menentukan maksimal data yang akan ditampilkan. $max_results = 1;
// Menentukan batasan query berdasarkan pada nomor halaman. $from = (($page * $max_results) - $max_results);
$perintah1="SELECT * from fasilitas ORDER BY no DESC limit $from, $max_results";
$hasil1=mysql_query($perintah1); $row=mysql_fetch_row($hasil1); do{
list($no,$fasilitas,$keterangan,$gambar)=$row;
echo("<font color=black face=verdana size=2> <B>Fasilitas </B></font><br><br>");
echo"<table>"; echo"<tr>"; echo"<td></td>";
echo"<td><left><font face=verdana size=2 color=blue> <B>$fasilitas</B></font></left></td>"; echo"</tr>"; echo"<tr>"; echo"<td height=30></td>"; echo"</tr>"; echo"<tr>";
echo"<td><img src='image/$gambar' width=150 height=180 align=left hspace=4 vspace=7></p></td>";
echo"<td valign=top width=242><font face=verdana size=2 color=blue>$keterangan</font></td>";
echo"</tr>"; echo"</table>"; }
while ($row=mysql_fetch_row($hasil1));
// Melihat jumlah total data pada database:
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM fasilitas "),0);
// Melihat jumlah total halaman. Selalu dibulatkan ke atas dengan fungsi ceil()
$total_pages = ceil($total_results / $max_results); // Membuat Penomoran Halaman
echo "<table align=left><tr><td><font color='red' family='arial' size='3'><b>";
echo ("<p style='margin-right: 5px'>"); // Link sebelumnya
if($page > 1){ $prev = ($page - 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\">Prev</a> "; } for($i = 1; $i <= $total_pages; $i++){
if(($page) == $i){ echo "$i ";
} else {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i\">$i</a> ";} } // Link selanjutnya if($page < $total_pages){ $next = ($page + 1); echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next\">Next</a>"; } echo "</font></td></tr></table><br><br>"; ?></p> </div></div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr> <tr><?php include"counter.php"; ?></tr> </table> </div> </div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="43" height="25" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
</html>
Script Statistik.php
<html> <head>
<title>.:SMP Negeri 1 Serbelawan :.</title>
<link rel="shortcut icon" href="image/tut-wuri-handayani.png"> <link href="template.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style6 {font-size: 12px} .style7 { color: #0080C0; font-weight: bold; font:Arial; } .style8 {color: #006699; font:Courier New;} .style10 {font-family: Georgia} -->
</style> </head> <body>
<div id="Header"> <?php include "menu.php";?> </div> </div>
<div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div>
<div id="Content">
<h2> Data Siswa 4 Tahun Terakhir</h2> <div class="story">
<table width="700" align="center" border="1"> <tr bgcolor="#999999">
<td width="76"> <div align="center" class="style7"><span class="style6">Th. Pelajaran</span></div></td>
<td width="76"><div align="center" class="style7"><span class="style6">Jml Pendaftar</span></div></td>
<td colspan="2"><div align="center" class="style7"><span class="style6">Kelas VII</span></div></td>
<td colspan="2"><div align="center" class="style7"><span class="style6">Kelas VIII</span></div></td>
<td colspan="2"><div align="center" class="style7"><span class="style6">Kelas IX</span></div></td>
<td colspan="2"><div align="center" class="style7"><span class="style6">Jml Total Siswa</span></div></td>
</tr> <tr> <td><span class="style10">2003/2004</span></td> <td><span class="style10">396</span></td> <td width="77"><span class="style10">324</span></td> <td width="75"><span class="style10">8</span></td> <td width="76"><span class="style10">279</span></td> <td width="76"><span class="style10">7</span></td> <td width="76"><span class="style10">299</span></td> <td width="76"><span class="style10">7</span></td> <td width="76"><span class="style10">902</span></td> <td width="76"><span class="style10">22</span></td> </tr> <tr class="style10"> <td>2004/2005</td> <td>419</td> <td>320</td> <td>8</td> <td>320</td> <td>8</td> <td><span class="style10">278</span></td> <td><span class="style10">7</span></td> <td><span class="style10">918</span></td> <td><span class="style10">23</span></td> </tr> <tr class="style10"> <td>2005/2006</td> <td>332</td> <td>325</td> <td>8</td> <td>323</td> <td>8</td> <td><span class="style10">317</span></td> <td><span class="style10">8</span></td> <td><span class="style10">965</span></td> <td><span class="style10">24</span></td> </tr> <tr class="style10"> <td>2006/2007</td> <td>436</td> <td>320</td> <td>8</td> <td>320</td> <td>8</td> <td><span class="style10">312</span></td> <td><span class="style10">8</span></td> <td><span class="style10">952</span></td> <td><span class="style10">24</span></td> </tr> </table> </div> <br><br>
<h2> Pendidik dan Tenaga Kependidikan</h2> <div class="story">
<div id="headlines">Guru</div>
<table width="700" border="1" align="center"> <tr bgcolor="#999999">
<th width="30" rowspan="3" class="style6" scope="col"><span class="style8">No</span></th>
<th width="168" rowspan="3" class="style6" scope="col"><span class="style8">Tingkat Pendidikan </span></th>
<th colspan="4" class="style6" scope="col"><span class="style8">Jumlah dan Status Guru </span></th>
<th width="187" rowspan="3" class="style6" scope="col"><span class="style8">Jumlah </span></th>
</tr>
<tr bgcolor="#999999">
<td colspan="2" class="style6"><div align="center" class="style8"><strong>GT/ PNS </strong></div></td> <td colspan="2" class="style6"><div align="center" class="style8"><strong>GTT/ Guru Bantu </strong></div></td> </tr>
<tr bgcolor="#999999">
<td width="65" class="style6"><div align="center" class="style8"><strong>L</strong></div></td>
<td width="57" class="style6"><div align="center" class="style8"><strong>P</strong></div></td>
<td width="61" class="style6"><div align="center" class="style8"><strong>L</strong></div></td>
<td width="86" class="style6"><div align="center" class="style8"><strong>P</strong></div></td>
</tr> <tr>
<td><div align="center">1</div></td>
<td><div align="justify" class="style6"><strong>S3 / S2 </strong></div></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td><div align="center">2</div></td>
<td><div align="justify" class="style6"><strong>S1</strong></div></td> <td><div align="center" class="style10">8</div></td>
<td class="style10"><div align="center">20</div></td> <td class="style10"><div align="center">1</div></td> <td class="style10"><div align="center">4</div></td> <td class="style10"><div align="center">33</div></td> </tr> <tr> <td><div align="center">3</div></td>
<td><div align="justify" class="style6"><strong>D-4</strong></div></td> <td> </td> <td class="style10"> </td> <td class="style10"> </td> <td class="style10"> </td> <td class="style10"> </td> </tr> <tr> <td><div align="center">4</div></td>
<td><div align="justify" class="style6"><strong>D-3/ Sarmud </strong></div></td> <td><div align="center">7</div></td> <td class="style10"><div align="center">14</div></td> <td class="style10"> </td> <td class="style10"> </td> <td class="style10"><div align="center">21</div></td>
</tr> <tr>
<td><div align="center">5</div></td>
<td><div align="justify" class="style6"><strong>D-2</strong></div></td> <td><div align="center">3</div></td> <td class="style10"><div align="center">2</div></td> <td class="style10"> </td> <td class="style10"> </td> <td class="style10"><div align="center">5</div></td> </tr> <tr> <td><div align="center">6</div></td>
<td><div align="justify" class="style6"><strong>D-1</strong></div></td> <td><div align="center">2</div></td> <td class="style10"><div align="center">5</div></td> <td class="style10"> </td> <td class="style10"> </td> <td class="style10"><div align="center">7</div></td> </tr> <tr> <td colspan="2"><div align="center" class="style6"><strong>Jumlah</strong></div></td>
<td><div align="center" class="style10">20</div></td>
<td class="style10"><div align="center" class="style10">41</div></td> <td class="style10"><div align="center">1</div></td> <td class="style10"><div align="center">4</div></td> <td class="style10"><div align="center">66</div></td> </tr> </table> </div> </div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr> <tr><?php include"counter.php"; ?></tr> </table> </div> </div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="44" height="22" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span
class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
</html>
Script Tampil_data_guru.php
<html> <head>
<title>.:SMP Negeri 1 DoBaNa :.</title>
<link href="template.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="image/tut-wuri-handayani.png"> <style type="text/css"> #Content{ position:absolute; width:1003px; height:701px; left: 150px; top: 237px; } </style> </head> <body>
<div id="Header"> <?php include "menu.php";?> </div> </div>
<div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div>
<div id="Content">
<div class="feature" align="center"> <?php
include("conf/koneksi.php");
$sql = mysql_query("SELECT * FROM data_guru ORDER BY nip ASC"); $query=mysql_query($sql);
<?php if(!isset($_GET['page'])){ $page = 1; } else { $page = $_GET['page']; }
// Define the number of results per page $max_results =10;
// Figure out the limit for the query based // on the current page number.
$from = (($page * $max_results) - $max_results);
// Perform MySQL query on only the current page number's results
$sql = mysql_query("SELECT * FROM data_guru ORDER BY nip ASC LIMIT $from, $max_results");
$query=mysql_query($sql); $row=mysql_fetch_assoc($sql);?>
<div id="outer1" align="left"><a href="#" class="style12" onClick="window.print();return false"><h2>Print</h2></a></div> <p> </p>
<table width="850" border="1" bordercolor="#000000"cellpadding="0" cellspacing="inherit" style="border-collapse:collapse">
<tr bgcolor="#CCCCCC">
<td width="28" ><div align="center"><strong>No</strong></div></td> <td width="34" ><div align="center"><strong>NIP</strong></div></td> <td width="165"> <div align="center"><strong>Nama</strong></div></td>
<td width="127"><div align="center"><strong>Tampat/Tanggal Lahir</strong></div></td>
<td width="53"><div align="center"><strong>Agama</strong></div></td> <td width="92"><div align="center"><strong>Jenis Kelamin
</strong></div></td>
<td width="130" ><div align="center"><strong>Golongan</strong></div></td> <td width="125"><div
align="center"><strong>Pendidikan</strong></div></td>
<td width="76" ><div align="center"><strong>Alamat</strong></div></td> </tr> <?php $i=1; do { ?> <tr>
<td height="31"><?php echo $i;?> </td>
<td height="31"><?php echo $row['nip'];?> </td> <td><?php echo $row['nama_guru'];?> </td> <td><?php echo $row['ttlahir'];?> </td> <td><?php echo $row['agama'];?> </td> <td><?php echo $row['jkelamin'];?> </td> <td><?php echo $row['golongan'];?> </td> <td><?php echo $row['pendidikan'];?> </td> <td><?php echo $row['alamat'];?> </td> </tr> <? $i++; } while ($row=mysql_fetch_array($sql)); ?> </table> <?php
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM data_guru"),0);
// Figure out the total number of pages. Always round up using ceil() $total_pages = ceil($total_results / $max_results);
// Build Page Number Hyperlinks
echo "<br><center>Pilih Halaman<br />"; // Build Previous Link
if($page > 1){
$prev = ($page - 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><font color=red><< Previous</font></a> ";
}
for($i = 1; $i <= $total_pages; $i++){ if(($page) == $i){
echo "$i "; } else {
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$i\"><font color=red>$i</font></a> ";
} }
// Build Next Link
if($page < $total_pages){ $next = ($page + 1);
echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$next\"><font color=red>Next >></font></a>"; } echo "</center>"; ?> </div> </div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="44" height="22" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span
class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
</html>
Script buku_tamu.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" /> <link rel="shortcut icon" href="image/tut-wuri-handayani.png">
<title>:. SMPN 1 SERBELAWAN .:</title>
<link href="template.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- .style1 {color: #0033FF} --> </style> </head> <body> <div id="Header"> <?php include"menu.php"; ?></div> <div id="Menu">
<div class="relatedLinks"><marquee>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar
Jalan Karya Bhakti Udjung Serbalawan</marquee></div> </div>
<div id="Content">
<h3 id="new">Silahkan Tinggalkan Pesan Anda</h3> <h2 align="right"> <?php include"tanggal.php";?> </h2> <script language="javascript">
function pengisian(form) {
isi_nama(form) isi_email(form) isi_komentar(form) semua_kosong(form) } function semua_kosong(form) {
if((isi_nama(form) && isi_email(form)) &&(isi_homepage(form)&& isi_komentar(form))) {form.submit()}
if((isi_nama(form) == false|| isi_email(form) == false) || (isi_homepage(form) == false|| isi_komentar(form)== false)) {salah_isi(form)}}
function salah_isi(form) {
var text ="Ada kesalahan dalam pengisian:" if(isi_nama(form) == false)
{text += "\nNama Anda."} if(isi_email(form) == false) {text += "\ne-mail Anda."} if(isi_homepage(form) == false) {text += "\nHomepage Anda."} if(isi_komentar(form) == false) {text += "\nKomentar Anda."} alert(text) } function isi_nama(form) { if(form.nama_anda.value =="") {return false} else {return true} } function isi_email(form) { if((form.email.value =="" || form.email.value.indexOf('@',0)==-1)|| form.email.value.indexOf('.')==-1) {return false} else {return true} } function isi_komentar(form) { if(form.cs.value =="") {return false} else {return true}} </script>
<form action="simpan_bukutamu.php" method="post"> <table>
<tr><td>Nama</td> <td>:</td>
<td><input type="text" value="" name="nama" size="30" /></td> </tr>
<tr><td>Alamat E-mail</td> <td>:</td>
<td><input type="text" value="" name="email" size="30" /></td> </tr>
<tr><td>Hompage Anda</td> <td>:</td>
<td><input type="text" value="http://" name="homepage" size="60" /></td>
</tr>
<tr><td>Komentar Anda</td> <td>:</td>
<td><textarea rows= "6" cols="60" name="cs"></textarea></td> </tr>
<td><input type="submit" value="Kirim" /></td>
<td><input type="hidden" name="id" value="<? echo $_REQUEST['id']; ?>" /></td>
<td><input type="reset" value="Hapus" /></td> </tr> </table> </form> </div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr> <tr><?php include"counter.php"; ?></tr> </table> </div> </div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="43" height="25" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span
class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
</html>
Script Login.php
<?php include "conf/koneksi.php"; $pass=md5($_POST[password]); $username=$_REQUEST['username']; $password=$_REQUEST['password']; if(trim($username)=="") { include"form_login.php";echo "<script language=javascript>";
echo "alert('Terdapat Data yang masih kosong');"; echo"</script>";
}
elseif(trim($password)=="") {
include"form_login.php";
echo "<script language=javascript>";
echo "alert('Terdapat Data yang masih kosong');"; echo"</script>";
} else {
$login=mysql_query("SELECT * FROM user WHERE username='$_POST[username]' AND password='$pass'");
$ketemu=mysql_num_rows($login); $r=mysql_fetch_array($login);
if ($ketemu > 0){ session_start(); session_register("username"); session_register("password"); session_register("leveluser"); $_SESSION[username] = $r[username]; $_SESSION[password] = $r[password]; $_SESSION[leveluser]= $r[level]; header('location:admin/index.php'); } else{
echo "<center>Login gagal! username & password tidak benar<br>"; echo "<a href=form_login.php><b>ULANGI LAGI</b></a></center>"; }
} ?>
Tampilan Contact Us
Script contactus.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" /> <link rel="shortcut icon" href="image/tut-wuri-handayani.png">
<title>Lokasi Sekolah</title>
<link href="template.css" rel="stylesheet" type="text/css" /> </head>
<div id="Header">
<? include"menu.php"; ?></div> <div id="Menu">
<marquee><h3>Selamat datang di SMP Negeri 1 Dolok Batu Nanggar Jalan Karya Bhakti Udjung Serbalawan</h3></marquee>
</div>
<div id="Content">
<h2 id="new">Lokasi SMP Negeri 1 Dolok Batu Nanggar</h2> <div class="story">
<h2 align="right"><?php include"tanggal.php";?></h2> <table width="511" height="271">
<tr>
<td width="93" height="63"><h3>Sekolah</h3></td> <td width="45"><h3 align="center">:</h3></td>
<td width="200"><h3>SMP Negeri 1 Dolok Batu Nanggar</h3></td> </tr> <tr> <td height="84"><h3>Alamat e-mail</h3></td> <td><h3 align="center">:</h3></td> <td><h3 align="left"><a href="smpn1_dbn@yahoo.com">smpn1_dbn@yahoo.com</a></h3></td> </tr> <tr> <td height="79"><h3>Blog</h3></td> <td><h3 align="center">:</h3></td> <td><h3><a href="smpndbn.blogspot.com">smpndbn.blogspot.com</a></h3></td> </tr> <tr> <td><h3>No. Telepon</h3></td> <td><h3 align="center">:</h3></td> <td><h3>(0622) 64167</h3></td> </tr> </table> </div></div> <div id="Content2"> <div id="search"> <form action="www.google.co.id"> <label>search</label>
<input name="searchFor" type="text" size="10" /> <input name="goButton" type="submit" value="go" /> </form>
</div>
<div class="feature"><table align="center" width="240"> <br><br>
<tr align="center"> <img src="image/kalender.jpg" width="220" height="40"></tr>
<tr> <?php include"kalender.php";?> </tr> </table>
</div>
<div class="feature">
<table width="240" align="left">
<tr align="center"><img src="image/statistik.jpg" width="220" height="40"></tr>
<tr><?php include"counter.php"; ?></tr> </table>
</div></div> <div id="Footer">
<img src="image/tut-wuri-handayani.png" width="44" height="22" /> <a href="tentangsekolah.php">Contact Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> | <a href="#">Contact Us</a> <span
class="style1">| ©SMP NEGERI 1 DOLOK BATU NANGGAR </span></div> </body>
Tampilan Administrator
Script index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Selamat Datang ke Halaman Admin</title>
<meta name="keywords" content="" /> <meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="default.css" /> </head> <body> <div id="outer"> <div id="outer2"> <div id="header"> <h1>administrator </h1>
<h2>By Madaniyah Fitrahayati</h2> </div>
<div id="menu"> <ul>
<li><a href="index.php">Home</a></li>
<li><a href="data_guru/inputguru.php">Data Guru</a></li>
<li><a href="data_siswa/inputsiswa_form.php">Data Siswa</a></li> <li><a href="logout.php">Log Out</a></li>
</ul> </div> <div id="content"> <div id="column1">
<h3>Selamat Datang di Halaman Index</h3>
<p><strong>Index</strong> Adalah tempat dimana seorang administrator dapat mengedit isi dari informasi yang akan di tampilkan</p>
<p>Pada menu <a href="data_guru/inputguru.php"><strong>Data Guru</strong></a> anda dapat mengedit, mengupdate(menampabh) data guru,ataupun menghapus data guru tersebut. Pada menu <a href="data_siswa/inputsiswa_form.php"><strong>Data Siswa</strong></a> administror juga memiliki akses untuk mengubah, menambah atau mengedit informasi mengenai siswa yang ingin admin tampilkan pada web ini.
<p>Dan, untuk keluar dari halaman admin administrator dapat memilih menu<a href="logout.php"><strong>Log Out</strong></a>.</p>
</div>
<div id="column2"> <h3>Menu Admin</h3> <ul>
<li><a href="data_guru/inputguru.php">Update Data guru</a></li> <li><a href="data_guru/lihatguru.php">Tampilkan Data Guru</a></li>
<li><a href="data_siswa/inputsiswa_form.php">Update Data Siswa</a></li> <li><a href="data_siswa/tampil_semua_siswa.php">Tampilka Data siswa</a></li> </ul>
<h3>Berita dan Informasi</h3> <ul>
<li><a href="logout.php">Keluar dari halaman ini</a></li> </ul>
</div> </div>
<div id="footer">
<p>Design by <a href="http://www.madaniyah.wordpress.com/">Madaniyah Fitrahayati</a>.</p>
</div></div></div> </body>
</html>
Tampilan Form Pengisian Data Guru
Script inputguru.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Selamat Datang ke Halaman Admin</title>
<meta name="keywords" content="" /> <meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="../default.css" /> </head>
<body>
<div id="outer"><div id="outer2"><div id="header"> <h1>administrator </h1>
<h2>By Madaniyah Fitrahayati</h2> </div> <div id="menu">
<ul>
<li><a href="inputguru.php">Input Data Guru</a></li> <li><a href="lihatguru.php">Tampil Data Guru</a></li> <li><a href="editguru.php">Edit Data Guru</a></li> <li><a href="hapus_dataguru.php">Hapus Data Guru </a></li>
<li><a href="../index.php">Back To Home</a></li> </ul>
</div> <div id="content">
<div id="column1">
<form id="form1" name="form1" method="post" action="inputguru_proses.php"> <table width="485" align="center">
<tr> <td width="180">NIP</td> <td width="9">:</td> <td width="282"><label>
<input name="nip" type="text" id="nip" size="25" /> </label></td></tr>
<tr><td>Nama Guru</td> <td>:</td> <td><label>
<input name="nama_guru" type="text" id="nama_guru" size="35"/> </label></td> </tr>
<tr> <td>Tempat/Tanggal Lahir</td> <td>:</td> <td><label>
<input name="ttlahir" type="text" id="ttlahir" size="37"/> </label></td> </tr> <tr> <td>Agama</td> <td>:</td> <td><label>
<select name="agama" id="agama"> <option value="null">:::Agama:::</option> <option value="Islam">Islam</option> <option value="Katolik">Katolik</option> <option value="Protestan">Protestan</option> <option value="Hindu">Hindu</option> <option value="Budha">Budha</option> </select> </label></td> </tr> <tr> <td>Jenis Kelamin</td> <td>:</td> <td>
<input name="jkelamin" type="radio" value="Laki-Laki" /> Laki-Laki
<input name="jkelamin" type="radio" value="Perempuan" /> Perempuan</td> </tr> <tr> <td>Golongan</td> <td>:</td> <td><label>
<select name="golongan" id="golongan"> <option>--Golongan--</option> <option value="I/a">I A</option> <option value="I/b">I B</option> <option value="I/c">I C</option> <option value="I/d">I D</option> <option value="II/a">II A</option> <option value="II/b">II B</option> <option value="II/c">II C</option> <option value="II/d">II D</option> <option value="III/a">III A</option> <option value="III/b">III B</option> <option value="III/c">III C</option> <option value="III/d">III D</option> <option value="IV/a">IV A</option>
<option value="IV/b">IV B</option> <option value="IV/c">IV C</option> <option value="IV/d">IV D</option> </select> </label></td> </tr> <tr> <td>Pendidikan</td> <td>:</td>
<option value="null">:::Pendidikan:::</option> <option value="SMA/SMK">SMA/SMK</option> <option value="Diploma 1">Diploma 1</option> <option value="Diploma 2">Diploma 2</option> <option value="Diploma 3">Diploma 3</option> <option value="Diploma 4">Diploma 4</option>
<option value="Sarjana Muda">Sarjana Muda</option> <option value="S-1">S-1</option> <option value="S-2">S-2</option> </select></label></td> </tr> <tr> <td>Alamat</td> <td>: </td>
<td><input type="text" name="alamat" id="alamat" size="35"/> </td> </tr> <tr> <td> </td> <td> </td> <td><label><br />
<input type="submit" name="Submit" value="Proses" /> </label>
<label>
<input type="reset" name="Submit2" value="Reset" /> </label></td> </tr> </table> <p> </p> </form> </div> </div><div id="footer">
<p>Design by <a href="http://www.madaniyah.wordpress.com/">Madaniyah Fitrahayati</a>.</p>
</div> </div></div> </body>
</html>
Script inputsiswa_form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Selamat Datang ke Halaman Admin</title>
<meta name="keywords" content="" /> <meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="../default.css" /> <style type="text/css">
<!--
.style5 {family: Verdana, Arial, Helvetica, sans-serif; size: 12px; font-weight: bold; color: #000000; }
a:link { color: #000000; text-decoration: none; } a:visited { text-decoration: none; color: #000000; } a:hover { text-decoration: none; color: #0000FF; } a:active { text-decoration: none; color: #000000; } --> </style> </head> <body> <div id="outer"> <div id="outer2"> <div id="header"> <h1>administrator </h1>
</div>
<div id="menu"> <ul>
<li><a href="inputsiswa_form.php">Input Data Siswa</a></li>
<li><a href="tampil_semua_siswa.php">Tampil Data Siswa</a></li>
<li><a href="datasiswa.php">Edit Data Siswa</a></li> <li><a href="hapus.php">Hapus Data Siswa</a></li> <li><a href="../index.php">Back To Home</a></li> </ul> </div> <div id="content"> <div id="column1"> <div align="center"> <?php include("../../conf/koneksi.php"); $nis=$_REQUEST['nis'];
$sql="select * from siswa where nis='$nis'"; $query=mysql_query($sql); $row=mysql_fetch_array($query); $kelas=$row['kelas']; ?> <style type="text/css"> <!-- .style1 {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;
} --> </style>
<form id="form1" name="form1" method="post" action="simpan_siswa.php"> <p> </p>
<table width="909" border="0"> <!--DWLayoutTable-->
<tr>
<td width="137"><span class="style7 style1">NIS</span></td> <td width="358"><span class="style7">
<label>
<input name="nis" type="text" id="nip" size="20" /> </label>
</span></td> </tr>
<tr>
<td height="23"><span class="style7 style1">Nama</span></td> <td><span class="style7">
<label>
<input name="nama_siswa" type="text" id="namasiswa" size="35" /> </label> </span></td> </tr> <tr>
<td><span class="style7 style1">Agama</span></td> <td><span class="style7">
<label>
<select name="agama" id="agama">
<option value="Null" selected="selected">--Agama--</option> <option value="Islam">Islam</option> <option value="Kristen">Kristen</option> <option value="Katolik">Katolik</option> <option value="Hindu">Hindu</option> <option value="Budha">Budha</option> </select> </label> </span></td> </tr> <tr>
<td><span class="style7 style1">Jenis Kelamin </span></td> <td>
<input name="jeniskelamin" type="radio" value="L" /> Laki- Laki
<input name="jeniskelamin" type="radio" value="P" /> Perempuan</td>
</tr>
<tr>
<td><span class="style7 style1">Kelas</span></td> <td><span class="style7">
<select name="kelas" id="kelas" >
<option value="Null">::Kelas::</option> <?php
include("../../conf/koneksi.php"); $sql="select * from kelas"; $query=mysql_query($sql); $row=mysql_fetch_assoc($query); ?>
<? do { ?>
<option value="<?php echo $row["id_kelas"];?>" ><?php echo $row["kelas"];?></option>
<?php } while ($row=mysql_fetch_assoc ($query));?> </select> </span></td>
</tr> <tr> </tr> <tr> <td> <input type="submit" name="Submit" value="T A M B A H" /> </td>
<td> <input type="reset" name="Submit3" value="C A N C E L" /> </td> </tr> </table> </form></div>
</div> </div> <div id="footer"> <p>Design by <a href="http://www.madaniyah.wordpress.com/">Madaniyah Fitrahayati</a>.</p>
</div> </div></div> </body>