sistema de desayuno 2019 actualizado
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['id_cat_usuario'])){
|
||||
die("Debes de iniciar sesión. :)");
|
||||
header('Location: administration.php');
|
||||
}
|
||||
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$_SESSION["correo"]=$_POST["correo"];
|
||||
$_SESSION["contraseña"]=$_POST["contraseña"];
|
||||
$_SESSION["nombre"] = $_POST["nombre"];
|
||||
}
|
||||
include "php/header.php";
|
||||
include "sql/conexion.php";
|
||||
include "sql/funciones.php";
|
||||
include "muestra_conexion.php";
|
||||
|
||||
$row = consultar_registro($_GET['id']);
|
||||
$id = $row[0]['id_registro'];
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT");
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Pragma: no-cache");
|
||||
?>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.0/sweetalert2.css"/>
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.0/sweetalert2.js"></script>
|
||||
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="estilos/datatables.min.css"/>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
|
||||
<script type="text/javascript" src="js/datatables.js"></script>
|
||||
<div id="contenido" style="margin-left: 35px; border-color: black;">
|
||||
|
||||
<div class="wrap">
|
||||
<form action="actualizar.php" method="post">
|
||||
<input type="number" name="id_registro" value="<?php echo $row[0]['id_registro'];?>" hidden>
|
||||
<table class='tabla_datos table'>
|
||||
<tr>
|
||||
<th style="text-align:left;">Cuenta:</th>
|
||||
<td style="text-align:left;"><input type="number" name="id_cuenta" value="<?php echo $row[0]['id_cuenta'];?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Nombre:</th>
|
||||
<td style="text-align:left;"><input type="text" name="nombre" value="<?php echo $row[0]['nombre'];?>"/></td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<th style="text-align:left;">Apellido Paterno</th>
|
||||
<td style="text-align:left;"><input type="text" name="app" value="<?php echo $row[0]['app'];?>"/></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="text-align:left;">Apellido Materno</th>
|
||||
<td style="text-align:left;"><input type="text" name="apm" value="<?php echo $row[0]['apm']?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Generación</th>
|
||||
<td style="text-align:left;"><input type="text" name="generacion" value="<?php echo $row[0]['generacion']?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Telefono de Casa</th>
|
||||
<td style="text-align:left;"><input type="text" name="telefono_casa" value="<?php echo $row[0]['telefono_casa']?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Telefono Celular</th>
|
||||
<td style="text-align:left;"><input type="text" name="celular" value="<?php echo $row[0]['celular']?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Correo</th>
|
||||
<td style="text-align:left;"><input type="text" name="correo" value="<?php echo $row[0]['correo']?>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align:left;">Mesa</th>
|
||||
<td style="text-align:left;"><input type="text" name="mesa" value="<?php echo $row[0]['mesa']?>"/></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<button type="submit" class="boton-verde" style="cursor: pointer; width: 85px;" >Guardar</button>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
include ("php/footer.php");
|
||||
Reference in New Issue
Block a user