Hacked By AnonymousFox

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

<?
include("controlweb/manage/lib/config_f.php");
include("controlweb/manage/lib/connect.php");

$fc=$_GET["fc"];
?>
<!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;
}
    .style2 {
	color: #101559;
	font-weight: bold;
	font-size: 14px;
}
.style5 {font-size: 14px}
    .style6 {font-size: 14px; font-weight: bold;}
</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/bgnew.gif" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<? include"header.php"; ?>
	 <table width="100%" border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#FFFFFF"><br />
         <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
           <tr>
             <td width="49%" align="center" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
               <tr>
                 <td align="left"><div align="center"><img src="cover/cover1-<?=$fc?>.jpg" width="900" height="267" />
                   </div>
                          <?
/*		 $sql = "SELECT * FROM moe_mod_about  WHERE moe_mod_about_ModuleKey='fc$fc'";
		$Query = mysql_query($sql);
		$Row = mysql_fetch_array($Query);
					  
				 $myModule_Path_HTMLFiles="controlweb/upload/fc$fc/htmlfiles";	  
				
		   		$FilePath=$myModule_Path_HTMLFiles."/".$Row[moe_mod_about_HTMLFileName];		
				 @$getSize=filesize($FilePath);
				 if ($getSize>0) {
					 $fp=fopen($FilePath,"r");
					 $Content=fread($fp,$getSize);
					 fclose($fp);
					 echo  $Content;
				 } */
				 
				// if($fc==1)
				 //	{
				 	?>
					<TABLE border=0 width="90%" align=center>
<TBODY>
<TR>
<TD width="100%"><IMG src="faculty1/top.jpg" width=906 height=31></TD></TR>
<TR>
  <TD><div align="center">
  <?
  			  # Check to set default value #########################
			  # Count total record size ######################### 
			  
			  if($fc==1){ $depart="อายุร"; }
			  if($fc==2){ $depart="กุมาร"; }
			  if($fc==3){ $depart="ศัลยกรรม"; }
			  if($fc==4){ $depart="สูติ"; }
			  if($fc==5){ $depart="กระดูก"; }
			  if($fc==6){ $depart="เวชศาสตร์"; }
			  if($fc==7){ $depart="จักษุ"; }
			  if($fc==8){ $depart="โสต"; }
			  if($fc==9){ $depart="วิสัญญี"; }
			  if($fc==10){ $depart="ฟื้นฟู"; }
			  if($fc==11){ $depart="รังสี"; }
			  if($fc==12){ $depart="พยาธิ"; }
			  if($fc==13){ $depart="อนามัย"; }
			  if($fc==14){ $depart="จิตเวช"; }			
			  
   $sqlhead="SELECT  *   FROM mfu_mod_teacher  WHERE dspnm like '%$depart%' and Choose='1'" ;
     if($fc==3||$fc==5){
     $sqlhead="SELECT  *   FROM mfu_mod_teacher  WHERE dspnm like '%$depart' and Choose='1'" ;
	 } 
  $queryhead=mysql_query($sqlhead);
  $rowhead=mysql_fetch_array($queryhead);
  ?>
  <img src="../mfu/upload/member/<?=$rowhead[picture]?>" border="3" style="border-color:#3279C9" /><br />
       <font color="#7E0C00"><b><span class="style2"><?=$rowhead[prefix]?><?=$rowhead[name]?>&nbsp;&nbsp;<?=$rowhead[lname]?></span></b></font><br />
  <span class="style6"><b>หัวหน้าภาควิชา<br />
  ตำแหน่ง <strong><?=$rowhead[posnmfull]?><br />
  <?=$rowhead[hptnm]?></b></span><br />
  <br />
  <?
  $sqlsub="SELECT  *   FROM mfu_mod_teacher  WHERE dspnm like '%$depart%' and Choose='2'" ;
     if($fc==3||$fc==5){
     $sqlsub="SELECT  *   FROM mfu_mod_teacher  WHERE dspnm like '%$depart' and Choose='2'" ;
	 } 

  $querysub=mysql_query($sqlsub);
  $rowsub=mysql_fetch_array($querysub);
  $numsub=mysql_num_rows($querysub);
  if($numsub>0){
  ?>
  <img src="../mfu/upload/member/<?=$rowsub[picture]?>" border="3" style="border-color:#3279C9" /><br />
  <font color="#7E0C00"><b><span class="style2"><?=$rowsub[prefix]?><?=$rowsub[name]?>&nbsp;&nbsp;<?=$rowsub[lname]?></span></b></font><br />
<span class="style6"><b>รองหัวหน้าภาควิชา<br />
ตำแหน่ง <strong><?=$rowsub[posnmfull]?><br />
  <?=$rowsub[hptnm]?></b></span></div>
  <? } ?>
  </TD>
