Hacked By AnonymousFox

Current Path : C:/AppServ/www/th/
Upload File :
Current File : C:/AppServ/www/th/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_g.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="#215553"><table width="80%" border="0" align="center">
      <tr>
        <td><img src="ddmenu/bggreen2.gif" onClick="window.location='index.php'" style="cursor: pointer" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<? include"header_g.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>
	
                   <br />
                   <table width="85%" border="0" align="center">
					  <tr>
                        <td><strong>รายชื่ออาจารย์แพทย์โรงพยาบาลกลาง</strong></td>
                      </tr>
                </table>
                   <table width="85%" border="0" style="border-collapse:collapse" bordercolor="#000000" align="center" cellpadding="10">
				     <tbody>
					    <?
						   			
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and dspnm4!='' and hptnm='โรงพยาบาลกลาง' and Choose='0' order by dspnm4 asc,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 dspnm4!='' and hptnm='โรงพยาบาลกลาง' and Choose='0' order by dspnm4 asc,name asc" ;
	 } 
			   
			  $query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
							
							$i=1;
							while($Row=mysql_fetch_array($query)){
						?>
					    <tr>
					      <td width="36%"><?=$i?>.
					      <?=$Row[prefix]?><?=$Row[name]?>&nbsp;&nbsp;<?=$Row[lname]?></td>
					      <td width="64%"><?=$Row[posnmfull]?></td>
					      </tr>
						<? $i++;
							} ?>
					    </tbody>
					  </table>
                   <br />
                   <table width="85%" border="0" align="center">
                     <tr>
                       <td><strong>รายชื่ออาจารย์แพทย์โรงพยาบาลเจริญกรุงประชารักษ์</strong></td>
                     </tr>
                   </table>
                   <table width="85%" border="0" style="border-collapse:collapse" bordercolor="#000000" align="center" cellpadding="10">
                     <tbody>
                       <?
						   			
			   $sql="SELECT  *   FROM mfu_mod_teacher  WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and dspnm4!='' and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์' and Choose='0' order by dspnm4 asc,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 dspnm4!='' and hptnm='โรงพยาบาลเจริญกรุงประชารักษ์' and Choose='0' order by dspnm4 asc,name asc" ;
	 } 
			   
			  $query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
							
							$i=1;
							while($Row=mysql_fetch_array($query)){
						?>
                       <tr>
                         <td width="36%"><?=$i?>
                           .
                           <?=$Row[prefix]?>
                           <?=$Row[name]?>
                           &nbsp;&nbsp;
                           <?=$Row[lname]?></td>
                         <td width="64%"><?=$Row[posnmfull]?></td>
                       </tr>
                       <? $i++;
							} ?>
                     </tbody>
                   </table>
                   <br />
                   <table width="85%" border="0" align="center">
                     <tr>
                       <td><strong>รายชื่ออาจารย์แพทย์โรงพยาบาลอื่น ๆ</strong></td>
                     </tr>
                   </table>
                   <table width="85%" border="0" style="border-collapse:collapse" bordercolor="#000000" align="center" cellpadding="10">
                     <tbody>
                       <?
						   			
			   $sql="SELECT  *   FROM mfu_mod_teacher   WHERE (dspnm like '%$depart%' OR dspnm2 like '%$depart%'  OR dspnm3 like '%$depart%'   OR dspnm4 like '%$depart%') and posnmfull like '%นายแพทย์%' 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 posnmfull like '%นายแพทย์%' 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");
							$num=mysql_num_rows($query);
						 
							$i=1;
						 
							while($Row=mysql_fetch_array($query)){
								
						?>
                       <tr>
                         <td width="36%"><?=$i?>
                           .
                           <?=$Row[prefix]?>
                           <?=$Row[name]?>
                           &nbsp;&nbsp;
                           <?=$Row[lname]?></td>
                         <td width="64%"><?=$Row[posnmfull]?></td>
                       </tr>
						 
                       <? $i++;
							} ?>
						 
						 <? if($num==0){ ?><tr>
						 <td colspan="2" align="center"><b>ไม่มีข้อมูล</b></td></tr>
						 <? } ?>
                     </tbody>
                   </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><? if($RowFile[yearst]!="0"){?>&nbsp;&nbsp;<strong>สำหรับชั้นปี</strong>&nbsp;<?=$RowFile[yearst]?>&nbsp;&nbsp;<strong>ปีการศึกษา</strong>&nbsp;<?=$RowFile[yearedu]?><? } ?>
                              <? }?>
                          </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