• Tidak ada hasil yang ditemukan

DAFTAR PUSTAKA. Darmawikarta, Djoni, Tutorial Membangun Data Mart dengan Open Source MySQL. Jakarta: Restu Agung: 2009.

N/A
N/A
Protected

Academic year: 2021

Membagikan "DAFTAR PUSTAKA. Darmawikarta, Djoni, Tutorial Membangun Data Mart dengan Open Source MySQL. Jakarta: Restu Agung: 2009."

Copied!
15
0
0

Teks penuh

(1)

DAFTAR PUSTAKA

Darmawikarta, Djoni, Tutorial Membangun Data Mart dengan Open Source

MySQL. Jakarta: Restu Agung: 2009.

Dennis, Alan, Barbara Haley Wixom and David Paul Tegarden, Systems Analysis

and Design with UML Version 2.0: “An Object-Oriented Approach” 2nd

ed. 2005.

Fowler, Martin. Panduan Singkat Bahasa Pemodelan Objek Standar. Edisi 3.

Yogyakarta: Penerbit Andi: 2005.

Gunawan, Fery, Membuat Aplikasi SMS Gateway Server dan Client dengan JAVA

dan PHP. Jakarta: PT. Elex Media Komputindo: 2003.

Martina, Inge, Ir., 36 Jam Belajar Komputer Microsoft SQL Server 2000. Jakarta:

PT. Elex Media Komputindo: 2003.

Munawar. Pemodelan Visual Dengan UML. Cetakan Pertama. Jakarta: UIEU-

University Press dan Yogyakarta: Graha Ilmu: 2005

Nugroho, Bunafit, Membuat Sistem Informasi Penjualan Berbasis WEB dengan

PHP dan MySQL. Yogyakarta: Gava Media: 2008.

Nugroho, Bunafit. Trik dan Rahasia Membuat Aplikasi Web dengan PHP.

Jogjakarta: Penerbit Gava Media: 2007.

O’Brien, James A. Introduction to Information Systems. Edisi 11. New York:

McGraw-Hill/Irwin: 2003.

Supardi, Yuniar, Ir., Sistem Informasi Penjualan dengan JAVA. Jakarta: PT.Elex

Media Komputindo: 2008.

(2)

LAMPIRAN LISTING PROGRAM

login.html (Halaman Login)

<html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico"> </head>

<script language="JavaScript">

function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document;

if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

if(!x && d.getElementById) x=d.getElementById(n); return x;}

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}

</script>

<body style="font-family:tahoma" onLoad="form1.uid.focus()"> <center>

<table width="100%" height="100%" border="0" cellpadding="0" bgcolor="DEE1E2">

<form name="form1" action="koneksi.php" method="POST">

<tr><td>

<table border = "0" align="center" width="400" height="250" bgcolor="91D1E3" cellpadding="0">

<th colspan="2" align="center"

style="background-color:blue;color:white;font-family:Tahoma">Masukan Nama User dan Password Panitia PSB</th>

<tr><td>

<table width="250" height="250">

<tr><td><a href="#top" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('maskot','','images/hp_buram.jpg',1)"><img src="images/hp.jpg" alt="maskot" name="maskot" width="250" height="250" border="0"></a></td></tr>

</table></td>

<td><table width="150" height="250" border="0" cellpadding="0"> <tr><td>&nbsp;</td></tr>

(3)

<tr><td><input style="border-right: #a7a7a7 1px solid; border-top: #a7a7a7 1px solid; left: #a7a7a7 1px solid; width: 137px; border-bottom: #a7a7a7 1px solid; height: 18px" type="text" name="uid"

onKeyDown="javascript:(event.keyCode == 13)? form1.pas.focus():''"> </td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td> <img src="images/password.gif"></td></tr>

<tr><td><input style="border-right: #a7a7a7 1px solid; border-top: #a7a7a7 1px solid; left: #a7a7a7 1px solid; width: 137px; border-bottom: #a7a7a7 1px solid; height: 18px"type="password" name="pas" onKeyDown="javascript:(event.keyCode == 13)? submit():''"></td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td colspan="2" align="center"><a href="#top"

