<!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> </head> <body> <form action="rent.php" method="post" enctype="multipart/form-data"> <?php include 'connect.php'; $datetoday = date("Y-m-d"); ?> <? $sql="select * from zone where zoneA"; //echo"$sql"; $dbquery = mysql_db_query($dbname, $sql); $num_rows = mysql_num_rows($dbquery); $i=0; while ($i < $num_rows) { $result = mysql_fetch_array($dbquery); $zoneA = $result[0]; $zoneB = $result[1]; $zoneC = $result[2]; $zoneD = $result[3]; $zoneE = $result[4]; $showsit = $zoneA; $i++; } ?> <table width="108" border="1"> <tr> <td width="120" height="227"> <table width="100" border="1" cellpadding="0" cellspacing="0" bordercolor="#999999" bordercolordark="#FFFFFF"> <? for ($i = 1; $i <= $showsit; $i++) { ?> <? $sql="select * from status where sale = '$datetoday' and loc = '$i A'"; $result=mysql_query($sql); $num=mysql_num_rows($result); $record=mysql_fetch_array($result); ?> <tr> <td> <tr> <? if($record["stat"]=="0"){ ?> <td bgcolor ="#9FFF9F"><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" > </div></td> </tr> <tr> <td bgcolor="#00FF00"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td> <? } ?> <? if($record["stat"]=="1"){ ?> <td bgcolor ="#9FFF9F"><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" > </div></td> </tr> <tr> <td bgcolor="#FFFF00"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td> <? } ?> <? if($record["stat"]=="2"){ ?> <td bgcolor='#FFA8A8'><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" disabled="disabled"> </div></td> </tr> <tr> <td bgcolor="#FF0000"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td> <? }}?> </tr> </table> <label for="select"></label> ราคา <select name="price" id="select"> <option value="80">80</option> <option value="90">90</option> </select> <input type="submit" name="Submit" value=" ตกลง "> <? mysql_close(); ?> </form> </tr> </table> </body> </html>
<!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> </head> <body> <form action="rent.php" method="post" enctype="multipart/form-data"> <?php include 'connect.php'; $datetoday = date("Y-m-d"); ?> <? $sql="select * from zone where zoneA"; //echo"$sql"; $dbquery = mysql_db_query($dbname, $sql); $num_rows = mysql_num_rows($dbquery); $i=0; while ($i < $num_rows) { $result = mysql_fetch_array($dbquery); $zoneA = $result[0]; $zoneB = $result[1]; $zoneC = $result[2]; $zoneD = $result[3]; $zoneE = $result[4]; $showsit = $zoneA; $i++; } ?> <? echo"<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $i = 0; while ( $i <= $showsit) { $i++; ?> <? $sql="select * from status where sale = '$datetoday' and loc = '$i A'"; $result=mysql_query($sql); $num=mysql_num_rows($result); $record=mysql_fetch_array($result); ?> <? if($record["stat"]=="0"){ ?> <tr><td bgcolor ="#9FFF9F"><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" > </div></td> <td bgcolor="#00FF00"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td></tr> <? } ?> <? if($record["stat"]=="1"){ ?> <tr><td bgcolor ="#9FFF9F"><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" > </div></td> <td bgcolor="#FFFF00"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td></tr> <? } ?> <? if($record["stat"]=="2"){ ?> <tr><td bgcolor='#FFA8A8'><div align="center"> <input name="loc" type="radio" value="<? echo"$i A"; ?>" onClick="sel_sit()" disabled="disabled"> </div></td> <td bgcolor="#FF0000"><div align="center"><strong><? echo"$i A "; ?></strong><br> </div></td></tr> <? } if(($i)%2==0) { echo"</tr>"; } } echo"</tr></table>"; ?> <label for="select"></label> ราคา <select name="price" id="select"> <option value="80">80</option> <option value="90">90</option> </select> <input type="submit" name="Submit" value=" ตกลง "> <? mysql_close(); ?> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง