Sistem Ujian Online Beserta Informasi Hasil Uji Yang Terintegerasi Berbasis Website

(1)

Admin.php

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <div class="artikel"> <p>

Hi there! Welcome to the administrator workspace website!

Your role here is to input all the data that the lectors gave you!

wether it's a score or exam's questions! That's all for the explanations folks!

If ya don't get it, well you're worse than me! </p>

</div>

<form action="admin_login.php" method="POST"> <table class="menu-admin">

<tr> <th> LOG IN </th> </tr>

<tr> <td> NIP </td> <td> : </td> <td> <input type="text" name="nip"> </td> </tr>

<tr> <td> Password </td> <td> : </td> <td> <input type="password" name="pasword"> </td> </tr>

<tr> <td align="center"> <input type="submit" value="LOG IN"> </td> </tr>

</table> </form> </div>

<footer id="foot01"></footer> </body>

</html>


(2)

<?php

include("koneksi.php"); $nip=$_POST['nip'];

$pasword=$_POST['pasword'];

$q="SELECT * FROM `admin` WHERE `admin`.`nip`='$nip' AND `admin`.`pasword`='$pasword'";

$exe=mysql_query($q);

if(mysql_num_rows($exe)>0){ session_start();

$_SESSION['nip']=$nip;

header('location:admin_halaman_akun.php'); exit;}

else{

header('location:admin.php?notification=login-gagal');

exit;} ?>

Admin_halaman_akun.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<table align="center" cellpadding="20" id="menu- inti-admin">

<tr> <td>


(3)

<table align="center">

<tr> <th align="center"> Select a Subject </th> </tr> <tr> <td align="center"> <select name="makul_admin"> <option value="sejarah"> History </option>

<option value="visual"> Visual Basic </option> <option value="inggris"> English </option> <option value="jepang"> Japanese </option> </select> </td> </tr>

<tr> <td align="center"> <input type="submit" value="Proceed"> </td> </tr>

</table>

</form> </td>

<td> <form action="admin_proses_lihat_soal.php" method="POST">

<table align="center">

<tr> <th align="center"> Check The Question </th> </tr> <tr> <td align="center"> <select name="makul_admin2"> <option value="sejarah"> History </option>

<option value="visual"> Visual Basic </option> <option value="inggris"> English </option> <option value="jepang"> Japanese </option> </select> </td> </tr>

<tr> <td align="center"> <input type="submit" value="Check"> </td> </tr>

</table>

</form> </td> </tr> <tr> <td>

<form action="admin_pilihan_esai.php" method="POST"> <table align="center">

<tr> <th align="center"> Select a Subject (Essay) </th> </tr>

<tr> <td align="center"> <select name="soal_esai"> <option value="sejarah"> History </option>

<option value="visual"> Visual Basic </option> <option value="inggris"> English </option> <option value="jepang"> Japanese </option> </select> </td> </tr>

<tr> <td align="center"> <input type="submit" value="Proceed"> </td> </tr>

</table>

</form> </td>

<td> <form action="admin_proses_lihat_soal_esai.php" method="POST">

<table align="center">

<tr> <th align="center"> Check The Questions (Essay) </th> </tr>


(4)

<option value="sejarah"> History </option> <option value="visual"> Visual Basic </option> <option value="inggris"> English </option> <option value="jepang"> Japanese </option> </select> </td> </tr>

<tr> <td align="center"> <input type="submit" value="Check"> </td> </tr>

</table>

</form> </td> </tr> <tr> <td>

<form action="admin_periksa_jawaban_mhs.php" method="POST">

<table>

<tr> <th> Check The Students Answers (Essay) </th> </tr>

<tr> <td align="center"> <select name="periksa"> <option value="sejarah"> History </option>

<option value="visual"> Visual Basic </option> <option value="inggris"> English </option> <option value="jepang"> Japanese </option> </select> </td> </tr>

<tr> <td align="center"> <input type="submit" value="Check"> </td> </tr>

</table> </form> </td>

<td align="center"> <a

href="admin_pengaturan_akses.php"> Gate Settings </a></td>

</tr> <tr>

<td colspan="2" align="center"> <a href="admin_pengaturan_waktu.php"> Time Settings </a> </td>

</tr> </table>

<div id="logout-admin">

<a class="a" href="admin_logout.php"> Log Out </a> </div>

</div> </div>

<footer class="a"></footer> </body>

</html>


(5)

<?php

include "koneksi.php";

$_POST['pil_makul']=$_POST['makul_admin']; if ($_POST['pil_makul']== 'sejarah')

{

header('location:admin_input_soal_sejarah.php'); }

elseif ($_POST['pil_makul'] == 'visual') {

header('location:admin_input_soal_visual.php'); }

elseif ($_POST['pil_makul'] == 'inggris') {

header('location:admin_input_soal_inggris.php'); }

elseif ($_POST['pil_makul'] == 'jepang') {

header('location:admin_input_soal_jepang.php'); }

else {

echo"There is no process here"; }

?>

Admin_proses_lihat_soal.php <?php

include "koneksi.php";

$_POST['pil_makul2']=$_POST['makul_admin2']; if ( $_POST['pil_makul2']== 'sejarah')

{

header('location:admin_lihat_soal_sejarah.php'); }

elseif ($_POST['pil_makul2'] == 'visual') {

header('location:admin_lihat_soal_visual.php'); }

elseif ($_POST['pil_makul2'] == 'inggris') {

header('location:admin_lihat_soal_inggris.php'); }

elseif ($_POST['pil_makul2'] == 'jepang') {

header('location:admin_lihat_soal_jepang.php'); }


(6)

else {

echo"There is no process here"; }

?>

Admin_pilihan_esai.php <?php

include "koneksi.php"; $esai=$_POST['soal_esai']; if ($esai == 'sejarah') {

header('location:admin_input_soal_esai_sejarah.php'); }

elseif ($esai == 'visual') {

header('location:admin_input_soal_esai_visual.php'); }

elseif ($esai == 'inggris') {

header('location:admin_input_soal_esai_inggris.php'); }

elseif ($esai == 'jepang') {

header('location:admin_input_soal_esai_jepang.php'); }

else {

echo"There is no process here"; }

?>

Admin_proses_lihat_soal_esai.php <?php

include "koneksi.php";

$soal=$_POST['soal_esai2']; if ( $soal== 'sejarah') {

header('location:admin_lihat_soal_esai_sejarah.php'); }

elseif ($soal == 'visual') {


(7)

}

elseif ($soal == 'inggris') {

header('location:admin_lihat_soal_esai_inggris.php'); }

elseif ($soal == 'jepang') {

header('location:admin_lihat_soal_esai_jepang.php'); }

else {

echo"There is no process here"; }

?>

Admin_periksa_jawaban_mhs.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_jawaban_mhs.php" method="POST"> <table align="center" cellpadding="10" >

<th colspan="3"> Select A Student By NIM </th> <?php

include "koneksi.php";

$makul = $_POST['periksa']; ?>


(8)

<tr align="center"> <td> NIM </td> <td align="right"> : </td> <td> <select name="matakul">

<?php

if ($makul=='sejarah') {

$q=mysql_query("SELECT `NIM` FROM jawaban_sejarah"); while ($row = mysql_fetch_array($q))

{

echo" <option value=\"".$row['NIM']."\" >".$row['NIM']."</option> ";

} }

elseif ($makul=='visual') {

$q=mysql_query("SELECT `NIM` FROM jawaban_visual"); while ($row = mysql_fetch_array($q))

{

echo" <option value=\"".$row['NIM']."\" >".$row['NIM']."</option> ";

} }