onMouseOut="MM_swapImgRestore()"onMouseOver="MM_swapImage('login','','ima ges/login_go2.gif',1)"> <img src="images/login_go.gif" alt="login" name="login" onClick="javascript:submit(); style="cursor:hand;" border="0"></a></td></tr>

<tr><td>&nbsp;</td></tr>

</table></td> </tr></table></td></tr> </form></table></center></body></html>

main.php (Halaman Utama)

<?php session_start(); include ("./chk.php"); include ("./header.php"); include ("./footer.php"); ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<center> <body>

<?php header_show()?>

<H1>Selamat Datang <?php echo $_SESSION['user']?> </H1> <hr width="778">

<body>

<form name="form1">

<table border="0" align="center" cellspacing="0" cellpadding="0"> <tr>

<td><a href="konektifitas.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('konektifitas','','images/notes_off.png',1)"><i mg src="images/notes.png" alt="konektifitas" name="konektifitas"

width="100" height="100" border="0"></a></td>

<td><a href="pendaftaran.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('pendaftaran','','images/translate_off.png',1)" ><img src="images/translate.png" alt="Pendaftaran" name="pendaftaran" width="100" height="100" border="0"></a></td>

(4)

<td><a href="reporting.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('maskot3','','images/units_off.png',1)"><img src="images/units.png" alt="Laporan" name="maskot3" width="100"

height="100" border="0"></a></td>

<td><a href="sms_kontrol.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('sms_kontrol','','images/purchase_off.png',1)"> <img src="images/purchase.png" alt="SMS kontrol" name="sms_kontrol" width="100" height="100" border="0"></a></td>

<td><a href="user_list.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('User_List','','images/spelling_off.png',1)"><i mg src="images/spelling.png" alt="Data User" name="User_List" width="100" height="100" border="0"></a></td>

</tr>

</table> </form>

<hr width="778">

<table border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td>

<?php footer_show()?> </td></tr>

</table></body></center></html>

contact.php (Halaman Contact Us)

<?php session_start(); include ("./header.php"); include ("./footer.php"); include ("./chk.php"); ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<?php header_show()?>

<table border="0" width="778" cellpadding="2" cellspacing="15" align="center">

<tr>

<td class="deskripsi" width="90%"> <div align="justify">

<h3>[email protected]</h3>

Sistem ini dirancang untuk memenuhi tugas akhir Jurusan Sistem Informasi Fakultas Ilmu Komputer Universitas Mercubuana oleh M.DAHLAN KURNIA (41808120014) kelas PKK angakatan ke-14.

</div></td></tr>

</table>

<hr width="778">

<table border="0 " align="center" cellpadding="0" cellspacing="0"> <tr><td>

<?php footer_show()?> </td></tr>

(5)

about.php (Halaman About)

<?php session_start(); include ("./header.php"); include ("./footer.php"); ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<?php header_show()?>

<table border="0" width="778" cellpadding="2" cellspacing="15" align="center">

<tr>

<td class="deskripsi" width="50%"> <div align="justify">

<h3>Latar Belakang</h3>

Layanan administrasi pendidikan pada suatu sekolah akan sangat menentukankeberhasilan sekolah dalam memperoleh perserta didik. Kegiatan penerimaan siswa baru (PSB) yang didalamnya terdapat proses

pendaftaran harus mampu menawarkan kemudahan tanpa melupakan prosedur yang berlaku. Untuk itu dirancang sistem pendaftaran siswa baru berbasis SMS gateway, dengan harapan selain memberikan kemudahan juga ada semacam ikatan formal antara calon peserta didik dengan pihak sekolah.

</div> </td>

<td class="deskripsi"> <div align="justify">

<h3>Tentang Aplikasi</h3>

Aplikasi ini berfungsi sebagai interface dengan sistem pendaftaran siswa baru berbasis SMS gateway. Untuk saat ini belum bisa dipublikasikan, karena masih bersifat internal untuk keperluan panitia PSB dalam manajemen SMS pada proses pendaftaran.

