Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 54

LAMPIRAN

FLOWCHART PROGRAM

Flowchart Menu Utama

Start

Home
Dosen
Jadwal
Contact
About

Pil = 1

Home

T
Pil = 2

Dosen

T
Pil = 3

Jadwal

T
Y
Pil = 4

Contact

T
Pil = 5

End

About

Flowchart Data Dosen

Data Dosen

A
Login Admin

Input Data
Dosen

Tampilkan
Record

Lengkap
?
T
Input
Field Selanjutnya

simpan ?

B
T

Y
Database

Keluar ?
Y
B

Lanjut ?

Return

Flowchart Data Input Jadwal Ganjil

Data Jadwal Ganjil

A
Login admin

Input Data Jadwal


Semester Ganjil

Tampilkan
Record

Lengkap
?
T
Input
Field Selanjutnya

Kirim ?

Kirim
Record

Hapus
Record

T
simpan ?

Hapus ?

T
Y
Database

Keluar ?
Y
B

Lanjut ?

Return

Flowchart Data Input Jadwal Genap

Data Jadwal Genap

Input Data Jadwal


Semester Genap

Lengkap
?

Tampilkan
Record

T
Input
Field Selanjutnya

Kirim ?
T

simpan ?

T
B

Keluar ?

Database
B
Lanjut ?

Kirim
Record

T
Return

Flowchart Data Input Mata Kuliah

Data Mata Kuliah

A
Login admin

Input Data
Mata Kuliah

Lengkap
?

Tampilkan
Record

T
Input
Field Selanjutnya

Kirim ?

Kirim
Record

Hapus
Record

simpan ?

Hapus ?

T
Y

Keluar ?

Database
Y
B
Lanjut ?

T
Return

T
A

home.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index</title>
</head>
<frameset rows="35%,*" framespacing="1" border="1">
<frame name="header" src="header.php" scrolling="no">
<frameset rows="*" cols="14%,*" style="background-color:#0CC" framespacing="1"
border="1" bordercolor="#0033CC">
<frame name="menu" src="menu.php">
<frame name="content" src="content.php">
<frame
src="UntitledFrame-3"><frame
src="UntitledFrame4"></frameset><noframes></noframes>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>menu</title>
<style type="text/css">
.ta {
font-size: 16px;
}
.ta {
font-size: 18px;
}
.tab3 {
text-align: center;
}
</style>
</head>
<base target="content">
<body bgcolor="#0000CC" alink="#FFFFFF">
<table width="140" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" height="30" align="center" valign="middle" bgcolor="#0000CC" style=
"font: 'Monotype Corsiva'; font-family: 'Bauhaus 93';"><span class="tab3"><strong><a
href="home.php" style="color: #FFF; font-size: 18px;">Home</a></strong></span></td>
</tr>
<tr>
<td width="150" height="30" align="center" valign="middle" bgcolor="#0000CC" style=
"font: 'Monotype Corsiva'; font-family: 'Bauhaus 93';"><span class="tab3"><strong><a
href="dosen/ddosen.php"
style="color:
#FFF;
font-size:
18px;">Dosen</a></strong></span></td>
</tr>
<tr>

<td width="150" height="30" align="center" valign="middle" bgcolor="#0000CC" style=


"font: 'Monotype Corsiva'; font-family: 'Bauhaus 93';"><span class="tab3"><strong><a
href="t_jadwal.php" style="color:#FFF">Jadwal</a></strong></span></td>
</tr>
<tr>
<td width="150" height="30" align="center" valign="middle" bgcolor="#0000CC" style=
"font: 'Monotype Corsiva'; font-family: 'Bauhaus 93';"><span class="tab3"><strong><a
href="contact.php" style="color:#FFF">Contact</a></strong></span></td>
</tr>
<tr>
<td height="30" align="center" valign="middle" bgcolor="#0000CC" style= "font:
'Monotype Corsiva'; font-family: 'Bauhaus 93';"><span class="tab3"><strong><a
href="about.php" style="color:#FFF">About</a></strong></span></td>
</tr>
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>home</title>
<style type="text/css">
.tab_1 {
font-size: 16px;
}
.tab_1 {
font-family: "Bauhaus 93";
}
.tab_1 {
font-size: 36px;
}
.ta {
font-family: "Bauhaus 93";
}
.tab_1 {
font-size: 18px;
}
.tab_1 {
color: #FFF;
}
</style>
</head>
<body>
<table width="819" border="0" cellpadding="0" cellspacing="0" bgcolor="#0000CC">

<tr>
<td colspan="2" align="center" valign="middle"><img src="gambar/kop1.png"
width="818" height="232"></td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle" bgcolor="#000099"><table width="340"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75"><a href="depan.php"><img src="gambar/home.png" width="60"
height="29"></a></td>
<td width="75"><a href="dosen/ddosen.php" ><img src="gambar/dosen.png"
width="60" height="29"></a></td>
<td width="75"><a href="t_jadwal.php"><img src="gambar/jadwal.png" width="60"
height="29"></a></td>
<td width="75"><a href="kontak.php"><img src="gambar/kontak.png" width="60"
height="29"></a></td>
<td width="75"><a href="about.php"><img src="gambar/about.png" width="60"
height="29"></a></td>
</tr>
</table></td>
</tr>
<tr>
<td width="179" align="center" valign="top" bgcolor="#0000CC"><table width="140"
border="0" cellpadding="0" cellspacing="0" bgcolor="#0000CC">
<tr>
<td width="150" height="30" valign="middle" style= "font:'Monotype Corsiva'"><span
class="tab_1"><a href="depan.php" style="color:#FFF">Home</a></span></td>
</tr>
<tr>
<td width="150" height="30" valign="middle"><span class="tab_1"><a
href="dosen/ddosen.php" style="color:#FFF">Dosen</a></span></td>
</tr>
<tr>
<td width="150" height="30" valign="middle"><span class="tab_1"><a
href="t_jadwal.php" style="color:#FFF">Jadwal</a></span></td>
</tr>
<tr>
<td width="150" height="30" valign="middle"><span class="tab_1"><a
href="kontak.php" style="color:#FFF">Contac</a></span></td>
</tr>
<tr>
<td width="150" height="30" valign="middle"><span class="tab_1"><a
href="about.php" style="color:#FFF">About</a></span></td>
</tr>
</table></td>
<td width="640" rowspan="2" bgcolor="#8080FF"><a href="depan.php"></a></td>

</tr>
<tr>
<td width="179" bgcolor="#0000CC">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#0000CC">&nbsp;</td>
<td
bgcolor="#8080FF">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8
212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
&#8212;&#8212;&#8212;&#8212;AIKOM&copy;</td>
</tr>
</table>
</body>
</html>

ddosen.php
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":

$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";


break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);
$query_d_dosen = "SELECT * FROM d_dosen ORDER BY nidn DESC";
$d_dosen = mysql_query($query_d_dosen, $jadwal) or die(mysql_error());
$row_d_dosen = mysql_fetch_assoc($d_dosen);
$totalRows_d_dosen = mysql_num_rows($d_dosen);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 {
font-size: 36px;
text-align: center;
font-weight: bold;
}
#form3 {
text-align: center;
}
#table {
font-weight: bold;
text-align: center;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
Data Dosen
<p>&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&

#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;&#8211;
&#8211;&#8211;&#8211;&#8211;</p>
</form>
<form id="form3" name="form3" method="post" action="">
<table width="395" border="1" align="center">
<tr id="table">
<td width="96">NIDN</td>
<td width="283">Nama Dosen</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_d_dosen['nidn']; ?></td>
<td><?php echo $row_d_dosen['nama_dosen']; ?></td>
</tr>
<?php } while ($row_d_dosen = mysql_fetch_assoc($d_dosen)); ?>
</table>
</form>
</body>
</html>
<?php
mysql_free_result($d_dosen);
?>
list_ganjilTK.php
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";

break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form5")) {
$insertSQL = sprintf("INSERT INTO d_jdwlganjilfull (kode_mk, nama_mk, dosen,
kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {

font-weight: bold;
text-align: center;
font-size: 24px;
font-family: "Comic Sans MS", cursive;
color: #FFF;
}
#form4 table {
font-weight: bold;
color: #FFF;
}
body {
background-color: #00C;
}
#form5 table {
font-family: "Comic Sans MS", cursive;
font-weight: bold;
color: #FFF;
font-size: 16px;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Input Jadwal Matakuliah Semester Ganjil </p>
<p>Prodi Manajemen Informatika </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form5"
id="form5">
<table width="331" align="center">
<tr valign="baseline">
<td width="126" align="left" nowrap="nowrap">Kode Matakuliah</td>
<td width="905"><input type="text" name="kode_mk" value="" size="32"
/></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>

<td><input type="text" name="nama_mk" value="" size="32" /></td>


</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">
<option value="1 TK" <?php if (!(strcmp("1 TK", ""))) {echo "SELECTED";} ?
>>1 TK</option>
<option value="3 TK" <?php if (!(strcmp("3 TK", ""))) {echo "SELECTED";} ?
>>3 TK</option>
<option value="5 TK" <?php if (!(strcmp("5 TK", ""))) {echo "SELECTED";} ?
>>5 TK</option>
<option value="1 MI" <?php if (!(strcmp("1 MI", ""))) {echo "SELECTED";} ?
>>1 MI</option>
<option value="3 MI" <?php if (!(strcmp("3 MI", ""))) {echo "SELECTED";} ?
>>3 MI</option>
<option value="5 MI" <?php if (!(strcmp("5 MI", ""))) {echo "SELECTED";} ?
>>5 MI</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">
<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo
"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu" <?php if (!(strcmp("Rabu", ""))) {echo "SELECTED";} ?
>>Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Waktu</td>
<td><input type="text" name="waktu" value="" size="32" /></td>

</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWARE" <?php if (!(strcmp("LAB. SOFTWARE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWARE</option>
<option value="LAB. HARDWARE" <?php if (!(strcmp("LAB. HARDWARE",
""))) {echo "SELECTED";} ?>>LAB. HARDWARE</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">&nbsp;</td>
<td><table width="189" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="62"><input name="Submit" type="submit" value="SIMPAN"
/></td>
<td width="46">&nbsp;</td>
<td width="81"><input name="Submit2" type="reset" value="RESET"
/></td>
</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form5" />
</form>
</body>
</html>
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form3")) {
$insertSQL = sprintf("INSERT INTO d_jdwlgenapfull (kode_mk, nama_mk, dosen,
kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #00C;
}
#form2 p {
font-weight: bold;
color: #FFF;
font-family: "Comic Sans MS", cursive;
text-align: center;
font-size: 24px;
}
#form3 table {
font-family: "Comic Sans MS", cursive;
font-weight: bold;
}
</style>
</head>
<body>
<form id="form2" name="form2" method="post" action="">
<p>Input Jadwal Matakuliah Semester Ganjil</p>
<p>Prodi Teknik Komputer</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form method="post" name="form1" id="form1">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form3"
id="form3">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kode Matakuliah</td>
<td><input type="text" name="kode_mk" value="" size="32" /></td>
</tr>

<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>
<td><input type="text" name="nama_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">
<option value="1 TK" <?php if (!(strcmp("1 TK", ""))) {echo "SELECTED";} ?
>>1 TK</option>
<option value="3 TK" <?php if (!(strcmp("3 TK", ""))) {echo "SELECTED";} ?
>>3 TK</option>
<option value="5 TK" <?php if (!(strcmp("5 TK", ""))) {echo "SELECTED";} ?
>>5 TK</option>
<option value="1 MI" <?php if (!(strcmp("1 MI", ""))) {echo "SELECTED";} ?
>>1 MI</option>
<option value="3 MI" <?php if (!(strcmp("3 MI", ""))) {echo "SELECTED";} ?
>>3 MI</option>
<option value="5 MI" <?php if (!(strcmp("5 MI", ""))) {echo "SELECTED";} ?
>>5 MI</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">
<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo
"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu" <?php if (!(strcmp("Rabu", ""))) {echo "SELECTED";} ?
>>Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">

<td nowrap="nowrap" align="left">Waktu</td>


<td><input type="text" name="waktu" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWARE" <?php if (!(strcmp("LAB. SOFTWARE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWARE</option>
<option value="LAB. HARDWARE" <?php if (!(strcmp("LAB. HARDWARE",
""))) {echo "SELECTED";} ?>>LAB. HARDWARE</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><input type="submit" value="SIMPAN" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form3" />
</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {

case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);
$query_tkganjil = "SELECT * FROM d_jdwlganjiltk ORDER BY hari ASC";
$tkganjil = mysql_query($query_tkganjil, $jadwal) or die(mysql_error());
$row_tkganjil = mysql_fetch_assoc($tkganjil);
$totalRows_tkganjil = mysql_num_rows($tkganjil);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 table tr td {
font-size: 24px;
}
#form1 table {
font-weight: bold;
font-family: "Comic Sans MS", cursive;
color: #FFF;
}
body {

background-color: #00C;
}
#form3 table {
font-size: 12px;
font-weight: bold;
color: #FFF;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="128" rowspan="3" align="center" valign="middle"><img
src="../gambar/logo.png" width="181" height="162" /></td>
<td width="854" height="50" align="center">JADWAL KULIAH SEMESTER
GANJIL</td>
</tr>
<tr>
<td height="50" align="center">TAHUN AKADEMIK 2013-2014</td>
</tr>
<tr>
<td height="50" align="center">PRODI TEKNIK KOMPUTER</td>
</tr>
</table>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form id="form3" name="form3" method="post" action="">
<table width="982" border="1" align="center">
<tr>
<td width="103" align="center" bgcolor="#999999">Kode Matakuliah</td>
<td width="210" align="center" bgcolor="#999999">Matakuliah</td>
<td width="267" align="center" bgcolor="#999999">Dosen</td>
<td width="83" align="center" bgcolor="#999999">Kelas</td>
<td width="77" align="center" bgcolor="#999999">Hari</td>
<td width="87" align="center" bgcolor="#999999">Waktu</td>
<td width="109" align="center" bgcolor="#999999">Ruang</td>
</tr>
<?php do { ?>
<tr>
<td align="center"><?php echo $row_tkganjil['kode_mk']; ?></td>

<td align="left"><?php echo $row_tkganjil['nama_mk']; ?></td>


<td align="left"><?php echo $row_tkganjil['dosen']; ?></td>
<td align="center"><?php echo $row_tkganjil['kelas']; ?></td>
<td align="center"><?php echo $row_tkganjil['hari']; ?></td>
<td align="center"><?php echo $row_tkganjil['waktu']; ?></td>
<td align="center"><?php echo $row_tkganjil['ruang']; ?></td>
</tr>
<?php } while ($row_tkganjil = mysql_fetch_assoc($tkganjil)); ?>
</table>
</form>
<form id="form4" name="form4" method="post" action="">
</form>
</body>
</html>
<?php
mysql_free_result($tkganjil);
?>
list_ganjilMI.php
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":

