?> <tr> <td> <? echo "$subjectname";?> </td> <td class='<? echo $color?>'> <? echo $subjectmean;?> </td> </tr> <? $count++; //$highchartexamidmeanarr[]="{ name: '$examname' ,data: [$exammean]}"; $highchartsubjectnamearr[]="'$subjectname'"; $highchartsubjectmeanarr[]="{y: $subjectmean, color: '".getgraphcolor($subjectmean)."'}"; } $highchartsubjectname=implode(',',$highchartsubjectnamearr); $highchartsubjectmean=implode(',',$highchartsubjectmeanarr); //$highchartexamidmean=implode(',',$highchartexamidmeanarr); ?> </table> </div> </td> <td> <div class="span6"> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script> <script type="text/javascript">
} ?> <tr> <td> <? echo $subjectname; ?> </td> <td class='<? echo $color?>'> <? echo $subjectavg;?> </td> </tr> <? $colorcount++; $highchartsubjectnamearr[]="'$subjectname'"; $highchartsubjectavgarr[]="{y: $subjectavg, color: '".getgraphcolor($subjectavg)."'}"; } $highchartsubjectname=implode(',',$highchartsubjectnamearr); $highchartsubjectavg=implode(',',$highchartsubjectavgarr); ?> </table> </div> <div class="span6"> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script> <script type="text/javascript"> $(function () {
} else { echo $subjectname; } ?> </td> <td class='<? echo $color?>'> <? echo $sectionavgnormalised;?> </td> </tr> <? $colorcount++; $highchartsubjectnamearr[]="'$subjectname'"; $highchartsectionavgarr[]="{y: $sectionavgnormalised, color: '".getgraphcolor($sectionavgnormalised)."'}"; //$highchartseriesarr[]="{ name: '$subjectname', data: [$sectionavg]}"; } } $highchartsubjectname=implode(',',$highchartsubjectnamearr); $highchartsectionavg=implode(',',$highchartsectionavgarr); $highchartseries=implode(',',$highchartseriesarr); ?> </table> </div> <div class="span6"> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script> <script type="text/javascript">
$markavg=getstudentportionaverage($schoolid,$classid,$sectionid,$subjectid,$newsubjectid,$studentid,$portionid); if($markavg!=0) { ?> <tr> <td> <? echo $portionname;?> </td> <td class='<? echo gettdcolor($markavg)?> center'> <? echo $markavg;?> </td> </tr> <? $portioncount++; $highchartportionarr[]="'".shortenstring($portionname,15)."'"; $highchartmarkarr[]="{y: $markavg, color: '".getgraphcolor($markavg)."'}"; } } $highchartportion=implode(',',$highchartportionarr); $highchartmark=implode(',',$highchartmarkarr); ?> </table> </div>
<? } else { echo $subjectname; } ?> </td> <td class='<? echo gettdcolor($tempmark)?> '> <? echo "$mark / $maxmark";?> </td> </tr> <? $colorcount++; $highchartsubjectnamearr[]="'$subjectname'"; $highchartmarkarr[]="{y: $mark, color: '".getgraphcolor($mark/$maxmark*100)."'}"; } $highchartsubjectname=implode(',',$highchartsubjectnamearr); $highchartmark=implode(',',$highchartmarkarr); ?> </table> </div> <div class="span6"> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script> <script type="text/javascript"> $(function () { var chart; $(document).ready(function() { chart = new Highcharts.Chart({
} ?> <tr> <td> <? echo $portionname;?> </td> <td class='<? echo $color?>'> <? echo $portionavg;?> </td> </tr> <? $count++; $highchartportionnamearr[]="'$portionname'"; $highchartportionavgarr[]="{y: $portionavg, color: '".getgraphcolor($portionavg)."'}"; } } $highchartportionname=implode(',',$highchartportionnamearr); $highchartportionavg=implode(',',$highchartportionavgarr); ?> </table> </div> <div class="span6"> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script> <script type="text/javascript"> $(function () {
} ?> </td> <? } ?> </tr> <? $highchartportionnamearr[]="'".shortenstring($portionname,16)."'"; if($nextsectionid>0) { $highchartsectionavgarr[]=$sectionavg; } else { $highchartsectionavgarr[]="{y: $sectionavg, color: '".getgraphcolor($sectionavg)."'}"; } $highchartnextsectionavgarr[]=$nextsectionavg; } } $highchartportionname=implode(',',$highchartportionnamearr); $highchartsectionavg=implode(',',$highchartsectionavgarr); $highchartnextsectionavg=implode(',',$highchartnextsectionavgarr); ?> </table> </div> <script type="text/javascript" src="../frontend/js/jquery.min.js"></script>