Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
?>
<!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 {
font-family: AngsanaUPC;
font-size: 20px;
color: #FFFFFF;
}
-->
</style>
</head>
<body>
<?
$sql="select * from evaluateicm_system_course group by evaluateicm_system_course_Typegroup order by evaluateicm_system_course_Typegroup asc";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
?>
<table width="100%" border="0">
<tr>
<td bgcolor="#000000"><div align="center"><span class="style1"><?
if($row[evaluateicm_system_course_Typegroup]=="1"){ echo"คาบการบรรยาย"; }
if($row[evaluateicm_system_course_Typegroup]=="2"){ echo"คาบการสัมนา"; }
if($row[evaluateicm_system_course_Typegroup]=="3"){ echo"คาบการฝึกปฏิบัติ"; }
if($row[evaluateicm_system_course_Typegroup]=="4"){ echo"คาบเรียน KSA"; }
?></span></div></td>
</tr>
</table>
<br />
<?
$sql1="select * from evaluateicm_system_course where evaluateicm_system_course_Typegroup='$row[evaluateicm_system_course_Typegroup]' group by evaluateicm_system_course_Subject order by evaluateicm_system_course_ID asc";
$query1=mysql_query($sql1);
$i=1;
while($row1=mysql_fetch_array($query1)){
?>
<table width="100%" border="0" bgcolor="#666666">
<tr>
<td bgcolor="#666666"><div align="left"><span class="style1"><?=$i?>. <?
if($row[evaluateicm_system_course_Typegroup]=="1"){ echo"การบรรยาย"; }
if($row[evaluateicm_system_course_Typegroup]=="2"){ echo"การสัมนา"; }
if($row[evaluateicm_system_course_Typegroup]=="3"){ echo"การฝึกปฏิบัติ"; }
?> <?=$row1[evaluateicm_system_course_Subject]?></span></div> <div align="right"></div></td>
</tr>
<tr>
<td bgcolor="#666666"><div align="right" class="style1">(ตอบแบบประเมินจำนวน
<?
$sqlcount="select distinct(evaluateicm_subject_StudentID) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$querycount=mysql_query($sqlcount);
$rowcount=mysql_fetch_array($querycount);
echo $numcount=mysql_num_rows($querycount);
?>
คน คิดเป็น
<? $percentage=($numcount/322)*100;
echo number_format($percentage, 2, '.', '')
?>
%)</div></td>
</tr>
</table>
<table width="100%" border="1" bordercolor="#000000" style="border-collapse:collapse">
<tr>
<td width="64%"><div align="center"><strong>หัวข้อ</strong></div></td>
<td width="11%"><div align="center"><strong>Mean</strong></div></td>
<td width="12%"><div align="center"><strong>S.D.</strong></div></td>
</tr>
<tr>
<td>1. ความเหมาะสมของเนื้อหาวิชากับระยะเวลาเรียน</td>
<td><div align="center">
<?
$sqlno1="select avg(evaluateicm_subject_No1) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$queryno1=mysql_query($sqlno1);
$rowno1=mysql_fetch_array($queryno1);
$mean=$rowno1[0];
echo number_format($mean, 2, '.', '');
?></div></td>
<td><div align="center">
<?
$sqlsdno1="select stddev_samp(evaluateicm_subject_No1) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$querysdno1=mysql_query($sqlsdno1);
$rowsdno1=mysql_fetch_array($querysdno1);
$sd1=$rowsdno1[0];
echo number_format($sd1, 2, '.', '');
?></div></td>
</tr>
<tr>
<td>2. ความรู้ที่ได้รับเพื่อเตรียมขึ้นปฏิบัติงานในชั้นคลินิก</td>
<td>
<div align="center">
<?
$sqlno2="select avg(evaluateicm_subject_No2) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$queryno2=mysql_query($sqlno2);
$rowno2=mysql_fetch_array($queryno2);
$mean2=$rowno2[0];
echo number_format($mean2, 2, '.', '');
?></div></td>
<td>
<div align="center">
<?
$sqlsdno2="select stddev_samp(evaluateicm_subject_No2) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$querysdno2=mysql_query($sqlsdno2);
$rowsdno2=mysql_fetch_array($querysdno2);
$sd2=$rowsdno2[0];
echo number_format($sd2, 2, '.', '');
?>
</div>
</td>
</tr>
<tr>
<td>3. ความเหมาะสมของรูปแบบวิธีการสอน และการประเมินผล</td>
<td><div align="center">
<?
$sqlno3="select avg(evaluateicm_subject_No3) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$queryno3=mysql_query($sqlno3);
$rowno3=mysql_fetch_array($queryno3);
$mean3=$rowno3[0];
echo number_format($mean3, 2, '.', '');
?></div></td>
<td>
<div align="center">
<?
$sqlsdno3="select stddev_samp(evaluateicm_subject_No3) from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]'";
$querysdno3=mysql_query($sqlsdno3);
$rowsdno3=mysql_fetch_array($querysdno3);
$sd3=$rowsdno3[0];
echo number_format($sd3, 2, '.', '');
?>
</div>
</td>
</tr>
<tr>
<td><strong>ข้อเสนอแนะอื่น ๆ</strong></td>
<td> </td>
<td> </td>
</tr>
<?
$sqlcomment="select * from evaluateicm_subject where evaluateicm_subject_CourseID='$row1[evaluateicm_system_course_ID]' and evaluateicm_subject_Comment!='' and evaluateicm_subject_Comment!='-'";
$querycomment=mysql_query($sqlcomment);
$numcomment=mysql_num_rows($querycomment);
if($numcomment>=1){
while($rowcomment=mysql_fetch_array($querycomment)){
?>
<tr>
<td colspan="3">
- <?=$rowcomment[evaluateicm_subject_Comment]?>
</td>
</tr>
<?
}}else{
?>
<tr>
<td colspan="3">-</td>
</tr>
<? } ?>
</table>
<br /><br />
<? $i++;} ?>
<? } ?>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox