?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/menu_2.php |
<style type="text/css"> <!-- .style2 {font-size: 12} --> </style> <table width="233" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="images/bigcorners1.jpg" /></td> <td background="images/bigtops.jpg"> </td> <td><img src="images/bigcorners2.jpg" width="20" height="21" /></td> </tr> <tr> <td width="12" rowspan="6" background="images/biglefts.jpg"> </td> <td width="210"><img src="cover4.jpg" width="200" height="261" /></td> <td width="11" rowspan="6" background="images/bigrights.jpg"> </td> </tr> <tr> <td height="55"><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr></tr> <tr> <td></td> </tr> </table> <img src="images/contenttab.jpg" width="200" height="51" alt="" /></td> </tr> <tr> <td><span class="style2"> <? $page = $_GET['page']; $select_type="select * from article_category_kr order by id desc"; $query_select=mysql_query($select_type); $num_rows=mysql_num_rows($query_select); if($num_rows<1){ echo "<br><br><center><b>ยังไม่มีการเพิ่มข้อมูลค่ะ</b></center>"; }else{ $select="select * from article_category_kr order by id desc"; $q_ry = mysql_query($select); $num_rows=mysql_num_rows($q_ry); $pagesize=20; $rt=$num_rows%$pagesize; if($rt!=0) { $totalpage=floor($num_rows/$pagesize)+1; } else { $totalpage=floor($num_rows/$pagesize); $toppic_id=1; } if(empty($page)) { $page=1; } mysql_free_result($q_ry); $goto=($page-1)*$pagesize; $sql_select_mem="Select * From article_category_kr order by id desc limit $goto,$pagesize"; $fect=mysql_query($sql_select_mem); if(!$fect) { ("ติดต่อฐานข้อมูลไม่ได้".mysql_error()); exit; } $bgcount=0; while($rows=mysql_fetch_array($fect)) { $idx =$rows['id']; $productstypecode =$rows['id']; $productstypename = $rows['category_name']; $bgcount=$bgcount+1; $bgmod=$bgcount%2; if($bgmod==0){ $bgcolor="#E9E9E8"; }else{ $bgcolor="#FFFFFF"; } $s_num="select * from article_kr where article_category_id = '$productstypecode'"; $query_select_num=mysql_query($s_num); $snum=mysql_num_rows($query_select_num); ?> </span> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="23" class="style2"><div align="left"> <img src="images/bullet.gif" width="5" height="9" /> <? echo "<a href=contentlist_kr.php?PRD=$productstypecode>$productstypename</a> ($snum)"; ?></div></td> </tr> <tr> <td height="5" class="style2"><img src="images/line2.gif" width="190" height="3" /></td> </tr> </table> <span class="style2"> <? } } ?> </span></td> </tr> <tr> <td><div align="center" class="style2"><img src="images/newstab.jpg" width="200" height="51" alt="" /></div></td> </tr> <tr> <td><span class="style2"> <? $pages = $_GET['pages']; $select_types="select * from article_kr 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 article_kr 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 article_kr order by id 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 = substr($rowss['subject'],0,60); $imagespicture = $rowss['images']; $stats = $rowss['stats']; $bgcounts=$bgcounts+1; $bgmods=$bgcounts%2; if($bgmods==0){ $bgcolors="#E9E9E8"; }else{ $bgcolors="#FFFFFF"; } ?> </span> <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td height="23" class="style2"><div align="left"> <img src="images/bullet.gif" width="5" height="9" /> <? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></div></td> </tr> <tr> <td height="5" class="style2"><img src="images/line2.gif" width="190" height="3" /></td> </tr> </table> <span class="style2"> <? } } ?> </span></td> </tr> <tr> <td><a href="http://blog.naver.com/prologue/PrologueList.nhn?blogId=leekiza"></a></td> </tr> <tr> <td><img src="images/bigcorners3.jpg" width="20" height="21" /></td> <td height="19" background="images/bigbuttoms.jpg"> </td> <td><img src="images/bigcorners4.jpg" width="20" height="21" /></td> </tr> <tr> <td> </td> <td height="19" background="images/bigbuttoms.jpg"><a href="http://blog.naver.com/prologue/PrologueList.nhn?blogId=leekiza" target="_blank"><img src="harry.jpg" width="208" height="64" border="0" /></a></td> <td> </td> </tr> </table>