Professional Documents
Culture Documents
>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $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;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['nama'])) {
$colname_Recordset1 = $_GET['nama'];
}
$colname2_Recordset1 = "-1";
if (isset($_GET['tingkatan'])) {
$colname2_Recordset1 = $_GET['tingkatan'];
}
$colname3_Recordset1 = "-1";
if (isset($_GET['kelas'])) {
$colname3_Recordset1 = $_GET['kelas'];
}
mysql_select_db($database_projek1, $projek1);
$query_Recordset1 = sprintf("SELECT
datamurid.nokp,datamurid.nama,datamurid.tingkatan,datamurid.kelas,datamurid.jantina,datamurid.kaum,d
atamurid.agama,kokurikulum.uniform,kokurikulum.kelab,kokurikulum.sukan,kokurikulum.rumah FROM
datamurid,kokurikulum WHERE datamurid.nokp= kokurikulum.nokp AND datamurid.nama LIKE %s AND
datamurid.tingkatan LIKE %s AND datamurid.kelas LIKE%s ORDER BY datamurid.nama ASC ",
GetSQLValueString("%" . $colname_Recordset1 . "%", "text"),GetSQLValueString("%" .
$colname2_Recordset1 . "%", "text"),GetSQLValueString("%" . $colname3_Recordset1 . "%", "text"));
$Recordset1 = mysql_query($query_Recordset1, $projek1) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?><!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">
<!--
.style1 {font-size: 24px}
.style2 {font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style4 {
color: #000000;
font-size: 18px;
}
.style6 {
font-weight: bold;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24pt;
}
body {
background-image: url(Best-Paint-Wallpaper.jpg);
}
.style7 {
font-size: 16px;
font-weight: bold;
}
.style15 { color: #660000
}
-->
</style>
</head>
<body>
<div align="center" class="style1">
<h1 align="center" class="style7"> </h1>
<h1 align="center" class="style6">SEKOLAH MENENGAH KEBANGSAAN SUNGAI DUYUNG</h1>
<p align="center" class="style2 style4">SISTEM PENDAFTARAN KOKURIKULUM 2018</p>
<p align="center"> <img src="Picture1.png" alt="" width="116" height="106" border="0" usemap="#Map"
/></p>
<p align="center" class="style4"> </p>
<map name="Map" id="Map">
<area shape="poly" coords="55,19" href="#" />
<area shape="poly" coords="391,1990" href="#" />
</map>
<p class="style7">LAPORAN</p>
<p class="style7"> </p>
</div>
<form id="form1" name="form1" method="get" action="">
<table width="649" border="2" align="center" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td width="66" bgcolor="#66FFFF"><div align="center"><strong>NAMA</strong></div></td>
<td width="144"><strong>
<label>
<input type="text" name="nama" id="nama" />
</label>
</strong></td>
<td width="99" bgcolor="#66FFFF"><div align="center"><strong>TINGKATAN</strong></div></td>
<td width="97"><strong>
<select name="tingkatan" id="tingkatan">
<option value="" selected="selected">SILA PILIH</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</strong></td>
<td width="59" bgcolor="#66FFFF"><div align="center"><strong>KELAS</strong></div></td>
<td width="142"><strong>
<select name="kelas" id="kelas">
<option selected="selected">SILA PILIH</option>
<option value="SN">SAINS</option>
<option value="SK">SAINS KOMPUTER</option>
<option value="A">ANUGERAH</option>
<option value="B">BELIAN</option>
<option value="C">CEMPAKA</option>
</select>
</strong></td>
</tr>
<tr>
<td colspan="6" bgcolor="#66FFFF"><label>
<div align="center">
<input type="submit" name="cari" id="cari" value="CARI" />
</div>
</label></td>
</tr>
</table>
</form>
<p>