$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";


break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form4")) {
$insertSQL = sprintf("INSERT INTO d_jdwlganjilmi (kode_mk, nama_mk, dosen,
kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {
font-family: "Comic Sans MS", cursive;
font-weight: bold;
font-size: 24px;
text-align: center;

color: #FFF;
}
body {
background-color: #00C;
}
#form4 table {
font-weight: bold;
color: #FFF;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Input Jadwal Matakuliah Semester Ganjil</p>
<p>Prodi Manajemen Informatika</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form4"
id="form4">
<table width="339" align="center">
<tr valign="baseline">
<td width="134" align="left" nowrap="nowrap">Kode Matakuliah</td>
<td width="209"><input type="text" name="kode_mk" value="" size="32"
/></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>
<td><input type="text" name="nama_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">

<option value="1 MI" <?php if (!(strcmp("1 MI", ""))) {echo "SELECTED";} ?


>>1 MI</option>
<option value="3 MI" <?php if (!(strcmp("3 MI", ""))) {echo "SELECTED";} ?
>>3 MI</option>
<option value="5 MI" <?php if (!(strcmp("5 MI", ""))) {echo "SELECTED";} ?
>>5 MI</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">
<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo
"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu" <?php if (!(strcmp("Rabu", ""))) {echo "SELECTED";} ?
>>Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Waktu</td>
<td><input type="text" name="waktu" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWARE" <?php if (!(strcmp("LAB. SOFTWARE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWARE</option>
<option value="LAB.HARDWARE" <?php if (!(strcmp("LAB.HARDWARE",
""))) {echo "SELECTED";} ?>>LAB.HARDWARE</option>
</select></td>

</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><table width="187" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="87"><input type="submit" value="SIMPAN" /></td>
<td width="37">&nbsp;</td>
<td width="63"><input name="Reset" type="reset" value="RESET" /></td>
</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form4" />
</form>
<p>&nbsp;</p>
<form id="form3" name="form3" method="post" action="">
</form>
</body>
</html>
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;

case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);
$query_miganjil = "SELECT * FROM d_jdwlganjilmi ORDER BY hari ASC";
$miganjil = mysql_query($query_miganjil, $jadwal) or die(mysql_error());
$row_miganjil = mysql_fetch_assoc($miganjil);
$totalRows_miganjil = mysql_num_rows($miganjil);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 table {
font-size: 24px;
font-family: "Comic Sans MS", cursive;
font-weight: bold;
color: #FFF;
}
#form3 table {
font-size: 12px;
font-weight: bold;
color: #FFF;
}
body {
background-color: #00C;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>

<td width="128" rowspan="3" align="center" valign="middle"><img


src="../gambar/logo.png" width="181" height="162" /></td>
<td width="854" height="50" align="center">JADWAL KULIAH SEMESTER
GANJIL</td>
</tr>
<tr>
<td height="50" align="center">TAHUN AKADEMIK 2013-2014</td>
</tr>
<tr>
<td height="50" align="center">PRODI MANAJEMEN INFORMATIKA</td>
</tr>
</table>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form id="form3" name="form3" method="post" action="">
<table width="982" border="1" align="center">
<tr align="center">
<td width="106" height="20" bgcolor="#999999">Kode Matakuliah</td>
<td width="216" bgcolor="#999999">Matakuliah</td>
<td width="235" bgcolor="#999999">Dosen</td>
<td width="86" bgcolor="#999999">Kelas</td>
<td width="80" bgcolor="#999999">Hari</td>
<td width="90" bgcolor="#999999">Waktu</td>
<td width="123" bgcolor="#999999">Ruang</td>
</tr>
<?php do { ?>
<tr>
<td align="center"><?php echo $row_miganjil['kode_mk']; ?></td>
<td><?php echo $row_miganjil['nama_mk']; ?></td>
<td><?php echo $row_miganjil['dosen']; ?></td>
<td align="center"><?php echo $row_miganjil['kelas']; ?></td>
<td align="center"><?php echo $row_miganjil['hari']; ?></td>
<td align="center"><?php echo $row_miganjil['waktu']; ?></td>
<td align="center"><?php echo $row_miganjil['ruang']; ?></td>
</tr>
<?php } while ($row_miganjil = mysql_fetch_assoc($miganjil)); ?>
</table>
</form>
<form id="form4" name="form4" method="post" action="">
</form>
</body>
</html>

<?php
mysql_free_result($miganjil);
?>
list_genapTK.php
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form3")) {


$insertSQL = sprintf("INSERT INTO d_jdwlgenapfull (kode_mk, nama_mk, dosen,
kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {
text-align: center;
font-size: 24px;
font-family: "Comic Sans MS", cursive;
}
#form3 table {
font-weight: bold;
color: #FFF;
}
body {
background-color: #00C;
}
#form1 p {
color: #FFF;
}
#form1 p {
font-weight: bold;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">

<p>Input Jadwal Matakuliah Semester Genap</p>


<p>Prodi Manajemen Informatika</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form3"
id="form3">
<table width="376" align="center">
<tr valign="baseline">
<td width="141" align="left" nowrap="nowrap">Kode Matakuliah</td>
<td width="223"><input type="text" name="kode_mk" value="" size="32"
/></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>
<td><input type="text" name="nama_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">
<option value="2 TK" <?php if (!(strcmp("2 TK", ""))) {echo "SELECTED";} ?
>>2 TK</option>
<option value="4 TK" <?php if (!(strcmp("4 TK", ""))) {echo "SELECTED";} ?
>>4 TK</option>
<option value="6 TK" <?php if (!(strcmp("6 TK", ""))) {echo "SELECTED";} ?
>>6 TK</option>
<option value="2 MI" <?php if (!(strcmp("2 MI", ""))) {echo "SELECTED";} ?
>>2 MI</option>
<option value="4 MI" <?php if (!(strcmp("4 MI", ""))) {echo "SELECTED";} ?
>>4 MI</option>
<option value="6 MI" <?php if (!(strcmp("6 MI", ""))) {echo "SELECTED";} ?
>>6 MI</option>
</select></td>
</tr>

<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">
<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo
"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu" <?php if (!(strcmp("Rabu", ""))) {echo "SELECTED";} ?
>>Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Waktu</td>
<td><input type="text" name="waktu" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWARE" <?php if (!(strcmp("LAB. SOFTWARE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWARE</option>
<option value="LAB. HARDWARE" <?php if (!(strcmp("LAB. HARDWARE",
""))) {echo "SELECTED";} ?>>LAB. HARDWARE</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td align="center"><table width="221" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="72"><input type="submit" value="SIMPAN" /></td>
<td width="27">&nbsp;</td>

<td width="122"><input name="Reset" type="reset" value="RESET" /></td>


</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form3" />
</form>
<form id="form2" name="form2" method="post" action="">
</form>
</body>
</html>
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;

}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form4")) {
$insertSQL = sprintf("INSERT INTO d_jdwlgenaptk (kode_mk, nama_mk, dosen,
kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {
color: #FFF;
}
#form1 p {
font-weight: bold;
}
#form1 p {
font-size: 24px;
text-align: center;
}
body {
background-color: #00C;
}
#form4 table {

font-weight: bold;
color: #FFF;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Input Jadwal Matakuliah Semester Genap</p>
<p>Prodi Teknik Komputer</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form4"
id="form4">
<table width="304" align="center">
<tr valign="baseline">
<td width="97" align="left" nowrap="nowrap">Kode</td>
<td width="195"><input type="text" name="kode_mk" value="" size="32"
/></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>
<td><input type="text" name="nama_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">
<option value="1 TK" <?php if (!(strcmp("1 TK", ""))) {echo "SELECTED";} ?
>>1 TK</option>
<option value="3 TK" <?php if (!(strcmp("3 TK", ""))) {echo "SELECTED";} ?
>>3 TK</option>
<option value="5 TK" <?php if (!(strcmp("5 TK", ""))) {echo "SELECTED";} ?
>>5 TK</option>
</select></td>

</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">
<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo
"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu" <?php if (!(strcmp("Rabu", ""))) {echo "SELECTED";} ?
>>Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Waktu</td>
<td><input type="text" name="waktu" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWARE" <?php if (!(strcmp("LAB. SOFTWARE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWARE</option>
<option value="LAB. HARDWARE" <?php if (!(strcmp("LAB. HARDWARE",
""))) {echo "SELECTED";} ?>>LAB. HARDWARE</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><table width="185" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><input type="submit" value="SIMPAN" /></td>
<td width="12">&nbsp;</td>

<td width="63"><input name="Reset" type="reset" value="RESET" /></td>


</tr>
</table></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form4" />
</form>
<form id="form3" name="form3" method="post" action="">
</form>
</body>
</html>
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;

}
}
mysql_select_db($database_jadwal, $jadwal);
$query_genapTK = "SELECT * FROM d_jdwlgenaptk ORDER BY hari ASC";
$genapTK = mysql_query($query_genapTK, $jadwal) or die(mysql_error());
$row_genapTK = mysql_fetch_assoc($genapTK);
$totalRows_genapTK = mysql_num_rows($genapTK);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 table {
font-weight: bold;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
color: #FFF;
}
body {
background-color: #00C;
}
#form3 table {
font-weight: bold;
}
#form3 table {
color: #FFF;
font-size: 12px;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="128" rowspan="3" align="center" valign="middle"><img
src="../gambar/logo.png" width="181" height="162" /></td>
<td width="854" height="50" align="center">JADWAL KULIAH SEMESTER
GENAP</td>

</tr>
<tr>
<td height="50" align="center">TAHUN AKADEMIK 2013-2014</td>
</tr>
<tr>
<td height="50" align="center">PRODI TEKNIK KOMPUTER</td>
</tr>
</table>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form id="form3" name="form3" method="post" action="">
<table width="1134" border="1" align="center">
<tr>
<td width="109" align="center" bgcolor="#666666">Kode Matakuliah</td>
<td width="299" align="center" bgcolor="#666666">Matakuliah</td>
<td width="310" align="center" bgcolor="#666666">Dosen</td>
<td width="89" align="center" bgcolor="#666666">Kelas</td>
<td width="83" align="center" bgcolor="#666666">Hari</td>
<td width="93" align="center" bgcolor="#666666">Waktu</td>
<td width="105" align="center" bgcolor="#666666">Ruang</td>
</tr>
<?php do { ?>
<tr>
<td align="center"><?php echo $row_genapTK['kode_mk']; ?></td>
<td><?php echo $row_genapTK['nama_mk']; ?></td>
<td><?php echo $row_genapTK['dosen']; ?></td>
<td align="center"><?php echo $row_genapTK['kelas']; ?></td>
<td align="center"><?php echo $row_genapTK['hari']; ?></td>
<td align="center"><?php echo $row_genapTK['waktu']; ?></td>
<td align="center"><?php echo $row_genapTK['ruang']; ?></td>
</tr>
<?php } while ($row_genapTK = mysql_fetch_assoc($genapTK)); ?>
</table>
</form>
<form id="form4" name="form4" method="post" action="">
</form>
</body>
</html>
<?php
mysql_free_result($genapTK);
?>

list_genapMI.php
<?php require_once('../../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form5")) {

$insertSQL = sprintf("INSERT INTO d_jdwlgenapmi (kode_mk, nama_mk, dosen,


kelas, hari, waktu, ruang) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['kode_mk'], "text"),
GetSQLValueString($_POST['nama_mk'], "text"),
GetSQLValueString($_POST['dosen'], "text"),
GetSQLValueString($_POST['kelas'], "text"),
GetSQLValueString($_POST['hari'], "text"),
GetSQLValueString($_POST['waktu'], "text"),
GetSQLValueString($_POST['ruang'], "text"));
mysql_select_db($database_jadwal, $jadwal);
$Result1 = mysql_query($insertSQL, $jadwal) or die(mysql_error());
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {
font-size: 24px;
}
#form1 p {
font-family: "Comic Sans MS", cursive;
}
#form1 p {
font-weight: bold;
}
#form1 p {
text-align: center;
}
#form1 p {
color: #FFF;
}
body {
background-color: #00C;
}
#form5 table {
color: #FFF;
font-weight: bold;
}

</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Input Jadwal Matakuliah Semester Genap</p>
<p>Prodi Manajemen Informatika</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
</form>
<form action="<?php echo $editFormAction; ?>" method="post" name="form5"
id="form5">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kode Matakuliah</td>
<td><input type="text" name="kode_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Matakuliah</td>
<td><input type="text" name="nama_mk" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Dosen</td>
<td><input type="text" name="dosen" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Kelas</td>
<td><select name="kelas">
<option value="2 MI" <?php if (!(strcmp("2 MI", ""))) {echo "SELECTED";} ?
>>2 MI</option>
<option value="4 MI" <?php if (!(strcmp("4 MI", ""))) {echo "SELECTED";} ?
>>4 MI</option>
<option value="6 MI" <?php if (!(strcmp("6 MI", ""))) {echo "SELECTED";} ?
>>6 MI</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Hari</td>
<td><select name="hari">

<option value="Senin" <?php if (!(strcmp("Senin", ""))) {echo


"SELECTED";} ?>>Senin</option>
<option value="Selasa" <?php if (!(strcmp("Selasa", ""))) {echo
"SELECTED";} ?>>Selasa</option>
<option value="Rabu">Rabu</option>
<option value="Kamis" <?php if (!(strcmp("Kamis", ""))) {echo
"SELECTED";} ?>>Kamis</option>
<option value="Jum'at" <?php if (!(strcmp("Jum\'at", ""))) {echo
"SELECTED";} ?>>Jum'at</option>
<option value="Sabtu" <?php if (!(strcmp("Sabtu", ""))) {echo
"SELECTED";} ?>>Sabtu</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Waktu</td>
<td><input type="text" name="waktu" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="left">Ruang</td>
<td><select name="ruang">
<option value="A" <?php if (!(strcmp("A", ""))) {echo "SELECTED";} ?
>>A</option>
<option value="B" <?php if (!(strcmp("B", ""))) {echo "SELECTED";} ?
>>B</option>
<option value="C" <?php if (!(strcmp("C", ""))) {echo "SELECTED";} ?
>>C</option>
<option value="LAB. SOFTWATE" <?php if (!(strcmp("LAB. SOFTWATE",
""))) {echo "SELECTED";} ?>>LAB. SOFTWATE</option>
<option value="LAB. HARDWARE" <?php if (!(strcmp("LAB. HARDWARE",
""))) {echo "SELECTED";} ?>>LAB. HARDWARE</option>
</select></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">&nbsp;</td>
<td><input name="Submit" type="submit" value="SIMPAN" /> <input
name="Submit2" type="reset" value="RESET" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form5" />
</form>
<p>&nbsp;</p>
<form id="form3" name="form3" method="post" action="">
</form>

<form id="form4" name="form4" method="post" action="">


</form>
</body>
</html>
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);
$query_genapMI = "SELECT * FROM d_jdwlgenapmi ORDER BY hari ASC";
$genapMI = mysql_query($query_genapMI, $jadwal) or die(mysql_error());
$row_genapMI = mysql_fetch_assoc($genapMI);

$totalRows_genapMI = mysql_num_rows($genapMI);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 table {
font-weight: bold;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
color: #FFF;
}
body {
background-color: #00C;
}
#form3 table {
font-weight: bold;
color: #FFF;
font-size: 12px;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="982" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="128" rowspan="3" align="center" valign="middle"><img
src="../gambar/logo.png" width="181" height="162" /></td>
<td width="854" height="50" align="center">JADWAL KULIAH SEMESTER
GENAP</td>
</tr>
<tr>
<td height="50" align="center">TAHUN AKADEMIK 2013-2014</td>
</tr>
<tr>
<td height="50" align="center">PRODI MANAJEMEN INFORMATIKA</td>
</tr>
</table>
</form>

<form id="form2" name="form2" method="post" action="">


</form>
<form id="form3" name="form3" method="post" action="">
<table width="1144" border="1" align="center">
<tr>
<td width="107" align="center" bgcolor="#999999">Kode Matakuliah</td>
<td width="295" align="center" bgcolor="#999999">Matakuliah</td>
<td width="321" align="center" bgcolor="#999999">Dosen</td>
<td width="87" align="center" bgcolor="#999999">Kelas</td>
<td width="81" align="center" bgcolor="#999999">Hari</td>
<td width="91" align="center" bgcolor="#999999">Waktu</td>
<td width="116" align="center" bgcolor="#999999">Ruang</td>
</tr>
<?php do { ?>
<tr>
<td align="center"><?php echo $row_genapMI['kode_mk']; ?></td>
<td><?php echo $row_genapMI['nama_mk']; ?></td>
<td><?php echo $row_genapMI['dosen']; ?></td>
<td align="center"><?php echo $row_genapMI['kelas']; ?></td>
<td align="center"><?php echo $row_genapMI['hari']; ?></td>
<td align="center"><?php echo $row_genapMI['waktu']; ?></td>
<td align="center"><?php echo $row_genapMI['ruang']; ?></td>
</tr>
<?php } while ($row_genapMI = mysql_fetch_assoc($genapMI)); ?>
</table>
</form>
<form id="form4" name="form4" method="post" action="">
</form>
</body>
</html>
<?php
mysql_free_result($genapMI);
?>