Informasi lebih lanjut

<a href="contact.php" target="_self">hubungi kami.</a>

</div></td></tr></table>

<hr width="778">

<table border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td><?php footer_show()?></td></tr> </table></body></html>

header.php

<?php function header_show() { ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico"> <meta name="GENERATOR" content="Pendaftaran"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="expires" content="0">

(6)

<meta http-equiv="cache-control" content="no-cache">

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head>

<script language="JavaScript" type="text/JavaScript"> function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document;

if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].do cument);

if(!x && d.getElementById) x=d.getElementById(n); return x;}

function MM_swapImage() { //v3.0

var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}} </script> <body> <center>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0"><tr>

<td><img src="images/header1.gif" width="778" height="150"></td></tr> </table>

<table width="778" border="0 " align="center" cellpadding="0" cellspacing="0"><tr>

<td width="55"><img src="images/header2.jpg" width="55" height="43"></td> <td width ="17"><a href="main.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','images/home_2.gif',1)"><img src="images/home_1.gif" alt="home" name="home" width="63" height="43" border="0"></a></td>

<td width ="114" valign="middle"><a href="about.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('about','','images/aboutus_2.gif',1)"><img src="images/aboutus_1.gif" alt="about" name="about" width="114" height="43" border="0"></a></td>

<td width ="111"><a href="contact.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contactus','','images/contactus_2.gif',1)"><im g src="images/contactus_1.gif" alt="contactus" name="contactus"

width="108" height="43" border="0"></a></td>

<td width ="455"><img src="images/header3.gif" width="438" height="43"></td></tr></table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0"></table></center></body></html>

<? } ?>

(7)

Footer.php

<?php function Footer_show() { global $db; global $styles; $sFormTitle = ""; $fldField1 = "main.php"; $fldField2 = "about.php"; $fldField3 = "Contact.php"; ?> <table style="width:100%"> <tr>

<td style="background-color: #FFFFFF; border-width: 1"><a href="<?= $fldField1?>"><font style="font-size: 10pt; color: #000000">Home | </font></a></td>

<td style="background-color: #FFFFFF; border-width: 1"><a href="<?= $fldField2?>"><font style="font-size: 10pt; color: #000000">About | </font></a></td>

<td style="background-color: #FFFFFF; border-width: 1"><a href="<?= $fldField3?>"><font style="font-size: 10pt; color: #000000">Contact Us</font></a></td> </tr> </table> <?php } ?>

chk.php

<?php session_start(); if (!isset($_SESSION['user'])) { ?> <script language="javascript">

alert("Maaf, anda belum melakukan proses login kedalam system."); document.location = "login.html"; </script> <? } ?>

db_koneksi.php

<?php $server="localhost"; $user="root"; $pass="";

$make_connection = mysql_connect($server, $user, $pass); if(!make_connection){

echo("Connection Failed!"); exit;}

mysql_select_db('pendaftaran'); ?>

(8)

pendaftaran.php (Halaman Pendaftaran)

<?php session_start(); include ("./header.php"); include ("./footer.php"); include ("./chk.php"); ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<center> <body>

<?php header_show()?>

<H1>Halaman Pendaftaran Siswa Baru<br></H1> <hr width="778">

<body>

<form name="form1">

<table border="0" align="center" cellspacing="0" cellpadding="0"> <tr>

<td><a href="daftar.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('Pendaftaran','','images/daftar.gif',1)"><img src="images/daftar_off.gif" alt="Pendaftaran" name="Pendaftaran"

width="100" height="100" border="0"></a></td>

<td><a href="tes_ujian_masuk.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Tes_Ujian_Masuk','','images/ujian_off.gif',1)" ><img src="images/ujian.gif" alt="Tes Ujian Masuk" name="tes_ujian_masuk" width="100" height="100" border="0"></a></td>

<td><a href="reporting.php" onMouseOut="MM_swapImgRestore()"

onMouseOver="MM_swapImage('send','','images/report_off.gif',1)"><img src="images/report.gif" alt="Laporan" name="send" width="100"

