?
Path : /home/admin/domains/happytokorea.com/private_html/happyezystyle/ |
Current File : /home/admin/domains/happytokorea.com/private_html/happyezystyle/menu.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>Untitled Document</title> </head> <body> <table width="18%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><div align="center"> <? echo "$showmember"; ?></div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><img src="images/arrow.gif" width="7" height="8" /> <a href="ReviewProducts.php">สินค้าโปรโมชั่น</a> <img src="images/gif_new.gif" width="26" height="12" /> </td> </tr> <tr> <td><img src="images/arrow.gif" width="7" height="8" /> ค้นหาสินค้าที่ต้องการ </td> </tr> <tr> <td><script language="JavaScript" type="text/javascript"> function checksearch() { var s1 = document.webFormSearch.txtsearch.value; if( s1.length ==0) { alert("กรุณาใส่คำที่ค้นหาด้วยค่ะ"); document.webFormSearch.txtsearch.focus(); return false; } else return true; } </script> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <form action="Search.php" method="post" name="webFormSearch" id="webFormSearch" onsubmit="return checksearch()"> <tr> <td width="87%"><div align="right"> <input name="txtsearch" type="text" class="inputxx" id="txtsearch" onclick="this.value='';" value="ค้นหาสินค้า" maxlength="15" /> </div></td> <td width="13%"><input name="image" type="image" src="images/icon_search.jpg" width="23" height="23" scr="images/icon_search.jpg" /></td> </tr> <tr> <td><div align="right"> <input name="typesearch" type="radio" value="productscode" checked="checked" /> รหัสสินค้า <input type="radio" name="typesearch" value="productsname" /> ชื่อสินค้า </div></td> <td> </td> </tr> </form> </table></td> </tr> </table></td> </tr> <tr> <td><img src="images/index_09.jpg" width="241" height="49" alt="" /></td> </tr> <tr> <td><? $page = $_GET['page']; $select_type="select * from productstype order by id asc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $select="select * from productstype order by id asc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=20; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From productstype order by id asc limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idx =$rows['id']; $productstypecode =$rows['productstypecode']; $productstypename = $rows['productstypename']; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } $s_num="select * from products where productstypecode = '$productstypecode'"; $query_select_num=mysql_query($s_num); $snum=mysql_num_rows($query_select_num); ?> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="23"><div align="left"></div> <div align="left"></div> <div align="center"> </div> <div align="left"><img src="images/bullet/bt03.gif" width="14" height="14" /> <? echo "<a href=ProductList.php?PRD=$productstypecode>$productstypename</a> ($snum)"; ?></div></td> </tr> <tr> <td height="5"><img src="images/inline.jpg" width="184" height="3" /></td> </tr> </table> <? } } ?> </td> </tr> <tr> <td> </td> </tr> <tr> <td><img src="images/index_09.jpg" width="241" height="49" alt="" /></td> </tr> <tr> <td><? $pages = $_GET['pages']; $select_types="select * from products order by id asc"; $query_selects=mysql_query($select_types); $num_rowss=mysql_num_rows($query_selects); if($num_rowss<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $selects="select * from products order by id asc"; $q_rys = mysql_query($selects); $num_rowss=mysql_num_rows($q_rys); $pagesizes=10; $rts=$num_rowss%$pagesizes; if($rts!=0) { $totalpages=floor($num_rowss/$pagesizes)+1; } else { $totalpages=floor($num_rows/$pagesizes); $toppic_ids=1; } if(empty($pages)) { $pages=1; } mysql_free_result($q_rys); $gotos=($pages-1)*$pagesizes; $sql_select_mems="Select * From products order by stats desc limit $gotos,$pagesizes"; $fects=mysql_query($sql_select_mems); if(!$fects) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcounts=0; while($rowss=mysql_fetch_array($fects)) { $idxs =$rowss['id']; $productsNameShow = $rowss['productsname']; $stats = $rowss['stats']; $bgcounts=$bgcounts+1; $bgmods=$bgcounts%2; if($bgmods==0){ $bgcolors="#E9E9E8"; }else{ $bgcolors="#FFFFFF"; } ?> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="23"><div align="left"></div> <div align="left"></div> <div align="center"> </div> <div align="left"><img src="images/bullet/bt04.gif" width="14" height="14" /> <? echo "<a href=ShowProducts.php?PrdID=$idxs>$productsNameShow</a> ($stats รายการ)"; ?></div></td> </tr> <tr> <td height="5"><img src="images/inline.jpg" width="184" height="3" /></td> </tr> </table> <? } } ?> </td> </tr> <tr> <td><div align="center"><a href="https://www.paysbuy.com/signup.aspx" target="_blank"><br /> </a></div></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="166"><div align="center"><br /> <a href="gallery/demos/default.html"><img src="images/banner1.jpg" width="199" height="290" border="0" /></a><br /> <br /> จำนวนคนเข้าชมเว็บ<br /> <u> <? $sqlc="select * from counter where id=1"; $db_query=mysql_db_query($db,$sqlc); $resultc=mysql_fetch_array($db_query); $count=$resultc[count]; echo "$count"; ?> </u> คน <br /> <br /> </div></td> </tr> </table></td> </tr> </table> </body> </html>