| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/gpa/sent/ |
Upload File : |
<?
require_once "../config/confiteacher.inc.php";
$ttt=$objResult["teachcode"];
$namet=$objResult["name"];
$lastname=$objResult["lastname"];
$crsql="SELECT (ku1) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku11=$dcrd[0];
$crsql="SELECT (pu1) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu11=$dcrd[0];
$crsql="SELECT (au1) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au11=$dcrd[0];
$totalu1=$ku11+$pu11+$au11;
///////////////////////
$crsql="SELECT (ku2) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku21=$dcrd[0];
$crsql="SELECT (pu2) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu21=$dcrd[0];
$crsql="SELECT (au2) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au21=$dcrd[0];
$totalu2=$ku21+$pu21+$au21;
////////////////////////
$crsql="SELECT (ku3) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku31=$dcrd[0];
$crsql="SELECT (pu3) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu31=$dcrd[0];
$crsql="SELECT (au3) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au31=$dcrd[0];
$totalu3=$ku31+$pu31+$au31;
//////////////////////////////////
$crsql="SELECT (ku4) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku41=$dcrd[0];
$crsql="SELECT (pu4) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu41=$dcrd[0];
$crsql="SELECT (au4) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au41=$dcrd[0];
$totalu4=$ku41+$pu41+$au41;
//////////////////////////////////
$crsql="SELECT (ku5) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku51=$dcrd[0];
$crsql="SELECT (pu5) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu51=$dcrd[0];
$crsql="SELECT (au5) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au51=$dcrd[0];
$totalu5=$ku51+$pu51+$au51;
//////////////////////////////////
$crsql="SELECT (ku6) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ku61=$dcrd[0];
$crsql="SELECT (pu6) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$pu61=$dcrd[0];
$crsql="SELECT (au6) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$au61=$dcrd[0];
$totalu6=$ku61+$pu61+$au61;
////////////
$crsql="SELECT (midterm) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$midterm=$dcrd[0];
$crsql="SELECT (final) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$final=$dcrd[0];
$pretest=$totalu1+$totalu2+$totalu3;
$posttest=$totalu4+$totalu5+$totalu6;
$totalall=$pretest+$posttest+$midterm+$final;
////////ชื่อวิชา
$crsql="SELECT (codcod) FROM `registeacher`
WHERE registeach = '$ttt' and codeteach='$_GET[id]'" ;
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$codcod=$dcrd[0];
?>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=tis-620">
<title>ฝ่ายบริหารงานวิชาการ</title>
</head>
<body onload="window.print()">
<?
require_once "../config/connectdb.php";
$year=date(" Y ")+542;
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
for($i=1;$i<=$_POST["hdnLine"];$i++)
{
$strSQL = "UPDATE transcripsactivi SET ";
$strSQL .="gradeac = '".$_POST["txtgradeac$i"]."' ";
$strSQL .="WHERE idacti = '".$_POST["hdnid$i"]."' ";
$objQuery = mysql_query($strSQL);
}
//header("location:$_SERVER[PHP_SELF]");
//exit();
}
$sql2="SELECT years FROM config";
$result2 = mysql_query($sql2);
while (list($years) = mysql_fetch_row($result2)) {
$xsc_years = $years;
$strSQL = "SELECT * FROM teacher LEFT JOIN transcriptintall ON
teacher.teachcode=transcriptintall.teachin JOIN klw ON klw.Username=transcriptintall.idstin WHERE codin = '$_GET[id]' and dayin = '$_GET[dayin]' and timeins = '$_GET[timeins]' and teachin='$_GET[teachin]' order by room+1 asc,ordinal+1 asc";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$i = 1;
}
?>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="198"><a href="regis.php"><font color="#FF0000" size="2">หน้าหลัก</font></a>
</td>
<td width="575"><table width="100%" border="0" cellspacing="1" cellpadding="1">
</table></td>
</tr>
</table>
<form name="frmMain" method="post" action="totalsave.php?Action=Save">
<table width="100%" border="0" bgcolor="#999999">
<tr bgcolor="#FFFFFF">
<th width="10" colspan="3"> <div align="center"><font size=1> วิชา <? echo $_GET[id]; ?> <? echo "$codcod"; ?></font>
</div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 1</font></div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 2</font></div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 3</font></div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 4</font></div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 5</font></div></th>
<th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 6</font></div></th>
<th width="10" colspan="6"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
<th width="10"> <div align="center"></div></th>
</tr>
<tr bgcolor="#FFFFFF">
<th width="10" colspan="3"> <div align="center"><font size=1>ครู <? echo "$ttt"; ?> <? echo "$namet"; ?> <? echo "$lastname"; ?>
</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
<th width="20" colspan="6"> <div align="center"><font size=1>รวมหน่วย</font></div></th>
<th width="20"> <div align="center"></div></th>
<th width="20"> <div align="center"></div></th>
<th width="20"> <div align="center"></div></th>
<th width="20"> <div align="center"></div></th>
<th width="20"> <div align="center"></div></th>
<th width="20"> <div align="center"></div></th>
</tr>
<tr bgcolor="#FFFFFF">
<th width="10" colspan="3"> <div align="center"></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>k</font></div></th>
<th width="10"> <div align="center"><font size=1>p</font></div></th>
<th width="10"> <div align="center"><font size=1>a</font></div></th>
<th width="10"> <div align="center"><font size=1>1</font></div></th>
<th width="10"> <div align="center"><font size=1>2</font></div></th>
<th width="10"> <div align="center"><font size=1>3</font></div></th>
<th width="10"> <div align="center"><font size=1>4</font></div></th>
<th width="10"> <div align="center"><font size=1>5</font></div></th>
<th width="10"> <div align="center"><font size=1>6</font></div></th>
<th width="10"> <div align="center"><font size=1>ก่อน</font></div></th>
<th width="10"> <div align="center"><font size=1>กลาง</font></div></th>
<th width="10"> <div align="center"><font size=1>หลัง</font></div></th>
<th width="10"> <div align="center"><font size=1>ปลาย</font></div></th>
<th width="10"> <div align="center"><font size=1>รวม</font></div></th>
<th width="10"> <div align="center"><font size=1>เกรด</div></th>
</tr>
<tr bgcolor="#FFFFFF">
<th width="10" colspan="3"> <div align="center"></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku11"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu11"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au11"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku21"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu21"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au21"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku31"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu31"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au31"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku41"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu41"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au41"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku51"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu51"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au51"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$ku61"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pu61"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$au61"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu1"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu2"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu3"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu4"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu5"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalu6"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$pretest"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$midterm"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$posttest"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$final"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1><? echo "$totalall"; ?></font></div></th>
<th width="10"> <div align="center"><font size=1></div></th>
</tr>
<tr bgcolor="#FFFFFF">
<th width="10"> <div align="center">#</div></th>
<th width="10"> <div align="center"><font size=1>รหัสนร.</font></div></th>
<th width="200"> <div align="center"><font size=1>ชื่อ-สกุล</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</font></div></th>
<th width="10"> <div align="center"><font size=1>......</div></th>
</tr>
<?
$i =0;
while($objResult = mysql_fetch_array($objQuery))
{
if($bg == "#EEEEEE") { //ส่วนของการ สลับสี
$bg = "#FFFFFF";
} else {
$bg = "#EEEEEE";
}
$i = $i + 1;
$scor1 =$objResult["k11"];
$scor2 =$objResult["p11"];
$scor3 =$objResult["a11"];
$uni1 =$scor1+$scor2+$scor3;
$scor4 =$objResult["k22"];
$scor5 =$objResult["p22"];
$scor6 =$objResult["a22"];
$uni2 =$scor4+$scor5+$scor6;
$scor7 =$objResult["k33"];
$scor8 =$objResult["p33"];
$scor9 =$objResult["a33"];
$uni3 =$scor7+$scor8+$scor9;
$mid =$objResult["midterm"];
$scor10 =$objResult["k44"];
$scor11 =$objResult["p44"];
$scor12 =$objResult["a44"];
$uni4 =$scor10+$scor11+$scor12;
$scor13 =$objResult["k55"];
$scor14 =$objResult["p55"];
$scor15 =$objResult["a55"];
$uni5 =$scor13+$scor14+$scor15;
$scor16 =$objResult["k66"];
$scor17 =$objResult["p66"];
$scor18 =$objResult["a66"];
$uni6 =$scor16+$scor17+$scor18;
$final=$objResult["final"];
$total=$uni1+$uni2+$uni3+$uni4+$uni5+$uni6+$mid+$final;
$sum1=$uni1+$uni2+$uni3;
$sum2=$uni4+$uni5+$uni6;
$grade=$objResult["grade2"];
$room =$objResult['room'];
$Username =$objResult['Username'];
$codtime =$objResult['codtime'];
$ordinal =$objResult['ordinal'];
$cllass =$objResult['cllass'];
$w1=5;
$w2=500;
$w3=1;
$crsql="SELECT count(idstutime) FROM `timeout`
WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=1";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numchik=$dcrd[0];
$crsql="SELECT count(idstutime) FROM `timeout`
WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=2";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numchik2=$dcrd[0];
$crsql="SELECT count(idstutime) FROM `timeout`
WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=3";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numchik3=$dcrd[0];
$totalxx=$numchik+$numchik2+$numchik3;
?>
<tr bgcolor="<?=$bg?>">
<input type="hidden" name="hdnid<?=$i;?>" size="1" value="<?=$objResult["idin"];?>">
<td width="10"><?=$i?></td>
<td width="10"><font size=1><div align="right"><?=$objResult["idstin"];?>
</div></font></td>
<td width="50%"><div align="left"><font size=1><?=$objResult["prefix"];?><?=$objResult["Name"];?> <?=$objResult["surname"];?>
<? echo "$cllass"; ?>/<? echo "$room"; ?>
</font></div></td>
<td width='$w1'><font size=2><? echo "$scor1"; ?></font></td>
<td width="$w1"><font size=2><? echo "$scor2"; ?></font></td>
<td width="$w1"><font size=2><? echo "$scor3"; ?></font></td>
<td width="$w1"><font size=2><? echo "$scor4"; ?></font></td>
<td width="$w1"><font size=2><? echo "$scor5"; ?></font></td>
<td width="$w1"><font size=2><? echo "$scor6"; ?></font></td>
<td><font size=2><? echo "$scor7"; ?></font></td>
<td><font size=2><? echo "$scor8"; ?></font></td>
<td><font size=2><? echo "$scor9"; ?></font></td>
<td><font size=2><? echo "$scor10"; ?></font></td>
<td><font size=2><? echo "$scor11"; ?></font></td>
<td><font size=2><? echo "$scor12"; ?></font></td>
<td><font size=2><? echo "$scor13"; ?></font></td>
<td><font size=2><? echo "$scor14"; ?></font></td>
<td><font size=2><? echo "$scor15"; ?></font></td>
<td><font size=2><? echo "$scor16"; ?></font></td>
<td><font size=2><? echo "$scor17"; ?></font></td>
<td><font size=2><? echo "$scor18"; ?></font></td>
<td><font size=2><? echo "$uni1"; ?></font></td>
<td><font size=2><? echo "$uni2"; ?></font></td>
<td><font size=2><? echo "$uni3"; ?></font></td>
<td><font size=2><? echo "$uni4"; ?></font></td>
<td><font size=2><? echo "$uni5"; ?></font></td>
<td><font size=2><? echo "$uni6"; ?></font></td>
<td><font size=2><? echo "$sum1"; ?></font></td>
<td><font size=2><? echo "$mid"; ?></font></td>
<td><font size=2><? echo "$sum2"; ?></font></td>
<td><font size=2><? echo "$final"; ?></font></td>
<td><font size=2><? echo "$total"; ?></font></td>
<td><font size=2><? echo "$grade"; ?></font></td>
</tr>
<?
$i = $i;
}
?>
</table>
</form>
</body>
</html>