elseif ($makul=='inggris') {

$q=mysql_query("SELECT `NIM` FROM jawaban_inggris"); while ($row = mysql_fetch_array($q))

{

echo" <option value=\"".$row['NIM']."\" >".$row['NIM']."</option> ";

} }

elseif ($makul=='jepang') {

$q=mysql_query("SELECT `NIM` FROM jawaban_jepang"); while ($row = mysql_fetch_array($q))

{

echo" <option value=\"".$row['NIM']."\" >".$row['NIM']."</option> ";

} } else {

echo "There are no proccess here!"; }

?>

</select> </td> </tr>

<tr align="center"> <td> Subject </td> <td align="right"> : </td> <td> <select name="kuliah">


(9)

<?php

if ($makul=='sejarah') {

echo"<option value='1'> History </option> "; }

elseif ($makul=='visual') {

echo"<option value='2'> Visual Basic </option> "; }

elseif ($makul=='inggris') {

echo"<option value='3'> English </option> "; }

elseif ($makul=='jepang') {

echo"<option value='4'> Japanese </option> "; }

?>

</select> </td> </tr>

<tr> <td colspan="3" align="center"> <input type="submit" value="Check"> </td> </tr>

</table> </form> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_jawaban_mhs.php

<?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>


(10)

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_proses_nilai_mahasiswa.php" method="POST">

<table align="center" cellpadding="15" border="1">

<th> No. </th> <th> Question </th><th> Answer </th> <th> Score per Question (1-10) </th> <th> Current Score </th><tr>

<?php

include "koneksi.php"; $makul=$_POST['kuliah']; $nim=$_POST['matakul']; $i=1;

if ($makul==1) {

$matakuliah="History";

$q="SELECT * FROM `esai_sejarah` , `jawaban_sejarah` , `nilai_esai_sejarah` WHERE `jawaban_sejarah`.`NIM` = '$nim' AND `nilai_esai_sejarah`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['nes']."</td> <td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td> <input type='text' name='nilai[".$i."]'> </td>

<td align='center'>

".$out['soal_esai_sejarah_'.$i.'']."</td> </tr> "; $i++;

} }

else if ($makul==2) {

$matakuliah="Visual";

$q="SELECT * FROM `esai_visual` , `jawaban_visual` ,`nilai_esai_visual` WHERE `jawaban_visual`.`NIM` = '$nim' AND `nilai_esai_visual`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {


(11)

echo "<td>".$out['nev']."</td> <td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td> <input type='text' name='nilai[".$i."]'> </td>

<td align='center'>

".$out['soal_esai_visual_'.$i.'']."</td> </tr> "; $i++;

} }

else if ($makul==3) {

$matakuliah="English";

$q="SELECT * FROM `esai_inggris` , `jawaban_inggris` , `nilai_esai_inggris` WHERE `jawaban_inggris`.`NIM` = '$nim' AND `nilai_esai_inggris`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['nei']."</td> <td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td> <input type='text' name='nilai[".$i."]'> </td>

<td align='center'>

".$out['soal_esai_inggris_'.$i.'']."</td> </tr> "; $i++;

} }

else if ($makul==4) {

$matakuliah="Japanese";

$q="SELECT * FROM `esai_jepang` , `jawaban_jepang` ,`nilai_esai_jepang` WHERE `jawaban_jepang`.`NIM` = '$nim' AND `nilai_esai_jepang`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['nej']."</td> <td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td> <input type='text' name='nilai[".$i."]'> </td>

<td align='center'>

".$out['soal_esai_jepang_'.$i.'']."</td> </tr> "; $i++;

} } else {


(12)

echo "There are no process here. Please try again later.";

}

echo "<tr> <td colspan='3' align='center'> <select name='nim'>

<option value=".$nim."> ".$nim."</option>

</td> <td colspan='2' align='center'> <select name='matakuliah'>

<option

value=".$matakuliah.">".$matakuliah."</option> </td> </tr> ";

?>

<tr> <td colspan="5" align="center"> <input type="submit" value="Update" > </td> </tr>

</table> </form> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_proses_nilai_mahasiswa.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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


(13)

<body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <?php

include 'koneksi.php';

$makul=$_POST['matakuliah']; $nilai=$_POST['nilai'];

$nim=$_POST['nim']; $i=1;

foreach ($nilai as $key => $value) { $tmp[$i] = $value;

if ($value > 10) {

echo "Please fill the score form more carefully. <a href='admin_halaman_akun.php'> Home</a>";

}

elseif ($value <=10) {

$i++; } }

if ($makul=="History") {

$nilai1= $tmp[1]; $nilai2= $tmp[2]; $nilai3= $tmp[3]; $nilai4= $tmp[4]; $nilai5= $tmp[5]; $nilai6= $tmp[6]; $nilai7= $tmp[7]; $nilai8= $tmp[8]; $nilai9= $tmp[9]; $nilai10= $tmp[10];

$total =

$nilai1+$nilai2+$nilai3+$nilai4+$nilai5+$nilai6+$nilai7 +$nilai8+$nilai9+$nilai10;

$q="UPDATE `nilai_esai_sejarah` SET

`soal_esai_sejarah_1`='$nilai1',`soal_esai_sejarah_2`=' $nilai2',

`soal_esai_sejarah_3`='$nilai3', `soal_esai_sejarah_4`='$nilai4',


(14)

`soal_esai_sejarah_6`='$nilai6', `soal_esai_sejarah_7`='$nilai7',

`soal_esai_sejarah_8`='$nilai8',

`soal_esai_sejarah_9`='$nilai9', `soal_esai_sejarah_10`='$nilai10',

`total_sejarah`='$total' WHERE `NIM`='$nim'"; if (mysql_query($q))

{

echo "Data Has Been Saved!"; ?>

<a href="admin_halaman_akun.php"> Back </a> <?php

} else {

echo "There has been an error. Please Try again later.";

} }

elseif ($makul=="Visual") {

$nilai1= $tmp[1]; $nilai2= $tmp[2]; $nilai3= $tmp[3]; $nilai4= $tmp[4]; $nilai5= $tmp[5]; $nilai6= $tmp[6]; $nilai7= $tmp[7]; $nilai8= $tmp[8]; $nilai9= $tmp[9]; $nilai10= $tmp[10];

$total =

$nilai1+$nilai2+$nilai3+$nilai4+$nilai5+$nilai6+$nilai7 +$nilai8+$nilai9+$nilai10;

$q="UPDATE `nilai_esai_visual` SET

`soal_esai_visual_1`='$nilai1',`soal_esai_visual_2`='$n ilai2',

`soal_esai_visual_3`='$nilai3', `soal_esai_visual_4`='$nilai4',

`soal_esai_visual_5`='$nilai5',

`soal_esai_visual_6`='$nilai6', `soal_esai_visual_7`='$nilai7',

`soal_esai_visual_8`='$nilai8',

`soal_esai_visual_9`='$nilai9', `soal_esai_visual_10`='$nilai10',

`total_visual`='$total' WHERE `NIM`='$nim'"; if (mysql_query($q))


(15)

{

echo "Data Has Been Saved!"; ?>

<a href="admin_halaman_akun.php"> Back </a> <?php

} else {

echo "There has been an error. Please Try again later.";

} }

elseif ($makul=="English") {

$nilai1= $tmp[1]; $nilai2= $tmp[2]; $nilai3= $tmp[3]; $nilai4= $tmp[4]; $nilai5= $tmp[5]; $nilai6= $tmp[6]; $nilai7= $tmp[7]; $nilai8= $tmp[8]; $nilai9= $tmp[9]; $nilai10= $tmp[10];

$total =

$nilai1+$nilai2+$nilai3+$nilai4+$nilai5+$nilai6+$nilai7 +$nilai8+$nilai9+$nilai10;

$q="UPDATE `nilai_esai_inggris` SET

`soal_esai_inggris_1`='$nilai1',`soal_esai_inggris_2`=' $nilai2',

`soal_esai_inggris_3`='$nilai3', `soal_esai_inggris_4`='$nilai4',

`soal_esai_inggris_5`='$nilai5',

`soal_esai_inggris_6`='$nilai6', `soal_esai_inggris_7`='$nilai7',

`soal_esai_inggris_8`='$nilai8',

`soal_esai_inggris_9`='$nilai9', `soal_esai_inggris_10`='$nilai10',

`total_inggris`='$total' WHERE `NIM`='$nim'"; if (mysql_query($q))

{

echo "Data Has Been Saved!"; ?>

<a href="admin_halaman_akun.php"> Back </a> <?php

} else


(16)

{

echo $total;

echo "There has been an error. Please Try again later.";

} }

