<link rel="stylesheet" type="text/css" href="sty.css"/>
<HEAD>
	<style type="text/css">   
		a:link   
		{   
		text-decoration:none;   
		}   
	</style>
	<style type="text/css">th.rotate {
		/* Something you can count on */
		height: 140px;
		font-size: 8pt;
		white-space: nowrap;
		}
		th.rotatex {
		/* Something you can count on */
		height: 30px;
		font-size: 8pt;
		white-space: nowrap;
		align:left;
		}
		th.rotatexx {
		/* Something you can count on */
		height: 30px;
		font-size: 9pt;
		white-space: nowrap;
		align:left;
		}
		th.rotate > div {
		transform: 
		/* Magic Numbers */
		translate(25px, 51px)
		/* 45 is really 360 - 45 */		
		rotate(270deg);
		width: 3px;
		}
		th.rotate > div > span {
		padding: 2px 1px;

	}</style>
	<meta name="contenido" content="text/html;" http-equiv="content-type" charset="utf-8">

		<?php
	$comodin = $_POST['imprimir'];
	
	include("../conexion.php");
	$query = mysql_query("SELECT * FROM alumnos where grado = '$comodin' order by nombre asc", $cn);
	$contador = 0;
	?>



		<div id="muestra">
			<div class="xxxxxxxdatagrid">
				<table id="table">
