?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/book.php |
<? include("header.php");?> <div align="center"> <td colspan="5" bgcolor="#FFFFFF"> <table width="1024" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3D2B4"> <tr valign="top"> <td width="204" bgcolor="#FFFFFF"><? include("menu.php");?></td> <td width="816" bgcolor="#FFFFFF"><table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="98%" height="50" background="images/tabblank.jpg"><span style="font-size: 12pt; color: #FFF; font-family: Verdana, Arial, Helvetica, sans-serif"> <? $eid=$_GET[id]; $tb="book"; mysql_connect( $host,$user,$pw) or die ("µÔ´µè͡Ѻ°Ò¹¢éÍÁÙÅ Mysql äÁèä´é "); mysql_select_db($dbname) or die("àÅ×Í¡°Ò¹¢éÍÁÙÅäÁèä´é"); /* ·Ó¡ÒÃàÅ×Í¡°Ò¹¢éÍÁÙÅ¡è͹ */ $sql="Select * From $tb where id='$eid'"; $db_query=mysql_db_query($dbname,$sql); $num_rows=mysql_num_rows($db_query); /* ¹Ñº Reccord ·Õ辺 */ $a=0; while($a < $num_rows) { $result = mysql_fetch_array($db_query); $month=$result[month]; $title=$result[title]; $images=$result[cover1]; $cover2=$result[cover2]; $content=$result[message]; $issue2=$result[issuu2]; $link=$result[link]; $link2=$result[link2]; $scrib=$result[scrib]; $scrib2=$result[scrib2]; $mybook=$result[mybook]; $mybook2=$result[mybook2]; ?> <strong> <?=$title;?> </strong></span></td> </tr> <tr> <td align="left" valign="top"><table width="89%" height="112" border="0" align="center" cellpadding="0" cellspacing="0" > <tr> <td width="2%" valign="top" class="bold1"><img src="images/corner1.jpg" /></td> <td width="93%" height="17" valign="top" class="bold1" background="images/topcorner.jpg" > </td> <td width="5%" valign="top" class="bold1"><img src="images/corner2.jpg" width="30" height="30" /></td> </tr> <tr> <td valign="top" class="bold1" background="images/leftcorner.jpg"> </td> <td height="17" valign="top" class="bold1"><span style="font-size: 14pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><?=$title;?></span> <fb:like layout="button_count' href='http://thebridgesmagazine.com/book.php?id='$eid' "></fb:like></td> <td valign="top" class="bold1" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top" background="images/leftcorner.jpg"> </td> <td height="13" valign="top"><span style="font-size: 14pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"> <? echo $issue2;?> </span></td> <td valign="top" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top" background="images/leftcorner.jpg"> </td> <td height="13" valign="top"> </td> <td valign="top" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top" background="images/leftcorner.jpg"> </td> <td height="13" valign="top"><table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td><a href=<? echo $mybook;?> target="_blank"><img src="images/ipad.gif" width="125" height="75" border="0" /></a></td> <td><a href=<? echo $scrib2;?> target="_blank"><img src="images/scribd.gif" width="125" height="75" border="0" /></a></td> <td><a href=<? echo $link2;?> target="_blank"><img src="images/issuu.gif" width="125" height="75" border="0" /></a></td> <td> </td> </tr> </table></td> <td valign="top" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top" background="images/leftcorner.jpg"> </td> <td height="13" valign="top"><? if ($link==""){ echo ""; }else { echo "<a href=$link class=lightbox rel=flowers>อ่านออนไลน์</a>" ; } ?></td> <td valign="top" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top" background="images/leftcorner.jpg"> </td> <td height="13" valign="top"><?=$content;?></td> <td valign="top" background="images/rightcorner.jpg"> </td> </tr> <tr> <td valign="top"><span class="bold1"><img src="images/corner3.jpg" /></span></td> <td height="13" valign="top" background="images/bottoncorner.jpg"> </td> <td valign="top"><span class="bold1"><img src="images/corner4.jpg" /></span></td> </tr> </table> <? $a++; } mysql_close(); ?></td> </tr> </table> <table width="630" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> </table></td> <td width="10" bgcolor="#FFFFFF"> </td> </tr> </table> </td><? include("footer.php");?> <td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td> </tr> <tr> <td><img src="images/spacer.gif" width="1" height="39" border="0" alt=""></td> </tr> </table> </div> </body> </html>