Hacked By AnonymousFox

Current Path : C:/AppServ/www/mfu/webengine/home/
Upload File :
Current File : C:/AppServ/www/mfu/webengine/home/pointstudent1_t.php

<? 
include("../lib/session.php"); 
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
$year=$_GET["year"];
$yearedu=$_GET["yearedu"];
?>
<html>
<head>

<title><?=$System_Variable_Title?>
</title>
 
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
 
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="../css/mystyle.css" rel="stylesheet" type="text/css">  
<style type="text/css">
<!--
.style3 {font-size: 16px}
-->
.tooltip-links {
   position: relative;
}

.tooltip-links:after {
   content: attr(title);
   display: none;  
   padding:5px 25px;
   background:rgb(208,208,208);
   border: 1px solid rgb(192,192,192);
   color:#fff;
   opacity: 0; 
   position: absolute;
   left:0px;
   bottom: 15px;
   min-width:200px;
   z-index:999;
   color:#000;
   -webkit-border-radius: 5px;
   -moz-border-radius: 5px;
   border-radius: 5px;
}

.tooltip-links:hover:after { 
   display: inline-block;
   opacity: 1; 
    
}
</style>
</head> 
<body bgcolor="#E9E6DF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../images/thai.gif','../../images/eng.gif','../../images/chaina.gif','../../images/object/topbar-thai-over.gif','../../images/object/topbar-english-over.gif','../images/bullet/lang_over_02_1.gif','../images/bullet/lang_over_01_1.gif')">
<table width="95%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td background="../../images/main/main-t-bg.gif" bgcolor="#162C41"><img src="../../webengine/bar.jpg" width="567" height="70" alt="กระทรวงศึกษาธิการ" /><br></td>
  </tr>
</table>
<table width="95%" height="6" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="#10202F">&nbsp;</td>
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td width="1" bgcolor="#10202F"><img src="../../images/blank.gif" width="1" height="1"></td>
    <td align="center" valign="top"><table width="100%" height="480" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td align="center" valign="top" bgcolor="#E9E6DF"> 
            <table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="16" valign="top" bgcolor="#C4BDB1">&nbsp;</td>
        <td align="center" valign="top" bgcolor="#C4BDB1"><a href="home.phhp"></a></td>
        <td valign="top" bgcolor="#C4BDB1">&nbsp;</td>
      </tr>
      <tr>
        <td width="20" valign="top" background="../images/object/border_03.gif"><img src="../images/object/border_16.gif" width="20" height="83"></td>
        <td align="center" valign="top" bgcolor="#FFFFFF">
		   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="15" height="300">&nbsp;</td>
                  <td align="left" valign="top">
                  <div class="title1"> 
                    <div align="center"><a href="home.php"><br>
                        <span class="style3">กลับสู่เมนูหลัก</span></a><br>
                      <br>
                    </div>
                    <table width="100%" height="22" border="0" align="center" cellpadding="2" cellspacing="0" class="table_header">
                        <tr>
                          <td width="30" align="center"><img src="<?=getMenuIcon($SystemMenuID)?>"></td>
                          <td><?=getMenuName($SystemMenuID)?></td>
                        </tr>
                      </table>
                        <br>
</div>
                    <? 
					if($year==""){$year="4";}
					if($yearedu==""){$yearedu="2559";}
					
					?>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="300" align="left" valign="top" bgcolor="#FFFFFF"><div class="title1">ชั้นปี <a href="pointstudent1.php?SystemMenuID=1&SystemModuleKey=point&System_EXID=&year=<?=$year-1?>&yearedu=<?=$yearedu?>"><<<</a> <?=$year?> <a href="pointstudent1.php?SystemMenuID=1&SystemModuleKey=point&System_EXID=&year=<?=$year+1?>&yearedu=<?=$yearedu?>">>>></a> ปีการศึกษา <a href="pointstudent1.php?SystemMenuID=1&SystemModuleKey=point&System_EXID=&yearedu=<?=$yearedu-1?>&year=<?=$year?>"><<</a> <?=$yearedu?> <a href="pointstudent1.php?SystemMenuID=1&SystemModuleKey=point&System_EXID=&yearedu=<?=$yearedu+1?>&year=<?=$year?>">>></a></div>
            <br>
            <form action="savegrade.php" method="post">
            <table width="100%" border="0">
              <tr>
                <td><div align="left"><strong>การประกาศเกรด </strong><br>
