Hacked By AnonymousFox
<? // report1.php
header('Content-type: application/ms-word');
header('Content-Disposition: attachment; filename="filename.doc"');
include("../../lib/config.php");
include("../../lib/connect.php");
$myCheckBoxID=$_GET["myCheckBoxID"];
$sql="SELECT * FROM cm_mod_detailoverall WHERE cm_mod_detailoverall_ID=".$myCheckBoxID;
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$Row=MYSQL_FETCH_ARRAY($Query);
?>
<!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" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body>
<center>
<table width="90%" border="1" cellpadding="2" cellspacing="1" class="mytable_inner">
<tr align="center">
<td height="24" colspan="3" align="center" bgcolor="#E4EDEE" class="table_title1" style="font-weight: bold"><div align="left">ข้อมูลการสอน</div></td>
</tr>
<tr align="center">
<td height="24" colspan="3" align="center" bgcolor="#889AA7" class="table_title2 style1" style="font-weight: bold">ดูข้อมูล</td>
</tr>
<tr>
<td width="220" height="31" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">รายวิชา : </div></td>
<td width="791" colspan="2" class="table_row2"><?=$Row[cm_mod_detailoverall_Subject]?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">ภาควิชา : </div></td>
<td height="22" colspan="2" class="table_row2">
<?=$Row[cm_mod_detailoverall_Faculty]?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">นักศึกษาที่เรียน : </div></td>
<td height="22" colspan="2" class="table_row2"><?=$Row[cm_mod_detailoverall_Studentyear]?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">เรื่องที่เรียน :</div></td>
<td height="22" colspan="2" valign="top" class="table_row2"><?=$Row[cm_mod_detailoverall_Course]?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">ผู้สอน : </div></td>
<td height="22" colspan="2" class="table_row2"> <?
$sqlteach="select * from cmteacher a,crm_system_staff b where a.cmteacher_TeacherID=b.crm_system_staff_ID and a.cmteacher_DetailoverallID='$Row[cm_mod_detailoverall_ID]' order by a.cmteacher_ID asc";
$Queryteach=mysql_query($sqlteach);
while ($Rowteach = mysql_fetch_array($Queryteach)) {
echo substr($Rowteach[crm_system_staff_FName],0,40);
echo "</br>";
}
?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">วันที่สอน : </div></td>
<td height="22" colspan="2" class="table_row2"><?=$Row[cm_mod_detailoverall_DateFrom]?></td>
</tr>
<tr>
<td align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">เวลาที่สอน : </div></td>
<td height="22" colspan="2" class="table_row2"><?=$Row[cm_mod_detailoverall_TimeFrom]?>-<?=$Row[cm_mod_detailoverall_TimeTo]?></td>
</tr>
<tr>
<td width="220" align="right" bgcolor="#D7EEF1" class="table_row2"><div align="right">รูปแบบ : </div></td>
<td height="22" colspan="2" class="table_row2"><? if($Row[cm_mod_detailoverall_Type]!="other"){ echo $Row[cm_mod_detailoverall_Type]; }else{ echo $Row[cm_mod_detailoverall_Otherdetail]; } ?></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#D7EEF1" class="table_row2"><div align="right">มาตรฐานการเรียนรู้ : </div></td>
<td height="22" colspan="2" class="table_row2">
<?
$sqlrelate1="select * from cm_relate1 where cm_mod_detailoverall_ID='$myCheckBoxID' order by cm_relate1_ID asc ";
$Queryrelate1=mysql_query($sqlrelate1);
while ($Rowrelate1 = mysql_fetch_array($Queryrelate1)) {
$sqlGroup="SELECT * FROM cm_standardlevel2";
$QueryGroup=mysql_query($sqlGroup);
while ($RowGroup = mysql_fetch_array($QueryGroup)) { ?>
<?php if (!(strcmp($Rowrelate1[cm_relate1_No], $RowGroup[cm_standardlevel2_No]))) {echo "<b>$RowGroup[cm_standardlevel2_No]</b> $RowGroup[cm_standardlevel2_Name]";
echo"</br>";
echo"</br>";
} ?><? } }?> </td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#D7EEF1" class="table_row2"><div align="right">แพทยสภา : </div></td>
<td height="22" colspan="2" class="table_row2">
<?
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No1=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=2 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1121 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1248 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1713 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ข หมวดที่ 3</b>"; }
if($rowrelate2[id]>=1983 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2031 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2060 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No2=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No3=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No4=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No5=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No6=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No7=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No8=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
echo"<br />";
$sqlrelate2="select * from cm_relate2 a,cm_councilalldata b WHERE a.cm_relate2_No9=b.id
and a.cm_mod_detailoverallID='$myCheckBoxID'";
$queryrelate2=mysql_query($sqlrelate2);
$rowrelate2=mysql_fetch_array($queryrelate2);
if($rowrelate2[id]>=3 && $rowrelate2[id]<=301)
{ echo"<b>ภาคผนวก ก หมวดที่ 1</b>"; }
if($rowrelate2[id]>=303 && $rowrelate2[id]<=1119)
{ echo"<b>ภาคผนวก ก หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1122 && $rowrelate2[id]<=1247)
{ echo"<b>ภาคผนวก ข หมวดที่ 1</b>"; }
if($rowrelate2[id]>=1249 && $rowrelate2[id]<=1712)
{ echo"<b>ภาคผนวก ข หมวดที่ 2</b>"; }
if($rowrelate2[id]>=1714 && $rowrelate2[id]<=1982)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=1984 && $rowrelate2[id]<=2030)
{ echo"<b>ภาคผนวก ค</b>"; }
if($rowrelate2[id]>=2032 && $rowrelate2[id]<=2059)
{ echo"<b>ภาคผนวก ง</b>"; }
if($rowrelate2[id]>=2061 && $rowrelate2[id]<=2122)
{ echo"<b>ภาคผนวก จ</b>"; }
echo $rowrelate2[name];
?> </td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#D7EEF1" class="table_row2"><div align="right">วัตถุประสงค์การสอน : </div></td>
<td height="22" colspan="2" class="table_row2">
<? if($Row[cm_mod_detailoverall_Objective1]!=""){ echo"1."; echo $Row[cm_mod_detailoverall_Objective1]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective2]!=""){ echo"2."; echo $Row[cm_mod_detailoverall_Objective2]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective3]!=""){ echo"3."; echo $Row[cm_mod_detailoverall_Objective3]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective4]!=""){ echo"4."; echo $Row[cm_mod_detailoverall_Objective4]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective5]!=""){ echo"5."; echo $Row[cm_mod_detailoverall_Objective5]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective6]!=""){ echo"6."; echo $Row[cm_mod_detailoverall_Objective6]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective7]!=""){ echo"7."; echo $Row[cm_mod_detailoverall_Objective7]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective8]!=""){ echo"8."; echo $Row[cm_mod_detailoverall_Objective8]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective9]!=""){ echo"9."; echo $Row[cm_mod_detailoverall_Objective9]; }?><br />
<? if($Row[cm_mod_detailoverall_Objective10]!=""){ echo"10."; echo $Row[cm_mod_detailoverall_Objective10]; }?> </td>
</tr>
</table>
</center>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox