Exemplo n.º 1
0
	
	?>
	<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 () {
Exemplo n.º 3
0
			}
			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>
Exemplo n.º 5
0
			<?
			}
			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({
Exemplo n.º 6
0
				}
		
				?>
				<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 () {
Exemplo n.º 7
0
					}
					?>
				</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>