</TR>
</TBODY></TABLE>
<? if($rowhead[hptnm]=="โรงพยาบาลกลาง"){ ?>
					<table width="90%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/head1.jpg" width="906" height="68" /></td>
                      </tr>
                    </table>
					<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
		  <? 			
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลกลาง' and Choose='0' order by name asc" ;
			        if($fc==3||$fc==5){
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลกลาง' and Choose='0' order by name asc" ;
	 } 
			   
			  $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[$myModule_Table."_ID"];
						$Key=$Row[$myModule_Table."_ModuleKey"];
						$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" width="75"> <br /><? if($Row[picture]!=""){ ?>
					<img src="../mfu/upload/member/<?=$Row[picture]?>" border="3" style="border-color:#3279C9" /></a><? }else{ ?><img src="bg-pic-s.gif" width="96" height="118" border="0"  /> <? } ?> <br /></td>
                    <td align="left" valign="top"><br />
                      <table width="90%"  border="0" align="center" cellpadding="5" cellspacing="10">
                        <tr>
                          <td>
                           <font color="#7E0C00"><b><span class="style2">
						   <?=$Row[prefix]?><?=$Row[name]?>&nbsp;&nbsp;<?=$Row[lname]?></span></b></font><br />
						   <span class="style6"><b><?=$Row[posnmfull]?></b></span>
						  <br />
						   <br />
						   <b><br />
                           </b></font> 
                          </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        </tr>
                      </table>
                      <br /></td></tr>
              </table></td>
              <? if ($count==2) { $count = 0; ?>
            </tr><tr height="1"><td height="1" colspan="2" background="h-line.gif"><img src="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 />
						  ไม่มีข้อมูล<br /></td>
						</tr> <? } ?>
          </table>
		            <table width="90%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/head2.jpg" width="906" height="68" /></td>
                      </tr>
                    </table>
		            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <? 			
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE  (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์'   and Choose='0'  order by name asc" ;
			   			        if($fc==3||$fc==5){
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์' and Choose='0' order by name asc" ;
	 } 

			  $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[$myModule_Table."_ID"];
						$Key=$Row[$myModule_Table."_ModuleKey"];
						$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" width="75"><br />
                                  <? if($Row[picture]!=""){ ?>
                                  <img src="../mfu/upload/member/<?=$Row[picture]?>" border="3" style="border-color:#3279C9" /></a>
                                <? }else{ ?>
                                <img src="bg-pic-s.gif" width="96" height="118" border="0">
                                  <? } ?>
                                  <br /></td>
                              <td align="left" valign="top"><br />
                                  <table width="90%"  border="0" align="center" cellpadding="5" cellspacing="10">
                                    <tr>
                                      <td><font color="#7E0C00"><b><span class="style2">
                                        <?=$Row[prefix]?>
                                        <?=$Row[name]?>
                                        &nbsp;&nbsp;
                                        <?=$Row[lname]?>
                                        </span></b></font><br />
                                        <span class="style6"><b>
                                          <?=$Row[posnmfull]?>
                                          </b></span> <br />
                                        <br />
                                        <b><br />
                                      </b></font> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    </tr>
                                  </table>
                                <br /></td>
                            </tr>
                        </table></td>
                        <? if ($count==2) { $count = 0; ?>
                      </tr>
		              <tr height="1">
		                <td height="1" colspan="2" background="h-line.gif"><img src="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 />
                          ไม่มีข้อมูล<br /></td>
                      </tr>
                      <? } ?>
                    </table>
					<? } ?>
		            <? if($rowhead[hptnm]=="โรงพยาบาลเจริญกรุงประชารักษ์"){ ?>
		            <table width="90%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/head2.jpg" width="906" height="68" /></td>
                      </tr>
                    </table>
		            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <? 			
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE  (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์'   and Choose='0'  order by name asc" ;
			   			   			        if($fc==3||$fc==5){
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์' and Choose='0' order by name asc" ;
	 } 

			  $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[$myModule_Table."_ID"];
						$Key=$Row[$myModule_Table."_ModuleKey"];
						$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" width="75"><br />
                                  <? if($Row[picture]!=""){ ?>
                                  <img src="../mfu/upload/member/<?=$Row[picture]?>" border="3" style="border-color:#3279C9" /></a>
                                <? }else{ ?>
                                <img src="bg-pic-s.gif" width="96" height="118" border="0">
                                  <? } ?>
                                  <br /></td>
                              <td align="left" valign="top"><br />
                                  <table width="90%"  border="0" align="center" cellpadding="5" cellspacing="10">
                                    <tr>
                                      <td><font color="#7E0C00"><b><span class="style2">
                                        <?=$Row[prefix]?>
                                        <?=$Row[name]?>
                                        &nbsp;&nbsp;
                                        <?=$Row[lname]?>
                                        </span></b></font><br />
                                        <span class="style6"><b>
                                          <?=$Row[posnmfull]?>
                                          </b></span> <br />
                                        <br />
                                        <b><br />
                                      </b></font> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    </tr>
                                  </table>
                                <br /></td>
                            </tr>
                        </table></td>
                        <? if ($count==2) { $count = 0; ?>
                      </tr>
		              <tr height="1">
		                <td height="1" colspan="2" background="h-line.gif"><img src="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 />
                          ไม่มีข้อมูล<br /></td>
                      </tr>
                      <? } ?>
                    </table>
					<table width="90%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/head1.jpg" width="906" height="68" /></td>
                      </tr>
                    </table>
					<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <? 			
			   $sql="SELECT  *   FROM mfu_mod_teacher    WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลกลาง' and Choose='0' order by name asc" ;
			   	 if($fc==3||$fc==5){
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm='โรงพยาบาลกลาง' and Choose='0' order by name asc" ;
	 } 

			  $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[$myModule_Table."_ID"];
						$Key=$Row[$myModule_Table."_ModuleKey"];
						$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" width="75"><br />
                                  <? if($Row[picture]!=""){ ?>
                                  <img src="../mfu/upload/member/<?=$Row[picture]?>" border="3" style="border-color:#3279C9" /></a>
                                <? }else{ ?>
                                <img src="bg-pic-s.gif" width="96" height="118" border="0">
                                  <? } ?>
                                  <br /></td>
                              <td align="left" valign="top"><br />
                                  <table width="90%"  border="0" align="center" cellpadding="5" cellspacing="10">
                                    <tr>
                                      <td><font color="#7E0C00"><b><span class="style2">
                                        <?=$Row[prefix]?>
                                        <?=$Row[name]?>
                                        &nbsp;&nbsp;
                                        <?=$Row[lname]?>
                                        </span></b></font><br />
                                        <span class="style6"><b>
                                          <?=$Row[posnmfull]?>
                                          </b></span> <br />
                                        <br />
                                        <b><br />
                                      </b></font> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    </tr>
                                  </table>
                                <br /></td>
                            </tr>
                        </table></td>
                        <? if ($count==2) { $count = 0; ?>
                      </tr>
					  <tr height="1">
					    <td height="1" colspan="2" background="h-line.gif"><img src="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 />
                          ไม่มีข้อมูล<br /></td>
                      </tr>
                      <? } ?>
                    </table>
					<? } ?>
		            
					<table width="90%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/head3.jpg" width="906" height="68" /></td>
                      </tr>
                    </table>
		            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <? 						  
			   $sql="SELECT  *   FROM mfu_mod_teacher   WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and hptnm!='โรงพยาบาลเจริญกรุงประชารักษ์'  and hptnm!='โรงพยาบาลกลาง'   and Choose='0'  order by name asc" ;
			   	 if($fc==3||$fc==5){
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%')  and hptnm!='โรงพยาบาลเจริญกรุงประชารักษ์'  and hptnm!='โรงพยาบาลกลาง'  and Choose='0' order by name asc" ;
	 } 

			  $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[$myModule_Table."_ID"];
						$Key=$Row[$myModule_Table."_ModuleKey"];
						$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" width="75"><br />
                                  <? if($Row[picture]!=""){ ?>
                                  <img src="../mfu/upload/member/<?=$Row[picture]?>" border="3" style="border-color:#3279C9" /></a>
                                <? }else{ ?>
                                <img src="bg-pic-s.gif" width="96" height="118" border="0">
                                  <? } ?>
                                  <br /></td>
                              <td align="left" valign="top"><br />
                                  <table width="90%"  border="0" align="center" cellpadding="5" cellspacing="10">
                                    <tr>
                                      <td><font color="#7E0C00"><b><span class="style2">
                                        <?=$Row[prefix]?>
                                        <?=$Row[name]?>
                                        &nbsp;&nbsp;
                                        <?=$Row[lname]?>
                                        </span></b></font><br />
                                        <span class="style6"><b>
                                          <?=$Row[posnmfull]?>
                                          </b></span> <br />
                                        <br />
                                        <b><br />
                                      </b></font> </a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                    </tr>
                                  </table>
                                <br /></td>
                            </tr>
                        </table></td>
                        <? if ($count==2) { $count = 0; ?>
                      </tr>
		              <tr height="1">
		                <td height="1" colspan="2" background="h-line.gif"><img src="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 />
                          ไม่มีข้อมูล<br /></td>
                      </tr>
                      <? } ?>
                    </table>
		            <table width="95%" border="0" align="center">
                      <tr>
                        <td><img src="faculty1/top.jpg" width="906" height="31" /></td>
                      </tr>
                    </table>
		            <table width="90%" border="0" align="center">
                      <tr>
                        <td><?
						
						include("controlweb/manage/lib/config.php");
include("controlweb/manage/lib/connect.php");

		  $sql = "SELECT * FROM moe_mod_about  WHERE moe_mod_about_ModuleKey='fc$fc'";
		$Query = mysql_query($sql);
		$Row = mysql_fetch_array($Query);
					  
				 $myModule_Path_HTMLFiles="controlweb/upload/fc$fc/htmlfiles";	  
				
		   		$FilePath=$myModule_Path_HTMLFiles."/".$Row[moe_mod_about_HTMLFileName];		
				 @$getSize=filesize($FilePath);
				 if ($getSize>0) {
					 $fp=fopen($FilePath,"r");
					 $Content=fread($fp,$getSize);
					 fclose($fp);
					echo  $Content;
				 } 
					  ?></td>
                      </tr>
                    </table>
	               <? 		
	$sqlFile = "SELECT * FROM moe_mod_about_fileupload  WHERE moe_mod_about_fileupload_NewsID = '$Row[moe_mod_about_ID]'";
	$QueryFile=MYSQL_DB_QUERY($System_DataBase_Name,$sqlFile) or die(mysql_error());				
	if(mysql_num_rows($QueryFile)>0){
	?>
                      <table width="661" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td colspan="3"><img src="images/news/detail_03.gif" width="661" height="9" /></td>
                        </tr>
                        <tr  background="images/news/detail_05.gif" >
                          <td width="18" rowspan="2" background="images/news/detail_05.gif"><img src="images/main/spacer.gif" width="16" height="8" /></td>
                          <td width="615" background="images/news/detail_05.gif"><img src="images/news/detail_07.gif" width="64" height="23" /></td>
                          <td width="28" valign="top" background="images/news/detail_14.gif" >&nbsp;</td>
                        </tr>
                        <tr>
                          <td background="images/news/detail_11.gif" bgcolor="#F9EAD5" style="background-repeat:repeat-x; background-position:bottom; " ><img src="images/main/spacer.gif" width="3" height="5" /></td>
                          <td width="28" valign="top" background="images/news/detail_14.gif" ></td>
                        </tr>
                        <tr>
                          <td  height="1"colspan="3" background="images/news/detail_05.gif">
						  <? if($fc=="1"){ ?>
						    <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/3_1.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                             แผนการสอนอายุรศาสตร์ 1 ปี 4-2561
                              </strong></a><br />
							    <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/3_2.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              สารบัญแผนการสอนอายุรศาสตร์ 1 ปี 4-2561
                              </strong></a><br />
						   <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_1.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              คู่มือนศพอายุรศาสตร์ปี 4-2561
                              </strong></a><br />
  <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_2.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              Logbook Med ปี 4-61
                              </strong></a><br />
							    <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_3.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              ตารางสอนอายุรศาสตร์ปี 4-61
                              </strong></a><br />
							    <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_4.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              มคอ3-อายุรศาสตร์ 1 ปี 4-2561
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_5.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              มคอ3-อายุรศาสตร์ 2 ปี 4-2561
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_6.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                             รายชื่อ Preceptor Med4-61 และแนวทางปฏิบัติ
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_7.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              แบ่งกลุ่มนักศึกษาแพทย์ปี4 2561
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/1_8.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              หัวข้อบรรยายอายุรศาสตร์ปี 4-61
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/2_1.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              มคอ3 อายุรศาสตร์ ปี 6-61
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/2_2.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                             คู่มือนักศึกษาอายุรศาสตร์ปี 6-61
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/2_3.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              ตารางสอน Extern อายุรศาสตร์ปีการศึกษา 2561 รพก
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/2_4.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                             ตารางสอน Extern อายุรศาสตร์ปีการศึกษา 2561 รพจ
                              </strong></a><br />
							     <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="http://msdmec.go.th/th/controlweb/upload/fc1/FileUpload/2_5.pdf" target="_blank"><strong><img src="images/bullet/pdf.gif" border="0" alt="" />&nbsp;
                              Logbook อายุรศาสตร์ปี 6-61
                              </strong></a><br />
						  <? } ?>
                              <?
		while ($RowFile=MYSQL_FETCH_ARRAY($QueryFile)){
		$myModule_Path_FileUpload="controlweb/upload/fc$fc/FileUpload";
						$LinkRelativePath = $myModule_Path_FileUpload."/".$RowFile[moe_mod_about_fileupload_FileUpload];
						$DownloadFile = $RowFile[moe_mod_about_fileupload_FileUpload];
						$ImageType = strstr($DownloadFile,'.');							
						if($ImageType==".pdf"){
							$TypeImgFile="images/bullet/pdf.gif";
						}elseif($ImageType==".txt"){
							$TypeImgFile="images/bullet/file.gif";
						}elseif($ImageType==".xls"){
							$TypeImgFile="images/bullet/excel.gif";
						}elseif($ImageType==".ppt"){
							$TypeImgFile="images/bullet/pp.gif";
						}elseif($ImageType==".rtf"){
							$TypeImgFile="images/bullet/word.gif";
						}elseif($ImageType==".rar"){
							$TypeImgFile="images/bullet/rar.gif";
						}else{
							$TypeImgFile="images/bullet/application.gif";
						}
		?>
                              <br />
                              <img src="images/main/spacer.gif" width="24" height="8" border="0" /> &nbsp;<a href="<?=$LinkRelativePath?>" target="_blank"><strong><img src="<?=$TypeImgFile?>" border="0" alt="<?=$ImageType?>" />&nbsp;
                              <?=$RowFile[moe_mod_about_fileupload_UploadFileName];?>
                              </strong></a>&nbsp;&nbsp;
                              <? }?>
                          </td>
                        </tr>
                        <tr>
                          <td colspan="3"><img src="images/news/detail_10.gif" width="661" height="11" /></td>
                        </tr>
                      </table>
                      <? } ?>
					           
                   <p align="center"><br />
                   </p>
                       <p><br />
                 </p>
				  <p align="center"><br />
                   </p>
                       <p><br />
                 </p> <p align="center"><br />
                   </p>
                       <p><br />
                 </p>
				 </td>
                 </tr>
               </table>
                 <p>&nbsp;</p>
               <br /></td>
           </tr>
           </table>
           <br /></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 : webmaster@msdbangkok.go.th</div></td>
             </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox