<?php
include_once '../php/config.php';
include_once '../header.php';
echo date("H:i:s");
?>

<style>
    body{
        background: #ebedef;

    }
.titulos_p{
    font-size:12px;
}
    
</style>
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            
            <div class="panel panel-default">
               <div class="panel-heading">

               </div>
                <div class="panel-body">
                     <form id="frm">
                   <div class="row">
                    <div class="col-md-2 mt-2">
                        <span class="titulos_p mt-2">Nombre</span>
                    </div>

                    <div class="col-md-10">
                       <input type="text" class="form-control" id="nombre" name="nombre">
                    </div>
				 </div> 
				 <hr>
                    <button class="btn btn-success" type="submit" name="grabar" id="grabar"><i class="bi bi-save"></i> Grabar</button>
                
				   </form> 
				 </div> 
                  
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</div>
<?php

include_once '../footer.php';
?>

<script>
$(function(){
	$("#grabar").click(function(e){
		e.preventDefault();
		
		_enviar("insertar.php", $("#frm").serialize())
		.done(function(data){
			alert(data);
		})
	})
})
</script>