Hacked By AnonymousFox

Current Path : C:/AppServ/www/ressurgmsd/
Upload File :
Current File : C:/AppServ/www/ressurgmsd/news.php

<?
include("controlweb/manage/lib/config.php");
include("controlweb/manage/lib/connect.php");
include("controlweb/manage/lib/function.php");
$News=$_GET["News"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<meta name="viewport" content="width=device-width, initial-scale=1">
    <title>:: &#3624;&#3641;&#3609;&#3618;&#3660;&#3649;&#3614;&#3607;&#3618;&#3624;&#3634;&#3626;&#3605;&#3619;&#3660;&#3624;&#3638;&#3585;&#3625;&#3634;&#3594;&#3633;&#3657;&#3609;&#3588;&#3621;&#3636;&#3609;&#3636;&#3585;&#3626;&#3635;&#3609;&#3633;&#3585;&#3585;&#3634;&#3619;&#3649;&#3614;&#3607;&#3618;&#3660; ::</title>
    <link href="ddmenu/ddmenu.css" rel="stylesheet" type="text/css" />
    <script src="ddmenu/ddmenu.js" type="text/javascript"></script>
    <style>
        body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFF;
}
    .style1 {
	color: #FFFFFF;
	font-weight: bold;
}
    .style3 {color: #FFFFFF; font-weight: bold; font-size: 18.5px; }
    </style>
</head>    
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td align="left" bgcolor="#11145B"><table width="70%" border="0" align="center">
      <tr>
        <td><img src="ddmenu/bgnew1.gif" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<? include"header.php"; ?>
	 <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#FFFFFF"><p><br />
         </p>
           <table width="900" border="0" align="center">
             <tr>
               <td width="24%" align="center" valign="top"><br />
               <table border="1" width="192" bordercolor="#ddd3d3" style="border-collapse:collapse" cellpadding="0" cellspacing="0">
                 <tr>
                   <td width="192"><div align="center"><img src="topnews.jpg" width="192" height="43" /><br />
                     <table width="95%" border="0">
                       <?
						 $sqly="select moe_mod_news_GID,moe_mod_news_ID from moe_mod_news where moe_mod_news_ModuleKey='news' group by moe_mod_news_GID order by moe_mod_news_GID desc";
						 $queryy=mysql_query($sqly);
						while($rowy=mysql_fetch_array($queryy)){
						 ?>
                       
                       <tr>
                         <td width="28%"><div align="right"><img src="star.jpg" /></div></td>
                               <td width="72%"><div align="left"><a href="news.php?News=<?=$rowy[0]?>"><strong>&nbsp;&nbsp;&#3611;&#3637; <?=$rowy[0]?></strong></a></div></td>
                       </tr>
                       <tr>
                         <td colspan="2"><img src="separate.jpg" width="192" height="10" /></td>
                       </tr>
                       <? } ?>
                     </table>
                       </div></td>
                 </tr>
               </table>                 <p>&nbsp;</p></td><td width="25%" align="center" valign="top">
			   <?
			  	$sqlmax="select max(moe_mod_news_GID) from moe_mod_news where moe_mod_news_ModuleKey='news' ";
					$querymax=mysql_query($sqlmax);
					$rowmax=mysql_fetch_array($querymax);
					?>
			   <table width="100%" border="0" height="70">
                 <tr>
                   <td background="bar-insidenew.jpg" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style3">&#3586;&#3656;&#3634;&#3623;&#3626;&#3634;&#3619;&#3649;&#3621;&#3632;&#3585;&#3636;&#3592;&#3585;&#3619;&#3619;&#3617; &#3611;&#3637; 
				   <?
				   if($News!=""){
				   echo $News;
				   }else{  echo $rowmax[0];  }
				   ?></span></td>
                 </tr>
               </table>
                 <table width="620" border="0" cellspacing="0" cellpadding="0" align="center">
		  <? 			
			  
			   if($News!=""){
			     $sql="SELECT  *   FROM moe_mod_news  WHERE  moe_mod_news_ModuleKey='news' and moe_mod_news_GID='$News' order by moe_mod_news_ID desc" ;
				 }else{
				  $sql="SELECT  *   FROM moe_mod_news  WHERE  moe_mod_news_ModuleKey='news' and moe_mod_news_GID='$rowmax[0]' order by moe_mod_news_ID desc" ;
				  }
			  $Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: &#3648;&#3585;&#3636;&#3604;&#3588;&#3623;&#3634;&#3617;&#3612;&#3636;&#3604;&#3614;&#3621;&#3634;&#3604; <br>$sql<br>\n");
			  $TotalRecordCount=mysql_num_rows($Query);
			  $RecordCount=mysql_num_rows( $Query);
				 if($RecordCount>0){ 
						$count = 0;
						while ($Row = mysql_fetch_array($Query)) { 
						$ID=$Row[moe_mod_news_ID];
						$count++; 
						if ($count==0) { ?>
            <tr >
                    <? } ?>
              <td align="center" valign="top" width="25%">
                <table width="100%" border="0" align="center" cellspacing="0">
                  <tr style="border-bottom:1px #CCCCCC dotted; ">
                    <td align="center" valign="top"> <br /><? if($Row[moe_mod_news_PictureFile]!=""){ ?>
					<a href="news-detail.php?Id=<?=$ID?>"><img src="controlweb/upload/news/thumbnail/<?=$Row[moe_mod_news_PictureFile]?>" border="3" style="border-color:#3279C9" /></a><? }else{ ?><img src="bg-pic-s.gif" width="120" height="85" border="0"  /> <? } ?> <br />
					<br />
					<a href="news-detail.php?Id=<?=$ID?>"><?=$Row[moe_mod_news_Subject]?>
                      <br />
					  <?=ShowDateLongTh($Row[moe_mod_news_CreateDate])?></a>
					  </td>
                    </tr>
              </table></td>
              <? if ($count==2) { $count = 0; ?>
            </tr><tr height="1"><td height="1" colspan="2" background="images/h-line.gif"><img src="images/h-line.gif" width="1" height="1" /></td>
            </tr>
            <? } ?>
            <? } ?>
            <?
						if ($count>0) {
							for ($i=($count+1);$i<=2;$i++) echo '<td align="center" valign="top" width="25%">&nbsp;</td>';
							echo '</tr>';
						}
						?>
						<? }else{ ?> 
						<tr><td align="center"><br />
						  &#3652;&#3617;&#3656;&#3617;&#3637;&#3586;&#3657;&#3629;&#3617;&#3641;&#3621;<br /></td>
						</tr> <? } ?>
          </table>
			   </td>
             </tr>
           </table>
           <p>&nbsp;</p>
           <p>&nbsp;</p>
           <p>             <br />
           </p></td></tr>
     </table>
	 <table width="100%" border="0">
             <tr>
               <td background="footer.gif" height="153" bgcolor="#FFFFFF"><br />
<br />
<div align="center" class="style1">&#3626;&#3635;&#3609;&#3633;&#3585;&#3585;&#3634;&#3619;&#3649;&#3614;&#3607;&#3618;&#3660; &#3585;&#3619;&#3640;&#3591;&#3648;&#3607;&#3614;&#3617;&#3627;&#3634;&#3609;&#3588;&#3619; &#3648;&#3621;&#3586;&#3607;&#3637;&#3656; 514  &#3606;&#3609;&#3609;&#3627;&#3621;&#3623;&#3591; &#3648;&#3586;&#3605;&#3611;&#3657;&#3629;&#3617;&#3611;&#3619;&#3634;&#3610;&#3624;&#3633;&#3605;&#3619;&#3641;&#3614;&#3656;&#3634;&#3618; &#3585;&#3619;&#3640;&#3591;&#3648;&#3607;&#3614;&#3631; 10100      <br />

&#3650;&#3607;&#3619;. 0-2224-2954 , 0-2224-9711 , 0-2221-6020 , 0-2225-4966  &#3650;&#3607;&#3619;&#3626;&#3634;&#3619; 0-2226-1931 , 0-2221-6029 <br />

&#3605;&#3636;&#3604;&#3605;&#3656;&#3629; Webmaster : msdmec1@gmail.com</div></td>
             </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox