?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/contentlist_en.php |
<? include("header_en.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="1023" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3D2B4"> <tr valign="top"> <td width="809" bgcolor="#FFFFFF"><table width="1024" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="50" bgcolor="#0076FA"><span style="font-size: 12pt; color: #FFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;"><img src="images/product_en.jpg" width="472" height="54" /></span></td> </tr> <tr> <td width="99%" bgcolor="#FFFFFF"><? $pages = $_GET['pages']; $select_types="select * from products_en 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 products_en 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 products_en order by id desc"; $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['productsname'],0,150); $imagespicture = $rowss['productsphoto']; $content = substr($rowss[productsdetail],0,450); $bgcounts=$bgcounts+1; $bgmods=$bgcounts%2; if($bgmods==0){ $bgcolors="#E9E9E8"; }else{ $bgcolors="#FFFFFF"; } ?> <table width="1022" border="0" cellspacing="1" cellpadding="1" > <tr> <td width="1024" height="23"><div align="center"> <div align="center"> <table width="602" border="0" cellspacing="0" cellpadding="0" > <tr> <td width="29%" rowspan="2" align="center"><table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10"><img src="images/y_01.jpg" width="10" height="7" /></td> <td width="176"><img src="images/y_02.jpg" width="178" height="7" /></td> <td width="12"><img src="images/y_03.jpg" width="12" height="7" /></td> </tr> <tr> <td><img src="images/y_04.jpg" width="10" height="90" /></td> <td><? if ($imagespicture==""){ echo " <img src='images/images_article/no_pic.jpg' WIDTH=150 BORDER=0>"; }else { echo "<a href=content_en.php?id=$idxs class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 BORDER=0></a>" ; } ?></td> <td><img src="images/y_06.jpg" width="12" height="90" /></td> </tr> <tr> <td><img src="images/y_07.jpg" width="10" height="14" /></td> <td><img src="images/y_08.jpg" width="178" height="14" /></td> <td><img src="images/y_09.jpg" width="12" height="14" /></td> </tr> </table></td> <td width="71%" height="104" align="left" valign="top"><table width="424" border="0" cellpadding="0" cellspacing="0" class="current"> <tr> <td width="424"><div align="left" style="font-size: 12pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><b><? echo "<a href=content_en.php?id=$idxs>$productsNameShow</a>"; ?></b></div></td> </tr> <tr> <td><? echo strip_tags("$content..."); ?></td> </tr> </table></td> </tr> <tr> <td align="right" valign="top"><a href="content_en.php?id=<?=$idxs?>"><img src="images/read_more_bg.gif" width="76" height="21" border="0" /></a></td> </tr> </table> </div> </div></td> </tr> <tr> <td height="7"><div align="left" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="550" height="5" /></div></td> </tr> </table> <? } } ?></td> </tr> </table> <table width="630" border="0" cellspacing="0" cellpadding="0"> <tr> <td></td> </tr> </table></td> </tr> </table> </div></td><? include("footer.php");?> </body> </html>