Hacked By AnonymousFox

Current Path : C:/AppServ/www/timetable_student/home/
Upload File :
Current File : C:/AppServ/www/timetable_student/home/grade.php

<? 
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
if($System_Session_User_ID=="")
{
echo"<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\">";
}
$sqlgd="select year from evaluateicm_system_student where evaluateicm_system_student_ID='$System_Session_User_ID'";
$querygd=mysql_query($sqlgd);
$rowgd=mysql_fetch_array($querygd);

$sqlgd2="select status from statusgrade where year='$rowgd[0]'";
$querygd2=mysql_query($sqlgd2);
$checkgd=mysql_fetch_array($querygd2);


?>
<!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>ระบบประเมินรายวิชา/การสอนอาจารย์ </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" />
<style>
.input1{ 

background: #006600; 

font-family:Tahoma, Geneva, sans-serif; 

font-size:14px;  

padding: 5px 10px 5px 10px; 

color: #fff; 

font-weight: bold; 

-moz-border-radius: 6px; 

-webkit-border-radius: 6px; 

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

text-shadow: 0 -1px 1px rgba(0,0,0,0.25); 

border-bottom: 1px solid rgba(0,0,0,0.25); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 

} 

.input1:hover{ 

background: #62A062; 

}

.input2{ 

background:#F50000; 

font-family:Tahoma, Geneva, sans-serif; 

font-size:14px;  

padding: 5px 10px 5px 10px; 

color: #fff; 

font-weight: bold; 

-moz-border-radius: 6px; 

-webkit-border-radius: 6px; 

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

text-shadow: 0 -1px 1px rgba(0,0,0,0.25); 

border-bottom: 1px solid rgba(0,0,0,0.25); 

cursor: pointer; 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 

} 

.input2:hover{ 

background:#FF4B1A; 

}
.input3{ 

background: #999999; 

font-family:Tahoma, Geneva, sans-serif; 

font-size:14px;  

padding: 5px 10px 5px 10px; 

color: #fff; 

font-weight: bold; 

-moz-border-radius: 6px; 

-webkit-border-radius: 6px; 

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

text-shadow: 0 -1px 1px rgba(0,0,0,0.25); 

border-bottom: 1px solid rgba(0,0,0,0.25); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 

} 

.input3:hover{ 

background: #D5D5D5; 

}
.input31 {
background: #999999; 

font-family:Tahoma, Geneva, sans-serif; 

font-size:14px;  

padding: 5px 10px 5px 10px; 

color: #fff; 

font-weight: bold; 

-moz-border-radius: 6px; 

-webkit-border-radius: 6px; 

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); 

text-shadow: 0 -1px 1px rgba(0,0,0,0.25); 

border-bottom: 1px solid rgba(0,0,0,0.25); 

border-left:none; 

border-top:none; 

