Flowchart Listing
Flowchart Listing
FLOWCHART PROGRAM
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
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
A
Login admin
Tampilkan
Record
Lengkap
?
T
Input
Field Selanjutnya
Kirim ?
Kirim
Record
Hapus
Record
T
simpan ?
Hapus ?
T
Y
Database
Keluar ?
Y
B
Lanjut ?
Return
Lengkap
?
Tampilkan
Record
T
Input
Field Selanjutnya
Kirim ?
T
simpan ?
T
B
Keluar ?
Database
B
Lanjut ?
Kirim
Record
T
Return
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>
<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"> </td>
</tr>
<tr>
<td bgcolor="#0000CC"> </td>
<td
bgcolor="#8080FF">————————
——————————
212;——————————
————AIKOM©</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":
#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;————————̵
2;—————————&#
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>
</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"> </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"> </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());
}
?>
<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">
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>
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;————————̵
2;—————————&#
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">
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><table width="187" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="87"><input type="submit" value="SIMPAN" /></td>
<td width="37"> </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> </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>
<?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']);
}
<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"> </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"> </td>
}
}
$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;————————̵
2;—————————&#
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"> </td>
<td><table width="185" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110"><input type="submit" value="SIMPAN" /></td>
<td width="12"> </td>
}
}
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")) {
</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;————————̵
2;—————————&#
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">
$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>
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;————————̵
2;—————————&#
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);
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 {