<script language="JavaScript" type="text/JavaScript" src='jquery.js'>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<?php
//melakukan koneksi ke database
include('koneksi.php');
?>
<title>Tamu</title><body>
<form id="Form1" name="Form1" method="post" action="simpantamu.php">
<p align="justify"> </p>
<div align="justify">
<table width="557" height="369" border="0" align="center" bordercolor="#6699CC" bgcolor="#FF0000">
<tr bordercolor="#00CC66" bgcolor="#00CC66">
<td height="63"><font color="#FFFF66"> </font></td>
<td rowspan="2" bordercolor="#999999" bgcolor="#A4A4A4"><font color="#FFFF66" size="+2" face="Algerian"><img src="../images/Logo.png"width="189" height="66"></font></td>
<td rowspan="2"><div align="center"><font color="#FFFF66"><a href="User/indexa.php"><font size="+2" face="Algerian">MENU
UTAMA</font></a></font></div>
<div align="center"><a href="User/indexa.php"></a></div>
<div align="center"></div></td>
</tr>
<tr>
<td width="17" rowspan="10" bgcolor="#00FF00">
<div align="center"></div>
<div align="left">
<?php include('kalenderjadi.php')?>
</div></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="26" bordercolor="#FFFFFF">Nomor Ktp</td>
<td bordercolor="#FFFFFF"><input name="ktp" type="text" id="ktp" size="16" maxlength="16"></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF"><font color="#000000">Nama Tamu</font></td>
<td bordercolor="#FFFFFF"><div align="left">
<input name="nama" type="text" id="nama" size="30" maxlength="30">
</div></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td width="190" height="28" bordercolor="#FFFFFF"><font color="#000000">Nomor/Jenis
Kamar</font></td>
<td width="328" bordercolor="#FFFFFF"> <div align="left">
<select name="no" size="1" id="select3">
<?php
for ($i=1;$i<=31;$i++)
{
echo "<option value=".$i.">".$i."</option>";
}
?>
</select>
<select name="kamar" id="select">
<?php
$baris=mysql_query("select * from fasilitas where kamar='$kamar'");
$hasil=mysql_fetch_array($baris);
if (!empty($kamar))
{
echo "<option value='$hasil[kamar]'>$hasil[$harga]</option>";
}
else
{
echo "<option value=''></option>";
$xkamar=mysql_query('select * from fasilitas order by kamar') or die ("mysql salah");
while ($kamar=mysql_fetch_array($xkamar))
{
echo "<option value='$kamar[kamar]'>$harga[harga]$kamar[kamar]</option>";
}
}
?>
</select>
</div></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF"><font color="#000000">Chek In</font></td>
<td bordercolor="#FFFFFF"> <div align="left">
<select name="tgl" size="1" id="tgl">
<?php
for ($i=1;$i<=31;$i++)
{
echo "<option value=".$i.">".$i."</option>";
}
?>
</select>
<select name="bln" id="select2">
<option value="01">January</option>
<option value="02">Februari</option>
<option value="03">Maret</option>
<option value="04">April</option>
<option value="05">Mei</option>
<option value="06">Juni</option>
<option value="07">Juli</option>
<option value="08">Agustus</option>
<option value="09">September</option>
<option value="10">Oktober`</option>
<option value="11">November</option>
<option value="12">Desember</option>
</select>
<select name="thn" id="select4">
<?php
$tahun=date("Y");
for ($thn=1960; $thn<=$tahun; $thn++)
{
echo "<option value=$thn selected>$thn</option>";
}
?>
</select>
<a href="tani_maju/index2.php"><strong> </strong></a></div></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="26" bordercolor="#FFFFFF"><font color="#000000">Chek Out</font></td>
<td bordercolor="#FFFFFF"><div align="left">
<select name="select" size="1" id="select7">
<?php
for ($i=1;$i<=31;$i++)
{
echo "<option value=".$i.">".$i."</option>";
}
?>
</select>
<select name="select" id="select8">
<option value="01">January</option>
<option value="02">Februari</option>
<option value="03">Maret</option>
<option value="04">April</option>
<option value="05">Mei</option>
<option value="06">Juni</option>
<option value="07">Juli</option>
<option value="08">Agustus</option>
<option value="09">September</option>
<option value="10">Oktober`</option>
<option value="11">November</option>
<option value="12">Desember</option>
</select>
<select name="select" id="select9">
<?php
$tahun=date("Y");
for ($thn=1960; $thn<=$tahun; $thn++)
{
echo "<option value=$thn selected>$thn</option>";
}
?>
</select>
<a href="tani_maju/index2.php"><strong> </strong></a></div></td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF">Harga Kamar/ Hari</td>
<td bordercolor="#FFFFFF">
<input name="harga" type="text" id="harga3" maxlength="10"> </td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF">Lama Inap</td>
<td bordercolor="#FFFFFF"> <input name="lama" type="text" id="lama3" size="5" maxlength="2">
Hari
<input name="hitung" type="button" id="hitung" onClick="hitung()" value="hitung"/>
</td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF">Total Pembayaran</td>
<td bordercolor="#FFFFFF"><input name="total" type="text" id="total2" maxlength="10">
</td>
</tr>
<tr bordercolor="#FF0000" bgcolor="#FF0000">
<td height="28" bordercolor="#FFFFFF"><font color="#FFFFFF">
<input type="submit" name="submit" value="Proses" />
<input name="BATAL" type="reset" id="BATAL" value="Batal" />
</font></td>
<td bordercolor="#FFFFFF"><div align="left"> </div></td>
</tr>
<tr bordercolor="#00CC66" bgcolor="#00CC66">
<td height="26" colspan="3"> <div align="center">
<?php include('lapfasilitas.php')?>
</div></td>
</tr>
</table>
</div>
<p align="justify"> </p>
</form>
</body>
</html>