<?                
$sqlgd1="select status from statusgrade where year='4'";
$querygd1=mysql_query($sqlgd1);
$checkgd1=mysql_fetch_array($querygd1);

$sqlgd2="select status from statusgrade where year='5'";
$querygd2=mysql_query($sqlgd2);
$checkgd2=mysql_fetch_array($querygd2);

$sqlgd3="select status from statusgrade where year='6'";
$querygd3=mysql_query($sqlgd3);
$checkgd3=mysql_fetch_array($querygd3);

?>
                  ชั้นปี 4
                  <input type="radio" name="year4" id="radio" value="1" <? if($checkgd1[0]=="1") { ?> checked<? } ?>>
                  ปิดประกาศ
  <input type="radio" name="year4" id="radio2" value="2" <? if($checkgd1[0]=="2") { ?> checked<? } ?>>
                  เปิดประกาศ <br>
                  ชั้นปี 5
  <input type="radio" name="year5" id="radio3" value="1" <? if($checkgd2[0]=="1") { ?> checked<? } ?>>
                  ปิดประกาศ
  <input type="radio" name="year5" id="radio4" value="2" <? if($checkgd2[0]=="2") { ?> checked<? } ?>>
                  เปิดประกาศ<br>
                  ชั้นปี 6
  <input type="radio" name="year6" id="radio5" value="1" <? if($checkgd3[0]=="1") { ?> checked<? } ?>>
                  ปิดประกาศ
  <input type="radio" name="year6" id="radio6" value="2" <? if($checkgd3[0]=="2") { ?> checked<? } ?>>
                  เปิดประกาศ</div></td>
              </tr>
              <tr>
                <td>
                  <div align="left">
                    <input type="submit" name="button" id="button" value="Submit">
                    </div></td>
              </tr>
            </table>
            </form>
            <p><br>
            </p>
            <form action="upyear.php" method="post">
          <? if($year=="4"){?>
            <table width="100%" border="1">
              <tr>
                <td colspan="4" bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของสตรี 1 </strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของสตรี 2 </strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>จิตเวชศาสตร์</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของเด็กแรกเกิดจนถึงวัยรุ่น 1</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของเด็กแรกเกิดจนถึงวัยรุ่น 2</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของผู้ใหญ่และผู้สูงอายุ 1</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของผู้ใหญ่และผู้สูงอายุ 2</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 1</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 2</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>จักษุวิทยาทั่วไป</strong></div></td>
                <td width="0%" rowspan="2"bgcolor="#E0D9C6"><div align="center"><strong>เกรดเฉลี่ย</strong></div></td>
              </tr>
              <tr>
                <td width="2%" bgcolor="#E0D9C6"><div align="center"></div></td>
                <td width="2%" bgcolor="#E0D9C6"><strong>ลำดับ</strong></td>
                <td width="8%" bgcolor="#E0D9C6"><div align="center"><strong>รหัสนักศึกษา</strong></div></td>
                <td width="33%" bgcolor="#E0D9C6"><div align="center"><strong>ชื่อ - นามสกุล </strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101411</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101412</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101402</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101421</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101422</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101431</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101432</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101441</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101442</strong></div></td>
                <td width="1%" bgcolor="#E0D9C6"><div align="center"><strong>2101411</strong></div></td>
                </tr>
			  <?
			 $sql="select * from evaluateicm_system_student a,cm_mod_detailpoint b where a.evaluateicm_system_student_UserName=b.cm_mod_detailpoint_Idstudent and b.cm_mod_detailpoint_Eduyear='$yearedu' and b.cm_mod_detailpoint_ExamID='$year' group by a.evaluateicm_system_student_UserName order by a.evaluateicm_system_student_UserName asc ";
			  $query=mysql_query($sql);
			  $i=1;
			  while($row=mysql_fetch_array($query)) {
			  
			  ?>
              <tr>
                <td><input type="checkbox" name="up[]"  value="<?=$row[evaluateicm_system_student_ID]?>" /></td>
                <td><?=$i?></td>
                <td><?=$row[evaluateicm_system_student_UserName]?>&nbsp;</td>
                <td><?=$row[evaluateicm_system_student_FName]?>  <br /><?=$row[evaluateicm_system_student_LName]?></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='125'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $onep="4";  }
				if($gd=="B+"){ $onep="3.5";  }
				if($gd=="B"){ $onep="3";  }
				if($gd=="C+"){ $onep="2.5";  }
				if($gd=="C"){ $onep="2";  }
				if($gd=="C*"){ $onep="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='126'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd1=$rowsum[0];
				if($gd1=="A"){ $onep2="4";  }
				if($gd1=="B+"){ $onep2="3.5";  }
				if($gd1=="B"){ $onep2="3";  }
				if($gd1=="C+"){ $onep2="2.5";  }
				if($gd1=="C"){ $onep2="2";  }
				if($gd1=="C*"){ $onep2="2";  }

				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='128'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				
				$gd2=$rowsum[0];
				if($gd2=="A"){ $onep3="4";  }
				if($gd2=="B+"){ $onep3="3.5";  }
				if($gd2=="B"){ $onep3="3";  }
				if($gd2=="C+"){ $onep3="2.5";  }
				if($gd2=="C"){ $onep3="2";  }
				if($gd2=="C*"){ $onep3="2";  }

				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='129'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];

				$gd3=$rowsum[0];
				if($gd3=="A"){ $onep4="4";  }
				if($gd3=="B+"){ $onep4="3.5";  }
				if($gd3=="B"){ $onep4="3";  }
				if($gd3=="C+"){ $onep4="2.5";  }
				if($gd3=="C"){ $onep4="2";  }
				if($gd3=="C*"){ $onep4="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='130'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd4=$rowsum[0];
				if($gd4=="A"){ $onep5="4";  }
				if($gd4=="B+"){ $onep5="3.5";  }
				if($gd4=="B"){ $onep5="3";  }
				if($gd4=="C+"){ $onep5="2.5";  }
				if($gd4=="C"){ $onep5="2";  }
				if($gd4=="C*"){ $onep5="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='131'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd5=$rowsum[0];
				if($gd5=="A"){ $onep6="4";  }
				if($gd5=="B+"){ $onep6="3.5";  }
				if($gd5=="B"){ $onep6="3";  }
				if($gd5=="C+"){ $onep6="2.5";  }
				if($gd5=="C"){ $onep6="2";  }
				if($gd5=="C*"){ $onep6="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='132'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd6=$rowsum[0];
				if($gd6=="A"){ $onep7="4";  }
				if($gd6=="B+"){ $onep7="3.5";  }
				if($gd6=="B"){ $onep7="3";  }
				if($gd6=="C+"){ $onep7="2.5";  }
				if($gd6=="C"){ $onep7="2";  }
				if($gd6=="C*"){ $onep7="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='133'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd7=$rowsum[0];
				if($gd7=="A"){ $onep8="4";  }
				if($gd7=="B+"){ $onep8="3.5";  }
				if($gd7=="B"){ $onep8="3";  }
				if($gd7=="C+"){ $onep8="2.5";  }
				if($gd7=="C"){ $onep8="2";  }
				if($gd7=="C*"){ $onep8="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='134'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd8=$rowsum[0];
				if($gd8=="A"){ $onep9="4";  }
				if($gd8=="B+"){ $onep9="3.5";  }
				if($gd8=="B"){ $onep9="3";  }
				if($gd8=="C+"){ $onep9="2.5";  }
				if($gd8=="C"){ $onep9="2";  }
				if($gd8=="C*"){ $onep9="2";  }
				
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='136'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]' group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd9=$rowsum[0];
				if($gd9=="A"){ $onep10="4";  }
				if($gd9=="B+"){ $onep10="3.5";  }
				if($gd9=="B"){ $onep10="3";  }
				if($gd9=="C+"){ $onep10="2.5";  }
				if($gd9=="C"){ $onep10="2";  }
				if($gd9=="C*"){ $onep10="2";  }
				
				?>
                </div></td>
                <td><?
				if($gd!=""){
				
				//echo $onep; echo"&nbsp;"; echo $onep2; echo"&nbsp;"; echo $onep3; echo"&nbsp;"; echo $onep4; echo"&nbsp;"; echo $onep5; echo"&nbsp;"; echo $onep6; echo"&nbsp;"; echo $onep7; echo"&nbsp;"; echo $onep8; echo"&nbsp;"; echo $onep9; echo"&nbsp;"; echo $onep10;
				
				
               $allsum=($onep*4)+($onep2*4)+($onep3*3)+($onep4*4)+($onep5*4)+($onep6*4)+($onep7*4)+($onep8*4)+($onep9*4)+($onep10*2);
			    echo round($allsum/37, 2);
			   }
				?></td>
              </tr>
			  <? $i++; } ?>
          </table>
          <? } if($year=="5") { ?>
          <table width="100%" border="1">
              <tr>
                <td colspan="4" bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของสตรี 3</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของเด็กแรกเกิดจนถึงวัยรุ่น 3 </strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของผู้ใหญ่และผู้สูงอายุ 3</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 3</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 4</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>เวชสาสตร์ชุมชน เวชศาสตร์ครอบครัว</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>เวชศาสตร์ฉุกเฉินและนิติเวชศาสตร์ 1</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>โสต ศอ นาสิก วิทยาทั่วไป</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>Professional Developmet 5</strong></div></td>
                <td width="0%" rowspan="2"bgcolor="#E0D9C6"><div align="center"><strong>เกรดเฉลี่ย</strong></div></td>
              </tr>
              <tr>
                <td width="2%" bgcolor="#E0D9C6"><div align="center"></div></td>
                <td width="2%" bgcolor="#E0D9C6"><strong>ลำดับ</strong></td>
                <td width="8%" bgcolor="#E0D9C6"><div align="center"><strong>รหัสนักศึกษา</strong></div></td>
                <td width="33%" bgcolor="#E0D9C6"><div align="center"><strong>ชื่อ - นามสกุล </strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101511</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101521</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101531</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101541</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101542</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101551</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101561</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101680</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101501</strong></div></td>
                </tr>
			  <?
			 $sql="select * from evaluateicm_system_student a,cm_mod_detailpoint b where a.evaluateicm_system_student_UserName=b.cm_mod_detailpoint_Idstudent and b.cm_mod_detailpoint_Eduyear='$yearedu' and b.cm_mod_detailpoint_ExamID='$year' group by a.evaluateicm_system_student_UserName order by a.evaluateicm_system_student_UserName asc ";
			  $query=mysql_query($sql);
			  $i=1;
			  while($row=mysql_fetch_array($query)) {
			  
			  ?>
              <tr>
                <td><input type="checkbox" name="up[]"  value="<?=$row[evaluateicm_system_student_ID]?>" /></td>
                <td><?=$i?></td>
                <td><?=$row[evaluateicm_system_student_UserName]?>&nbsp;</td>
                <td><?=$row[evaluateicm_system_student_FName]?>  <br /><?=$row[evaluateicm_system_student_LName]?></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='139'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq="4";  }
				if($gd=="B+"){ $oneq="3.5";  }
				if($gd=="B"){ $oneq="3";  }
				if($gd=="C+"){ $oneq="2.5";  }
				if($gd=="C"){ $oneq="2";  }
				if($gd=="C*"){ $oneq="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='140'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq2="4";  }
				if($gd=="B+"){ $oneq2="3.5";  }
				if($gd=="B"){ $oneq2="3";  }
				if($gd=="C+"){ $oneq2="2.5";  }
				if($gd=="C"){ $oneq2="2";  }
				if($gd=="C*"){ $oneq2="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='141'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq3="4";  }
				if($gd=="B+"){ $oneq3="3.5";  }
				if($gd=="B"){ $oneq3="3";  }
				if($gd=="C+"){ $oneq3="2.5";  }
				if($gd=="C"){ $oneq3="2";  }
				if($gd=="C*"){ $oneq3="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='142'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq4="4";  }
				if($gd=="B+"){ $oneq4="3.5";  }
				if($gd=="B"){ $oneq4="3";  }
				if($gd=="C+"){ $oneq4="2.5";  }
				if($gd=="C"){ $oneq4="2";  }
				if($gd=="C*"){ $oneq4="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='143'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq5="4";  }
				if($gd=="B+"){ $oneq5="3.5";  }
				if($gd=="B"){ $oneq5="3";  }
				if($gd=="C+"){ $oneq5="2.5";  }
				if($gd=="C"){ $oneq5="2";  }
				if($gd=="C*"){ $oneq5="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='144'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq6="4";  }
				if($gd=="B+"){ $oneq6="3.5";  }
				if($gd=="B"){ $oneq6="3";  }
				if($gd=="C+"){ $oneq6="2.5";  }
				if($gd=="C"){ $oneq6="2";  }
				if($gd=="C*"){ $oneq6="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='145'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq7="4";  }
				if($gd=="B+"){ $oneq7="3.5";  }
				if($gd=="B"){ $oneq7="3";  }
				if($gd=="C+"){ $oneq7="2.5";  }
				if($gd=="C"){ $oneq7="2";  }
				if($gd=="C*"){ $oneq7="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='146'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq8="4";  }
				if($gd=="B+"){ $oneq8="3.5";  }
				if($gd=="B"){ $oneq8="3";  }
				if($gd=="C+"){ $oneq8="2.5";  }
				if($gd=="C"){ $oneq8="2";  }
				if($gd=="C*"){ $oneq8="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='138'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd=$rowsum[0];
				if($gd=="A"){ $oneq9="4";  }
				if($gd=="B+"){ $oneq9="3.5";  }
				if($gd=="B"){ $oneq9="3";  }
				if($gd=="C+"){ $oneq9="2.5";  }
				if($gd=="C"){ $oneq9="2";  }
				if($gd=="C*"){ $oneq9="2";  }
				?>
                </div></td>
                <td><?
				              
                $allsum2=($oneq*6)+($oneq2*6)+($oneq3*6)+($oneq4*6)+($oneq5*4)+($oneq6*6)+($oneq7*4)+($oneq8*2)+($oneq9*1);
				 echo round($allsum2/41, 2);
				?></td>
              </tr>
			  <? $i++; } ?>
          </table>
          
          <? }if($year=="6"){ ?>
          <table width="100%" border="1">
              <tr>
                <td colspan="4" bgcolor="#FFFFFF">&nbsp;</td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของสตรี 4</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของเด็กแรกเกิดจนถึงวัยรุ่น 4</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>สุขภาพและโรคของผู้ใหญ่และผู้สูงอายุ 4</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 5</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 6</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>การดูแลผู้ป่วยผ่าตัด 7</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>เวชสาสตร์ชุมชน เวชศาสตร์ครอบครัว</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>เวชศาสตร์ฉุกเฉินและนิติเวชศาสตร์ 2</strong></div></td>
                <td bgcolor="#E0D9C6" valign="top"><div align="center"><strong>เวชศาสตร์ฟื้นฟูในเวชปฏิบัติ</strong></div></td>
                <td width="0%" rowspan="2"bgcolor="#E0D9C6"><div align="center"><strong>เกรดเฉลี่ย</strong></div></td>
              </tr>
              <tr>
                <td width="2%" bgcolor="#E0D9C6"><div align="center"></div></td>
                <td width="2%" bgcolor="#E0D9C6"><strong>ลำดับ</strong></td>
                <td width="8%" bgcolor="#E0D9C6"><div align="center"><strong>รหัสนักศึกษา</strong></div></td>
                <td width="33%" bgcolor="#E0D9C6"><div align="center"><strong>ชื่อ - นามสกุล </strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101611</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101621</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101631</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101641</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101642</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101643</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101651</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101661</strong></div></td>
                <td width="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101687</strong></div></td>
                </tr>
			  <?
			 $sql="select * from evaluateicm_system_student a,cm_mod_detailpoint b where a.evaluateicm_system_student_UserName=b.cm_mod_detailpoint_Idstudent and b.cm_mod_detailpoint_Eduyear='$yearedu' and b.cm_mod_detailpoint_ExamID='$year' group by a.evaluateicm_system_student_UserName order by a.evaluateicm_system_student_UserName asc ";
			  $query=mysql_query($sql);
			  $i=1;
			  while($row=mysql_fetch_array($query)) {
			  
			  ?>
              <tr>
                <td><input type="checkbox" name="up[]"  value="<?=$row[evaluateicm_system_student_ID]?>" /></td>
                <td><?=$i?></td>
                <td><?=$row[evaluateicm_system_student_UserName]?>&nbsp;</td>
                <td><?=$row[evaluateicm_system_student_FName]?>  <br /><?=$row[evaluateicm_system_student_LName]?></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='147'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				echo $sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd1=$rowsum[0];
				if($gd1=="A"){ $oner="4";  }
				if($gd1=="B+"){ $oner="3.5";  }
				if($gd1=="B"){ $oner="3";  }
				if($gd1=="C+"){ $oner="2.5";  }
				if($gd1=="C"){ $oner="2";  }
				if($gd1=="C*"){ $oner="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='148'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd2=$rowsum[0];
				if($gd2=="A"){ $oner2="4";  }
				if($gd2=="B+"){ $oner2="3.5";  }
				if($gd2=="B"){ $oner2="3";  }
				if($gd2=="C+"){ $oner2="2.5";  }
				if($gd2=="C"){ $oner2="2";  }
				if($gd2=="C*"){ $oner2="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='149'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd3=$rowsum[0];
				if($gd3=="A"){ $oner3="4";  }
				if($gd3=="B+"){ $oner3="3.5";  }
				if($gd3=="B"){ $oner3="3";  }
				if($gd3=="C+"){ $oner3="2.5";  }
				if($gd3=="C"){ $oner3="2";  }
				if($gd3=="C*"){ $oner3="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='150'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd4=$rowsum[0];
				if($gd4=="A"){ $oner4="4";  }
				if($gd4=="B+"){ $oner4="3.5";  }
				if($gd4=="B"){ $oner4="3";  }
				if($gd4=="C+"){ $oner4="2.5";  }
				if($gd4=="C"){ $oner4="2";  }
				if($gd4=="C*"){ $oner4="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='151'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd5=$rowsum[0];
				if($gd5=="A"){ $oner5="4";  }
				if($gd5=="B+"){ $oner5="3.5";  }
				if($gd5=="B"){ $oner5="3";  }
				if($gd5=="C+"){ $oner5="2.5";  }
				if($gd5=="C"){ $oner5="2";  }
				if($gd5=="C*"){ $oner5="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='152'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd6=$rowsum[0];
				if($gd6=="A"){ $oner6="4";  }
				if($gd6=="B+"){ $oner6="3.5";  }
				if($gd6=="B"){ $oner6="3";  }
				if($gd6=="C+"){ $oner6="2.5";  }
				if($gd6=="C"){ $oner6="2";  }
				if($gd6=="C*"){ $oner6="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='153'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd7=$rowsum[0];
				if($gd7=="A"){ $oner7="4";  }
				if($gd7=="B+"){ $oner7="3.5";  }
				if($gd7=="B"){ $oner7="3";  }
				if($gd7=="C+"){ $oner7="2.5";  }
				if($gd7=="C"){ $oner7="2";  }
				if($gd7=="C*"){ $oner7="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='154'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd8=$rowsum[0];
				if($gd8=="A"){ $oner8="4";  }
				if($gd8=="B+"){ $oner8="3.5";  }
				if($gd8=="B"){ $oner8="3";  }
				if($gd8=="C+"){ $oner8="2.5";  }
				if($gd8=="C"){ $oner8="2";  }
				if($gd8=="C*"){ $oner8="2";  }
				?>
                </div></td>
                <td><div align="center">
                  <? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='155'";
				$querycode=mysql_query($sqlcode);
				$rowcode=mysql_fetch_array($querycode);
				
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$row[evaluateicm_system_student_UserName]'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				$gd9=$rowsum[0];
				if($gd9=="A"){ $oner9="4";  }
				if($gd9=="B+"){ $oner9="3.5";  }
				if($gd9=="B"){ $oner9="3";  }
				if($gd9=="C+"){ $oner9="2.5";  }
				if($gd9=="C"){ $oner9="2";  }
				if($gd9=="C*"){ $oner9="2";  }
				?>
                </div></td>
                <td><?
				  echo $oner*6;
                 $allsum3=($oner*6)+($oner2*6)+($oner3*6)+($oner4*6)+($oner5*4)+($oner6*2)+($oner7*6)+($oner8*4)+($oner9*2);
				 //echo round($allsum3/42, 2);
				?></td>
              </tr>
			  <? $i++; } ?>
          </table>
          <? } ?>
          <p align="center">
            <input type="submit" name="Submit" value="เลื่อนชั้นการศึกษา" />
          </p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
		  </form>
		  </td>
        </tr>
    </table></td>
                  <td width="15">&nbsp;</td>
                </tr>
            </table>		</td>
        <td width="17" valign="top" background="../images/object/border_07.gif"><img src="../images/object/border_17.gif" width="17" height="119"></td>
      </tr>
      <tr>
        <td height="16"><img src="../images/object/border_09.gif" width="20" height="16"></td>
        <td height="16" background="../images/object/border_11.gif"><img src="../images/object/border_11.gif" width="1" height="16"></td>
        <td><img src="../images/object/border_13.gif" width="17" height="16"></td>
      </tr>
    </table></td>
        </tr>
      </table></td>
    <td width="1" bgcolor="#10202F"><img src="../../images/blank.gif" width="1" height="1"></td> 
  </tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="4" height="30" align="left" valign="bottom" background="../../images/main/main-t-bg.gif">&nbsp;</td>
    <td height="30" align="center" background="../../images/main/main-t-bg.gif">&nbsp;</td>
    <td width="4" height="30" align="right" valign="bottom" background="../../images/main/main-t-bg.gif">&nbsp;</td>
  </tr>
</table>
</body>
</html>
<? 
include("../lib/disconnect.php");
?>

Hacked By AnonymousFox1.0, Coded By AnonymousFox