height="100" border="0"></a></td> </tr> <tr>

</tr></table></form>

<hr width="778">

<table border="0 " align="center" cellpadding="0" cellspacing="0"> <tr><td>

<?php footer_show()?> </td></tr></table> </body></center></html>

Daftar.php (Halaman Data Pendaftaran)

<? session_start(); include ("./db_koneksi.php"); include ("./chk.php"); include ("./footer.php"); include ("./header.php"); //include ("./auto_respon1.php"); ?> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<center>

<?php header_show()?>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">

(9)

<tr> <td align="center"> <?php $dataPerPage = 10; if(isset($_GET['page'])) { $noPage = $_GET['page']; } else $noPage = 1;

$offset = ($noPage - 1) * $dataPerPage;

$query = "SELECT * FROM Pendaftaran LIMIT $offset, $dataPerPage"; $result = mysql_query($query) or die('Error');

$msg = strtoupper($data['TextDecoded']); $pecah = explode("#", $msg);

echo "<br>";

echo "<h3>Halaman Data Pendaftar</h3>"; echo "<hr>";echo "<br>";

echo "<table cellpading = 7 width=100% align=center border='0' style='font-family : arial;font-size : 14'>";

echo "<tr>";

echo "<td style='background-color: blue; color: white; text-align: center;'>No.Daftar</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>No.Kirim</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Nama</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tempat Lahir</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tanggal Lahir</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Asal Sekolah</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tombol</td>";

echo "</tr>";

while($data = mysql_fetch_array($result)) {

echo "<tr bgcolor=#".($i % 2 ? "honeydew" : "66FF99").">"; echo "<td align='center'>$data[Id_SMS]</td>"; echo "<td>$data[No_Kirim]</td>"; echo "<td>$data[Nama]</td>"; echo "<td>$data[Tempat_Lahir]</td>"; echo "<td>$data[Tanggal_Lahir]</td>"; echo "<td>$data[Asal_Sekolah]</td>"; echo "<td align='center'><a href='hapus_daftar.php?Id_SMS=$data[Id_SMS]'>Hapus</a></td>"; echo "</tr>"; $i=$i+1; } echo "</table>";

$query = "SELECT COUNT(*) AS jumData FROM pendaftaran"; $hasil = mysql_query($query);

$data = mysql_fetch_array($hasil); $jumData = $data['jumData'];

$jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a

href='".$_SERVER['PHP_SELF']."?page=".($noPage-1)."'>Prev</a>"; for($page = 1; $page <= $jumPage; $page++)

(10)

if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage))

{

if (($showPage == 1) && ($page != 2)) echo "...";

if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "...";

if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a

href='".$_SERVER['PHP_SELF']."?page=".$page."'>".$page."</a> "; $showPage = $page;

} }

if ($noPage < $jumPage) echo "<a

href='".$_SERVER['PHP_SELF']."?page=".($noPage+1)."'>Next</a>"; ?>

</td></tr>

<tr><td align="center">&nbsp;</td></tr><tr><td align="center"> <hr></td></tr></table>

<table border="0 " align="center" cellpadding="0" cellspacing="0"> <tr><td><?php footer_show()?></td></tr>

</table></center>

Tes_ujian_masuk.php (Halaman Data Peserta Ujian Masuk)

<? session_start(); include ("./db_koneksi.php"); include ("./chk.php"); include ("./footer.php"); include ("./header.php"); //include ("./auto_respon1.php"); ?> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<center>

<?php header_show()?>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <?php $dataPerPage = 10; if(isset($_GET['page'])) { $noPage = $_GET['page']; } else $noPage = 1;

$offset = ($noPage - 1) * $dataPerPage;

$query = "SELECT A.*, B.* FROM pendaftaran A LEFT OUTER JOIN calon_siswa B ON A.Id_SMS = B.Id_SMS WHERE 1 LIMIT $offset, $dataPerPage";

$result = mysql_query($query) or die('Error'); echo "<br>";

echo "<h3>Data Tes Ujian Masuk</h3>"; echo "<hr>";echo "<br>";

