<?php
session_start();
require '../../conexion.php';
$TARTICULO = consultas::get_datos("select * from v_articulos where tarti_cod = " . $_REQUEST['vtipoart']);
?>

<label class="control-label">Articulos</label>
<select class="form-control" style="width:200px;" name="vart" id="vart" required="" 
        style="display: inline-block" onchange="obtenerprecios();" >
    <?php if (!empty($TARTICULO)) { ?>
        <option value=""> Seleccione un elemento</option>
        <?php foreach ($TARTICULO as $TARTI) {
            ?>
            <option value="<?php echo $TARTI['id_articulo'] . "_" . $TARTI['pre_venta']; ?>"><?php echo $TARTI['art_descri'] ?> 
            </option>
            <?php
        }
    } else {
        ?>
        <option> Debe insertar al menos un Articulo</option>
    <?php } ?>
</select>

