? 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/public_html/old/promice/
File Upload :
Current File : /home/admin/public_html/old/promice/index_kr2.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" />

		
<style type="text/css">
<!--
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}

-->
</style>
<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="812" border="0" cellspacing="0" cellpadding="0">
                
        <tr>
          <td colspan="2"></td>
          </tr>
        <tr>
          <td width="74%" valign="top" align="center"><div id="games">
            <?
$pages = $_GET['pages'];
$select_types="select * from article_kr  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_kr 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_kr order by id 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"; ?>" width="565" height="290" border="0" />
              <span>
                <b><? echo "$TitleImg"; ?></b><br />
                <? echo "$detail"; ?>                </span>              </a> <?
}
}
?></div>
            <script>
			$('#games').coinslider();
		</script>
		<table width="570" 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="564" height="45" background="images/bgslide.jpg"><marquee behavior="scroll" direction="left">
		    <a href="magazine/index.html">
		    <?
$pages = $_GET['pages'];
$select_types="select * from article_kr 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_kr  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_kr  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,45,'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: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span>
            <?
}
}
?>
		    </marquee></td>
		    <td width="17" background="images/bgslide.jpg"><img src="images/bgrightslider.jpg" width="18" height="47" /></td>
		    </tr>
		  </table></td>
          <td width="26%" valign="top"><a href="http://www.happytokorea.com"></a>
            <table width="200" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><a href="http://www.happytokorea.com"><img src="ezysty.jpg" width="208" height="252" border="0" /></a></td>
                </tr>
              
              <tr>
                <td><div align="center"><a href="http://blog.naver.com/prologue/PrologueList.nhn?blogId=leekiza"><img src="harry.jpg" width="208" height="64" border="0" /></a></div></td>
                </tr>
            </table></td>
          </tr>
        <tr>
          <td colspan="2"><table width="596" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="200" align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
                  
                  <tr>
                    <td height="20" align="center" valign="top" bgcolor="#F7941D"><span class="style1">News</span></td>
                  </tr>
                  <tr>
                    <td width="200" height="150" align="center" valign="top" bgcolor="#FFFFFF"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 32
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_kr where article_category_id  >= 32
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_kr where article_category_id  >= 32
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,45,'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 height="50" align="center" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="center" valign="top"><div align="left"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?> </span><br />
                                  <br />
                          </div></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                        </table>
                        <?
}
}
?></td></tr>
                  
              </table></td>
              <td width="200" align="center" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0" >
                  
                  <tr>
                    <td height="19" align="center" valign="top" bgcolor="#F7941D"><span class="style1">Entertain</span></td>
                  </tr>
                  <tr>
                    <td width="334" height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 23
AND article_category_id <= 25 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_kr where article_category_id  >= 23
AND article_category_id <= 25 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_kr where article_category_id  >= 23
AND article_category_id <= 25 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,45,'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 height="50" align="center" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="center" valign="top"><div align="left"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?> </span><br />
                            <br />
                          </div></td>
                          </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                      <?
}
}
?></td>
                    </tr>
                  
              </table></td>
              <td width="196" align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td width="200" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Culture</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 19
AND article_category_id <= 22 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_kr where article_category_id  >= 19
AND article_category_id <= 22 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_kr where article_category_id  >= 19
AND article_category_id <= 22 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,45,'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 height="50" align="center" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="center" valign="top"><div align="left"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                            <br />
                          </div></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                </tr>
              </table></td>
            </tr>
            
            <tr>
              <td align="center" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0" >
                <tr>
                  <td width="200" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Travel</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 47
AND article_category_id <= 52 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_kr where article_category_id  >= 47
AND article_category_id <= 52 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_kr where article_category_id  >= 47
AND article_category_id <= 52 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,45,'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 height="50" align="center" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="center" valign="top"><div align="left"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                            <br />
                          </div></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                </tr>
              </table></td>
              <td align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td width="204" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Cover Story</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top" ><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id=53  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_kr where article_category_id=53 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_kr where article_category_id=53 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,45,'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 height="50" align="center" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="center" valign="top"><div align="left"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span><br />
                            <br />
                          </div></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                </tr>
              </table></td>
              <td align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="200" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Event</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id=6  or article_category_id=26 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_kr where article_category_id=6 or article_category_id=26 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_kr where article_category_id=6  or article_category_id=26 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,45,'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 height="50" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="50" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?></td>
                </tr>
              </table></td>
            </tr>
            
            
            <tr>
              <td height="168" align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td width="200" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Society</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 43
AND article_category_id <=46 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_kr where article_category_id  >= 43
AND article_category_id <= 46 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_kr where article_category_id  >= 43
AND article_category_id <= 46 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,45,'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 height="50" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="20" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?>
                    <br /></td>
                </tr>
              </table></td>
              <td align="center" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td width="319" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Column</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 11
AND article_category_id <= 18 or article_category_id=54 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_kr where article_category_id  >= 11
AND article_category_id <= 18 or article_category_id=54 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  >= 11
AND article_category_id <= 18 or article_category_id=54 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,45,'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 height="50" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                          </span></td>
                        </tr>
                        <tr>
                          <td height="20" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span></td>
                        </tr>
                        <tr>
                          <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                        </tr>
                        <tr>
                          <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                        </tr>
                      </table>
                    <?
}
}
?>
                    <br /></td>
                </tr>
              </table></td>
              <td align="center"><table width="200" border="0" cellspacing="0" cellpadding="0" >
                <tr>
                  <td width="319" align="center" bgcolor="#F7941D"><div style="font-size: 12pt; color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif"><strong>Interview</strong></div></td>
                </tr>
                <tr>
                  <td height="150" align="center" valign="top"><?
$pages = $_GET['pages'];
$select_types="select * from article_kr where article_category_id  >= 27
AND article_category_id <= 31 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_kr where article_category_id  >= 27
AND article_category_id <= 31 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_kr where article_category_id  >= 27
AND article_category_id <= 31 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,30,'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 height="50" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; 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=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=200 HEIGHT=150  BORDER=0></a>"      ;
			}
?>
                            </span></td>
                          </tr>
                          <tr>
                            <td height="20" align="left" valign="top"><span style="font-size: 10pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo "<a href=contentkr.php?id=$idxs>$productsNameShow</a>"; ?></span></td>
                          </tr>
                          <tr>
                            <td height="13" align="center" valign="top"><div align="right"><a href="contentkr.php?id=<? echo $idxs;?>"><img src="more.jpg" width="47" height="11" border="0" /></a></div></td>
                          </tr>
                          <tr>
                            <td height="7"><div align="center" style="font-size: 8pt; color: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><img src="images/line.gif" width="170" height="5" /></div></td>
                          </tr>
                        </table>
                      <?
}
}
?></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
        
        <tr>
          <td colspan="2" align="center">&nbsp;</td>
        </tr>
        <tr>
              <td colspan="2"><img src="images/tab2.jpg" width="791" height="51" /></td>
            </tr>
            <tr>
                  <td height="167" colspan="2"><table width="799" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="286" 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_kr  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_kr 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_kr  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  = $rowss[subject];
