$pedido = new pedido(); $p = $pedido->mostrarTodoRegistro("codpedido=" . $_GET['cpe'], 1, ""); $p = array_shift($p); include_once "../../class/pedidodetalle.php"; $pedidodetalle = new pedidodetalle(); $dat = $pedidodetalle->mostrarTodoRegistro("codpedidodetalle=" . $_GET['cpd'], 1, ""); $dat = array_shift($dat); include_once "../../class/producto.php"; $producto = new producto(); $pro = $producto->mostrarTodoRegistro("", 1, "nombre,codigo,unidad"); $pro = $producto->mostrarTodoRegistro("codproducto=" . $dat['codproducto']); $pro = array_shift($pro); include_once "../../class/productomateriaprima.php"; $productomateriaprima = new productomateriaprima(); include_once "../../class/productoetapa.php"; $productoetapa = new productoetapa(); include_once "../../class/pedidoetapa.php"; $pedidoetapa = new pedidoetapa(); include_once "../../class/pedidoobservacion.php"; $pedidoobservacion = new pedidoobservacion(); include_once "../../class/etapa.php"; $etapa = new etapa(); $eta = $etapa->mostrarTodoRegistro("", 1, "nombre"); include_once "../../class/materiaprima.php"; $materiaprima = new materiaprima(); $mat = $materiaprima->mostrarTodoRegistro("", 1, "nombre"); $titulo = "Ver Control de Producción"; $folder = "../../"; include_once $folder . "cabecerahtml.php"; ?>
<?php include_once "../../login/check.php"; $folder = "../../"; $cod = $_POST['cod']; include_once "../../class/productoetapa.php"; $productoetapa = new productoetapa(); $dat = $productoetapa->eliminarRegistro("codproductoetapa=" . $cod);
<?php include_once "../../class/productoetapa.php"; $productoetapa = new productoetapa(); extract($_POST); $dat = $productoetapa->mostrarTodoRegistro(" codproducto LIKE '{$codproducto}'", 1, ""); include_once "../../class/etapa.php"; $etapa = new etapa(); ?> <table class="table table-bordered table-striped table-hover"> <thead> <tr><th width="50">Nº</th><th>Código</th><th>Nombre</th></tr> </thead> <?php foreach ($dat as $d) { $i++; $et = $etapa->mostrarTodoRegistro("codetapa=" . $d['codetapa']); $et = array_shift($et); ?> <tr> <td class="der"><?php echo $i; ?> </td> <td><?php echo $et['codigo']; ?> </td> <td><?php echo $et['nombre']; ?>
<?php include_once "../../login/check.php"; extract($_POST); include_once "../../class/productoetapa.php"; $productoetapa = new productoetapa(); $valores = array("codproducto" => "'{$codproducto}'", "codetapa" => "'{$codetapa}'"); $productoetapa->insertarRegistro($valores);