$temp+=$mark/$maxmark; //echo "<br/>'$subjectcount',$examid,$studentid,$schoolid<br/>"; } if($temp!=0) { $subjectmean+=$temp/$studentcount; $subjectcount++; } } $exammean=round($subjectmean/$subjectcount*100); $color=""; $temp=$exammean; $color=gettdcolor1($temp); if($markentered==1) { ?> <tr> <td> <? echo "$examname";?> </td> <td class='<? echo $color?>'> <? echo $exammean;?> </td> </tr> <? $count++; //$highchartexamidmeanarr[]="{ name: '$examname' ,data: [$exammean]}";
{ $average=$rowst['AverageMark']; $markentered=$rowst['MarkEntered']; $maxmark=$rowst['MaximumMark']; if($markentered==1) { //echo "<script>alert('".ceil(($average*3)/$maxmark)."')</script>"; $score+=ceil(($average*100)/$maxmark); $count++; } } $color=""; if($count!=0) { $temp=ceil($score/$count); $selected="dim"; if($selectedsubjectidmixed==$subjectidmixed) { $selected="selected"; } ?> <li class="<? echo gettdcolor1($temp)." $selected";?>"><a href="<? echo "getportiontable.php?classid=$classid§ionid=$sectionid&subjectidmixed=$subjectidmixed"?>" target='portionarea' onclick="getsubjecttabs(<? echo "$classid,$sectionid,'$subjectidmixed'"; ?>);getcomparesection(<? echo "$classid,$sectionid,'$subjectidmixed','1'"; ?>)"><? echo $subjectname;?></a></li> <? } } } ?> </ul>