$imagespicture = $rowss['images'];
$dates = $rowss['date'];
$contentb = mb_substr($rowss[detail],0,300,'UTF-8');
$stats = $rowss['stats'];
$bgcounts=$bgcounts+1;
$bgmods=$bgcounts%2;
if($bgmods==0){
	$bgcolors="#E9E9E8";
}else{
	$bgcolors="#FFFFFF";
}
	?>
                            <table width="250" border="0" cellspacing="1" cellpadding="1" >
                              <tr>
                                <td height="23" align="center"><? 
							if ($imagespicture==""){
							echo "
			<a href=contentkr.php?id=$idxs target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=200 HEIGHT=150 BORDER=0></a>";
							}else
							{
echo "<a href=contentkr.php?id=$idxs  class=lightbox rel=flowers><img src='images/images_article/$imagespicture' WIDTH=240  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=contentkr.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: #80808f; font-family: Verdana, Arial, Helvetica, sans-serif"><? echo strip_tags("$contentb..."); ?></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="340" /></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 valign="top" background="images/left.jpg">&nbsp;</td>
                      <td valign="top"><table width="477" border="0">
                    <?
$sqlpp="select * from article_kr 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="471" height="20" align="center" valign="middle" ><? 
							if ($rspp[images]==""){
							echo "
			<a href=contentkr.php?id=$rspp[id] target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=100 HEIGHT=100 BORDER=0></a>";
							}else
							{
$products_namepp = mb_substr($productsNameShow,0,20,'UTF-8');
$subject = mb_substr($rspp[subject],0,50,'UTF-8');

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

<br><br><span style='color: #812D61; font-size: 9pt; font-weight: bold'> $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="477" valign="top">&nbsp;</td>
                      <td width="18" valign="top">&nbsp;</td>
                    </tr>
              </table></td>
            </tr>
            <tr>
              <td height="19" colspan="2" align="center" valign="middle"><table width="779" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="4" rowspan="5" align="center">&nbsp;</td>
                  <td colspan="3" valign="top"><img src="images/tabbook.jpg" width="787" height="46" /></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="739" border="0">
                      <?
$sqlpp="select * from book order by id desc";
$checkpp=1;
$resultpp=mysql_db_query($db,$sqlpp);

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


				if ($checkpp%4 ==1){
						echo "<TR>";
			}
?>
                      <tr>
                        <td width="733" height="20" align="center" valign="middle" ><div align="left">
                            <? 
							if ($rspp[cover2]==""){
							echo "
			<a href=book.php?id=$rspp[id] target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=200  BORDER=0></a>";
							}else
							{
$title = mb_substr($rspp[title],0,20,'UTF-8');
$products_detail = mb_substr($rspp[message2],0,300,'UTF-8');

echo " <table width='597' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td width='224' rowspan='2'><a href='book.php?id=$rspp[id]' target='_blank'><img src='$rspp[cover2]'  width='200'  border='0' /></a><br></td>
    <td height='27'> <span style='color: #812D61; font-size: 9pt; font-weight: bold'>$rspp[title] </span></td>
  </tr>
  <tr>
    <td width='373' align='left' valign='top'><span class='style2'>$products_detail... </span></td>
  </tr>
</table> "      ;
			}
?>
                        </div></td>
                        <? 	if ($checkpp % 4== 0) {
												echo "</TR>";
												$checkpp=0;
										} 
										$checkpp++;
						   } 
						?>
                      </tr>
                  </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="739" valign="top">&nbsp;</td>
                  <td width="18" valign="top">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td height="19" colspan="2" align="center" valign="middle"><? if(1=="Search"){
	$strSQL = "SELECT * FROM article_kr ";
	if($_POST["detail"] != "")
	{
		$strSQL .= " where detail LIKE '%".$_POST["detail"]."%' ";
	}

	if($_POST["size"] != "Choose type article")
	{
		$strSQL .= " and article_category_id = '".$_POST["size"]."' ";
	}
	

		 mysql_query($strSQL);
	}

  ?>
                <?
		$objConnect = mysql_connect("localhost","thebridges_mag","thebridges") or die(mysql_error());
		$objDB = mysql_select_db("thebridges_mag");

		$objQuery = mysql_query($strSQL);
		$Num_Rows = mysql_num_rows($objQuery);

		$Per_Page = 5;   // Per Page

		$Page = $_GET["Page"];
		if(!$_GET["Page"])
		{
			$Page=1;
		}

		$Prev_Page = $Page-1;
		$Next_Page = $Page+1;

		$Page_Start = (($Per_Page*$Page)-$Per_Page);
		if($Num_Rows<=$Per_Page)
		{
			$Num_Pages =1;
		}
		else if(($Num_Rows % $Per_Page)==0)
		{
			$Num_Pages =($Num_Rows/$Per_Page) ;
		}
		else
		{
			$Num_Pages =($Num_Rows/$Per_Page)+1;
			$Num_Pages = (int)$Num_Pages;
		}

		$strSQL .=" ";
		$objQuery  = mysql_query($strSQL);


		echo"<table border=\"0\"  cellspacing=\"1\" cellpadding=\"1\"><tr>";
		$intRows = 0;
		while($objResult = mysql_fetch_array($objQuery))
		{
			echo "<td>"; 
			$intRows++;
	?>
                <center>
                  <table width='757' border='0' cellspacing='0' cellpadding='0'>
                    <tr>
                      <td width='177' rowspan='3'><a href='book.php?id=$rspp[id]' target='_blank'><img src="images/images_article/<?=$objResult["images"];?>" width="162" height="151" /></a><br /></td>
                      <td height='27'><span style="color: #000; font-size: 12pt;">
                        <?=substr($objResult["subject"],0,80);?>
                      </span></td>
                    </tr>
                    <tr>
                      <td width='535' height="109" align='left' valign='top'><span style="color: #000; font-size: 12pt;">
                        <?=substr($objResult["detail"],0,400);?>
                      </span></td>
                    </tr>
                    <tr>
                      <td align='left' valign='top'><div align="right"><a href="read.php?PrdID=<? echo $objResult["id"];?>"><img src="readmore.jpg" width="82" height="18" border="0" /></a></div></td>
                    </tr>
                  </table>
                  <br />
                  <br />
                </center>
                <?
			echo"</td>";
			if(($intRows)%1==0)
			{
				echo"</tr>";
			}
		}
		echo"</tr></table>";
	?>
              <br /></td>
            </tr>
            <tr>
              <td height="19" colspan="2" align="center" valign="middle"><img src="images/galltabkr.jpg" width="800" height="51" /></td>
            </tr>
            <tr>
              <td height="167" colspan="2"><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=contentkr.php?id=$rspp[id] target=_blank><img src='images/images_article/no_pic.jpg' WIDTH=100 HEIGHT=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 height=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>
                </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:~$