<body>
					<tbody>
						<?php
					while($row = mysql_fetch_array($query))
					{
						$id = $row['id_usuario'];
						$contador++;
						?>

						<table width="100%" border="1" >
							<tr>
								<th align="Left" colspan="20" scope="col">
									<a href='javascript:window.print(); void 0;'>
										<font size=2>&nbsp;&nbsp;El/la Estudiante:&nbsp;&nbsp;<u><?php echo $row['nombre']?></u>&nbsp;del grado <u><?php echo $row['grado']?></u> &nbsp;ha obtenido las siguientes calificaciones en el año <u>2016</u></font>
										</tr>
									<tr>
									    
										<th class="rotatex" rowspan="3"><div><span>Trimestre</span></div></th>
										<th class="rotatex" colspan="10"><div><span>Espacios Curriculares - Oficiales</span></div></th>
										<th class="rotatex" colspan="6"><div><span>Espacios Curriculares - Proyecto Institucional</span></div></th>
										<th class="rotatex" colspan="2"><div><span>Inasistencias</span></div></th>
										</tr>
										<tr>
										<th class="rotatex" colspan="3"><div><span>Lengua y Literatura</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Matemáticas</div></th>
										<th class="rotatex" rowspan="2"><div><span>Ciencias <br/>Sociales <br/>y<br/>Tecnología</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Ciencias <br/>Naturales <br/>y<br/>Tecnología</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Educación <br/>Física</span></div></th>
										<th class="rotatex" colspan="2"><div><span>Educacion Artística</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Identidad <br/>y <br/>Convivencia</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Informática</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Inglés</span></div></th>
										<th class="rotatex" rowspan="2" colspan="4"><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Just.</span></div></th>
										<th class="rotatex" rowspan="2"><div><span>Injust.</span></div></th>
										</tr>
									   	<th class="rotatex"><div><span>Oralidad</span></div></th>
										<th class="rotatex"><div><span>Lectura</span></div></th>
										<th class="rotatex"><div><span>Escritura</span></div></th>
										<th class="rotatex"><div><span>Artes<br/>Visuales</span></div></th>
										<th class="rotatex"><div><span>Música</span></div></th>
										</tr>
										
										
										
										
										<tr>
										<th height="1" align="left" class="rotatexx" cols="1">Primero</th>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['poralidad'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['plectura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['pescritura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pmatematica'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['psociales'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pnaturales'])?></td>
						        		<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['pfisica'])?></td>
								        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pplastica'])?></td>
							        	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['pmusica'])?></td>
							 	        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pconvivencia'])?></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['pinformatica'])?></td>
				          			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pingles'])?></td>
		             				 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
			               			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        	    		<td height="1" align="center" class=estilotextarea  cols="1"></td>
					        	    	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['pjusti'])?></td>
			 		        			<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['pinjusti'])?></td>
										</tr>
									<tr>
										<th height="1" align="left" class="rotatexx" cols="1">Segundo</th>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['soralidad'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['slectura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['sescritura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['smatematica'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['ssociales'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['snaturales'])?></td>
						        		<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['sfisica'])?></td>
								        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['splastica'])?></td>
							        	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['smusica'])?></td>
							 	        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['sconvivencia'])?></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['sinformatica'])?></td>
				          			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['singles'])?></td>
		             				 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
			               			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        	    		<td height="1" align="center" class=estilotextarea  cols="1"></td>
					        	    	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['sjusti'])?></td>
			 		        			<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['sinjusti'])?></td>
									</tr>
									<tr>
										<th height="1" align="left" class="rotatexx" cols="1">Tercero</th>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['toralidad'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tlectura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tescritura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tmatematica'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tsociales'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tnaturales'])?></td>
						        		<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tfisica'])?></td>
								        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tplastica'])?></td>
							        	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tmusica'])?></td>
							 	        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tconvivencia'])?></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tinformatica'])?></td>
				          			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tingles'])?></td>
		             				 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
			               			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        	    		<td height="1" align="center" class=estilotextarea  cols="1"></td>
					        	    	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['tjusti'])?></td>
			 		        			<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['tinjusti'])?></td>
									    </tr>
										<tr>
										<th height="1" align="left" class="rotatexx"  cols="1">Apreciación Final</th>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['aoralidad'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['alectura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['aescritura'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['amatematica'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['asociales'])?></td>
										<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['anaturales'])?></td>
						        		<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['afisica'])?></td>
								        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['aplastica'])?></td>
							        	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['amusica'])?></td>
							 	        <td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['aconvivencia'])?></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['ainformatica'])?></td>
				          			 	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['aingles'])?></td>
		             				 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
			               			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        			 	<td height="1" align="center" class=estilotextarea  cols="1"></td>
				        	    		<td height="1" align="center" class=estilotextarea  cols="1"></td>
					        	    	<td height="1" align="center" class=estilotextarea  cols="1"><?php echo($row['ajusti'])?></td>
			 		        			<td height="1" align="center" class=estilotextarea  cols="1"><?php echo ($row['ainjusti'])?></td>
										</tr>
							      <th align="center" class="rotatex" colspan="20" scope="col">Consideraciones del desempeño del alumno		
										</tr>
								</table>
								<table width="100%" border="1" >
							<tr>
								<th height="1" align="left" class="rotatexx" cols="1">Primer Trimestre</th>
								<th class="rotatex"><textarea  cols="205%" align="left" colspan="100%" rows="4" style="font-size:10px; font-type:Arial; border: none; resize:none; "><?php echo($row['comp'])?></textarea>
							</tr>
						     	<tr>
							    <th height="1"align="left" class="rotatexx"  cols="1">Segundo Trimestre</th>
							    <th class="rotatex"><textarea cols="205%" align="left" colspan="100%" rows="4" style="font-size:10px; font-type:Arial; border: none; resize:none; "><?php echo($row['coms'])?></textarea>
						    </tr>
						    <tr>
						         <th height="1" align="left" class="rotatexx"  cols="1">Tercer Trimestre</th>
						        <th class="rotatex"><textarea cols="205%" align="left" colspan="100%" rows="4" style="font-size:10px; font-type:Arial; border: none; resize:none; "><?php echo($row['comt'])?></textarea>
					        </tr>
							</table>
							<table width="100%" border="1" >
							<tr>
								<th height="1" align="center" class="rotatexx" cols="1">Firmas</td>
								<th height="1" align="center" class="rotatexx" cols="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Docente&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
								<th height="1" align="center" class="rotatexx" cols="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Responsable&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
								<th height="1" align="center" class="rotatexx" cols="1">Escalas de Notas</td>
								<th height="1" align="center" class="rotatexx" cols="1"colspan="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Exámenes Complementarios&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
								
							</tr>
							<tr>
								<th height="1" align="left" class="rotatexx"   cols="1">Primer Trimestre</th>
								<td height="1" align="left" class=estilotextarea  cols="1"><?php echo($row['ingles'])?></td>
								<td height="1" align="left" class=estilotextarea  cols="1"><?php echo ($row['ingles'])?></td>
								<td height="1" align="left" colspan="1" rowspan="4" class=estilotextarea  cols="1"><img src="../img/escala.png"></td>
								<th height="1" align="left" class="rotatexx"   cols="1">Fecha&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
								<th height="1" align="left" class="rotatexx"   cols="1">Espacio Curricular&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
								<th height="1" align="left" class="rotatexx"   cols="1">Calificación</th>
							
							</tr>
							<tr>
								<th height="1" align="left" class="rotatex"  cols="1">Segundo Trimestre</th>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
															
							</tr>
							<tr>
								<th height="1" align="left" class="rotatex"   cols="1">Tercer Trimestre</th>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
								<td height="1" align="left" class=estilotextarea  cols="1"></td>
							
								
								
								
							</tr>
								<tr>
									<th height="1" align="left" class="rotatex"   cols="1">Apreciación Final</th>
									<td height="1" align="left" class=estilotextarea  cols="1"></td>
									<td height="1" align="left" class=estilotextarea  cols="1"></td>
									<td height="1" align="left" class=estilotextarea  cols="1"></td>
									<td height="1" align="left" class=estilotextarea  cols="1"></td>
									<td height="1" align="left" class=estilotextarea  cols="1"></td>
									
									
									
									
								</tr>
								<tr>
									<th align="Left" colspan="200" scope="col">
										<a href='javascript:window.print(); void 0;'>
											<img src="../img/bajolibre.png">
										</tr>
							            </table>

										<div class="saltopagina"/>
									</a>
								
							</div>
						</div>
					</div>
					<?php
		}
		?>
				</tbody>
			</table>
		</HEAD>
	</body>
</html>
