<div class="modal fade bs-example-modal-lg" id="myModal"  role="dialog" aria-labelledby="myModalLabel" >
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header" >
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">BUSCADOR</h4>
            </div>
            <div class="modal-body">
                <div class="col-md-12">
                    <div class="section over-hide z-bigger">
                        <div class="row justify-content-center">
                             <?php if ($tipo_soft<>'2') { ?>
                                <?php if ($negocio_neg_id=='2') { $col='3'; ?>
                                <div class="col-sm-3">
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-2" <?php echo $boton_productos;?> value="producto" onchange='load(1);'>
                                    <label class="for-checkbox-tools" for="tool-2">
                                        PRODUCTOS
                                    </label>
                                </div>
                                <?php  } else { $col='4'; } ?>

                                <div class="col-sm-<?php echo $col;?>">
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-1" <?php echo $boton_articulos;?>  value="articulos" onchange='load(1);'>
                                    <label class="for-checkbox-tools" for="tool-1">
                                        ARTICULOS
                                    </label>
                                </div>
                               
                                <div class="col-sm-<?php echo $col;?>">
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-4" <?php echo $boton_servicios;?> value="servicio" onchange='load(1);'>
                                    <label class="for-checkbox-tools" for="tool-4">
                                        SERVICIOS
                                    </label>
                                </div>
                                <!--<div class="col-sm-<?php echo $col;?>">
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-5"  value="detallados" onchange='load(1);'>
                                    <label class="for-checkbox-tools" for="tool-5">
                                        DETALLADO
                                    </label>
                                </div>-->
                                <div class="col-sm-<?php echo $col;?>">
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-3" <?php echo $boton_combos;?> value="combos" onchange='load(1);'>
                                    <label class="for-checkbox-tools" for="tool-3">
                                        COMBOS
                                    </label>
                                </div>
                                <?php  } else { ?>
                                    <input class="checkbox-tools sty_radio" type="radio" name="tipo" id="tool-4"  value="servicio" onchange='load(1);' checked>
                             <?php  }  ?>

                        </div>  
                    </div>
                </div>

                <div class="col-sm-3">
                    <select name="tarifa" id="tarifa" class="form-control name_list input-sm" onchange="load(1)" >
                        <option value="0"> - - </option>
                        <?php
                           
                        $datos=mysqli_query($con,"SELECT * FROM tarifas where empresa='$empresa'");
                        while( $fila = mysqli_fetch_array( $datos ) )
                        {
                            echo'<option value="'.$fila['tar_id'].'">'.$fila['tar_nombre'].'</option>';
                        }
                        ?>
                    </select>
                </div>

              
                <div class="col-md-9">
                    <div class="input-group">
                        <input [focus]='true' type="text" class="form-control input-sm" id="q" placeholder="Codigo o Nombre" onkeyup="load(1)" autocomplete="off" >
                        <span class="input-group-addon">
                            <a href="#" onclick="limpiar_buscador()" type='button'  ><i class="btn-icon-only icon-remove"></i></a>
                        </span> 
                    </div>
                </div>
                </br></br>
                <div id="loader" style="position: absolute; text-align: center; top: 55px;  width: 100%;display:none;"></div>
                <div class="outer_div" ></div>
            </div>
        </div>
    </div>
</div>      
<script>
$('#myModal').on('shown.bs.modal', function() {
    $("#q").focus();
});
</script> 
<script type="text/javascript">
function limpiar_buscador() {
$('input[type="text"]').val('');
load(1);
$("#q").focus();

}
</script>    