mk.php
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")

{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);
$query_d_mkganjilmi = "SELECT * FROM d_mkganjilmi ORDER BY semester
ASC";
$d_mkganjilmi = mysql_query($query_d_mkganjilmi, $jadwal) or
die(mysql_error());
$row_d_mkganjilmi = mysql_fetch_assoc($d_mkganjilmi);
$totalRows_d_mkganjilmi = mysql_num_rows($d_mkganjilmi);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>
<style type="text/css">
#form1 p {
text-align: center;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
color: #FFF;
font-weight: bold;
}
body {
background-color: #00C;
}
#form2 table {
color: #FFF;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Data Matakuliah Semster Ganjil</p>
<p>Prodi Manajemen Informatika</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;</p>
</form>
<form id="form2" name="form2" method="post" action="">
<table width="749" border="1" align="center">
<tr>
<td width="157" align="center">Kode Matakuliah</td>
<td width="293" align="center">Matakuliah</td>
<td width="119" align="center">SKS</td>
<td width="152" align="center">Semester</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_d_mkganjilmi['kode_mk']; ?></td>
<td><?php echo $row_d_mkganjilmi['nama_mk']; ?></td>
<td align="center"><?php echo $row_d_mkganjilmi['sks']; ?></td>
<td align="center"><?php echo $row_d_mkganjilmi['semester']; ?></td>
</tr>
<?php } while ($row_d_mkganjilmi = mysql_fetch_assoc($d_mkganjilmi)); ?>

</table>
</form>
<form id="form3" name="form3" method="post" action="">
</form>
</body>
</html>
<?php
mysql_free_result($d_mkganjilmi);
?>
<?php require_once('../Connections/jadwal.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "",
$theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_jadwal, $jadwal);

$query_d_mkganjilTK = "SELECT * FROM d_mkganjiltk ORDER BY semester


ASC";
$d_mkganjilTK = mysql_query($query_d_mkganjilTK, $jadwal) or
die(mysql_error());
$row_d_mkganjilTK = mysql_fetch_assoc($d_mkganjilTK);
$totalRows_d_mkganjilTK = mysql_num_rows($d_mkganjilTK);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#form1 p {
text-align: center;
font-weight: bold;
font-family: "Comic Sans MS", cursive;
font-size: 24px;
color: #FFF;
}
#form2 table {
font-weight: bold;
}
#form2 table {
font-family: "Comic Sans MS", cursive;
color: #FFF;
}
body {
background-color: #00C;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>Data Matakuliah Semester Ganjil</p>
<p>Prodi Teknik Komputer</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&
#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#821
2;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#
8212;&#8212;&#8212;&#8212;&#8212;&#8212</p>
</form>
<form id="form2" name="form2" method="post" action="">

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


<tr>
<td width="186" align="center">Kode Matakuliah</td>
<td width="310" align="center">Matakuliah</td>
<td width="145" align="center">SKS</td>
<td width="191" align="center">Semester</td>
</tr>
<?php do { ?>
<tr>
<td align="center"><?php echo $row_d_mkganjilTK['kode_mk']; ?></td>
<td><?php echo $row_d_mkganjilTK['nama_mk']; ?></td>
<td align="center"><?php echo $row_d_mkganjilTK['sks']; ?></td>
<td><?php echo $row_d_mkganjilTK['semester']; ?></td>
</tr>
<?php } while ($row_d_mkganjilTK = mysql_fetch_assoc($d_mkganjilTK)); ?>
</table>
</form>
<form id="form3" name="form3" method="post" action="">
</form>
</body>
</html>
<?php
mysql_free_result($d_mkganjilTK);
?>

list_contact.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.p1 {
font-family: "Comic Sans MS", cursive;
}
.p2 {
font-family: "Comic Sans MS", cursive;
}
.p3 {

font-family: "Comic Sans MS", cursive;


text-align: center;
}
.p4 {
font-family: "Comic Sans MS", cursive;
}
.p1 {
color: #FFF;
}
body {
background-color: #00C;
text-align: center;
}
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p class="p1">Alamat : Jl. Batu Angus, Kel. Dufa-Dufa Ternate Utara</p>
<p class="p2"><span class="p1">Telp. (0921) 3128190</span></p>
<p class="p3"><span class="p1">Fax. (0921) 3128576 </span></p>
<p class="p4"><span class="p1">Email : aikomternate1@gmail.com</span></p>
</form>
<p class="p1">&nbsp;</p>
</body>
</html>

You might also like