<link rel="stylesheet" type="text/css" href="sty.css"/>
<HEAD>
	<style type="text/css">
.text_encima {
	position: absolute;
	/*mover texto derecha*/
	left:20px;
	/*mover texto abajo*/
	top:20px;
	color: #00b32d;
	font-size: 10px;
	font-family: arial;
}
</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'", $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;'>
										<img src="../img/logo.png" width="210" height="38">
											<?php echo $row['nombre']?> - <?php echo $row['grado']?>
										<div id="content_img">
											<span class="text_encima"><?php echo $row['nombre']?> - <?php echo $row['grado']?></span><img src="../img/ilusion.jpg">
										</div>
										</th>
									</tr>
									
										</table>

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