?
Path : /home/admin/public_html/old/images/ |
Current File : /home/admin/public_html/old/images/contentlist_kr.php |
<? include("header_kr.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="1078" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3D2B4"> <tr valign="top"> <td width="250" bgcolor="#FFFFFF"><? include("menu_2.php");?></td> <td width="827" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="50"> </td> <td background="images/tabblank.jpg"><span style="font-size: 12pt; color: #FFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold;"> Categories <strong>: <? $sql1="select * from article_category_kr where id='$_GET[PRD]'"; $result1=mysql_db_query($db,$sql1); $rs1=mysql_fetch_array($result1); echo ""; echo $rs1[category_name]; echo ""; ?> </strong></span></td> </tr> <tr> <td width="1%"> </td> <td width="99%" bgcolor="#FFFFFF"><? $pages = $_GET['pages']; $select_types="select * from article_kr where article_category_id='$_GET[PRD]' order by id desc limit 99"; $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_kr where article_category_id='$_GET[PRD]' order by id desc limit 99"; $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_kr where article_category_id='$_GET[PRD]' 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 = $rowss['subject']; $imagespicture = $rowss['images']; $dates = $rowss['date']; $content = substr($rowss[detail],0,350); $stats = $rowss['stats']; $bgcounts=$bgcounts+1; $bgmods=$bgcounts%2; if($bgmods==0){ $bgcolors="#E9E9E8"; }else{ $bgcolors="#FFFFFF"; } ?> <table width="600" border="0" cellspacing="1" cellpadding="1" > <tr> <td width="611" height="23"><div align="left" ></div> <div align="left"></div> <div align="center"> </div> <div align="left"> <table width="100%" border="0" cellspacing="0" cellpadding="0" > <tr> <td width="33%" 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 HEIGHT=150 BORDER=0>"; }else { echo "<a href=images/images_article/$imagespicture class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 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="67%" height="104" align="right" valign="top"><table width="370" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="350"><div align="left" style="font-size: 12pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?><span style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"> (<? echo "$dates"; ?></span><span style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">)</span></div></td> </tr> <tr> <td><? echo "$content"; ?></td> </tr> </table></td> </tr> <tr> <td align="right" valign="top"><a href="contentkr.php?id=<?=$idxs?>"><img src="images/read_more_bg.gif" width="76" height="21" border="0" /></a></td> </tr> </table> </div></td> </tr> <tr> <td height="21"><div align="left" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="600" height="5" /></div></td> </tr> </table> <? } } ?></td> </tr> </table></td> <td width="1" bgcolor="#FFFFFF"></td> </tr> </table> </div></td><? include("footer.php");?> </body> </html>