<?php
require '../../conexion.php';
session_start();
$detalles = consultas::get_datos("select * from v_servicios_entrada_detalle "
        . "where id_entrada =".$_REQUEST['ventrada']." and producto='".$_REQUEST['vproducto']."'");
        //." and art_cod=".$_REQUEST['vart_cod']);
//var_dump($detalles);
?>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">x</button>
    <h4 class="modal-title"><i class="fa fa-plus"></i> <strong>Agregar Diagnostico al Item</strong></h4>
</div>
<form action="diagnostico_dcontrol.php" method="post" accept-charset="UTF-8" class="form-horizontal">
    <input type="hidden" name="accion" value="1"/>
    <input type="hidden" name="vcod" value="<?php echo $_REQUEST['vcod'];?>"/>
    <input type="hidden" name="vrecepcion" value="<?php echo $detalles[0]['id_entrada'];?>"/>
    <input type="hidden" name="vproducto" value="<?php echo $detalles[0]['producto'];?>"/>
    <div class="modal-body">
        <div class="form-group">
            <label class="control-label col-lg-2 col-md-2 col-sm-2">Item:</label>
            <div class="col-lg-10 col-md-10 col-sm-10">
                <input type="text" class="form-control" value="<?php echo $detalles[0]['producto']."/".$detalles[0]['modelo']."/".$detalles[0]['marca'];?>" disabled=""/>
            </div>
        </div>        
        <div class="form-group required">
            <label class="col-md-2 col-sm-2 col-lg-2 control-label">Descripci&oacute;n: </label>
            <div class="col-md-10 col-sm-10 col-lg-10">
                <textarea class="form-control"  name="vdiagnostico" placeholder="Describa brevemente el diagnostico" required=""></textarea>
            </div>
        </div>        
    </div>
    <div class="modal-footer">
        <button type="reset" data-dismiss="modal" class="btn btn-default" 
                data-title="Cerrar ventana" rel="tooltip">
            <i class="fa fa-close"></i> Cerrar
        </button>
        <button type="submit" class="btn btn-success" data-title="Actualizar item" rel="tooltip">
            <i class="fa fa-plus"></i> Agregar
        </button>
    </div>
</form>
