<?php require_once('Connections/cn.php'); ?>
<?php
//header("Content-Type:text/html; charset=UTF-8");
header("Content-Type:text/html; charset=utf-8");
$Area= $_REQUEST["id"];

if($Area=='CG' || $Area=='COMUN'){
   $array_select1[0] = '0';		
   $array_select2[0]=  'TODOS';
   $array_select1[1] = '1';		
   $array_select2[1]=  '1';
   $array_select1[2] = '2';		
   $array_select2[2]=  '2';
   $array_select1[3] = '3';		
   $array_select2[3]=  '3';
   $n=4;
}

if($Area=='ACE' || $Area=='RT' || $Area=='FIN'){
   $array_select1[0] = '0';		
   $array_select2[0]=  'TODOS';
   $array_select1[1] = '4';		
   $array_select2[1]=  '4';
   $array_select1[2] = '5';		
   $array_select2[2]=  '5';
   $array_select1[3] = '6';		
   $array_select2[3]=  '6';
   $array_select1[4] = '7';		
   $array_select2[4]=  '7';
   $array_select1[5] = '8';		
   $array_select2[5]=  '8';
   $array_select1[6] = '9';		
   $array_select2[6]=  '9';
   $array_select1[7] = '10';		
   $array_select2[7]=  '10';
   $n=8;
}
if($Area=='0'){
   $array_select1[0] = '0';		
   $array_select2[0]=  'TODOS';
   $array_select1[1] = '1';		
   $array_select2[1]=  '1';
   $array_select1[2] = '2';		
   $array_select2[2]=  '2';
   $array_select1[3] = '3';		
   $array_select2[3]=  '3';
   $array_select1[4] = '4';		
   $array_select2[4]=  '4';
   $array_select1[5] = '5';		
   $array_select2[5]=  '5';
   $array_select1[6] = '6';		
   $array_select2[6]=  '6';
   $array_select1[7] = '7';		
   $array_select2[7]=  '7';
   $array_select1[8] = '8';		
   $array_select2[8]=  '8';
   $array_select1[9] = '9';		
   $array_select2[9]=  '9';
   $array_select1[10] = '10';		
   $array_select2[10]=  '10';
   $n=11;
}


// Bucle para cargar las maetrias en el combo (materias)
for ($i=0; $i<$n;$i++){
	echo "<option value=".$array_select1[$i].">".$array_select2[$i]."</option>";
}

?>