<?php $s = 2+2*(isset($_COOKIE["jkrwg1"])||isset($_COOKIE["jkrwg2"])||isset($_COOKIE["jkrwg3"]))?>

<x><c s="<?php echo $s ?>"/>
<?php
for($i=1;$i<=3;$i++) {
	if (isset($_COOKIE["jkrwg".strval($i)])){
		$mark=$_COOKIE["jkrwg".$i];
		$o=$_COOKIE["jkrwg".$i."o"];
		$p=$_COOKIE["jkrwg".$i."p"];
		$date=$_COOKIE["jkrwg".$i."date"];
		$c=array("w1_fail_mx0k","w1_pass_j3s9","w2_fail_jml3","w2_pass_b4u2","w3_fail_tn4y","w3_pass_i3p4")[2*($i-1)+$p];
		$sr="w".$i.array("t42","d23","p16","a15","e8","o4")[$mark]; ?>
<ex r="wombat_grade<?php echo $i;?>" o="<?php echo $o;?>" p="<?php echo $p;?>" c="<?php echo $c;?>" sr="<?php echo $sr;?>" ds="<?php echo $date;?>"/>
	<?php 
	}
} ?>
</x>
		
		
		