LISTING PROGRAM koneksi.php <?php $host="localhost"; $user="root"; $pass=""; $db="pegawai";
$koneksi=mysql_connect($host, $user, $pass); if ($koneksi==true) { mysql_select_db($db); } else { echo"gagal"; } ?> index.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"> <!-- .style1 { font-family: pristina; font-weight: bold; color: #999900; } .style2 {color: #999900} --> </style> </head> <body>
<table width="824" border="3" align="center" bordercolor="#000099"> <tr>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="784" height="100">
<param name="movie" value="image/header2.swf" /> <param name="quality" value="high" />
<embed src="image/header2.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="784" height="100"></embed>
</object> </div></td> </tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF">
<table width="403" border="0" vspace="0" align="center"> <tr>
<td width="95" valign="top"><?php include"template/menu.php"; ?></td> <td width="119"><?php include"template/menu4.php"; ?></td> <td width="175"><?php include"template/menu2.php"; ?></td> </tr> </table></td> </tr> <tr> <td width="575" height="162"><?php include"template/utama.php"; ?> <?php include"module/inc.php";?></td> <td width="229"><table width="200" border="1" vspace="1">
<tr valign="top">
<td><img src="image/beach.gif" width="200" height="123" /></td> </tr>
</table></td> </tr>
<tr>
<td><table width="575" border="0" align="center"> <tr> <th width="130" scope="row"><?php include"template/skin.php"; ?></th> <td width="429"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="480" height="279">
<param name="movie" value="image/bsi-all.swf" /> <param name="quality" value="high" />
<embed src="image/bsi-all.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="279"></embed>
</object></td> </tr>
</table></td>
<td><table width="214" height="289" border="1" align="center" vspace="0"> <tr valign="top" >
<td width="204" height="159"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="202" height="165">
<param name="movie" value="image/jam.swf" /> <param name="quality" value="high" />
<embed src="image/jam.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="202" height="165"></embed>
</object></td> </tr> <tr> <td height="115"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="65" height="86">
<param name="movie" value="image/jamIndonesia.swf" /> <param name="quality" value="high" />
<embed src="image/jamIndonesia.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="65" height="86"></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="65" height="86">
<param name="movie" value="image/jamtokyo.swf" /> <param name="quality" value="high" />
<embed src="image/jamtokyo.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="65" height="86"></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="65" height="86">
<param name="movie" value="image/jamseoul.swf" /> <param name="quality" value="high" />
<embed src="image/jamseoul.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="65" height="86"></embed>
</object></td> </tr> </table></td> </tr> <tr>
<td colspan="2" bgcolor="#336633"><div align="center"><span class="style2"><a href="index.php">Home</a> | <a href="?module=login">Login</a> | <a
href="?module=berita">News </a></span></div></td> </tr>
<tr>
<td colspan="2" bgcolor="#336633"><div align="center" class="style1">WEB KEPEGAWAIAN </div></td> </tr> </table> </body> </html> home.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"> <!-- .style1 { font-family: pristina; font-weight: bold; } --> </style> </head> <body>
<table width="798" border="1" align="center"> <tr>
<td colspan="2"><div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="784" height="100">
<param name="movie" value="image/header2.swf" /> <param name="quality" value="high" />
<embed src="image/header2.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="784" height="100"></embed>
</object> </div></td> </tr>
<tr>
<td colspan="2" bgcolor="#0099CC">
<table width="403" border="0" vspace="0" align="center"> <tr>
<td width="95" valign="top"><?php include"template/admin.php"; ?></td> </tr>
</table></td> </tr>
<tr>
<td width="582" height="162"><?php include"template/text.php"; ?><br /><br /><?php include"module/inc.php";?></td>
<td width="200"><table width="200" border="1" vspace="1"> <tr valign="top">
<td><img src="image/beach.gif" width="200" height="123" /></td> </tr> </table></td> </tr> <tr> <td><?php include"template/skin.php"; ?></td>
<td><table width="200" border="1" vspace="0" align="center"> <tr valign="top" >
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab# version=7,0,19,0" width="190" height="130">
<param name="movie" value="image/jam.swf" /> <param name="quality" value="high" />
<embed src="image/jam.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="190" height="130"></embed>
</object></td> </tr> </table></td> </tr> <tr>
<td colspan="2" bgcolor="#666666"><div align="center"><a
href="index.php">Home</a> | <a href="">Login</a> | <a href="">News </a></div></td>
</tr> <tr>
<td colspan="2" bgcolor="#999999"><div align="center" class="style1">WEB KEPEGAWAIAN </div></td> </tr> </table> </body> </html> berita_display.php <html> <head>
<title>:::Biodata:::</title> </head>
<style type="text/css"> <!--
.style5 {font-family: pristina; color: #006633; } --> </style> <body> <?php $id=$_REQUEST['id']; include"../koneksi.php";
$sql="select * from berita where id='$id' "; $query=mysql_query($sql, $koneksi); ?> <? while($row=mysql_fetch_array($query)) { ?>
<table width="340" border="1" align="center"> <tr> <td colspan="3"><?php include"template/header.php"; ?></td> </tr> <tr> <td colspan="3"><div align="center">B<span class="style5">erita</span></div></td> </tr> <tr>
<td width="99"><span class="style5">Nama awal </span></td> <td width="44">:</td>
<td width="183"><?php echo $row['ki']; ?></td> </tr> <tr> <td><p class="style5"> </p> <p class="style5">isi</p></td> <td>:</td> <td><?php echo $row['isi']; ?></td> </tr> </table> <?php } ?> <p> </p> </body> </html> a.php
<html> <head> <title>:::Biodata:::</title> </head> <style type="text/css"> <!--
.style5 {font-family: pristina; color: #006633; } --> </style> <body> <?php $id=$_REQUEST['id']; include"../koneksi.php";
$sql="select * from berita where id='$id' "; $query=mysql_query($sql, $koneksi); ?>
<?
while($row=mysql_fetch_array($query)) {
?><form name="a" method="post" action="../edit.php" enctype="multipart/form-data">
<table width="340" border="1" align="center"> <tr>
<td colspan="3"><div align="center">Berita</div></td> </tr>
<tr>
<td width="99"><span class="style5">Nama awal </span></td> <td width="44">:</td>
<td width="183"><?php echo $row['ki']; ?></td> </tr> <tr> <td><p class="style5"> </p> <p class="style5">isi</p></td> <td>:</td> <td><?php echo $row['isi']; ?></td> </tr> <tr> <td><p class="style5"> </p> <p class="style5">isi</p></td> <td>:</td>
<td><img src="../image/<?php echo $row['nama_file']; ?>" width="118" height="84">view </a></td>
</tr> </table> <p> <label>
<input type="submit" name="Submit" value="Submit"> </label>
</p> </FORM> <div align="center"> <?php } ?> <a href="../index.php">Home </a></div> <p> </p> </body> </html> admin.php <?php include"module/inc_session.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>
</head> <body> <br />
<table width="430" border="0" vspace="1" align="center" > <tr valign="top">
<td width="90" valign="top"><?php include"template/admin_menu2.php"; ?></td> <td width="90"><?php include"template/admin_menu1.php"; ?></td> <td width="90"><?php include"template/admin_menu3.php"; ?></td> </tr> </table> </body> </html> admin_view_pegawai.php <html> <head> <title>view</title> <style type="text/css"> <!--
.style3 {color: #999900; font-family: pristina; font-weight: bold; } .style5 {color: #990000}
--> </style> </head> <body>
<p> <?php include"../koneksi.php"; $nk=$_REQUEST['nk']; $batas=5; $halaman=$_GET['halaman']; if(empty($halaman)) { $posisi=0; $halaman=1; } else { $posisi=($halaman-1) * $batas; }
$tampil="select * from data order by nk desc limit $posisi, $batas"; $hasil=mysql_query($tampil);
?> </p> <?php
include"../template/header.php"; ?>
<table width="614" border="3" align="center"> <tr>
<td width="25" bgcolor="#336633"><div align="center" class="style3">No.</div></td>
<td width="67" bgcolor="#336633"><div align="center" class="style3">Nik</div></td>
<td width="129" bgcolor="#336633"><div align="center" class="style3">Nama</div></td>
<td width="111" bgcolor="#336633"><div align="center" class="style3">Jabatan</div></td>
<td width="248" bgcolor="#336633"><div align="center" class="style3">Action</div></td> </tr> <?php $no=1; while($data=mysql_fetch_array($hasil)){ ?> <tr> <td><?php echo $no; ?></td> <td><?php echo $data['nk']; ?></td> <td><?php echo $data['nm']; ?></td>
<td><?php echo $data['jbt']; ?><a href="librari/view_detail_pegawai.php?nk=<? echo $data['nk']; ?>"></a></td>
<td><a href="../librari/admin_view_detail_pegawai.php?nk=<? echo $data['nk']; ?>">view</a><a href="a/../../database/delete_pegawai.php ?nk=<? echo $data['nk']; ?>">Hapus <a href="../librari/edit_admin.php?nk=<? echo $data['nk']; ?>">Edit </a></td> </tr> <?php $no++; }?> </table> <div align="center"> <?php
$tampil2=mysql_query("select * from data order by nk desc"); $jmldata=mysql_numrows($tampil2);
$jmlhalaman=ceil($jmldata/$batas); echo"<center><br> halaman :"; for($i=1; $i<=$jmlhalaman; $i++) if ($i !=$halaman) { echo"<a href=$_SERVER[PHP_SELF]?halaman=$i>$i</a> |"; } else { echo"<b>$i</b>|"; }
echo"<p>Total anggota: <b>$jmldata</b>orang</p>"; ?>
<span class="style5">--- </span>
<input name="button" type="button" onClick="self.history.back()" value="Back"/> </div>
<center>
<a href="../home.php"> Home</a> </center> </body> </html> form_gaji.php <html> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .style1 {color: #999900} .style3 { font-family: pristina; font-weight: bold; }
.style4 {color: #999900; font-family: pristina; font-weight: bold; } -->
</style> </head> <body>
<table width="488" border="1" align="center"> <tr>
<th width="50" rowspan="2" bgcolor="#336633" scope="row"><div align="center" class="style4">Gaji Pokok </div></th>
<td colspan="2" bgcolor="#336633"><div align="center" class="style4">Tunjangan keluarga </div></td>
<td width="68" rowspan="2" bgcolor="#336633"><div align="center" class="style4">Tunjangan Pangan </div></td>
<td width="99" bgcolor="#336633"><div align="center" class="style4">Potongan</div></td>
<td width="108" rowspan="2" bgcolor="#336633"><div align="center" class="style4">Gaji Total</div></td>
</tr> <tr>
<td width="67" bgcolor="#336633"><div align="center" class="style4">Istri / Suami </div></td>
<td width="56" bgcolor="#336633"><div align="center" class="style4">Anak</div></td> <td bgcolor="#336633"><div align="center"></div></td> </tr> <tr> <th scope="row"> </th> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </body> </html> login.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"> <!--
.style4 {font-family: pristina} --> </style> </head> <?php session_start(); ?> <body>
<form name="form1" method="post" action="?module=log"> <table width="223" border="0">
<tr>
<td width="59" rowspan="3"><img src="a/../image/login-welcome.gif" width="134" height="105" /></td>
<td><span class="style3">Username</span></td> <td><input type="text" name="username" /></td> <tr> <td><span class="style3">Password</span></td> <td width="214"><label> <input type="password"name="password" /> </label></td> </tr> <tr>
<td><input name="button" type="submit" value="Login" /></td> <td><a href="?module=daftar">Daftar</a></td> </tr> <tr> <td> </td> </tr> </table> </form> </body> </html> save_login.php <?php include"a/../koneksi.php"; $username=$_REQUEST['username']; $password=$_REQUEST['password']; $password2=$_REQUEST['password2']; if(trim($username)=="") { include"template/daftar.php"; echo"Data belum di isi"; }
elseif(trim($password)=="") {
include"template/daftar.php"; echo"Data belum di isi"; }
elseif(trim($password2)=="") {
include"template/daftar.php";
echo"konfirmasi password belum di isi"; }
elseif($password==$password2) {
if(isset($username)) {
$sql="select * from login where username='$username'"; $query=mysql_query($sql, $koneksi); $cek=mysql_num_rows($query); if ($cek ==1) { $SES_USER=$username; session_register("SES_USER"); ?>
<script language="JavaScript">alert('Username Telah digunakan, Silahkan isi dengan username yang belum ada');
document.location='?module=login'</script><? }
else {
$sql="insert into login (username, password) values('$username', '$password')"; $query=mysql_query($sql, $koneksi);
if($query==true) {
echo "<script language=javascript>"; echo "alert('Anda telah terdaftar');"; echo"</script>";
}
echo"<meta http-equiv='refresh' content='0; url=index.php'>";
}}} else
{
echo"Password yang anda masukan tidak sama dengan di konfirmasi"; include"template/daftar.php";
} ?> logout.php <?php session_start(); include"module/inc_session.php"; session_unregister("SES_USER");
echo"<meta http-equiv='refresh' content='0; url=index.php'>";
?>
struktur.php
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title>
</head> <body>
<table width="200" border="1" align="center" height="300"> <tr>
<td bgcolor="#C0C0C0"><img src="a/../image/struktur.JPG" width="600" height="400" /></td> </tr> </table> <p><a href="template/org.php">Selanjutnya...</a></p> </body> </html>
KEMENTERIAN PENDIDIKAN NASIONAL
UNIVERSITAS SUMATERA UTARA
FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
Jl. Bioteknologi No. 1 Kampus USU
Telp. (061) 8214290, 8211212, 8211414 Fax. (061) 8214290 Medan 20155 Kartu Bimbingan Tugas Akhir Mahasiswa
Nama : FAUZIAH ANIM
Nomor Induk Mahasiswa : 072406080
Judul Tugas Akhir : SISTEM INFORMASI BERBASIS WEB
KEPEGAWAIAN PT. SIMODONG JAYA Dosen Pembimbing : Dr. Tulus, M. Si
Tanggal Mulai Bimbingan : 08 Februari 2010 Tanggal Selesai Bimbingan : 27 Mei 2010
No Tanggal Asistensi Bimbingan
Pembahasan Pada Asistensi Mengenai, Pada Bab :
Paraf Dosen
Pembimbing Keterangan 1. 08 Februari 2010 Proposal Tugas Akhir
2. 17 Mei 2010 Bab 1 s/d Bab 3 3. 24 Mei 2010 Bab 4 s/d Bab 6 4. 27 Mei 2010 ACC Tugas Akhir 5. 27 Mei 2010 Uji Program
*Kartu ini harap dikembalikan ke Departemen Matematika bila bimbingan mahasiswa telah selesai
Diketahui, Disetujui,
Departemen Matematika FMIPA USU Pembimbing Utama/
Ketua Penanggung Jawab
Dr. Saib Suwilo, M.Sc Dr. Tulus, M. Si
Hasil Uji Program Tugas Akhir SURAT KETERANGAN
Yang bertanda tangan dibawah ini, menerangkan bahwa Mahasiswa Tugas Akhir Program Diploma 3 Ilmu Komputer/Statistika :
Nama : Fauziah Anim
NIM : 072406080
Prog. Studi : Ilmu Komputer
Judul TA : Sistem Informasi Berbasis Web Kepegawaian PT. Simodong Jaya
Telah melaksanakan test program Tugas Akhir Mahasiswa tersebut di atas pada tanggal 27 Mei 2010
Dengan Hasil : Sukses / Gagal
Demikian diterangkan untuk digunakan melengkapi syarat pendaftaran Ujian Meja Hijau Tugas Akhir Mahasiswa bersangkutan di Departemen Matematika FMIPA USU Medan. Medan, 27 Mei 2010 Dosen Pembimbing Dr. Tulus, M. Si NIP.196209011988031002