?
Path : /home/admin/domains/happytokorea.com/public_html_bk/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/board.php |
<? include("headero.php");?> <style type="text/css"> <!-- .style5 { font-size: 14px; color: #34BCEC; font-weight: bold; } .style7 {font-size: 12px; color: #333333; } .style8 {color: #003399} --> </style> <table width="1001" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> <tr> <td width="423"><img src="images/spacer.gif" width="423" height="1" border="0" alt=""></td> <td width="16"><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td> <td width="225"><img src="images/spacer.gif" width="225" height="1" border="0" alt=""></td> <td width="315"><img src="images/spacer.gif" width="315" height="1" border="0" alt=""></td> <td width="21"><img src="images/spacer.gif" width="21" height="1" border="0" alt=""></td> <td width="10"><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="1152" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="10" bgcolor="#FFFFFF"> </td> <td width="1141"><table width="1140" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="1136"> </td> </tr> <tr> <td valign="top"><br /> <center> <? $objConnect = mysql_connect("localhost","happyworld_trips","savage") or die(mysql_error()); $objDB = mysql_select_db("happyworld_trips"); $strSQL = "SELECT * FROM jos_kunena_messages'"; $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 10"; $objQuery = mysql_query($strSQL); echo"<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { echo "<td>"; $intRows++; ?> <center> <table width="30%" border="0" cellspacing="1" cellpadding="1"> <tr> <td width="70"><div align="center"> <img src="images/icon_board_default.gif" width="16" height="16" /></div></td> <td width="229"><a href="http://happytokorea.com/index.php?option=com_kunena&func=view&catid=<? echo "$id"; ?>&id=<? echo "$id"; ?>"><? echo substr($topic,0,45)."..";?></a> </td> </tr> </table> </center> <? } } ?> <br /></td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table> </div></td> <td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td> </tr> </table><? include("footer.php");?> </body> </html>