<?php
require '../../conexion.php';
include '../../session.php';
?>

<div class="modal-header " >
    <button type="button" class="close"     
            data-dismiss="modal" arial-label="Close">x</button>
    <h4 class="modal-title"><strong><center>Terminar Transferencia</center></strong></h4>
</div>
<form action="remision_control_1.php" method="post" accept-charset="utf-8" class="form-horizontal" >
    <div class="panel-body se">
        <?php $remision = consultas::get_datos("select * from remision_nota where id_nr = " . $_REQUEST['vcod']); ?>
        <input type="hidden" name="accion"  value="4">
        <input type="hidden" name="pagina" value="remision_index.php" id="vcod">
        <input type="hidden" value="<?php echo $remision[0]['id_nr']; ?>" name="vcod">
        <input type="hidden" name="vusu" value="null"/>
        <input type="hidden" name="vempleado" value="null"/>
        <input type="hidden" name="vtimbrado" value="null"/>
        <input type="hidden" name="vfechainicio" value="1900-01-01"/>
        <input type="hidden" name="vmotivo" value="null"/>
        <input type="hidden" name="vestado" value="null"/>
        <input type="hidden" name="vvehiculo" value="null"/>
        <input type="hidden" name="vsucsalida" value="null"/>
        <input type="hidden" name="vsucentrada" value="null"/>

        <div class="row">
            <div class="col-md-5" style="left: 200px">
                <label class="control-label">Deposito</label>
                <?php $depositos = consultas::get_datos(" select * from deposito where cod_suc=" . $_SESSION['cod_suc'] . ""); ?>
                <select name="vdep" class="form-control" id="depo" style="width : 170px;">
                    <?php
                    if (!empty($depositos)) {
                        foreach ($depositos as $deposito) {
                            ?>
                            <option value="<?php echo $deposito['cod_depo']; ?>">
                                <?php echo $deposito['dep_descrip']; ?>
                            </option>
                            <?php
                        }
                    } else {
                        ?>
                        <option value="0">Debe insertar un deposito</option>
                    <?php } ?>
                </select>
            </div>
        </div>

        <div class="modal-footer">
            <button type="submit" class="btn btn-primary center-block">
                <i class="fa fa-floppy-o"></i> Confirmar</button>
        </div>
    </div>        
</form>
