<?php include_once "../../login/check.php"; include_once "../../class/pedido.php"; $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";
<?php include_once "../../class/pedido.php"; $pedido = new pedido(); include_once "../../class/pedidodetalle.php"; $pedidodetalle = new pedidodetalle(); extract($_POST); $fechaentregaestimada = $fechaentregaestimada != "" ? $fechaentregaestimada : '%'; $fechaentregareal = $fechaentregareal != "" ? $fechaentregareal : '%'; $dat = $pedido->mostrarTodoRegistro(" nombrecliente LIKE '{$nombrecliente}%' and cicliente LIKE '{$cicliente}%' and fechaentregaestimada LIKE '{$fechaentregaestimada}' and fechaentregareal LIKE '{$fechaentregareal}' and estado LIKE '{$estado}'", 1, "fecha,hora,nombrecliente,cicliente"); ?> <table class="table table-bordered table-striped table-hover"> <thead> <tr><th width="20">Nº</th><th>Nombre Cliente</th><th>C.I. Cliente</th><th>Celular Cliente</th><th width="110">Fecha Estimada de Entrega</th><th width="110">Fecha de Entrega Real</th><th>Estado</th><th width="70">Cant. de Productos</th></tr> </thead> <?php foreach ($dat as $d) { $i++; $pd = $pedidodetalle->mostrarTodoRegistro("codpedido=" . $d['codpedido'], 1, ""); $cantidadProductos = count($pd); ?> <tr> <td class="der"><?php echo $i; ?> </td> <td><?php echo $d['nombrecliente']; ?> </td> <td><?php