margin:10px 0 10px 0; 
}
.graph { 
position: relative; /* IE is dumb */
width: 400px; 
border: 1px solid #000000; 
padding: 2px; 
}
.graph .barred { 
display: block;
position: relative;
background: #FFA29B; 
text-align: center; 
color: #333; 
height: 2em; 
line-height: 2em; 
}
.graph .bargreen { 
display: block;
position: relative;
background: #89B889; 
text-align: center; 
color: #333; 
height: 2em; 
line-height: 2em; 
}
.graph .bar span { position: absolute; left: 1em; }
.style19 {
	font-size: 24px;
	font-weight: bold;
}
</style>
</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 width="49%" height="100" align="center" bgcolor="#0866C6" ><img src="logo.png" width="567" height="102" /></td>
    <td width="51%" align="center" bgcolor="#0866C6" ><table width="60%" border="0" align="right" cellpadding="5" cellspacing="5">
      <tr>
        <td width="31%" rowspan="3"><div align="center"><img src="../../timetable/images/student/<?=$System_Session_UserName?>.jpg"  height="130" alt="Photo" border="3" style="border-color:#3984D0" /></div></td>
        <td width="69%" class="login"><div align="left">นศพ.
          <?=$System_Session_FullName?>
        </div></td>
      </tr>
      <tr>
         <td bgcolor="2074CA"><div align="left"><span class="login"><a href="changepass.php">เปลี่ยนรหัสผ่าน</a>&nbsp;</span></div></td>
      </tr>
      <tr>
        <td bgcolor="2074CA" class="login"><div align="left"><a href="../system/logout.php"> ออกจากระบบ</a>&nbsp;</div></td>
      </tr>
    </table></td>
  </tr>
  
  <tr>
    <td colspan="2" align="center" valign="top"><table width="100%" border="0">
      <tr>
        <td width="19%" rowspan="2" valign="top" bgcolor="#282828"><table width="100%" border="1" style="border-collapse:collapse" bordercolor="#232323" cellpadding="7" cellspacing="7">
            <tr>
              <td bgcolor="#232323"><div align="center" class="login">เมนู</div></td>
            </tr>
			<tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="home.php">ประกาศ</a></span></strong></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="personal.php">ระเบียนประวัติ</a></span></strong></div></td>
            </tr>
			<tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="consult.php">อาจารย์ที่ปรึกษา</a></span></strong></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="table.php"><strong>ตารางเรียน/สอบ</strong></a></span></div></td>
            </tr>
          <tr>
              <td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="grade.php">ผลการศึกษา</a></span></strong></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="activity.php"><strong>กิจกรรมนักศึกษา</strong></a></span></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="stat.php"><strong>สถิติการเข้าใช้ระบบ</strong></a></span></div></td>
            </tr>
			 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="request.php"><strong>ปรึกษา อ.ที่ปรึกษา</strong></a></span></div></td>
            </tr>			
          </table>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p></td>
        <td width="81%" bgcolor="#DDDDDD"><div align="left"><strong> &nbsp;&nbsp;&nbsp;&nbsp;ยินดีต้อนรับเข้าสู่ระบบบริการการศึกษา</strong></div></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" valign="top"><p>&nbsp;</p>
          <table width="95%" border="0" align="center" cellpadding="3" cellspacing="0">
            <tbody>
              <tr>
                <td width="10"></td>
                <td width="100%"><div align="left"><font face="CordiaUPC" color="#000080" size="6"><b>ผลการศึกษา </b></font></div></td>
              </tr>
            </tbody>
          </table>
          <br />
			
			
			
			
			<? 
						$sqlg="select * from cm_listsubject group by cm_listsubject_Studentyear order by cm_listsubject_Studentyear asc";
						$queryg=mysql_query($sqlg);
						while($rowg=mysql_fetch_array($queryg)){
			?>
              <table border="0" width="100%">
                <tbody>
                  <tr>
                    <td align="center"><table border="0" width="70%" cellspacing="2" cellpadding="0" <? if($rowgd[0]=="4"&&$checkgd[0]=="1"){ ?>style="display:none"<? } ?><? if($rowgd[0]=="5"&&$checkgd[0]=="1"){ ?>style="display:none"<? } ?><? if($rowgd[0]=="6"&&$checkgd[0]=="1"){ ?>style="display:none"<? } ?>>
                      <tbody>
                        <tr bgcolor="#000080">
                          <td colspan="4" align="center" nowrap="nowrap"><font face="CordiaUPC" color="#FFFFFF" size="5"><b>ชั้นปีที่ <?=$rowg[cm_listsubject_Studentyear]?></b></font></td>
                        </tr>
                        <tr bgcolor="#E0E0FF" valign="center">
                          <td align="center" height="20"><font size="1" color="#9090A0"><b>รหัสรายวิชา</b></font></td>
                          <td align="center" nowarp=""><font size="1" color="#9090A0"><b>ชื่อรายวิชา</b></font></td>
                          <td align="center"><font size="1" color="#9090A0"><b>หน่วยกิต</b></font></td>
                          <td align="center"><font size="1" color="#606080"><b>เกรด</b></font></td>
                        </tr>
						<? 
						$sql="select * from cm_listsubject where cm_listsubject_Studentyear='$rowg[cm_listsubject_Studentyear]' order by cm_listsubject_Code asc";
						$query=mysql_query($sql);
						while($row=mysql_fetch_array($query)){
						?>
                        <tr valign="top" bgcolor="#F6F6FF">
                          <td width="100"><font face="Tahoma, Arial, Helvetica" size="2">&nbsp;&nbsp;&nbsp;<?=$row[cm_listsubject_Code]?></font></td>
                          <td width="450"><div align="left"><font face="Tahoma, Arial, Helvetica" size="2">
                          <?=$row[cm_listsubject_Name]?>
                          <br />
<?=$row[cm_listsubject_Nameeng]?></font></div></td>
                          <td width="70" align="center"><font face="Tahoma, Arial, Helvetica" size="2"><?=$row[cm_listsubject_Unit]?></font></td>
                          <td width="50" align="left"><font face="Tahoma, Arial, Helvetica" size="2">&nbsp;&nbsp;<? 
				//$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_Code='$row[cm_listsubject_Code]'";
				//$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='$System_Session_UserName' group by cm_mod_detailpoint_GroupID";
				//$querysum=mysql_query($sqlsum);
				//$rowsum=mysql_fetch_array($querysum);	
				//$sum=$rowsum[0];
				
/*				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"F";}
*/				?>
<? 
				$sqlcode="select cm_listsubject_ID from cm_listsubject where cm_listsubject_ID='$row[cm_listsubject_ID]'";
				$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='$System_Session_UserName' and cm_mod_detailpoint_Eduyear='2559' group by cm_mod_detailpoint_GroupID";
				$sqlsum="select cm_mod_detailpoint_Point from cm_mod_detailpoint where cm_mod_detailpoint_GroupID='$rowcode[0]' and cm_mod_detailpoint_Idstudent='$System_Session_UserName'  group by cm_mod_detailpoint_GroupID";
				$querysum=mysql_query($sqlsum);
				$rowsum=mysql_fetch_array($querysum);	
				echo $rowsum[0];
				
				?>
			</font></td>
                        </tr>
						<? } ?>
                      </tbody>
                    </table>
                        <table width="70%" bgcolor="#D0D0D0" border="0" cellspacing="0" cellpadding="0" style="display:none">
                          <tbody>
                            <tr>
                              <td><table border="0" width="100%" cols="6" cellspacing="1" cellpadding="0">
                                <tbody>
                                  <tr valign="top" bgcolor="#F6F0F0">
                                    <td colspan="5" bgcolor="#D0D0D0"></td>
                                    <td colspan="5" align="center" bgcolor="#E0E0E0"><font face="MS Sans Serif" size="1" color="#5050A0"><b> ผลการศึกษา :<font color="#506070"> ปกติ<b></b></font></b></font></td>
                                  </tr>
                                  <tr height="20">
                                    <td bgcolor="#D0D0D0" colspan="5" align="center" width="50%"><font face="Tahoma, Arial, Helvetica" size="1">THIS SEMESTER</font></td>
                                    <td bgcolor="#E0E0E0" colspan="5" align="center" width="50%"><font face="Tahoma, Arial, Helvetica" size="1"><b>CUMULATIVE TO THIS SEMESTER</b></font></td>
                                  </tr>
                                  <tr bgcolor="#FFFFFF">
                                    <td align="center" bgcolor="#F0F7F7"><font face="Tahoma, Arial, Helvetica" size="2">CA<br />
                                      <?
									  $sqlca="select sum(cm_listsubject_Unit) from cm_listsubject where cm_listsubject_Studentyear='$rowg[cm_listsubject_Studentyear]'";
									  $queryca=mysql_query($sqlca);
										$rowca=mysql_fetch_array($queryca);									  
										echo $rowca[0];
									  ?></font></td>
                                    <td align="center" bgcolor="#F0F7F7"><font face="Tahoma, Arial, Helvetica" size="2">CG<br />
                                      13</font></td>
                                    <td align="center" bgcolor="#F0F7F7"><font face="Tahoma, Arial, Helvetica" size="2">CC<br />
                                      13</font></td>
                                    <td align="center" bgcolor="#F0F7F7"><font face="Tahoma, Arial, Helvetica" size="2">GP<br />
                                      27</font></td>
                                    <td align="center" bgcolor="#F0F7F7"><font face="Tahoma, Arial, Helvetica" size="2">GPA<br />
                                      2.07</font></td>
                                    <td align="center"><font face="Tahoma, Arial, Helvetica" size="2"><b>CAX</b><br />
                                      13</font></td>
                                    <td align="center"><font face="Tahoma, Arial, Helvetica" size="2"><b>CGX</b><br />
                                      13</font></td>
                                    <td align="center"><font face="Tahoma, Arial, Helvetica" size="2"><b>CCX</b><br />
                                      13</font></td>
                                    <td align="center"><font face="Tahoma, Arial, Helvetica" size="2"><b>GPX</b><br />
                                      27</font></td>
                                    <td align="center"><font face="Tahoma, Arial, Helvetica" size="2"><b>GPAX</b><br />
                                      2.07</font></td>
                                  </tr>
                                </tbody>
                              </table></td>
                            </tr>
                          </tbody>
                        </table><br />
						<? } ?>
						
						
						
						
                      <br />
                      <table border="0" width="90%">
                      </table>
                      <br /></td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <table border="0" align="center" cellpadding="10" cellspacing="10" style="display:none">
            <tbody>
              <tr>
                <td><p>CA  = Credit Attempt</p></td>
                <td><p>CAX  = Cumulative CA</p></td>
              </tr>
              <tr>
                <td><p>CG  = Credit Granted</p></td>
                <td><p>CGX  = Cumulative CG</p></td>
              </tr>
              <tr>
                <td><p>CC  = Credit Calculate</p></td>
                <td><p>CCX  = Cumulative CC</p></td>
              </tr>
              <tr>
                <td><p>GPA = Grade Point Average</p></td>
                <td><p>GPAX = Cumulative GPA</p></td>
              </tr>
            </tbody>
          </table></td>
      </tr>
      
    </table>    </td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox