LAMPIRAN
1. Listing Program Login.php <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Login <meta name="keywords" content="" /> <meta name="description" content="" />
<style type="text/css"> body,td,th { color: #FFF; font-weight: bold; font-size: 12px; } .style11 {color: #0000FF} .style12 { color: #FFF }
<em>Mobile Information System
for SMK Swasta Teladan Medan
2. Listing Program Home.php <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Home <meta name="keywords" content="" /> <meta name="description" content="" />
<style type="text/css"> .style3 {font-size: 14px} body,td,th { color: #044dbc; } .style9 {color: #044dbc} .style11 {color: #0000FF} .style13 {font-size: large} .style14 { color: #000000; font-size: 22px; font-weight: bold; } .style15 {font-size: large; color: #0000FF;}
<em>Mobile Information System
for SMK Swasta Teladan Medan
3. Listing Program Data Siswa <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Data Siswa <meta name="Keywords" content="">
<meta name="Description" content="">
<style type="text/css"> .style1 { font-size: 14px; font-style: italic; font-weight: bold; } body,td,th { color: #FFFFFF; font-size: 12px; } .style2 { color: #000000; font-size: x-large; font-weight: bold; } .style3 { color: #0000FF; font-weight: bold; font-size: 16px; } .style5 { color: #FFFFFF; font-weight: bold; } .style6 {color: #FFFFFF} body { background-color: #FFF; background-repeat: repeat-x; } #wrapper #page #page-bgtop #content .post1 .entry form { color: #000; } #wrapper #page #page-bgtop #content .post1 .entry form { font-size: 14px; } #wrapper #page #page-bgtop #content .post1 .entry form { font-weight: bold; }
<em>Mobile Information System
for SMK swasta teladan medan
4. Listing Program Tambah Siswa
{ 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"] == "form1")) { $insertSQL = sprintf("INSERT INTO siswa (nis, nama, kelas, gender, tempat, tgllahir, alamat) VALUES (%s, %s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['nis'], "text"), GetSQLValueString($_POST['nama'], "text"), GetSQLValueString($_POST['kelas'], "text"), GetSQLValueString($_POST['gender'], "text"), GetSQLValueString($_POST['tempat'], "text"), GetSQLValueString($_POST['tgllahir'], "text"), GetSQLValueString($_POST['alamat'], "text")); mysql_select_db($database_dbkoneksi, $dbkoneksi); $Result1 = mysql_query($insertSQL, $dbkoneksi) or die(mysql_error()); } mysql_select_db($database_dbkoneksi, $dbkoneksi); $query_dtsiswa = "SELECT * FROM siswa"; $dtsiswa = mysql_query($query_dtsiswa, $dbkoneksi) or die(mysql_error()); $row_dtsiswa = mysql_fetch_assoc($dtsiswa); $totalRows_dtsiswa = mysql_num_rows($dtsiswa); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Input Data Siswa <meta name="keywords" content="" /> <meta name="description" content="" />
<style type="text/css"> .style1 {
font-size: 14px; font-style: italic; font-weight: bold; } body,td,th { color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 12px; } .style2 { color: #000000; font-size: x-large; font-weight: bold; } .style3 { color: #0000FF; font-weight: bold; font-size: 16px; } .style5 { color: #FFFFFF; font-weight: bold; } .style6 {color: #FFFFFF} #wrapper div div h2 strong { color: #000; }
<em>Mobile Information System
for SMK swasta teladan medan
<span style="font-size: x-large"><strong>
5. Listing Program Edit Siswa
$colname_dtsiswa = $_GET['nis']; } mysql_select_db($database_koneksi, $koneksi); $query_dtsiswa = sprintf("SELECT * FROM siswa WHERE nis = %s", GetSQLValueString($colname_dtsiswa, "text")); $dtsiswa = mysql_query($query_dtsiswa, $koneksi) or die(mysql_error()); $row_dtsiswa = mysql_fetch_assoc($dtsiswa); $totalRows_dtsiswa = mysql_num_rows($dtsiswa); ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Edit Data Siswa <meta name="Keywords" content=""> <meta name="Description" content="">
<style type="text/css"> .style1 { font-size: 14px; font-style: italic; font-weight: bold; } body,td,th { color: #FFFFFF; font-size: 12px; } .style2 { color: #000000; font-size: x-large; font-weight: bold; } .style3 { color: #0000FF; font-weight: bold; font-size: 16px; } .style5 { color: #FFFFFF; font-weight: bold; } .style6 {color: #FFFFFF} body { background-color: #FFF; }
<em>Mobile Information System
for SMK swasta teladan medan
<span style="font-size: xlarge"><strong>
<span class="style2">Edit Siswa
6. Listing Program Hapus Siswa
!= "") ? "'" . $theValue . "'" : "NULL";
!= "") ? intval($theValue) : "NULL"; != "") ? doubleval($theValue) : "NULL"; != "") ? "'" . $theValue . "'" : "NULL"; != "") ? $theDefinedValue : $theNotDefinedValue;
return $theValue;} } if ((isset($_GET['nis'])) && ($_GET['nis'] != "")) { $deleteSQL = sprintf("DELETE FROM siswa WHERE nis=%s", GetSQLValueString($_GET['nis'], "text")); mysql_select_db($database_koneksi, $koneksi); $Result1 = mysql_query($deleteSQL, $koneksi) or die(mysql_error()); $deleteGoTo = "siswa.php"; if (isset($_SERVER['QUERY_STRING'])) { $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?"; $deleteGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $deleteGoTo)); } ?>
7. Listing Program Logout <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css"> .style3 {font-size: 14px} body,td,th { color: #044dbc; } .style9 {color: #044dbc} .style10 {color: #000000} body { background-color: #044dbc; }