echo "<table cellpading = 7 width=100% align=center border='0' style='font-family : arial;font-size : 14'>";

(11)

echo "<tr>";

echo "<td style='background-color: blue; color: white; text-align: center;'>No.Ujian</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Nama</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tempat Lahir</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tanggal Lahir</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tanggal Ujian</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Ruang Ujian</td>";

echo "<td style='background-color: blue; color: white; text-align: center;'>Tombol</td>";

echo "</tr>";

while($data = mysql_fetch_array($result)) {

echo "<tr bgcolor=#".($i % 2 ? "honeydew" : "66FF99").">"; echo "<td align='center'>$data[Id_SMS]</td>"; echo "<td>$data[Nama]</td>"; echo "<td>$data[Tempat_Lahir]</td>"; echo "<td>$data[Tanggal_Lahir]</td>"; echo "<td>$data[Tanggal_Ujian]</td>"; echo "<td>$data[Ruang_Ujian]</td>"; echo "<td align='center'><a href='update_ujian_masuk.php?Id_SMS=$data[Id_SMS]'>Update</a></td>"; echo "</tr>"; $i=$i+1; } echo "</table>";

$query = "SELECT COUNT(*) AS jumData FROM pendaftaran"; $hasil = mysql_query($query);

$data = mysql_fetch_array($hasil); $jumData = $data['jumData'];

$jumPage = ceil($jumData/$dataPerPage); if ($noPage > 1) echo "<a

href='".$_SERVER['PHP_SELF']."?page=".($noPage-1)."'>Prev</a>"; for($page = 1; $page <= $jumPage; $page++)

{

if ((($page >= $noPage - 3) && ($page <= $noPage + 3)) || ($page == 1) || ($page == $jumPage))

{

if (($showPage == 1) && ($page != 2)) echo "...";

if (($showPage != ($jumPage - 1)) && ($page == $jumPage)) echo "...";

if ($page == $noPage) echo " <b>".$page."</b> "; else echo " <a

href='".$_SERVER['PHP_SELF']."?page=".$page."'>".$page."</a> "; $showPage = $page;

} }

if ($noPage < $jumPage) echo "<a

href='".$_SERVER['PHP_SELF']."?page=".($noPage+1)."'>Next</a>"; ?> </td> </tr> <tr> <td align="center"> &nbsp; </td></tr><tr> <td align="center"> <hr></td></tr> </table>

(12)

<table border="0 " align="center" cellpadding="0" cellspacing="0"> <tr><td><?php footer_show()?></td></tr>

</table></center>

Update_data_ujian_masuk.php (Halaman update data ujian masuk)

<?php session_start(); include ("./chk.php"); include ("./footer.php"); include ("./header.php"); include ("./db_koneksi.php"); $ID = $_GET['Id_SMS'];

$SQL1 = "SELECT * FROM pendaftaran WHERE Id_SMS ='$ID'"; $qry = mysql_query($SQL1); while($data= mysql_fetch_array($qry)); $ID = $data[Id_SMS]; $nama= $data[Nama]; $tmp = $data[Tempat_Lahir]; $tgl = $data[Tanggal_Lahir]; ?> <html> <head> <title>Akses MySQL</title> </head> <body> <?php header_show()?>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">

<tr><td align="center"><br></br>

<form action="simpan_ujian_masuk.php" method="post" name="form1" target="_self">

<table width="350" border="1"> <tr bgcolor="#66FFFF">

<td colspan="2"><b>Update Data Tes Ujian Masuk</b></td></tr> <tr>

<td width="96">No.Daftar</td> <td width="248">:

<input name="TxtID" type="text" value="<? echo "$ID"; ?>" size="10" maxlength="6" disabled>

</tr>

<tr> <td>Nama</td> <td>:

<input name="TxtNama" type="text" value="<? echo "$nama"; ?>" size="30" maxlength="35" disabled></td></tr>

<tr> <td>Tempat Lahir</td><td>:

<input name="TxtTmp" type="text" value="<? echo "$tmp"; ?>" size="30" maxlength="60" disabled></td>

