Hacked By AnonymousFox
<?
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>:: ศูนย์แพทยศาสตร์ศึกษาชั้นคลินิกสำนักการแพทย์ ::</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> ปี <?=$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> </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"> <span class="style3">ข่าวสารและกิจกรรม ปี
<?
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: เกิดความผิดพลาด <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%"> </td>';
echo '</tr>';
}
?>
<? }else{ ?>
<tr><td align="center"><br />
ไม่มีข้อมูล<br /></td>
</tr> <? } ?>
</table>
</td>
</tr>
</table>
<p> </p>
<p> </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">สำนักการแพทย์ กรุงเทพมหานคร เลขที่ 514 ถนนหลวง เขตป้อมปราบศัตรูพ่าย กรุงเทพฯ 10100 <br />
โทร. 0-2224-2954 , 0-2224-9711 , 0-2221-6020 , 0-2225-4966 โทรสาร 0-2226-1931 , 0-2221-6029 <br />
ติดต่อ Webmaster : msdmec1@gmail.com</div></td>
</tr>
</table>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox