echo $mp['unidad'];
    ?>
</td>
                        <td class="der resaltar"><?php 
    echo $pm['cantidad'] * $dat['cantidad'];
    ?>
</td>
                        </tr>
                    <?php 
}
?>
                </table>
                <?php 
$proet = $productoetapa->mostrarTodoRegistro("codproducto=" . $dat['codproducto']);
$totaletapas = count($proet);
$pedet = $pedidoetapa->mostrarTodoRegistro("codpedidodetalle=" . $dat['codpedidodetalle']);
$etapasrealizadas = count($pedet);
$porcentaje = $etapasrealizadas * 100 / $totaletapas;
$porcentaje = round($porcentaje, 2);
?>
                <a name="etapa"></a>
                <table class="table table-bordered table-striped table-hover tablanoancha enlinea">
                <thead>
                    <tr><th colspan="3">Etapas</th></tr>
                </thead>
                    <tr>
                        <td class="resaltar der" colspan="3">
                        <div class="progress progress-striped active" style="margin-bottom:5px;">
                            <div class="bar" style="width: <?php 
echo round($porcentaje, 0);
?>
Esempio n. 2
0
                </form>
                <br>
                <table class="table table-bordered table-striped table-hover">
                <thead>
                <tr><th width="15">Nº</th><th width="50">Código</th><th>Producto</th><th width="25">Cant.</th><th width="50">Unidad</th><th width="50">Tiempo Produc</th><th colspan="4">Materia Prima</th><th width="80">Etapas Realizadas</th></tr>
                </thead>
                <?php 
$totales = array();
foreach ($dat as $d) {
    $i++;
    $pro = $producto->mostrarTodoRegistro("codproducto=" . $d['codproducto']);
    $pro = array_shift($pro);
    $promat = $productomateriaprima->mostrarTodoRegistro("codproducto=" . $d['codproducto']);
    $proet = $productoetapa->mostrarTodoRegistro("codproducto=" . $d['codproducto']);
    $totaletapas = count($proet);
    $pedet = $pedidoetapa->mostrarTodoRegistro("codpedidodetalle=" . $d['codpedidodetalle']);
    $etapasrealizadas = count($pedet);
    $porcentaje = $etapasrealizadas * 100 / $totaletapas;
    $porcentaje = round($porcentaje, 2);
    $pedidoobs = $pedidoobservacion->mostrarTodoRegistro("codpedidodetalle=" . $d['codpedidodetalle']);
    $totalobservaciones = count($pedidoobs);
    ?>
                <tr class="default">
                    <td class="der"><?php 
    echo $i;
    ?>
</td>
                    <td><?php 
    echo $pro['codigo'];
    ?>
</td>