traspaso de datos de solicitud a BD
This commit is contained in:
@@ -36,7 +36,7 @@ require "../../conexion.php";
|
||||
<td style=\"text-align:center;\">".$fila['marca']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['descripcion']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitar.php?id=".$fila['id_papel']."'>Solicitar</a></td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitud/spapel.php?id=".$fila['id_papel']."'>Solicitar</a></td>
|
||||
<tr>";
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
session_start();
|
||||
echo "periodo:";
|
||||
print_r($_POST['select1']);
|
||||
echo" Cantidad:";
|
||||
print_r($_POST['select2']);
|
||||
echo" id de elemento:";
|
||||
print_r($_POST['id']);
|
||||
echo" Usuario:";
|
||||
print_r($_SESSION['usuario']['nombre']);
|
||||
?>
|
||||
@@ -9,7 +9,7 @@ else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../conexion.php");
|
||||
include("../../../conexion.php");
|
||||
?>
|
||||
|
||||
|
||||
@@ -19,19 +19,19 @@ include("../../conexion.php");
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../estilos.css">
|
||||
<link rel="stylesheet" href="../../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../img/escudo-unam.ico">
|
||||
<link rel="shortcut icon" type="image/png" href="../../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../img/Logo-UNAM.png" alt="">
|
||||
<img src="../../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
<img src="../../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
@@ -52,17 +52,17 @@ include("../../conexion.php");
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="admin.php" role="button" >
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="admin.php" role="button" >
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Alta de Material
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../destroy.php" role="button" >
|
||||
<a class="nav-link-white" href="../../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
@@ -76,13 +76,67 @@ include("../../conexion.php");
|
||||
$query = "SELECT * FROM cat_papel WHERE id_papel ='$id'";
|
||||
$resultado = $mysqli->query($query) or die($mysqli->error);
|
||||
$row = $resultado->fetch_assoc() ;
|
||||
print_r($row);
|
||||
//print_r($row);
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:35%; margin-bottom: 5%;">Material en Stock</h1>
|
||||
<h1 style="margin-left:40%; margin-bottom: 5%;">Solicitud</h1>
|
||||
<h2>Descripcion de solicitud:</h2>
|
||||
<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style="text-align:center;">Concepto</td>
|
||||
<td style="text-align:center;">Tipo</td>
|
||||
<td style="text-align:center;">Marca</td>
|
||||
<td style="text-align:center;">Descripción</td>
|
||||
<td style="text-align:center;">Existencia</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $row['concepto']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['tipo']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['marca']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['descripcion']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['existencia']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="actualizacion.php" method="POST">
|
||||
<div class="input-group mb-3" style="width: 20%; ">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Periodo</label>
|
||||
</div>
|
||||
<select class="custom-select disabled" name="select1" id="inputGroupSelect01" style="text-align:center;">
|
||||
<option value="2019-2" name="1" selected>2019-2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3" style="width: 20%;">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Cantidad</label>
|
||||
</div>
|
||||
<select class="custom-select" id="inputGroupSelect01" name="select2" style="text-align:center;">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="<?php echo $row['id_papel'];?>"/>
|
||||
<input type="hidden" name="usuario" value="<?php echo $_SESSION['usuario']['nombre'];?>"/>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">Solicitar</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@@ -101,8 +155,8 @@ include("../../conexion.php");
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../js/main.js"></script>
|
||||
<script src="../../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user