<?php
	
	include("../config/conexion.php");
	$Lact = "select * from juract 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 ACTIVIDADES</h2>
            <form action="insertar.php" method="post" class="container_form">
            	<label for="" class="conte_label">Actividad</label>
                <input type="text" name="actividad" 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 ACTIVIDADES</div>
            <div class="table-header">Actividad</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["detact"] ?></div>
        		    <div class="table-item"><?php echo $row["obsact"] ?></div>
                <?php } mysqli_free_result($resultado); ?>
            </div>
        </div>
    </body>
</html>