<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'", $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 class="rotatex" align="center"><div><span><a href='javascript:window.print(); void 0;'><img src="../img/tapa1.png"></span></div>
											
										</th>
											<th class="rotatex" align="center"><div><span>&nbsp;&nbsp;&nbsp;</span></div>
												
												</th>
										<th rowspan="2"></br></br></br></br><img src="../img/tapaita.png"></br>
										
										
											</br>
											</br>
										
											</br>
											</br>
																						
											Nome dello studente: <u><?php echo $row['nombre']?> </u></br>
											</br>
											</br>
											</br>
											Classe: <u><?php echo $row['grado']?> </u></br>
											</br>
											</br>
												
											<hr>
											-.Anno 2016.-
											
										</th>
										
										</tr>
										
							            </table>

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