</tr><tr>

<td>Tanggal Lahir</td> <td>:

<input name="TxtTgl" type="text" value="<? echo "$tgl"; ?>" size="30" maxlength="60" disabled></td>

</tr>

<td>Tanggal Ujian</td> <td>:

<input name="TxtTgl" type="text" value="<? echo "$tgl"; ?>" size="30" maxlength="60"></td>

(13)

</tr>

<td>Ruang Ujian</td> <td>:

<input name="TxtTgl" type="text" value="<? echo "$tgl"; ?>" size="30" maxlength="60"></td></tr>

<tr> <td></td>

<td><input type="submit" name="Submit" value="Simpan"></td> </tr>

</table><br></br>

<table border="0" align="center" cellpadding="0" cellspacing="0"><tr> <td><?php footer_show()?></td></tr>

</table></form></body></html>

Reporting.php (Halaman Pelaporan)

<?php session_start(); include ("./header.php"); include ("./footer.php"); include ("./chk.php"); ?> <html> <head>

<title>Pendaftaran Siswa Baru</title>

<link rel="Shortcut Icon" href="Images/1420.ico">

<link href="style.css" rel="stylesheet" type="text/css"> </head> <center> <body> <?php header_show()?> <H1>HALAMAN REPORT<br></H1> <hr width="778"> <body> <form name="form1">

<table border="0" align="center" cellspacing="0" cellpadding="0"> <tr>

<td><a href="report_form_daftar.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rpt_pendaftaran','','images/rpt_pendaftaran_of f.gif',1)"><img src="images/rpt_pendaftaran.gif" alt="Laporan

Pendaftaran" name="rpt_pendaftaran" width="100" height="100" border="0"></a></td>

<td><a href="report_form_test.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('rpt_ujianmasuk','','images/rpt_ujian_masuk_off .gif',1)"><img src="images/rpt_ujian_masuk.gif" alt="Laporan Tes Ujian Masuk" name="rpt_ujianmasuk" width="100" height="100"

border="0"></a></td></tr> <tr>

</tr></table></form> <hr width="778">

<table border="0" align="center" cellpadding="0" cellspacing="0"> <tr><td><?php footer_show()?></td></tr>

(14)

konektifitas.php (Halaman Konektifitas)

<?php session_start(); include ("./db_koneksi.php"); include ("./chk.php"); include ("./footer.php"); include ("./header.php"); ?> <html> <head>

<!-- refresh script setiap 10 detik -->

<meta http-equiv="refresh" content="10; url=<?php $_SERVER['PHP_SELF']; ?>">

<link href="style.css" rel="stylesheet" type="text/css"> </head>

<body> <center>

<?php header_show()?>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td align="center"></td> <br><hr width="778">

<font size="5" color="Red">

<b>SMS server sedang berjalan....</b></font></tr></table>

<?

$query1 = "SELECT * FROM phones WHERE 1"; $hasil1 = mysql_query($query1);

