?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/signup.php |
<? include("header.php");?> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript" src="coin-slider.js"></script> <link rel="stylesheet" href="coin-slider-styles.css" type="text/css" /> <td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3D2B4"> <tr valign="top"> <td width="250" bgcolor="#FFFFFF"><table width="233" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/bigcorners1.jpg" /></td> <td background="images/bigtops.jpg"> </td> <td><img src="images/bigcorners2.jpg" width="20" height="21" /></td> </tr> <tr> <td width="12" rowspan="8" background="images/biglefts.jpg"> </td> <td width="210"><iframe width="210" height="150" src="http://www.youtube.com/embed/86a24p7ULbA?list=UU9dJyJbNgZtwL41-AJ3lQCg" frameborder="0" allowfullscreen="allowfullscreen"></iframe></td> <td width="11" rowspan="8" background="images/bigrights.jpg"> </td> </tr> <tr> <td height="55"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr></tr> <tr> <td></td> </tr> </table> <img src="images/lefttab.jpg" width="200" height="51" alt="" /></td> </tr> <tr> <td><? $page = $_GET['page']; $select_type="select * from article_category order by id desc"; $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 article_category order by id desc"; $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 article_category order by id desc 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['id']; $productstypename = $rows['category_name']; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } $s_num="select * from article where article_category_id = '$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"> <img src="images/bullet.gif" width="5" height="9" /> <? echo "<a href=contentlist.php?PRD=$productstypecode>$productstypename</a> ($snum)"; ?></div></td> </tr> <tr> <td height="5"><img src="images/line2.gif" width="190" height="3" /></td> </tr> </table> <? } } ?></td> </tr> <tr> <td><div align="center"><img src="images/lefttab2.jpg" width="200" height="51" alt="" /></div></td> </tr> <tr> <td><? $pages = $_GET['pages']; $select_types="select * from article order by id desc"; $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 article order by id desc"; $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 article order by count 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 = substr($rowss['subject'],0,60); $imagespicture = $rowss['images']; $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"> <img src="images/bullet.gif" width="5" height="9" /> <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></div></td> </tr> <tr> <td height="5"><img src="images/line2.gif" width="190" height="3" /></td> </tr> </table> <? } } ?></td> </tr> <tr> <td>์ำ์Newsletter</td> </tr> <tr> <td><form action="signup.php" method="post"> <input type="text" size="25" name="address" /> <input type="submit" value="Join!" name="submit" /> </form></td> </tr> <tr> <td height="30" align="center"><table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/nowissue.jpg" width="200" height="45" /></td> </tr> <tr> <td><a href="magazine/vol2th.html" target="_blank"><img src="images/cover2vol2kr.jpg" width="175" height="229" border="0" /></a><a href="magazine/index.html" target="_blank"></a></td> </tr> <tr> <td><a href="magazine/vol2kr.html" target="_blank"><img src="images/COVERvol2th.jpg" width="175" height="229" border="0" /></a></td> </tr> </table></td> </tr> <tr> <td><img src="images/bigcorners3.jpg" width="20" height="21" /></td> <td height="19" background="images/bigbuttoms.jpg"> </td> <td><img src="images/bigcorners4.jpg" width="20" height="21" /></td> </tr> </table></td> <td width="816" bgcolor="#FFFFFF"><table width="745" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3"></td> </tr> <tr> <td align="center" valign="top"><img src="images/bigcorners1.jpg" /></td> <td align="center" valign="top" background="images/bigtops.jpg"> </td> <td align="center" valign="top"><img src="images/bigcorners2.jpg" width="20" height="21" /></td> </tr> <tr> <td width="3%" align="center" valign="top" background="images/biglefts.jpg"> </td> <td width="94%" valign="top" align="center"><br> <form action="signup.php" method="POST"> <input type="text" size="35" name="address"> <input type="submit" value="Join!" name="submit"> </form> <?php if ($submit) { include "db_connect.php"; $address = $_POST['address']; mysql_query("INSERT INTO newsletter (address) VALUES ('$address')"); echo "$address สมัครรับจดหมายข่าวแล้ว"; } ?><script> $('#games').coinslider(); </script></td> <td width="3%" valign="top" background="images/bigrights.jpg"> </td> </tr> <tr> <td align="center" valign="top" background="images/biglefts.jpg"><img src="images/bigcorners3.jpg" width="20" height="21" /></td> <td height="21" background="images/bigbuttoms.jpg"> </td> <td valign="top" background="images/bigrights.jpg"><img src="images/bigcorners4.jpg" width="20" height="21" /></td> </tr> </table> <table width="630" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> </table></td> <td width="1" bgcolor="#FFFFFF"></td> </tr> </table> </div></td><? include("footer.php");?> </body> </html>