Exemple #1
0
if (isset($_REQUEST['eliminarAlumno'])) {
    $id_alumno = $_POST['id_alumno'];
    //echo $id_alumno;
    $alumno = new Alumno();
    $alumno->eliminarAlumno($id_alumno);
}
?>
        <div class="container-fluid">
            <div class="panel panel-info">
                <div class="panel-heading">
                    <h2 class="panel-title">Alumnos</h2>
                </div>
                <div class="panel-body">
                    <?php 
$alumno = new Alumno();
$alumno->mostrarAlumnos();
?>
                    <form method="post" action="">
                        <button type="button" data-toggle="modal" data-target="#nuevo" class="btn btn-primary ">Agregar Alumno</button>
                        <button type="button" data-toggle="modal" data-target="#nuevo" class="btn btn-warning">Modificar Alumno</button>
                        <button type="submit" name="eliminarAlumno" class="btn btn-danger">Eliminar Alumno</button>
                    <div class="modal fade" role="dialog" id="nuevo">
                        <div class="modal-dialog modal-lg">
                            <div class="modal-content">
                                <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <button type="button" data-dismiss="modal" class="close"><span>&times;</span></button>
                                    <h2>Registro de Alumnos</h2>
                                </div>
                                
                                </div>