elseif ($makul=="Japanese") {

$nilai1= $tmp[1]; $nilai2= $tmp[2]; $nilai3= $tmp[3]; $nilai4= $tmp[4]; $nilai5= $tmp[5]; $nilai6= $tmp[6]; $nilai7= $tmp[7]; $nilai8= $tmp[8]; $nilai9= $tmp[9]; $nilai10= $tmp[10];

$total =

$nilai1+$nilai2+$nilai3+$nilai4+$nilai5+$nilai6+$nilai7 +$nilai8+$nilai9+$nilai10;

$q="UPDATE `nilai_esai_jepang` SET

`soal_esai_jepang_1`='$nilai1',`soal_esai_jepang_2`='$n ilai2',

`soal_esai_jepang_3`='$nilai3', `soal_esai_jepang_4`='$nilai4',

`soal_esai_jepang_5`='$nilai5',

`soal_esai_jepang_6`='$nilai6', `soal_esai_jepang_7`='$nilai7',

`soal_esai_jepang_8`='$nilai8',

`soal_esai_jepang_9`='$nilai9', `soal_esai_jepang_10`='$nilai10',

`total_jepang`='$total' WHERE `NIM`='$nim'"; if (mysql_query($q))

{

echo "Data Has Been Saved!"; ?>

<a href="admin_halaman_akun.php"> Back </a> <?php

} else {

echo "There has been an error. Please Try again later.";

} ?> </div>


(17)

</div>

<footer class="a"></footer> </body>

</html>

Admin_Input_Soal_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_proses_soal_inggris.php" method="POST">

<table align="center" cellpadding="5" border="1" style="border-collapse:collapse; margin-top:5px;"> <tr> <td> Question </td> <td> <textarea name="soal" rows="10" cols="30"> </textarea> </tr> </td>

<tr> <td> ID </td> <td align="center"> <input type="text" name="id"> </td> </tr>

<tr> <td> Choice 1 </td> <td align="center"> <input type="text" name="pil1"> </td> </tr>

<tr> <td> Choice 2 </td> <td align="center"> <input type="text" name="pil2"> </td> </tr>

<tr> <td> Choice 3 </td> <td align="center"> <input type="text" name="pil3"> </td> </tr>

<tr> <td> Choice 4 </td> <td align="center"> <input type="text" name="pil4"> </td> </tr>

<tr> <td> Answer </td> <td align="center"> <input type="text" name="jwb"> </td> </tr>


(18)

</table>

<div class="form-soal">

<button> <a href="admin_input_soal_inggris.php"> Reset </a> </button>

<input type="submit" value="Register">

<button> <a href="admin_halaman_akun.php"> Home </a> </button>

</div> </form> </div>

</div>

<footer class="a"></footer> </body>

</html>

Admin_Proses_Soal_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<h1> <img src="images/Logo+USU+New.png" width="100" height="100"> </h1>

<h2 class="a"> University of Sumatera Utara </h2> <h2 class="b"> Faculty of Math and Science </h2>

<h3> </h3>

<div id="main_akun"> <div id="main2"> <?php

include "koneksi.php"; $soal=$_POST['soal']; $id=$_POST['id']; $pil1=$_POST['pil1']; $pil2=$_POST['pil2'];


(19)

$pil3=$_POST['pil3']; $pil4=$_POST['pil4']; $jwb=$_POST['jwb'];

$query= "INSERT INTO `inggris` VALUES ('$id','$soal', '$pil1', '$pil2', '$pil3', '$pil4', '$jwb')";

if (empty($_POST['id']) OR empty($_POST['soal']) OR empty($_POST['pil1']) OR empty($_POST['pil2']) OR empty($_POST['pil3']) OR empty($_POST['pil4']) OR empty($_POST['jwb']))

{

echo "<p align='center'>Please Insert Your Question More Carefully </p>";

}

else if (mysql_query($query)) {

echo"<p align='center'> The question has been registered! </p> ";

} else {

echo"<p align='center'> There Has Been An Error. Please Try Again </p>";

} ?>

<div id="button1">

<button class="e"> <a

href="admin_input_soal_inggris.php"> More Question </a> </button>

<button class="e"> <a

href="admin_halaman_akun.php"> Home </a> </button> <button class="e"> <a href="admin_logout.php"> Log Out </a> </button>

<button class="e"> <a

href="admin_lihat_soal_inggris.php"> Check </a></button>

</div> </div> </div>

<footer class="a"></footer> </body>


(20)

Admin_lihat_soal_(mata_kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<script type="text/javascript" src="jquery.min.js"> </script>

<script type="text/javascript"> $(document).ready(function(){ $("button.1").click(function(){ $("#div1").fadeToggle();

})

$("button.2").click(function(){ $("#div2").fadeToggle();

}); });

</script>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_update_soal_sejarah.php" method="POST">

<table cellspacing="0" border="1" align="center" cellpadding="10">

<th> ID </th> <th> Question </th> <th> First Choice </th> <th> Second Choice </th> <th> Third Choice </th> <th> Fourth Choice </th> <th> Answer </th>

<?php

include "koneksi.php";

$q="SELECT * FROM `inggris`"; $query=mysql_query($q);


(21)

while ($out=mysql_fetch_array($query)) {

echo "<tr align='center'> <td>".$out['no']." </td> <td> ".$out['soal']." </td> <td>

".$out['pil1']."</td> <td> ".$out['pil2']."</td> <td> ".$out['pil3']."</td> <td> ".$out['pil4']."</td> <td>

".$out['jwb_pilgan']."</td> </tr> "; }

?>

</table>

</form> </br>

<div align="center">

<button class="2"> Delete </button>

<div id="div2" style="display:none; background-color:white; width:400px; border: 1px solid grey; padding: 20px;" >

<form action="admin_update_soal_inggris.php" method="POST">

<table>

<th> Input The Question's ID </th>

<tr> <td> <input type="text" name="id"> </td> </tr>

<tr> <td align="center"> <input type="submit" name="delete" value="Delete"> </td> </tr>

</table> </form> </div>

<button> <a href="admin_halaman_akun.php"> Back </a> </button>

</div> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_update_soal_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;


(22)

} ?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<h1> <img src="images/Logo+USU+New.png" width="100" height="100"> </h1>

<h2 class="a"> University of Sumatera Utara </h2> <h2 class="b"> Faculty of Math and Science </h2>

<h3> </h3>

<div id="main_akun"> <div id="main2"> <?php

include "koneksi.php"; $a=$_POST['id'];

$q="DELETE FROM `inggris` WHERE no='$a'"; $query=mysql_query($q);

if ($query) {

echo "Data has been deleted"; }

else {

echo "There's something wrong"; }

?> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_input_soal_esai_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;


(23)

?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_proses_input_soal_esai_inggris.php" method="POST">

<table align="center" cellpadding="5" border="1" style="border-collapse:collapse; margin-top:5px;" > <tr> <td> Question </td> <td> <textarea name="soal" rows="10" cols="30"> </textarea> </tr> </td>

<tr> <td> ID </td> <td align="center"> <input type="text" name="id"> </td> </tr>

</table>

<div class="form-soal">

<button> <a href="admin_input_soal_esai_inggris.php"> Reset </a> </button>

<input type="submit" value="Register">

<button> <a href="admin_halaman_akun.php"> Home </a> </button>

</div> </form> </div>

<footer class="a"></footer> </body>

</html>

Admin_proses_input_soal_esai_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;


(24)

?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<h1> <img src="images/Logo+USU+New.png" width="100" height="100"> </h1>

<h2 class="a"> University of Sumatera Utara </h2> <h2 class="b"> Faculty of Math and Science </h2>

<h3> </h3>

<div id="main_akun"> <div id="main2"> <?php

include "koneksi.php"; $soal=$_POST['soal']; $id=$_POST['id'];

$a = mysql_query("SELECT `soal_esai` FROM `esai_inggris`");

$b = mysql_num_rows($a); if ($b>=10)

{ ?>

<script type="text/javascript">

window.location.href="soal_penuh.php"; </script>

<?php } else {

$query= "INSERT INTO `esai_inggris` VALUES ('$id','$soal')";

if (empty($_POST['id']) OR empty($_POST['soal'])) {

echo "<p align='center'>Please Insert Your Question More Carefully </p>";

}

else if (mysql_query($query)) {

echo"<p align='center'> The question has been registered! </p> ";

} else {


(25)

echo"<p align='center'> There Has Been An Error. Please Try Again </p>";

} } ?>

<div id="button1">

<button class="e"> <a

href="admin_input_soal_esai_inggris.php"> More Question </a> </button>

<button class="e"> <a href="admin_halaman_akun.php"> Home </a> </button>

<button class="e"> <a href="admin_logout.php"> Log Out </a> </button>

</div> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_lihat_soal_esai_(mata kuliah).php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<script type="text/javascript" src="jquery.min.js"> </script>

<script type="text/javascript"> $(document).ready(function(){ $("button.1").click(function(){ $("#div1").fadeToggle();

})

$("button.2").click(function(){ $("#div2").fadeToggle();

}); });

</script>


(26)

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="#" method="POST">

<table cellspacing="0" border="1" align="center" cellpadding="10">

<th> ID </th> <th> Question </th> <?php

include "koneksi.php";

$q="SELECT * FROM `esai_inggris`"; $query=mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<tr align='center'> <td>".$out['nei']." </td> <td> ".$out['soal_esai']."</td> </tr>";

} ?>

</table>

</form> </br>

<div align="center">

<button class="2"> Delete </button>

<div id="div2" style="display:none; background-color:white; width:400px; border: 1px solid grey; padding: 20px;" >

<form action="admin_update_soal_esai_inggris.php" method="POST">

<table>

<th> Input The Question's ID </th>

<tr> <td> <input type="text" name="id"> </td> </tr> <tr> <td align="center"> <input type="submit" name="delete" value="Delete"> </td> </tr>

</table> </form> </div>

<button> <a href="admin_halaman_akun.php"> Back </a> </button>

</div> </div> </div>

<footer class="a"></footer> </body>


(27)

</html>

Admin_update_soal_esai_(mata kuliah).php

<?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Adminstrator </title>

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

</head> <body>

<h1> <img src="images/Logo+USU+New.png" width="100" height="100"> </h1>

<h2 class="a"> University of Sumatera Utara </h2> <h2 class="b"> Faculty of Math and Science </h2>

<h3> </h3>

<div id="main_akun"> <div id="main2"> <?php

include "koneksi.php"; $a=$_POST['id'];

$q="DELETE FROM `esai_jepang` WHERE nei='$a'"; $query=mysql_query($q);

if ($query) {

echo "Data has been deleted"; }

else {

echo "There's something wrong"; }

?>

<button> <a href="admin_lihat_soal_esai_inggris.php"> Back </a> </button>

</div> </div>


(28)

<footer class="a"></footer> </body>

</html>

Soal_penuh.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>

<h1> <img src="images/Logo+USU+New.png" width="100" height="100"> </h1>

<h2 class="a"> University of Sumatera Utara </h2> <h2 class="b"> Faculty of Math and Science </h2>

<h3> </h3>

<div id="main_akun">

<p align="center"> Maaf soal esai sudah penuh. </p> <button> <a href="admin_halaman_akun.php"> Home </a> </button>

</div>

<footer class="a"></footer> </body>

</html>

Admin_pengaturan_akses.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;


(29)

?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_proses_pengaturan_akses.php" method="POST">

<table align="center" cellpadding="10" cellspacing="10" border="1" style="border-collapse:collapse; margin-top:5px;">

<tr> <th colspan="4"> Gate Settings </th> </tr>

<tr> <th> Subject </th> <th colspan="2"> Setting </th> <th> Current States </th></tr>

<?php

include 'koneksi.php';

$makul= array("History", "Visual Basic", "Japanese", "English");

$q="SELECT * FROM izin_akses"; $query=mysql_query($q);

while ($out=mysql_fetch_array($query)) {

$stats[0]=$out['sejarah']; $stats[1]=$out['visual']; $stats[2]=$out['jepang']; $stats[3]=$out['inggris']; }

$i=0;

for ($i=0; $i <=3 ; $i++) {

echo "<tr>

<td align='center'> ".$makul[$i]." </td>

<td> <input type='radio' name='stat[".$i."]' value='Accessible'> Open </td>

<td> <input type='radio' name='stat[".$i."]' value='Unaccessible'> Close </td> <td> <p align='center'> ".$stats[$i]."</p></td>

</tr>"; }


(30)

?> <tr>

<td align="center"> <a href="admin_halaman_akun.php"> Back </a> </td>

<td> <a href="admin_akses_keseluruhan.php?id=open-all"> Open All </a> </td>

<td> <a href="admin_akses_keseluruhan.php?id=close-all"> Close All </a> </td>

<td align="center"> <input type="submit" value="Update"> </td>

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

<p align="center"> <button> <a class="a" href="admin_logout.php"> Log Out </a> </button> </p> </div>

</div>

<footer class="a"></footer> </body>

</html>

Admin_proses_pengaturan_akses.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <div id="main2"> <?php


(31)

include 'koneksi.php'; $nilai=$_POST['stat']; $i=0;

foreach ($nilai as $key => $value) { $tmp[$i] = $value;

$i++; }

$kep1=$tmp[0]; $kep2=$tmp[1]; $kep3=$tmp[2]; $kep4=$tmp[3];

$q="UPDATE `izin_akses` SET sejarah='$kep1' , visual='$kep2' , jepang='$kep3', inggris='$kep4'";

if (mysql_query($q)) {

?>

<script type="text/javascript">

window.location.href="admin_pengaturan_akses.php"; </script>

<?php } ?> </div> </div>

<footer class="a"></footer> </body>

</html>

Admin_akses_keseluruhan.php <?php

include"koneksi.php"; $id=$_GET['id'];

$x='Accessible'; $y='Unaccessible'; if ($id=='open-all') {

$q="UPDATE `izin_akses` SET `sejarah`='$x' , `visual`='$x' ,`jepang`='$x', `inggris`='$x'";

if (mysql_query($q)) {

?>

<script type="text/javascript">

window.location.href="admin_pengaturan_akses.php"; </script>


(32)

} else {

echo "error"; }

}

elseif ($id=='close-all') {

$q="UPDATE `izin_akses` SET `sejarah`='$y' , `visual`='$y' ,`jepang`='$y', `inggris`='$y'";

if (mysql_query($q)) {

?>

<script type="text/javascript">

window.location.href="admin_pengaturan_akses.php"; </script>

<?php } else {

echo "error"; }

} ?>

Admin_pengaturan_waktu.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>


(33)

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form action="admin_proses_input_waktu.php" method="POST">

<table align="center" > <tr>

<td> Select a Subject </td> <td> : </td> <td> <select name="makul">

<option value="sejarah"> History </option> <option value="visual"> Visual Basic </option> <option value="jepang"> Japanese </option> <option value="inggris"> English </option> </select></td>

</tr>

<tr> <td> Input Time (Minutes) </td> <td> : </td> <td> <input type="text" name="waktu"> </td> </tr>

<tr> <td colspan="3" align="center"> <input type="submit" value="Save"> </td> </tr>

</table> </form> </div>

<footer class="a"></footer> </body>

</html>

Admin_proses_input_waktu.php <?php

session_start();

$nip=$_SESSION['nip']; if(empty($nip)){

header('location:admin.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Administrator </title>

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

</head> <body>


(34)

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <?php

include'koneksi.php'; $makul=$_POST['makul']; $waktu=$_POST['waktu']; if ($makul=='sejarah') {

$q="UPDATE `waktu` SET `sejarah`='$waktu'"; if (mysql_query($q))

{

echo "Data has been updated"; }

}

elseif ($makul=='visual') {

$q="UPDATE `waktu` SET `visual`='$waktu'"; if (mysql_query($q))

{

echo "Data has been updated"; }

}

elseif ($makul=='jepang') {

$q="UPDATE `waktu` SET `jepang`='$waktu'"; if (mysql_query($q))

{

echo "Data has been updated"; }

}

elseif ($makul=='inggris') {

$q="UPDATE `waktu` SET `inggris`='$waktu'"; if (mysql_query($q))

{

echo "Data has been updated"; }

} ?> </div>

<footer class="a"></footer> </body>


(35)

Admin_logout.php <?php

session_start();

if(session_destroy()){

header('location:admin.php'); }

?>

Index.php

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="navigation">

<table class="nav1" align="center"> <tr>

<td> <a href="index.php"> Home </a> </td> <td> <a href="profil.php"> Profile </a> </td> <td> <a href="data.php"> User Data </a> </td> <td> <a href="uji-coba.php"> Start </a> </td> </tr>

</table> </div>

<div class="body"> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>


(36)

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="navigation">

<table class="nav1" align="center"> <tr>

<td> <a href="index.php"> Home </a> </td> <td> <a href="profil.php"> Profile </a> </td> <td> <a href="data.php"> User Data </a> </td> <td> <a href="uji-coba.php"> Start </a> </td> </tr>

</table> </div>

<div class="body"> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>

Data.php

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Gallery </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>


(37)

<table class="nav1" align="center"> <tr>

<td> <a href="index.php"> Home </a> </td> <td> <a href="profil.php"> Profile </a> </td> <td> <a href="data.php"> User Data </a> </td> <td> <a href="uji-coba.php"> Start </a> </td> </tr>

</table> </div>

<div class="body">

<table border="1" align="center" cellspacing="0" style="margin-top:5px;">

<th>NIM</th> <th>User Name</th> <th>E-Mail</th> <th>Gender</th> <th>Address</th>

<?php

include "koneksi.php";

$q="SELECT * FROM `data_peserta`"; $query=mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<tr> <td>".$out['NIM']."</td> <td>".$out['nama']."</td> <td>".$out['email']." </td> <td>".$out['kelamin']." </td><td>".$out['alamat']." </td></tr> ";

} ?>

</table> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>

Uji-coba.php <!DOCTYPE html> <html>

<head>

<title> Portofolio - Test Run </title>

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

</head> <body>


(38)

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="navigation">

<table class="nav1" align="center"> <tr>

<td> <a href="index.php"> Home </a> </td> <td> <a href="profil.php"> Profile </a> </td> <td> <a href="data.php"> User Data </a> </td> <td> <a href="uji-coba.php"> Start </a> </td> </tr>

</table> </div>

<div class="body">

<form method="POST"

action="mahasiswa_proses_login.php"> <table align="center" cellspacing="10"> <th colspan="2" > Sign In </th>

<tr> <td> NIM </td> <td> <input type="text" name="nim"> </td> </tr>

<tr> <td> Password </td> <td> <input type="password" name="pasword"> </td> </tr>

<tr> <td colspan="2" align="center"> <input type="submit" Value="Log In"></td> </tr>

<tr> <td> haven't got any account yet? </td> <td> Click <a href="pendaftaran.php"> here </a> </td>

</table> </form> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>

Mahasiswa_proses_log_in.php <?php

include("koneksi.php"); $nim=$_POST['nim'];

$pasword=$_POST['pasword'];

$q="SELECT * FROM `data_peserta` WHERE

`data_peserta`.`NIM`='$nim' AND

`data_peserta`.`pasword`='$pasword'"; $exe=mysql_query($q);


(39)

if(mysql_num_rows($exe)>0){ session_start();

$_SESSION['nim']=$nim;

header('location:mahasiswa_halaman_akun.php'); exit;

} else{

header('location:index.php?notification=login-gagal'); exit;

} ?>

Pendaftaran.php <!DOCTYPE html> <html>

<head>

<title> Portofolio - Test Run </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<form method="POST"

action="mahasiswa_proses_pendaftaran.php"> <table align="center" cellspacing="20">

<th colspan="2" align="center"> Registration Form </th> <tr> <td> NIM </td> <td> <input type="text" name="nim"> </td> </tr>

<tr> <td> Username </td> <td> <input type="text" name="nama"> </td> </tr>

<tr> <td> Password </td> <td> <input type="password" name="pasword"> </td> </tr>

<tr> <td> E-Mail </td> <td> <input type="text" name="email"> </td> </tr>

<tr> <td> Gender </td> <td> <select name="kelamin"> <option value="laki-laki"> Male </option>

<option value="perempuan"> Female </option> <option value="lain"> Other </option>

</select> </td> </tr>

<tr> <td> Address </td> <td> <input type="text" name="alamat"> </td> </td>


(40)

<tr> <td colspan="2" align="center"> <input type="submit" value="Sign Up"> </td> </tr>

</table> </form> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>

Proses_pendaftaran.php

<!DOCTYPE html> <html>

<head>

<title> Error Message </title>

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

</head> <body>

<div id="main"> <div id="header"> <p> Confirmation </p> </div>

<nav id="nav01"></nav> <div id="main2">

<?php

include("koneksi.php"); $nim=$_POST['nim']; $nama=$_POST['nama'];

$pasword=$_POST['pasword']; $email=$_POST['email']; $kelamin=$_POST['kelamin']; $alamat=$_POST['alamat'];

$q="INSERT INTO `data_peserta` VALUES

('$nim','$nama','$pasword','$email','$kelamin','$alamat ','','','','')";

if (empty($_POST['nim'])) {

echo "<p align='center'> Please Enter Your NIM </p>"; }

else if (empty($_POST['nama'])) {


(41)

echo "<p align='center'> Please Enter Your Name </p>"; }

else if (empty($_POST['pasword'])) {

echo "<p align='center'> Please Enter Your Password </p> ";

}

else if (empty($_POST['email'])) {

echo "<p align='center'> Please Enter Your E-Mail </p>";

}

else if (empty($_POST['kelamin'])) {

echo "<p align='center'> Please Input Your Gender DUDE! </p>";

}

else if (empty($_POST['alamat'])) {

echo "<p align='center'> Please Input Your Address </p>";

}

else if (mysql_query($q)) {

echo "<p align='center'> The Registration Progress Is Finished </p>";

} else {

echo "<p align='center'> there's something wrong, please try again later... </p>";

}

$masuk="SELECT * FROM `data_peserta` WHERE

`data_peserta`.`NIM`='$nim' AND

`data_peserta`.`pasword`='$pasword'"; $exe=mysql_query($masuk);

$num = mysql_num_rows($exe); echo $num;

if($num>0) {

session_start();

$_SESSION['nim']=$nim; ?>

<script type="text/javascript">

window.location.href="mahasiswa_halaman_akun.php"; </script>


(42)

exit; } else {

header('location:index.php?notification=login-gagal'); exit;

} ?> </div>

<footer id="foot01"></footer> </div>

<script src="nav1.js"></script>

<script src="copyright.js"></script> </body>

</html>

Mahasiswa_halaman_akun.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <div class="artikel">

Alright, here's the deal. You, as student and user,

you're to choose a subject. Answer the questions within the time limit. After the test, you can find out about your grades! Remember, this is just a prototype. One day


(43)

Click Proceed to continue. Good Luck! </div>

<table class="menu-mhs"> <tr>

<td> <a href="mahasiswa_pilih_makul.php"> Proceed </a> </td>

<td> <a href="mahasiswa_portal_nilai.php"> Grades </a> </td>

</tr>

<tr id="logout">

<td colspan="2" align="center"> <a href="mahasiswa_logout.php"> Log Out </a> </td>

</tr> </table> <?php

include "koneksi.php";

$q="INSERT INTO `nilai` VALUES ('$nim','','','','')"; $query=mysql_query($q);

$q2="INSERT INTO `nilai_esai_inggris` VALUES ('$nim','','','','','','','','','','','')";

$query2=mysql_query($q2);

$q3="INSERT INTO `nilai_esai_jepang` VALUES ('$nim','','','','','','','','','','','')";

$query3=mysql_query($q3);

$q4="INSERT INTO `nilai_esai_visual` VALUES ('$nim','','','','','','','','','','','')";

$query4=mysql_query($q4);

$q5="INSERT INTO `nilai_esai_sejarah` VALUES ('$nim','','','','','','','','','','','')";

$query5=mysql_query($q5); ?>

</div>

<footer id="foot01"></footer>

<script src="copyright.js"> </script> </body>

</html>

Mahasiswa_potal_nilai.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;


(44)

?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

<script type="text/javascript" src="jquery.min.js"> </script>

<script type="text/javascript"> $(document).ready(function(){ $("button.1").click(function(){ $("#div1").fadeToggle();

}) }); </script> </head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<table cellspacing="0" cellpadding="15" border="1" align="center" style="margin-top:5px; border: 1px solid lightgrey">

<tr> <th> Subject </th> <th> Multiple Choice Score </th> <th> Essay Test Score </th> <th> Total </th></tr> <?php

error_reporting(0); include "koneksi.php";

$identitas="SELECT * FROM `data_peserta` WHERE `NIM`='$nim'";

$q_identitas=mysql_query($identitas);

while ($out=mysql_fetch_array($q_identitas)) {

echo "<p style='position:absolute; left:48%; text-align:center'>".$out['nama']."</br> </br> ".$out['NIM']."</p> </br> </br> </br> </br>";

}

$esai_sejarah="SELECT * FROM `nilai_esai_sejarah` WHERE `NIM`='$nim'";

$query_esai_sejarah=mysql_query($esai_sejarah);

while ($total_1=mysql_fetch_array($query_esai_sejarah)) {

$total1=$total_1['total_sejarah']; }


(45)

$esai_visual="SELECT * FROM `nilai_esai_visual` WHERE `NIM`='$nim'";

$query_esai_visual=mysql_query($esai_visual);

while ($total_2=mysql_fetch_array($query_esai_visual)) {

$total2=$total_2['total_visual']; }

$esai_inggris="SELECT * FROM `nilai_esai_inggris` WHERE `NIM`='$nim'";

$query_esai_inggris=mysql_query($esai_inggris);

while ($total_3=mysql_fetch_array($query_esai_inggris)) {

$total3=$total_3['total_inggris']; }

$esai_jepang="SELECT * FROM `nilai_esai_jepang` WHERE `NIM`='$nim'";

$query_esai_jepang=mysql_query($esai_jepang);

while ($total_4=mysql_fetch_array($query_esai_jepang)) {

$total4=$total_4['total_jepang']; }

$q="SELECT * FROM `nilai` WHERE `NIM`='$nim' "; $query=mysql_query($q);

while ($out=mysql_fetch_array($query)) {

$hasil_sejarah=($out['nilai_sejarah'] + $total1) / 2; $hasil_visual=($out['nilai_visual'] + $total2) / 2; $hasil_jepang=($out['nilai_jepang'] + $total3) / 2; $hasil_inggris=($out['nilai_inggris'] + $total4) / 2; echo "<tr> <td align='center'> History </td> <td align='center'>".$out['nilai_sejarah']."</td><td

align='center'>".$total1."</td><td

align='center'>".$hasil_sejarah."</td></tr>";

echo "<tr> <td align='center'> Visual Basic </td> <td align='center'>".$out['nilai_visual']."</td><td

align='center'>".$total2."</td><td

align='center'>".$hasil_visual."</td></tr>";

echo "<tr> <td align='center'> Japanese </td> <td align='center'>".$out['nilai_jepang']."</td><td

align='center'>".$total3."</td><td

align='center'>".$hasil_jepang."</td></tr>";

echo "<tr> <td align='center'> English </td> <td align='center'>".$out['nilai_inggris']."</td><td

align='center'>".$total4."</td><td

align='center'>".$hasil_inggris."</td></tr>"; }


(46)

</table>

<div class="exit_dan_check"> <div id="back1">

<a href="mahasiswa_halaman_akun.php"> Back </a> </div>

<button class="1"> See the result </button>

<div id="div1" style="position:relative; left:-30%;min-height:100px; border:1px solid lightgrey;display:none; width:250px">

<form action="mahasiswa_lihat_jawaban.php" method="POST">

<table align="center">

<th> Select a Subject </th> <tr>

<td align="center"> <select name="makul"> <option value="sejarah"> History </option> <option value="visual"> Visual Basic </option> <option value="jepang"> Japanese </option> <option value="inggris"> English </option> </select> </td>

</tr> <tr>

<td align="center">

<input type="submit" value="Check"> </td>

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

<footer class="a"></footer> </body>

</html>

Mahasiswa_lihat_jawaban.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>


(47)

<!DOCTYPE html> <html>

<head>

<title> Score - Print </title>

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

<script type="text/javascript" src="jquery.min.js"> </script>

<script type="text/javascript"> </script>

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<table align="center" border="1" cellpadding="15" cellspacing="10" style="border-collapse:collapse; margin-top:40px;">

<th> Question </th> <th> Answer </th> <th> Score </th> <tr>

<?php

error_reporting(0); include "koneksi.php"; $makul=$_POST['makul']; $i=1;

if ($makul=='sejarah') {

$q="SELECT * FROM `esai_sejarah` , `jawaban_sejarah` , `nilai_esai_sejarah` WHERE `jawaban_sejarah`.`NIM` = '$nim' AND `nilai_esai_sejarah`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td align='center'>

".$out['soal_esai_sejarah_'.$i.'']."</td> </tr> "; $i++;

} }

elseif ($makul=='visual') {

$q="SELECT * FROM `esai_visual` , `jawaban_visual` , `nilai_esai_visual` WHERE `jawaban_visual`.`NIM` = '$nim' AND `nilai_esai_visual`.`NIM`='$nim'";


(48)

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td align='center'>

".$out['soal_esai_visual_'.$i.'']."</td> </tr> "; $i++;

} }

elseif ($makul=='jepang') {

$q="SELECT * FROM `esai_jepang` , `jawaban_jepang` , `nilai_esai_jepang` WHERE `jawaban_jepang`.`NIM` = '$nim' AND `nilai_esai_jepang`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td align='center'>

".$out['soal_esai_jepang_'.$i.'']."</td> </tr> "; $i++;

} }

elseif ($makul=='inggris') {

$q="SELECT * FROM `esai_inggris` , `jawaban_inggris` , `nilai_esai_inggris` WHERE `jawaban_inggris`.`NIM` = '$nim' AND `nilai_esai_inggris`.`NIM`='$nim'";

$query = mysql_query($q);

while ($out=mysql_fetch_array($query)) {

echo "<td>".$out['soal_esai']."</td> <td> ".$out['soal_'.$i.'']."</td>

<td align='center'>

".$out['soal_esai_inggris_'.$i.'']."</td> </tr> "; $i++;

} } ?>

</table> <table>

<tr> <td> <button onClick="window.print();" style="border:none; background-color:white;"> <img src="images\print_icon.png" width="30" height="20"> </button> </td>


(49)

<td> <a href="mahasiswa_halaman_akun.php" style="text-decoration:none;"> Back </a> </td>

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

<footer class="a"></footer> </body>

</html>

Mahasiswa_pilih_makul.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<p align="center"> Warning! Each of these tests have their own time limit! It depends on the lectors! </br> If you don't submit your paper, it will be automaticly submited as you never give your paper to be scored! And get an E! </p>

<div class="select_1">

<form action="mahasiswa_pilihan_mata_kuliah.php" method="POST">

<table align="center">

<tr> <th> Select a subject </th> <tr>

<tr> <td align="center"> <select name="makul"> <option value="sejarah"> History </option> <option value="visual"> Visual basic </option> <option value="inggris"> English </option>


(50)

<option value="jepang"> Japanese </option> </select>

</td> </tr>

<tr> <td align="center"> <input type="submit" value="Take The Test"> </input></td> </tr>

</table> </form> </div>

<div class="menu-mhs2"> <table>

<tr>

<td> <a href="mahasiswa_halaman_akun.php"> Back </a> </td>

<td> <a href="mahasiswa_logout.php"> Log Out </a> </td> </tr>

</table> </div> </div> </div>

<footer class="a"></footer> </body>

</html>

Mahasiswa_akses_ditolak.php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title>

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

</head> <body>


(51)

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<p align="center"> Access Denied! </br> You Don't Have A Permission To Access This Page! </p>

<button> <a href="mahasiswa_halaman_akun.php"> Back </a> </button>

</div>

<footer id="foot01"></footer>

<script src="copyright.js"></script> </body>

</html>

Mahasiswa_pilihan_mata_kuliah.php <?php

include "koneksi.php";

$_POST['pil_makul']=$_POST['makul']; $penguji=0;

$akses="SELECT * FROM `izin_akses`"; $query=mysql_query($akses);

while ($out=mysql_fetch_array($query)) {

$akses_sejarah=$out['sejarah']; $akses_visual=$out['visual']; $akses_jepang=$out['jepang']; $akses_inggris=$out['inggris']; }

if ($_POST['pil_makul']== 'sejarah') {

if ($akses_sejarah=='Accessible') {

$q="SELECT * FROM `data_peserta` WHERE `bukti_sejarah` = '$penguji'";

$exe1=mysql_query($q);

if(mysql_num_rows($exe1)>0) {

header('location:mahasiswa_mata_kuliah_sejarah.php'); }

else {

header('location:mahasiswa_akses_ditolak.php'); }

}


(52)

{

header('location:mahasiswa_akses_ditolak.php'); }

}

elseif ($_POST['pil_makul'] == 'visual') {

if ($akses_visual=='Accessible') {

$q="SELECT * FROM `data_peserta` WHERE `bukti_visual` = '$penguji'";

$exe1=mysql_query($q);

if(mysql_num_rows($exe1)>0) {

header('location:mahasiswa_mata_kuliah_visual.php'); }

else {

header('location:mahasiswa_akses_ditolak.php'); }

}

elseif ($akses_visual=='Unaccessible') {

header('location:mahasiswa_akses_ditolak.php'); }

}

elseif ($_POST['pil_makul'] == 'inggris') {

if ($akses_inggris=='Accessible') {

$q="SELECT * FROM `data_peserta` WHERE `bukti_inggris` = '$penguji'";

$exe1=mysql_query($q);

if(mysql_num_rows($exe1)>0) {

header('location:mahasiswa_mata_kuliah_inggris.php'); }

else {

header('location:mahasiswa_akses_ditolak.php'); }

}

elseif ($akses_inggris=='Unaccessible') {

header('location:mahasiswa_akses_ditolak.php'); }

}


(53)

{

if ($akses_jepang=='Accessible') {

$q="SELECT * FROM `data_peserta` WHERE `bukti_jepang` = '$penguji'";

$exe1=mysql_query($q);

if(mysql_num_rows($exe1)>0) {

header('location:mahasiswa_mata_kuliah_jepang.php'); }

else {

header('location:mahasiswa_akses_ditolak.php'); }

}

elseif ($akses_jepang=='Unaccessible') {

header('location:mahasiswa_akses_ditolak.php'); }

} else {

echo"There is no process here"; }

?>

Mahasiswa_mata_kuliah_(mata kuliah).php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title> <form name="form_waktu">

<table> <tr> <?php


(54)

$q="SELECT * FROM `waktu`"; $query=mysql_query($q);

while ($out=mysql_fetch_array($query)) {

$waktu=$out['inggris']; }

echo "<td> <input type='hidden' name='menit' value=".$waktu."> </td>";

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

<script type="text/javascript"> var detik = 0;

var menit = document.form_waktu.menit.value; setInterval (function() {

detik--;

if (detik < 0) {

menit--; detik = 60; if (menit < 0) {

window.location ='E_inggris.php'; }

}

document.getElementById("total").innerHTML= 'Time ' + menit + ' : ' + detik;

},1000); </script> </script>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body">

<p id="total" style="position:fixed; right:45%; bottom:30px; border: 1px solid lightgrey; min-width:10%;

text-align:center"></p>

<form action="mahasiswa_proses_soal_inggris.php" method="POST">


(55)

<?php

include"koneksi.php"; $makul='English';

$perintah="SELECT * FROM `inggris`"; $query=mysql_query($perintah);

$i=1;

while ($out=mysql_fetch_array($query)) {

echo" <th colspan='2'>".$out['soal']." </th>

<tr align='center'> <td> <input type='radio' name='jawaban[".$i."]' value='a'/>".$out['pil1']." </td>

<td> <input type='radio' name='jawaban[".$i."]' value='b'/>".$out['pil2']." </td> </tr>

<tr align='center'> <td> <input type='radio' name='jawaban[".$i."]' value='c'/>".$out['pil3']." </td>

<td> <input type='radio' name='jawaban[".$i."]' value='d'/>".$out['pil4']." </td> </tr>";

$i++; }

echo"<tr align='center'> <td align='right'> Subject </td> <td align='left'> <select name='makul'> <option value='inggris'> English </option> </td> </tr>" ;

?>

<tr> <td colspan="2" align="center"> <input type="submit" value="Submit"> </td></tr>

</table> </form> </div> </div>

<footer class="a"></footer> </body>

</html>

Mahasiswa_proses_soal_(mata kuliah).php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>


(56)

<html> <head>

<title> Portofolio - Home </title>

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

</head> <body>

<div class="header">

<p> <img src="images\Mipa.png" width="385" height="115"> </p>

</div>

<div class="body"> <?php

error_reporting(0); include "koneksi.php"; $makul=['makul'];

$matakul; $i=0; $tmp2=0; $tanda=1;

foreach ($_POST['jawaban'] as $key => $value) { $tmp[$i]= $value;

$i++; }

$jawaban = mysql_query("SELECT * FROM `inggris`"); $i = 0;

$nilai = 0;

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

if($tmp[$i] == $data['jwb_pilgan']) {

$nilai++; }

$i++; }