while($data1 = mysql_fetch_array($hasil1)) {

echo "<table width=80%>";

echo "<td align='justify' width=80%> Koneksi SMS Gateway memanfaatkan alat komunikasi dengan IMEI

<B>$data1[IMEI]</B>, kondisi baterai <B>$data1[Battery]</B>, kualitas sinyal <B>$data1[Signal]</B>,

jumlah SMS masuk <B>$data1[Received]</B>, SMS terkirim < B>$data1[Sent]</B>, dari waktu terakhir aktif <

B>($data1[InsertIntoDB])</B></td>"; echo "</table>";

$query_r = "SELECT * FROM inbox WHERE Processed = 'false'"; $hasil_r = mysql_query($query_r);

while ($data_r = mysql_fetch_array($hasil_r)) { $id = $data_r['ID']; $no_pengirim = $data_r['SenderNumber']; $msg = strtoupper($data_r['TextDecoded']); $pecah = explode("#", $msg); switch ($pecah[0]) { case "DAFTAR": $nama = $pecah[1]; $tempat = $pecah[2]; $tgl = $pecah[3]; $asal = $pecah[4];

$query_nama = "SELECT Nama FROM Pendaftaran WHERE Nama=$nama";

$hasil_nama = mysql_query(query_nama);

$tgl_query = "Select left(now(),10) as tglxx"; $tgl_hasil = mysql_query($tgl_query);

(15)

$data_tgl = mysql_fetch_array($tgl_hasil);

if (mysql_num_rows($hasil_nama)==0) {

$query_insert = "INSERT INTO Pendaftaran VALUES ('$id','$no_pengirim', '$nama', '$tempat', '$tgl','$asal','','$data_tgl[tglxx]')"; $eksekusi = mysql_query($query_insert);

$reply_isi = "Pendaftaran diterima. No ID anda adalah ".$id." Untuk konfirmasi ketik KONFIRMASI#ID#YA/TIDAK"; }else{

$reply_isi = "Nama ".$nama." sudah terdaftar"; }

case "KONFIRMASI": $sid = $pecah[1]; $isi = $pecah[2];

$query_data = "SELECT Id_SMS, Nama FROM Pendaftaran WHERE Id_SMS=$sid";

$hasil_data = mysql_query(query_data);

if(mysql_num_rows($hasil_data)==0)$reply_isi = "ID ".$sid." tidak terdaftar!"; else { switch ($isi) { case "YA":

$query_update = "UPDATE Pendaftaran SET konfirmasi =1 WHERE Id_SMS=$sid";

$ekse_upd = mysql_query($query_update);

$reply_isi = "Konfirmasi untuk ID ".$sid." diterima";

case "TIDAK":

$query_update = "UPDATE Pendaftaran SET konfirmasi =0 WHERE Id_SMS=$sid";

$ekse_upd = mysql_query($query_update);

$reply_isi = "Konfirmasi untuk ID ".$sid." diterima"; default:

$reply_isi = "Format sms Konfirmasi salah. ketik KONFIRMASI#ID#YA/TIDAK";

}

}

default:

$reply_isi = "Format sms salah. ketik

DAFTAR#NM_LNGKP#TMPT_LHR#TGL_LHR#ASAL_SEKOLAH atau KONFIRMASI#ID#YA/TIDAK";

}

$query_o = "INSERT INTO outbox(DestinationNumber, TextDecoded) VALUES ('$no_pengirim', '$reply_isi')";

$hasil_o = mysql_query($query_o);

$query_x = "UPDATE inbox SET Processed = 'true' WHERE ID = '$id'"; $hasil_x = mysql_query($query_x);

} } ?>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">

<tr><td align="center">&nbsp;</td></tr>

<tr><td align="center"><hr width="778"></td></tr>

</table><table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td>

Referensi

Dokumen terkait

Strategi pembelian material impor yang dapat dilakukan untuk menghindari terjadinya perubahan nilai tukar mata uang asing terhadap rupiah adalah dengan selalu

2) Pada tataran akomodasi mahasiswa meyakini nilai-nilai yang terkandung dalam pernikahan dan berkeluarga sebagai upaya untuk menciptakan masyarakat yang bermartabat.

Kemudian, kurikulum dalam bahasan ini, bukan pembahasan kurikulum dalam arti sempit berupa daftar mata pelajaran yang harus diajarkan pada peserta didik, tetapi kurikulum

[r]

Sebagai lembaga pendidikan umum yang agamis, madrasah adalah.. lembaga manusia yang mengangkat derajatnya, 6 sebagaimana firman

Pokok masalah penelitian ini adalah membahas tentang Tafsir al-Misbah dan nilai pendidikan akhlak dalam surah al-An’am ayat 152. Penelitian ini bertujuan untuk menganalisis

Pengaruh Infeksi Cacing Ascaridia galli Terhadap Respon Sel Goblet dan Sel Mast pada Usus Halus Ayam Petelur.. Study of Bioactive Substance from Ascaridia galli Adult Worm

Salah satu fungsi dari manajemen sumber daya manusia yaitu rekrutmen tenaga kerja berdasarkan wawancara awal dengan salah satu pengerja gereja GKS FS (inisial)