?
Path : /home/admin/domains/happytokorea.com/public_html/happyezystyle/ |
Current File : /home/admin/domains/happytokorea.com/public_html/happyezystyle/hotellist.php |
<!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>Air_ticket</title> <style type="text/css"> <!-- body { background-color: #3DF3F6; } --> </style> <? include("header.php");?> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script src="Scripts/swfobject_modified.js" type="text/javascript"></script> <script type="text/javascript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script><script language="JavaScript"> function checksearch() { var s1 = document.webFormSearch.txtsearch.value; if( s1.length ==0) { alert("กรุณาใส่คำที่ค้นหาด้วยค่ะ"); document.webFormSearch.txtsearch.focus(); return false; } else return true; } </script> </head> <body onload="MM_preloadImages('images/home_over_01.gif','images/menu_over02.gif','images/menu_over03.gif','images/menu_over04.gif')"> <table width="100" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','982','height','261','src','images/banner_flash','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','images/banner_flash' ); //end AC code </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="982" height="261"> <param name="movie" value="images/banner_flash.swf" /> <param name="quality" value="high" /> <embed src="images/banner_flash.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="982" height="261"></embed> </object></noscript></td> </tr> <tr> <td valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/Banner_flash/banner_flash_04.jpg" width="489" height="189" border="0" /></td> <td><a href="airticket.html"><img src="images/Banner_flash/banner_flash_05.jpg" width="493" height="189" border="0" /></a></td> </tr> </table></td> </tr> <tr> <td bgcolor="#FFFFFF"><table width="980" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="300" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0"> <tr> <td><a href="index_fit.html"><img src="images/menu/menu_01.jpg" width="300" height="49" border="0" /></a></td> </tr> <tr> <td><img src="images/menu/menu_02.jpg" width="300" height="51" /></td> </tr> <tr> <td><img src="images/menu/menu_03.jpg" width="300" height="50" /></td> </tr> <tr> <td height="54"><img src="images/menu/menu_04.jpg" width="300" height="54" /></td> </tr> <tr> <td height="54"><a href="contact_us.html"><img src="images/menu/menu_05.jpg" width="300" height="51" border="0" /></a></td> </tr> <tr> <td height="54"><a href="https://www.facebook.com/happy.ezystyle"><img src="images/menu/menu_06.jpg" width="300" height="56" border="0" /></a></td> </tr> </table></td> </tr> <tr> <td><img src="images/menu/menu_07.jpg" width="300" height="48" /></td> </tr> <tr> <td> </td> </tr> <tr> <td></td> </tr> </table></td> <td width="680" valign="top"><table width="623" border="0" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td width="655"><strong>Hotel</strong></td> </tr> <tr> <td> </td> </tr> <tr> <td><p> <? $objConnect = mysql_connect("localhost","admin_fit","savage") or die(mysql_error()); $objDB = mysql_select_db("admin_fit"); $strSQL = "SELECT * FROM product where p_type = '1'"; $objQuery = mysql_query($strSQL); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 12; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $strSQL .=" order by id ASC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); echo"<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { echo "<td>"; $intRows++; ?> </p> <center> <table width="339" height="138" border="0" cellpadding="0" cellspacing="0" background="images/images/bgmenu.jpg"> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td width="20"> </td> <td width="338"><div align="center"> <table width="317" border="0" cellpadding="0" cellspacing="0" bordercolor="#000099" background="images/bgtabb.jpg"> <tr> <td width="164" rowspan="6" bgcolor="#FFFFFF"><img src="images/<?=$objResult["p_img"];?>" width="150" height="160" /></td> <td colspan="2" bgcolor="#FFFFFF"><div align="center" class="style3" style="color: #009; font-size: 12pt; font-weight: bold;"> <?=substr($objResult["p_name"],0,80);?> </div></td> </tr> <tr> <td height="19" colspan="2" valign="top" bgcolor="#FFFFFF"><span class="style1"> <?=$objResult["country"];?> </span></td> </tr> <tr> <td width="62" height="18" valign="top" bgcolor="#FFFFFF"><span class="style2"> ราคา </span></td> <td width="90" height="18" valign="top" bgcolor="#FFFFFF"><span class="style2"> <span class="style1"> <?=$objResult["productsprice"];?> </span>บาท</span></td> </tr> <tr> <td height="20" colspan="2" valign="top"><span class="style2"> <?=$objResult["s-detail"];?> </span></td> </tr> <tr> <td height="23" colspan="2" align="center" valign="top" bgcolor="#FFFFFF"> </td> </tr> <tr> <td height="23" colspan="2" align="center" valign="top" bgcolor="#FFFFFF"><div align="center"><a href="hotel.php?id=<? echo $objResult["id"];?>"><img src="images/readmore.png" width="114" height="24" border="0" /></a></div> <br /> <? if($objResult["recommend"] = '0'){ echo ""; } ?> <? if($objResult["recommend"] = '1'){ echo "<img src='images/recommended.gif' width='114' height='24' border='0' />"; } ?></td> </tr> <tr> <td height="23" colspan="3" bgcolor="#FFFFFF"><span class="style1"> <?=$objResult["country"];?> </span></td> </tr> </table> </div></td> <td width="20"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> </table> <br /> <br /> </center> <? echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } } echo"</tr></table>"; ?> <br /> รวม <?= $Num_Rows;?> ข้อมูล : <?=$Num_Pages;?> หน้าที่ : <? if($Prev_Page) { echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</a> "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if($Page!=$Num_Pages) { echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>Next>></a> "; } ?> <? mysql_close($objConnect); ?></td> </tr> <tr> <td> </td> </tr> </table> <br /></td> </tr> </table></td> </tr> <tr> <td><img src="images/fit01_20.jpg" width="982" height="86" /></td> </tr> </table> </body> </html>