<SCRIPT language=javascript type=text/javascript>
function pilih(idkab){
location.replace("combokab&idkab="+idkab);
}
</script>
<?php
include "../script/fungsi.php";
if($_GET['']!==""){
$idkab=$_GET['idkab'];
$query="SELECT * FROM tbl_bupati WHERE idkab='$idkab'
ORDER BY kabupaten ASC";
$hasil=mysql_query($query);
?>
<table border="0">
<tr>
<th align="left">Pilih Combo Kabupaten</th>
</tr>
<tr>
<td width="200" valign="top"><select name="idkab" id="idkab" onChange="pilih(this.value)">
<option value="0" selected="selected">Pilih Kabupaten</option>
<?php
$sql = mysql_query("SELECT * FROM tbl_kabupaten");
while ($row = mysql_fetch_array($sql)){
echo "<option value=$row[idkab]>$row[kabupaten]</option>";
}
?>
</select></td>
</tr>
<?
echo "<table class='datatable' border='1' cellpadding='1' cellspacing='1'>";
echo "<tr bgcolor='#999966' align='center'>
<td width='5%'><b> No. </b> </td>
<td width='25%'><b> Nama Kabupaten </b> </td>
<td width='25%'><b> Nama Bupati</b> </td>
<td width='15%'><b> Luas Wilayah </b> </td>
<td width='30%'><b> Provinsi</b> </td>
</tr>";
$no=$posisi+1;
while($data=mysql_fetch_array($hasil)){
if(($no % 2)==0){
$warna="#f0f0f0";
}
else{
$warna="#cccc99";
}
echo "<tr bgcolor=$warna>
<td valign='top' align='center'>$no</td>
<td valign='top'>".$data['kabupaten']."</td>
<td valign='top'>".$data['bupati']."</td>
<td valign='top' align='center'>".$data['luas']."</td>
<td valign='top' >".$data['provinsi']."</td>
</tr>";
$no++;
}
?></table>
<?php
}
?>
Script tersebut jalan tetapi untuk kosong, karena posisinya ada di tbl_provinsi (Mau nggak mau pakai Inner Join)<?
$query="SELECT * FROM tbl_bupati INNER JOIN tbl_provinsi ON tbl_bupati.idprov=tbl_provinsi.idprov WHERE idkab='$idkab'
ORDER BY kabupaten ASC";
saya tambahi inner join nggak jalan mas error di while($data=mysql_fetch_array($hasil)){<?php
include "../inc/koneksi.php";
if(isset($_POST['kirim']) && ($_POST['kirim']==='Simpan'))
{
$tanggal=$_POST['today'];
$kode = $_POST['kode'];
$nama=$_POST['nama'];
$jumlah=$_POST['jumlah'];
$nopol=$_POST['nopol'];
$hm=$_POST['hm'];
$teknisi=$_POST['teknisi'];
foreach ($kode as $key => $inputData)
{
if(empty($nopol) or empty($teknisi) or empty($jumlah[$key]))
{
$error = "<script language='javascript'>
alert('FORM --> gak komplit, Kang !!');
document.location='?page=../transaksi/partOut';
</script>";
}
if(($nopol!="") && ($teknisi!="") && ($jumlah[$key]!="") && ($inputData!=""))
{
$cek_jumlah = mysql_query("SELECT sumStock FROM stock WHERE codeStock = '$inputData'");
$result = mysql_fetch_array($cek_jumlah);
if($result < $jumlah[$key])
{
echo "<script language='javascript'>
alert('JUMLAH STOCK --> tidak cukup, Kang !!');
document.location='?page=../transaksi/partOut';
</script>";
}
else
{
$query = mysql_query("insert into partout values(null,'$tanggal','$inputData','$nama[$key]','$jumlah[$key]','$hm','$nopol','$teknisi')");
mysql_query("UPDATE stock SET sumStock = (sumStock - ".$jumlah[$key].") WHERE codeStock ='$inputData'");
if($query)
{
echo"<meta http-equiv='refresh' content='2; url=?page=../transaksi/partOut'>";
}
else
{
$error= "<script language='javascript'>
alert('DATA --> gak masuk, Kang !!');
document.location='?page=../transaksi/partOut';
</script>";
}
}
}
}
if(isset($error))
{
echo"$error";
}
}
?>
<script type="text/javascript">
function deleteRow(tableID)
{
try {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++)
{
var row = table.rows[i];
var chkbox = row.cells[3].childNodes[0];
if(null != chkbox && true == chkbox.checked)
{
if(rowCount <= 2)
{
alert("Tidak bisa dihapus semua Kang !!");
break;
}
table.deleteRow(i);
rowCount--;
i--;
}
}
}
catch(e)
{
alert(e);
}
}
</script>
<div class="post">
<h2 class="title"><a href="#">SPAREPART KELUAR</a></h2>
<p class="meta"><em><?php echo date("l, F j, Y, g:i a");?> Posted by <a href="#">Someone</a></em></p>
<div class="entry">
<p>
<form action="" method="post" name="partOut" class="form">
<table>
<tr>
<td width="100">Tanggal</td>
<td>:</td>
<td><input name="today" type="text" class="today" onkeypress="return handleEnter(this, event)">
<a href="javascript:void(0)" onClick="if(self.gfPop)gfPop.fPopCalendar(document.partOut.today);return false;" ><img src="../calender/calender.jpeg" alt="" name="popcal" width="34" height="29" border="0" align="absmiddle" id="popcal" /></a>
<td> </td>
<td> </td>
<td>HM</td>
<td>:</td>
<td>
<?php
$result = mysql_query("select * from armada order by hmBis asc");
$bisArray = "var hm = new Array();\n";
echo '<select name="hm" onchange="changeHm(this.value)">';
echo '<option>---</option>';
while ($row = mysql_fetch_array($result))
{
echo '<option value="' . $row['hmBis'] . '">' . $row['hmBis'] . '
</option>';
$bisArray .= "hm['" . $row['hmBis'] . "'] = {name:'" . addslashes(
$row['nopolBis'])."'};\n";
}
echo '</select>';
echo '<script type="text/javascript">';
echo $bisArray;
echo 'function changeHm(id)';
echo '{';
echo 'document.getElementById("nopol").value = hm[id].name;';
echo '}';
echo '</script>';
?>
</td>
</tr>
<tr>
<td>Teknisi</td>
<td>:</td>
<td><input name="teknisi" type="text" id="teknisi" onkeypress="return handleEnter(this, event)"></td>
<td> </td>
<td> </td>
<td>No-Pol Bis</td>
<td>:</td>
<td>
<?php
$result = mysql_query("select * from armada order by hmBis asc");
echo '<select name="nopol" id="nopol">';
echo '<option>---</option>';
while ($row = mysql_fetch_array($result))
{
echo '<option value="' . $row['nopolBis'] . '">' . $row['nopolBis'] . '
</option>';
}
echo '</select>';
?>
</td>
</tr>
<tr> </tr>
<tr> </tr>
</table>
<table id="datatable" class="datatable">
<tr>
<th>Kode</th>
<th>Nama Barang</th>
<th>Jumlah</th>
<th></th>
</tr>
<tr>
<td>
<?php
$result = mysql_query("select * from stock");
$stockArray = "var prdName = new Array();\n";
echo '<select name="kode[]" onchange="changeStock(this.value)">';
echo '<option>---</option>';
while ($row = mysql_fetch_array($result))
{
echo '<option value="' . $row['codeStock'] . '">' . $row['codeStock'] . '
</option>';
$stockArray .= "prdName['" . $row['codeStock'] . "'] = {name:'" . addslashes(
$row['nameStock'])."'};\n";
}
echo '</select>';
?>
</td>
<td><input type="text" name="nama[]" id="nama[]" onkeypress="return handleEnter(this, event)" class="nama"></td>
<td><input type="text" name="jumlah[]" onkeypress="return handleEnter(this, event)" class="jumlah"/></td>
<td><input type="checkbox" name="chk[]" onkeypress="return handleEnter(this, event)" onclick="deleteRow('datatable')"/></td>
</tr>
</table>
<table width="490">
<tr>
<td align="right"><input type="button" onclick="javascript:addRow('datatable')" value="Add"></td>
</tr>
<tr>
<td align="center">
<input type="submit" name="kirim" value="Simpan")>
<input type="reset" name="batal" value="Batal"></td>
</tr>
</table>
<script type="text/javascript">
<?php echo $stockArray;?>
function addActionToSelect()
{
$("#datatable select").unbind();
$("#datatable select").change(function()
{
var id = $(this).val();
$(this).parent().next().find('input').val(prdName[id].name);
});
}
$(function(){
addActionToSelect();
});
</script>
</form>
<iframe width=174 height=189 name="gToday:normal:../calender/normal.js" id="gToday:normal:../calender/normal.js" src="../calender/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
</p>
</div>
<p class="metaview"><em><a href="javascript: void(0)" onClick="window.open('../transaksi/viewpartOut.php','mywindow','scrollbars=1, left=250,width=800,height=600')">Edit Data</a></em></p>
</div>
<!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>::: Print Form Pendaftaran :::</title>
</head>
<body>
<div align="center">
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="672" border="0">
<tr>
<td height="80" colspan="3" bgcolor="#FFCC66"><div align="center"><font size="6"><strong>Print Form Pendaftaran</strong></font></div></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="197">Masukkan No Registrasi Anda</td>
<td width="52"><div align="center">:</div></td>
<td width="409"><label for="txtnoreg"></label>
<input name="txtnoreg" type="text" id="txtnoreg" value="<?php echo $_POST['txtnoreg']; ?>" size="25" maxlength="50" />
<input type="submit" name="button" id="button" value="CARI" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<p>
<?php
include "koneksi.php";
//$no_reg = $_POST['txtnoreg'];
//$sqlTampil = "SELECT * FROM data_siswa WHERE no_registrasi='$no_reg'";
//$qryTampil = mysql_query($sqlTampil, $koneksi) or die ("Gagal SQL Query".mysql_error());
//$dataTampil = mysql_fetch_array($qryTampil);
if ((isset($_POST['txtnoreg'])) AND ($_POST['txtnoreg'] <> "")) {
$no_reg = $_POST['txtnoreg'];
$sql = mysql_query("SELECT * FROM data_siswa WHERE no_registrasi='$no_reg'") or die(mysql_error());
//menampilkan jumlah hasil pencarian
$jumlah = mysql_num_rows($sql);
if ($jumlah > 0) {
while ($res=mysql_fetch_array($sql)) {
echo "<br>";
echo "<center><h1>Nomor Registrasi : <b>$no_reg</b> Ditemukan</h1></center><br>";
echo "<center><h2><a href ='../psb/cetak_form.php'>Klik Disini Untuk Melanjutkan</a></h2></center>";
//include "cetak_form.php";
}
}
else {
// menampilkan pesan zero data
echo '<center><h1>Maaf, hasil pencarian tidak ditemukan.</center></h1>';
/*echo "<script language='JavaScript'>alert('Data Tidak Ditemukan');</script>"; */
}
}
else { echo '<center><h1>Silahkan Masukkan Nomor Registrasi nya</center></h1>';}
?></p>
</form>
</div>
</body>
</html>
<?php
include "koneksi.php";
$no_reg = $_POST['txtnoreg'];
$sqlTampil = "SELECT * FROM data_siswa WHERE no_registrasi='$no_reg'";
$qryTampil = mysql_query($sqlTampil, $koneksi) or die ("Gagal SQL Query".mysql_error());
$dataTampil = mysql_fetch_array($qryTampil);
?>
<!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>::: Print Form Data Calon Siswa Baru Pendaftaran PSB SMAN 3 Unggulan Kayuagung :::</title>
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0">
<tr>
<td width="16%" rowspan="6"><div align="center"><img src="images/logo_oki.jpg" width="113" height="117" alt="Logo Kab OKI Sumsel" /></div></td>
<td width="60%"><div align="center"><strong>SMA NEGERI 3 UNGGULAN KABUPATEN OKI</strong></div></td>
<td width="16%" rowspan="6"><div align="center"><img src="images/lambang.jpg" alt="Lambang SMAN 3 Kayuagung" width="113" height="117" align="middle" /></div></td>
</tr>
<tr>
<td><div align="center"><strong>RINTISAN SEKOLAH MENENGAH ATAS BERTARAF INTERNASIONAL (R-SMA-BI)</strong></div></td>
</tr>
<tr>
<td><div align="center"><strong>TERAKREDITASI: A (Amat Baik)</strong></div></td>
</tr>
<tr>
<td><div align="center"><em>Jl. Letnan Sayuti Kelurahan Kedaton Telp./Fax: (0712) 321223 Kayuagung</em></div></td>
</tr>
<tr>
<td><div align="center"><em>Web Site: www.sman3-kag.sch.id E-Mail: sekolah@sman3-kag.sch.id</em></div></td>
</tr>
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td colspan="3"><div align="center">
<p style="margin-bottom:0; margin-top:0"><strong>DATA CALON </strong><strong> SISWA BARU </strong></p>
<p style="margin-bottom:0; margin-top:0"><strong>TAHUN PELAJARAN 2012 - 2013</strong></p><br />
<form action="" method="post" name="form1" id="form1">
<table width="85%" border="0">
<tr>
<td bgcolor="#FFFF99"><strong>Data Pribadi</strong><br />
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0">
<tr>
<td width="15%" align="left" valign="top">No. Registrasi</td>
<td width="3%" align="left" valign="top"><div align="center">:</div></td>
<td width="82%" align="left" valign="top"><input name="txtnoreg" type="text" id="txtnoreg" value="<?php echo $dataTampil['no_registrasi']; ?>" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Nama Calon Siswa</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><input name="txtcalonsiswa" type="text" id="txtcalonsiswa" size="50" readonly="readonly"/></td
></tr>
<tr>
<td align="left" valign="top">Jenis Kelamin</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><input name="txtjk" type="text" id="txtjk" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Tempat Lahir</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><input name="txttempatlahir" type="text" id="txttempatlahir" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Tanggal Lahir</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><input name="txttgllahir" type="text" id="txttgllahir" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Alamat Calon Siswa</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><table width="100%" border="0">
<tr>
<td colspan="3" align="left" valign="top"><textarea name="txtalamat" cols="50" rows="3" readonly="readonly" id="txtalamat"></textarea></td>
</tr>
<tr>
<td width="18%" align="left" valign="top">Hp / Telepon</td>
<td width="3%" align="left" valign="top"><div align="center">:</div></td>
<td width="79%" align="left" valign="top"><input name="txthp" type="text" id="txthp" onkeyup="checkNumber(this)" size="30" readonly="readonly"/>
/
<input name="txttelepon" type="text" id="txttelepon" onkeyup="checkNumber(this)" size="30" readonly="readonly"/>
<em>*) Isi dengan Angka</em></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Asal SMP / MTs</td>
<td align="left" valign="top"><div align="center">:</div></td>
<td align="left" valign="top"><input name="txtasalsekolah" type="text" id="txtasalsekolah" size="70" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td align="left" valign="top"> </td>
<td align="left" valign="top"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFF99"><strong><br />
Orang Tua / Wali</strong><br />
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" border="0">
<tr>
<td align="left" valign="top"><em>Ayah</em><br />
<table width="100%" border="0">
<tr>
<td width="16%">Nama Ayah</td>
<td width="3%"><div align="center">:</div></td>
<td width="81%"><input name="txtnamaayah" type="text" id="txtnamaayah" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>Pekerjaan Ayah</td>
<td><div align="center">:</div></td>
<td><input name="txtkerjaayah" type="text" id="txtkerjaayah" size="35" readonly="readonly" /></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top"><em>Ibu</em><br />
<table width="100%" border="0">
<tr>
<td width="16%">Nama Ibu</td>
<td width="3%"><div align="center">:</div></td>
<td width="81%"><input name="txtnamaibu" type="text" id="txtnamaibu" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>Pekerjaan Ibu</td>
<td><div align="center">:</div></td>
<td><input name="txtkerjaibu" type="text" id="txtkerjaibu" size="35" readonly="readonly" /></td>
</tr>
</table></td>
</tr>
<tr>
<td><em>Wali *) Diisi jika memiliki wali selain orang tua</em><br />
<table width="100%" border="0">
<tr>
<td width="16%">Nama Wali</td>
<td width="3%"><div align="center">:</div></td>
<td width="81%"><input name="txtnamawali" type="text" id="txtnamawali" size="30" readonly="readonly" /></td>
</tr>
<tr>
<td>Pekerjaan Wali</td>
<td><div align="center">:</div></td>
<td><input name="txtnkerjawali" type="text" id="txtnkerjawali" size="35" readonly="readonly" /></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFF99"><br />
<strong>Raport dan Prestasi</strong><br />
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td>Nilai Raport<br /> <em>*) Nilai yang dimasukkan nilai PPK (Kognitif)</em>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><strong>Mata Pelajaran</strong></div></td>
<td><div align="center"><strong>Smt. 1</strong></div></td>
<td><div align="center"><strong>Smt. 2</strong></div></td>
<td><div align="center"><strong>Smt. 3</strong></div></td>
<td><div align="center"><strong>Smt. 4</strong></div></td>
<td><div align="center"><strong>Smt. 5</strong></div></td>
</tr>
<tr>
<td>Bahasa Indonesia</td>
<td align="center" valign="top"><div align="center">
<input name="txtbindosmt1" type="text" id="txtbindosmt1" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbindosmt2" type="text" id="txtbindosmt2" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbindosmt3" type="text" id="txtbindosmt3" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbindosmt4" type="text" id="txtbindosmt4" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbindosmt5" type="text" id="txtbindosmt5" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
</tr>
<tr>
<td>Bahasa Inggris</td>
<td align="center" valign="top"><div align="center">
<input name="txtbinggsmt1" type="text" id="txtbinggsmt1" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbinggsmt2" type="text" id="txtbinggsmt2" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbinggsmt3" type="text" id="txtbinggsmt3" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbinggsmt4" type="text" id="txtbinggsmt4" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtbinggsmt5" type="text" id="txtbinggsmt5" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
</tr>
<tr>
<td>Matematika</td>
<td align="center" valign="top"><div align="center">
<input name="txtmtksmt1" type="text" id="txtmtksmt1" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtmtksmt2" type="text" id="txtmtksmt2" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtmtksmt3" type="text" id="txtmtksmt3" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtmtksmt4" type="text" id="txtmtksmt4" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtmtksmt5" type="text" id="txtmtksmt5" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
</tr>
<tr>
<td>I P A</td>
<td align="center" valign="top"><div align="center">
<input name="txtipasmt1" type="text" id="txtipasmt1" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipasmt2" type="text" id="txtipasmt2" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipasmt3" type="text" id="txtipasmt3" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipasmt4" type="text" id="txtipasmt4" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipasmt5" type="text" id="txtipasmt5" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
</tr>
<tr>
<td>I P S</td>
<td align="center" valign="top"><div align="center">
<input name="txtipssmt1" type="text" id="txtipssmt1" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipssmt2" type="text" id="txtipssmt2" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipssmt3" type="text" id="txtipssmt3" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipssmt4" type="text" id="txtipssmt4" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
<td align="center" valign="top"><div align="center">
<input name="txtipssmt5" type="text" id="txtipssmt5" onkeyup="checkNumber(this)" size="5" maxlength="2" readonly="readonly"/>
</div></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="273">Prestasi<br />
<em>*) Diisi jika memiliki piagam dan prestasi</em>
<table width="100%" border="0">
<tr>
<td width="16%" align="left" valign="top">Olimpiade Sains</td>
<td width="1%"><div align="center">:</div></td>
<td colspan="3" align="left" valign="top"><input name="txtosn" type="text" id="txtosn" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Kompetisi Bhs. Inggris / Bhs. Arab</td>
<td><div align="center">:</div></td>
<td colspan="3" align="left" valign="top"><input name="txtkoming" type="text" id="txtkoming" readonly="readonly" /></td>
</tr>
<tr>
<td align="left" valign="top">Piagam Per-orangan</td>
<td><div align="center">:</div></td>
<td colspan="3" align="left" valign="top"><input name="txtlomba1" type="text" id="txtlomba1" size="60" /></td>
</tr>
<tr>
<td align="left" valign="top">Piagam Lainnya</td>
<td align="center" valign="top"><div align="center">:</div></td>
<td colspan="3" align="left" valign="top"><table width="71%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="5%" align="left" valign="top"><div align="center">No.</div></td>
<td width="95%" align="left" valign="top"><div align="center">Nama Kegiatan Lomba dan Juara</div></td>
</tr>
<tr>
<td align="right" valign="top"><div align="center">1.</div></td>
<td align="left" valign="top"><div align="left">
<input name="txtpiagam1" type="text" id="txtpiagam1" size="80" />
</div></td>
</tr>
<tr>
<td align="right" valign="top"><div align="center">2.</div></td>
<td align="left" valign="top"><div align="left">
<input name="txtpiagam2" type="text" id="txtpiagam2" size="80" />
</div></td>
</tr>
<tr>
<td align="right" valign="top"><div align="center">3.</div></td>
<td align="left" valign="top"><div align="left">
<input name="txtpiagam3" type="text" id="txtpiagam3" size="80" />
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td> </td>
<td width="15%" align="left" valign="top"> </td>
<td width="22%" align="left" valign="top"> </td>
<td width="46%" align="left" valign="top"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top" bgcolor="#FFFF99"><div align="right">
<input type="submit" name="button" id="button" value="CETAK FORM" />
</div></td>
</tr>
</table>
</form>
<p> </p>
</div></td>
</tr>
</table>
</body>
</html>