Files
prueba-aplicaciones-web/alumnos/modificar.php
Daniel Cortés fdada2adcc zi
2019-12-13 13:53:12 -03:00

33 lines
1.0 KiB
PHP

<?php include("../includes/_config.php")?>
<?php
require_once("../models/alumno.php");
$alumno = Alumno::get($_GET["id"]);
?>
<!doctype html>
<html>
<head>
<?php include("../includes/_head.php") ?>
</head>
<body>
<?php include("../includes/_navbar.php") ?>
<div class="container main">
<p class="display-1">Modificar Alumno</p>
<form action="modificar_post.php" method="post">
<input type="hidden" class="form-control" id="id" name="id" value="<?php echo $alumno->get_id() ?>">
<div class="form-group">
<label for="rut">Rut</label>
<input type="text" class="form-control" id="rut" name="rut" value="<?php echo $alumno->get_rut() ?>">
</div>
<div class="form-group">
<label for="nombre">Nombre</label>
<input type="text" class="form-control" id="nombre" name="nombre" value="<?php echo $alumno->get_nombre() ?>">
</div>
<input type="submit" class="btn btn-primary" value="Modificar">
</form>
</div>
<?php include("../includes/_scripts.php")?>
</body>
</html>