<?php
	include("../../cabecera.php");
	$consulta=mysql_query("SELECT * FROM centros ORDER BY id",$conexion);

?>
<table class="titular" cellpadding="0" cellspacing="0">
	<tr>
		<td>Listar Centros</td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" style="border:1px solid #ccc">
	<tr>
		<td class=titulolista style="width:20;border-right:1px solid #fff">&nbsp;</td>
		<td class=titulolista style="border-right:1px solid #fff;width:350">Centro</td>
		<td class=titulolista style="border-right:1px solid #fff;width:350">Localidad</td>
		<td class=titulolista style="border-right:1px solid #fff;width:180">Telefono</td>
		<td class=titulolista style="width:20;border-right:1px solid #fff">&nbsp;</td>
		<td class=titulolista style="width:20;border-right:1px solid #fff">&nbsp;</td>
		<?php
			$cont=0;
			while($fila=mysql_fetch_array($consulta))
			{
		?>
			<tr>
				<td class=lista id="lista0<?php echo $cont?>" style="text-align:center;border-right:1px solid #fff"><img src="../../imagenes/flecha.gif" style="border:0;width:7;height:13"></td>
				<td class=lista id="lista1<?php echo $cont?>" style="border-right:1px solid #fff;padding-left:10"><?php echo $fila['centro']?></td>
				<td class=lista id="lista1<?php echo $cont?>" style="text-align:left;border-right:1px solid #fff;padding-left:20"><?php echo $fila['localidad']." (".$fila['provincia'].")"?></td>
				<td class=lista id="lista1<?php echo $cont?>" style="text-align:center;border-right:1px solid #fff"><?php echo $fila['telefono']?></td>
				<td class=lista id="lista2<?php echo $cont?>" style="text-align:center;border-right:1px solid #fff"><a href="modcentro.php?id=<?php echo $fila['id']?>" title="Modificar Centro"><img src="../../imagenes/modificar.gif" style="border:0"></a></td>
				<td class=lista id="lista2<?php echo $cont?>" style="text-align:center;"><a href="javascript:confBorrar(<?php echo $fila['id']?>,1)" title="Eliminar Centro"><img src="../../imagenes/cruz.gif" style="border:0;width:14;height:14"></a></td>
			</tr>
		<?php
				$cont++;
			}
		?>
	</tr>
</table>
<?php include("../../pie.php");?>
