Lampiran 1. Listing Program
1.
Halaman Index
<!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">
<link rel="stylesheet" type="text/css" href="model/style.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="utama">
<div class="header"><h1><b> Kelurahan Bagan Deli Kecamatan Medan Belawan</b></h1></div>
<div class="logo"></div>
<div class="menu-utama">
<nav>
<ul>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur Organisasi</a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</ul>
</nav>
</div>
<marquee>
<div class="mk1">
<div class="mk2">
<div class="mk3">
<div class="mk4"></div>
</div>
</div>
</div>
</marquee>
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_month = date('t',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
$calendar.= '<tr class="calendar-row">';
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
}
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
/* final row */
$calendar.= '</tr>';
/* end the table */
$calendar.= '</table>';
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
© KELURAHAN BAGAN DELI</div>
</body>
</html>
2.
Profil
<!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">
<link rel="stylesheet" type="text/css" href="model/style-profil.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Profil Kelurahan Bagan Deli</title>
</head>
<body>
<div class="utama">
<div class="header"><h1> Kelurahan Bagan Deli Kecamatan Medan Belawan</h1></div>
<div class="logo"></div>
<div class="menu-utama">
<div class="menu-utama">
<ul>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
</li>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur
Organisasi </a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</nav>
</div>
<div class="content"><p>
Kelurahan Bagan Deli terletak di tepi Muara Deli sampai ke tepian Kuala
Deli. Dulunya, tempat ini dinamakan Pulau Putri yang merupakan tempat
persinggahan Keluarga Sultan Deli. Berdasarkan surat pengakuan dan kesaksian
tanggal 28 November 1983 oleh Mantan Penghulu Bagan Deli Tahun 1939 s/d
1947, yaitu Bapak Muhamad Ilyas dan Mantan Penghulu Bagan Deli Tahun 1952
s/d 1969, yaitu Bapak Hasyim Syami, bahwa letak Kampung Bagan Deli
diperkirakan berada di tepi Muara Deli/Kuala Deli bertepatan dengan letak
persinggahan Pulau Putri tersebut.
<br></br>
Muara Deli, perairan Kuala Deli, dan Kampung Bagan Deli juga
merupakan daerah yang strategis bagi saudagar Bugis dan Cina untuk melakukan
"Tambat dan Labuh" Tongkang perahu layar mereka serta tempat beristirahat
sebelum menuju Pekan Labuhan Deli, atau sebaliknya. Begitu juga bagi
masyarakat nelayan di sekitar Sungai Deli, Kampung Bagan Deli dapat digunakan
juga sebagai tempat untuk beristirahat mereka sebelum atau sesudah melaut.
nama "BAGAN" di tepi Muara Deli/Kuala Deli yang selanjutnya dinamakan
Bagan Deli, walaupun Kampung Bagan Deli waktu itu dihuni hanya beberapa
keluarga saja.Kehidupan penduduk ketika itu ditopang dari membuat atap Nipah
dan menjalin Bilah untuk membuat belat (alat untuk menangkap ikan).<br></br>
Pada tahun 1910, ketika utusan Kesultanan Deli datang ke Kampung
Bagan Deli untuk memberitahukan bahwa keluarga Sultan Deli akan berkunjung
ke Persinggahan Pulau Putri maka satu orang Tokoh di Kampung Bagan Deli
akan menyiapkan segala sesuatunya sehubungan dengan penyambutan kunjungan
tersebut (persiapan tempat, makanan, dan keamanan) termasuk mamandu Perahu
Kesultanan Deli dari Persinggahan Pasar Raja (posisi sekarang diantara Lorong
Pertamina dengan Lorong I Veteran) menuju persinggahan Pulau Putri (posisi
sekarang: Pantai Ocean Pasifik). Tokoh tersebut selanjutnya tercatat sebagai orang
pertama yang diangkat/ditunjuk oleh Kesultanan Deli menjadi Penghulu
Kampung Bagan Deli yaitu Bapak H.Awal, setelah Proklamasi Kemerdekaan
Republik Indonesia tahun 1945, Kampung Bagan Deli secara administratif
menjadi Desa Bagan Deli yang berada di bawah Pemerintahan Sumatera Timur.<br></br>
Dan pada perkembangannya, kini tahun 2011 Kampung Bagan Deli menjadi
Kelurahan Bagan Deli Kecamatan Medan Belawan, Kota Medan, Provinsi
</div>
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_month = date('t',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
}
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
/* end the table */
$calendar.= '</table>';
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<div class="T">
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© KELURAHAN BAGAN DELI</div>
</body>
</html>
3.
Struktur
<!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">
<link rel="stylesheet" type="text/css" href="model/style-struktur.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="utama">
<div class="header"><h1> Kelurahan Bagan Deli Kecamatan Medan Belawan</h1></div>
<div class="logo"></div>
<div class="menu-utama">
<nav>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
</li>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur Organisasi</a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</nav>
</div>
<div class="content">
<h2 align="center">Data Pegawai</h2>
<table width="745" border="1" align="center">
<tr>
<td width="56">No</td>
<td width="71">Nip</td>
<td width="65">Nama</td>
<td width="44">Jabatan</td>
</tr>
<?php
include "include/koneksi.php";
$qpegawai = mysql_query("SELECT * FROM tb_pegawai");
while($rpegawai = mysql_fetch_array($qpegawai)){
?>
<tr>
<td><?php echo $rpegawai['no'];?></td>
<td><?php echo $rpegawai['nip'];?></td>
<td><?php echo $rpegawai['nama'];?></td>
<td><?php echo $rpegawai['jabatan'];?></td>
</tr>
<?php } ?>
</table>
<a href="login.php"><img src="model/gambar/admin.png" /></a>
</div>
</div>
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_month = date('t',mktime(0,0,0,$month,1,$year));
$day_counter = 0;
$dates_array = array();
/* row for week one */
$calendar.= '<tr class="calendar-row">';
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
}
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
/* end the table */
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© KELURAHAN BAGAN DELI</div>
</body>
</body>
</html>
4.
KTP
<!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">
<link rel="stylesheet" type="text/css" href="model/style-ktp.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="utama">
<div class="header"><h1> Kelurahan Bagan Deli Kecamatan Medan Belawan</h1></div>
<div class="logo"></div>
<div class="menu-utama">
<nav>
<ul>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur Organisasi</a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan E-KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</ul>
</nav>
<div class="content1"><br ></br>
</div>
<div class="content2"><br ></br>
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
$calendar.= '<tr class="calendar-row">';
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
$calendar.= '</table>';
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
</body>
</html>
5.
KK
<!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">
<link rel="stylesheet" type="text/css" href="model/style-kk.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Syarat KK</title>
</head>
<body>
<div class="utama">
<div class="header"><h1> Kelurahan Bagan Deli Kecamatan Medan Belawan</h1></div>
<div class="logo"></div>
<div class="menu-utama">
<nav>
<ul>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur Organisasi</a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan E-KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</ul>
</nav>
</div>
<b></b>
</div>
<div class="content2">
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
$calendar.= '<tr class="calendar-row">';
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
$calendar.= '</table>';
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© KELURAHAN BAGAN DELI</div>
</html>
6.
Login
<!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">
<link rel="stylesheet" type="text/css" href="model/style-login.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="utama">
<div class="header"><h1> Kelurahan Bagan Deli Kecamatan Medan Belawan</h1></div>
<div class="logo"></div>
<div class="menu-utama">
<nav>
<ul>
<li><a href="index.php">Beranda</a>
<ul>
</ul>
<li><a href="">Profil</a>
<ul>
<li><a href="profil.php">Sejarah </a></li>
<li><a href="struktur.php">Struktur Organisasi</a></li>
</ul>
</li>
<li><a href="">Pelayanan </a>
<ul>
<li><a href="KK.php">Pengurusan KK</a></li>
<li><a href="ktp.php">Pengurusan KTP</a></li>
<li><a href="akte.php">Pengurusan Akte Kelahiran</a></li>
</ul>
</li>
<li><a href="hubungi.php">Hubungi
Kami </a>
<ul>
</ul>
</li>
</ul>
</nav>
</div>
<br ><br /><br ><br /><br ><br /><br ><br /><br ><br />
<form action="cek.php" method="post">
<div align="center">
<h2 align="center">Masuk</h2>
<table width="200" border="1">
<tr>
<td>Username</td>
<td>:</td>
<td><label for="username"></label>
<input type="text" name="username" id="username" /></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><label for="password"></label>
<input type="password" name="password" id="password" /></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input type="submit" name="button" id="button" value="Masuk" />
<input type="reset" name="button2" id="button2" value="Batal" />
</div></td>
</tr>
</table>
</form>
</div>
</div>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
$calendar.= '<tr class="calendar-row">';
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
if(($day_counter+1) != $days_in_month):
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
$calendar.= '</table>';
/* all done, return result */
return $calendar;
}
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<div class="W">
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© KELURAHAN BAGAN DELI</div>
</body>
</html>
</body>
</html>
7.
Admin
<!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">
<link rel="stylesheet" type="text/css" href="model/style-admin.css" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div class="utama">
<div class="header"><h1><b>Kelurahan Bagan Deli Kecamatan Medan Belawan</b></h1></div>
<div class="logo"></div>
<nav>
<ul>
<li><a href="index.php"><b>Beranda</b></a>
<ul>
</ul>
</li>
<li><a href=""><b>Profil</a>
<ul>
<li><a href="profil.php"><b>Sejarah </b></a></li>
<li><a href="struktur.php"><b>Struktur Organisasi</b></a></li>
</ul>
</li>
<li><a href=""><b>Pelayanan </b></a>
<ul>
<li><a href="KK.php"><b>Pengurusan KK</b></a></li>
<li><a href="ktp.php"><b>Pengurusan KTP</b></a></li>
<li><a href="akte.php"><b>Pengurusan Akte Kelahiran</b></a></li>
</ul>
</li>
<li><a href="hubungi.php"><b>Hubungi
Kami </b></a>
<ul>
</ul>
<li><a href="include/logout.php"><b>Log Out </b></a>
<ul>
</ul>
</li>
</ul>
</nav>
</div>
<div class="content">
<br ><br /><br ><br />
<br ><br />
<form action="include/in_pegawai.php" method="post">
<div align="center">
<h2 align="center">Data Pegawai</h2>
<table width="200" border="1">
<tr>
<td>Nip</td>
<td>:</td>
<td><label for="nip"></label>
</tr>
<tr>
<td>Nama</td>
<td>:</td>
<td><label for="nama"></label>
<input type="text" name="nama" id="nama" /></td>
</tr>
<tr>
<td>Jabatan</td>
<td>:</td>
<td><label for="jabatan"></label>
<input type="text" name="jabatan" id="jabatan" /></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<input type="submit" name="button" id="button" value="Simpan" />
<input type="reset" name="button2" id="button2" value="Batal" />
</div></td>
</tr>
</table>
</div>
</form>
<br ><br /><br ><br /><br ><br />
<h2 align="center">Data Pegawai</h2>
<table width="745" border="1" align="center">
<td width="56">No</td>
<td width="71">Nip</td>
<td width="65">Nama</td>
<td width="44">Jabatan</td>
<td width="70">Pilih</td>
</tr>
<?php
include "include/koneksi.php";
$qpegawai = mysql_query("SELECT * FROM tb_pegawai");
while($rpegawai = mysql_fetch_array($qpegawai)){
?>
<tr>
<td><?php echo $rpegawai['no'];?></td>
<td><?php echo $rpegawai['nip'];?></td>
<td><?php echo $rpegawai['nama'];?></td>
<td><?php echo $rpegawai['jabatan'];?></td>
<td> <a href="f_up_pegawai.php?no=<?php echo $rpegawai['no'];?>">Edit</a> |<a
href="include/del_pegawai.php?no=<?php echo $rpegawai['no'];?> " onclick="return confirm('Yakin mau hapus..??');">Delete </a> </td>
</tr>
<?php } ?>
</table>
<div class="kanan">
<div id="mycalendar">
<?php
$namabulan =
array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","A gustus","September","Oktober","November","Desember");
function draw_calendar($month,$year){
/* draw table */
$calendar = '<table cellpadding="0" cellspacing="0" class="calendar">';
/* table headings */
$headings = array('Ming','Sen','Sel','Rab','Kam','Jum','Sab');
$calendar.= '<tr class="calendar-row"><td head">'.implode('</td><td
class="calendar-day-head">',$headings).'</td></tr>';
/* days and weeks vars now ... */
$running_day = date('w',mktime(0,0,0,$month,1,$year));
$days_in_month = date('t',mktime(0,0,0,$month,1,$year));
$days_in_this_week = 1;
$day_counter = 0;
$dates_array = array();
/* row for week one */
/* print "blank" days until the first of the current week */
for($x = 0; $x < $running_day; $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
$days_in_this_week++;
endfor;
/* keep going with days.... */
for($list_day = 1; $list_day <= $days_in_month; $list_day++):
$calendar.= '<td class="calendar-day">';
/* add in the day number */
if($list_day==date("j"))
{
$calendar.= '<div class="day-number" title="Today">'.$list_day.'</div>';
}
else
{
$calendar.= '<div class="day-number">'.$list_day.'</div>';
}
/** QUERY THE DATABASE FOR AN ENTRY FOR THIS DAY !! IF MATCHES FOUND, PRINT THEM !! **/
$calendar.= str_repeat('<p> </p>',2);
$calendar.= '</td>';
if($running_day == 6):
$calendar.= '</tr>';
$calendar.= '<tr class="calendar-row">';
endif;
$running_day = -1;
$days_in_this_week = 0;
endif;
$days_in_this_week++; $running_day++; $day_counter++;
endfor;
/* finish the rest of the days in the week */
if($days_in_this_week < 8):
for($x = 1; $x <= (8 - $days_in_this_week); $x++):
$calendar.= '<td class="calendar-day-np"> </td>';
endfor;
endif;
/* final row */
$calendar.= '</tr>';
/* end the table */
$calendar.= '</table>';
/* all done, return result */
return $calendar;
if(empty($pilbulan) && empty($piltahun))
{
$pilbulan=date("n");
$piltahun=date("Y");
}
echo "<h2>".$namabulan[$pilbulan]." ".$piltahun."</h2>";
echo draw_calendar($pilbulan,$piltahun);
?>
</div>
<br ><br />
Go to :
<br ><br />
<div class="F">
<a href=""><img src="model/gambar/fb_icon_325x325.png" /></a>
<div class="T">
<a href="https://twitter.com/login?lang=id"><img src="model/gambar/twitter_logo.gif" /></a>
<div class="L">
<a href="https://line.me/id/"><img src="model/gambar/line.jpg" /></a>
<a href="https://www.whatsapp.com/?l=id"><img src="model/gambar/wa.jpg" /></a>
<div class="I">
<a href="https://www.instagram.com/?hl=id"><img src="model/gambar/NewInstagramLogo.png" /></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© KELURAHAN BAGAN DELI</div>
</html>
</body>