?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/contentlist.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="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_th.jpg" width="472" height="54" /></span></td> </tr> <tr> <td width="99%" bgcolor="#FFFFFF"><? $pages = $_GET['pages']; $select_types="select * from products 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 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 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="220" height="23" align="left" valign="top"><? include("menu.php");?></td> <td width="795" valign="top"><table width="762" border="0" cellspacing="0" cellpadding="0" > <tr> <td width="26%" rowspan="2" align="left" valign="top"><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" height="7" background="images/y_02.jpg"></td> <td width="12"><img src="images/y_03.jpg" width="12" height="7" /></td> </tr> <tr> <td background="images/y_04.jpg"> </td> <td><? if ($imagespicture==""){ echo " <img src='images/images_article/no_pic.jpg' WIDTH=150 BORDER=0>"; }else { echo "<a href=content.php?id=$idxs class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 BORDER=0></a>" ; } ?></td> <td background="images/y_06.jpg"> </td> </tr> <tr> <td height="1"><img src="images/y_07.jpg" width="10" height="14" /></td> <td background="images/y_08.jpg"> </td> <td><img src="images/y_09.jpg" width="12" height="14" /></td> </tr> </table></td> <td width="74%" height="104" align="left" valign="top"><table width="562" border="0" cellpadding="0" cellspacing="0" class="current"> <tr> <td width="562"><div align="left" style="font-size: 12pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><b><? echo "<a href=content.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.php?id=<?=$idxs?>"><img src="images/read_more_bg.gif" width="76" height="21" border="0" /></a></td> </tr> </table></td> </tr> <tr> <td height="7"> </td> <td> </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>