$total= $nilai / $i * 100;

$update="UPDATE nilai set nilai_inggris='$total' where NIM='$nim'";

if (mysql_query($update)) {

echo "<p align='center'> Data Has Been Updated!</p> <div align='center'>

<button> <a

href='mahasiswa_mata_kuliah_esai_inggris.php'> Proceed </a> </button>

</div>"; }


(57)

else {

echo "There's Something Wrong, Please Try Again Later.";

}

$q4="UPDATE `data_peserta` SET `bukti_inggris` = '$tanda' WHERE `NIM`='$nim'";

if(mysql_query($q4)) {

echo"<p align='center'> You Will Not Be Able To Access This Page Again </p>";

} else {

echo "Ada yang salah"; }

?> </div> </div>

<footer class="a"></footer> </body>

</html>

Mahasiswa_mata_kuliah_esai_(mata kuliah).php <?php

session_start();

$nim=$_SESSION['nim']; if(empty($nim)){

header('location:index.php'); exit;

} ?>

<!DOCTYPE html> <html>

<head>

<title> Portofolio - Home </title> <form name="form_waktu">

<table> <tr> <?php


(1)

DAFTAR ISI

Halaman

Persetujuan ii

Pernyataan iii

Penghargaan iv

Abstrak v

Daftar Isi vii

Daftar Tabel x

Daftar Gambar xi

BAB 1 Pendahuluan

1.1LatarBelakang ... 1

1.2PerumusanMasalah ... 2

1.3Batasan Masalah ... 3

1.4Manfaat Penelitian ... 3

1.5Sistematika Penulisan ... 4

BAB 2 Landasan Teori 2.1Sekilas Tentang Sistem Ujian Konvensional ... 6

2.2Sekilas Tentang Sistem Ujian Online ... 6

2.3Sekilas Tentang Perancangan ... 7

2.4Sekilas Tentang Sistem ... 7

2.5Sekilas Tentang PHP Dan MySQL ... 8

2.6Sekilas Tentang HTML (HyperText Markup Language) ... 11


(2)

2.8Sekilas Tentang JavaScript ... 12

2.9 Data Flow Diagram (DFD) ... 13

2.10 Flowchart (Diagram Alir) ... 14

BAB 3 Perancangan Sistem 3.1Tahap Perancangan ... 17

3.2Diagram Konteks ... 19

3.3Diagram Alir …… ... 20

3.3.1 Flowchart Pendaftaran Soal ... 20

3.3.2 Flowchart Ujian ... 23

3.3.3 Flowchart Pemberian Nilai ... 24

3.4Merancang Database ... 26

3.5Desain Sistem ... 31

3.5.1 Desain Halaman Beranda Dan Profile ... 31

3.5.2 Desain Halaman User Data ... 31

3.5.3 Design Halaman Sign In Dan Sign Up ... 32

3.5.4 Halaman Akun Siswa ... 33

3.5.5 Halaman Ujian Siswa ... 34

3.5.6 Halaman Portal Nilai Siswa ... 37

3.5.7 Halaman Admin ... 38

BAB 4 Implementasi Sistem 4.1Pengertian Implementasi Sistem ... 42

4.2Tujuan Implementasi Sistem ... 42

4.3Komponen Dalam Implementasi Sistem ... 43

BAB 5 Kesimpulan Dan Saran 5.1Kesimpulan ... 46


(3)

Daftar Pustaka 48 Lampiran:


(4)

DAFTAR TABEL

Halaman

Tabel 2.1 Simbol DFD 13

Tabel 2.2 Simbol Flowchart 15

Tabel 3.1 Tabel Admin 27

Tabel 3.2 Tabel Data Peserta 28

Tabel 3.3 Tabel Soal Esai 28

Tabel 3.4 Tabel Soal Pilihan Ganda 29

Tabel 3.5 Tabel Izin Akses 29

Tabel 3.6 Tabel Jawaban Esai Mahasiswa 30

Tabel 3.7 Tabel Nilai Pilihan Ganda Siswa 31

Tabel 3.8 Tabel Nilai Esai Siswa 31


(5)

DAFTAR GAMBAR

Halaman

Gambar 2.1 Simbol DFD 13

Gambar 2.2 Simbol Flowchart 15

Gambar 3.1 Diagram Konteks 19

Gambar 3.2 DFD Level 0 20

Gambar 3.3 Diagram Alir Pendaftaran Soal Pilihan Ganda 22 Gambar 3.4 Diagram Alir Pendataran Soal Esai 23 Gambar 3.5 Diagram Alir Proses Ujian Pilihan Ganda 24

Gambar 3.6 Diagram Alir Pemberian Nilai 26

Gambar 3.7 Halaman Beranda 32

Gambar 3.8 Halaman User Data 33

Gambar 3.9 Halaman Sign In Siswa 34

Gambar 3.10 Halaman Pendaftaran 34

Gambar 3.11 Halaman Akun Siswa 35

Gambar 3.12 Halaman Pilihan Mata Kuliah 35

Gambar 3.13 Halaman Ujian Siswa 36

Gambar 3.14 Halaman Konfirmasi 36

Gambar 3.15 Halaman Ujian Esai 37

Gambar 3.16 Halaman Konformasi Ujian Esai 38

Gambar 3.17 Portal Nilai Siswa 38


(6)

Gambar 3.19 Print Preview Cetak lembar Jawaban 39

Gambar 3.20 Halaman Sign In Admin 40

Gambar 3.21 Halaman Akun Admin 40

Gambar 3.22 Halaman Soal Input Soal Pilihan Ganda 41 Gambar 3.23 Halaman Lihat Soal Pilihan Ganda Yang Sudah Ada 41

Gambar 3.24 Halaman Input Soal Esai 41

Gambar 3.25 Halaman Lihat Soal Esai Ynag Sudah Ada 42 Gambar 3.26 Halaman Pilih Lembar Jawaban Siswa 42 Gambar 3.27 Halaman Mengisi Nilai Esai Siswa Per Soal 42

Gambar 3.28 Halaman Buka Tutup Akses 43