<?php
	
	include("../config/conexion.php");
	$Lact = "select * from juresp limit 20"
?>

<!DOCTYPE html>
<html lang="es">
	<head>
    	<meta charset="utf-8">
        <title></title>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-sacale=1.0, maximun-scale=1.0, minimum-scale=1.0">
        <link rel="stylesheet" href="../css/stile.css">
        <link rel="stylesheet" href="../css/general.css">
    </head>
    <body>
    	<div class="container_agrega">
        	<h2 class="conte_title">REGISTRAR ESPECIALIDAD</h2>
            <form action="insertar_e.php" method="post" class="container_form">
            	<label for="" class="conte_label">Especialidad</label>
                <input type="text" name="especialidad" class="conte_input">
                <label for="" class="conte_label">Observacion</label>
                <input type="text" name="observacion"  class="conte_input">
                <input type="submit" class="conte_submit" value="Registrar">
            </form>
        </div>
    	<div class="contenedor">
        	<div class="table-conte">
            <div class="table-title">LISTADO DE ESPECIALIDAD</div>
            <div class="table-header">Especialidad</div>
            <div class="table-header">Observacion</div>
            <?php
			 	$resultado=mysqli_query($conexion,$Lact);
				while($row=mysqli_fetch_assoc($resultado)) { ?>
		            <div class="table-item"><?php echo $row["nomesp"] ?></div>
        		    <div class="table-item"><?php echo $row["obsesp"] ?></div>
                <?php } mysqli_free_result($resultado); ?>
            </div>
        </div>
    </body>
</html>