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>Curriculum Map</title>
<script 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/menu.css" rel="stylesheet" type="text/css" />
<link href="../css/font.css" rel="stylesheet" type="text/css" />
<link href="../css/piya_style.css" rel="stylesheet" type="text/css" />
<link href="../css/table.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('../images/menu/menu_03.png','../images/menu/menu_01_over.png','../images/menu/menu_05_over.png')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100" align="center" bgcolor="#FFFFFF"><img src="../menuin.jpg" width="532" height="120" /></td>
</tr>
<tr>
<td height="22" background="../images/head/bar.jpg"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="30%" border="0" align="right" cellpadding="0" cellspacing="0" class="login">
<tr>
<td align="right"><img src="../images/icon/people_1.png" width="13" height="14" />Hi !
<?=$System_Session_UserName?>|<img src="../images/icon/door.png" width="16" height="15" /><a href="../system/logout.php">Logout</a></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="300" align="left" valign="top" bgcolor="#FFFFFF"><div class="title1">ชั้นปี 4 ปีการศึกษา 2559 </div>
<p> </p>
</div>
<table width="100%" border="1">
<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>2101401</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>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>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="4%" bgcolor="#E0D9C6"><div align="center"><strong>2101451</strong></div></td>
<td width="2%" bgcolor="#E0D9C6"><div align="center"><strong>GPA</strong></div></td>
<td width="3%" bgcolor="#E0D9C6"><div align="center"><strong>CGPA</strong></div></td>
<td width="6%" bgcolor="#E0D9C6"><div align="center"><strong>รายละเอียด</strong></div></td>
</tr>
<?
$sql="select * from evaluateicm_system_student where year='4'";
$query=mysql_query($sql);
$i=1;
while($row=mysql_fetch_array($query)) {
?>
<tr>
<td><input type="checkbox" name="checkbox" value="checkbox" /></td>
<td><?=$i?></td>
<td><?=$row[evaluateicm_system_student_UserName]?> </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_Code='2101401'";
$querycode=mysql_query($sqlcode);
$rowcode=mysql_fetch_array($querycode);
$sqlsum="select sum(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];
?>
</div></td>
<td><div align="center"> <?
$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_Code='2101402'";
$querycode=mysql_query($sqlcode);
$rowcode=mysql_fetch_array($querycode);
$sqlsum="select sum(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];
?></div></td>
<td><div align="center"><?
$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_Code='2101411'";
$querycode=mysql_query($sqlcode);
$rowcode=mysql_fetch_array($querycode);
$sqlsum="select sum(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 $sum=$rowsum[0];
?><br />
<?
if($sum>=80){echo"A";}
if($sum>=75&&$sum<80){echo"B+";}
if($sum>=70&&$sum<75){echo"B";}
if($sum>=65&&$sum<70){echo"C+";}
if($sum>=60&&$sum<65){echo"C";}
if($sum>=55&&$sum<60){echo"D+";}
if($sum>=50&&$sum<55){echo"D";}
if($sum<50){echo"<font color=FF0000><b>F</b></font>";}
?>
</div></td>
<td><div align="center">A</div></td>
<td><div align="center">B</div></td>
<td><div align="center">B</div></td>
<td><div align="center">C</div></td>
<td><div align="center">C</div></td>
<td><div align="center">C</div></td>
<td><div align="center">B</div></td>
<td><div align="center">B</div></td>
<td><div align="center"></div></td>
<td><div align="center"></div></td>
<td><div align="center">view</div></td>
</tr>
<? $i++; } ?>
</table>
<p align="center">
<input type="submit" name="Submit" value="เลื่อนชั้นการศึกษา" />
</p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox