<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="assets/bootstrap-3.3.7-dist/css/bootstrap.min.css">
  <title>Impresoras conectadas </title>
</head>

<body>
<div class="container-fluid">

<div class="starter-template">
  <h1>Impresoras conectadas</h1>

  <form class="form-horizontal">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Impresora</label>
    <div class="col-md-8">
      <select class="form-control" id="impresora">
      <?php foreach ($lPrinters as $value): ?>
        <?php if (utf8_decode($value) != '??Name'): ?>
        <option value="<?php echo utf8_decode($value); ?>"><?php echo utf8_decode($value); ?></option>        
        <?php endif ?>
      <?php endforeach ?>
      </select>
    </div>
    <div class="col-md-2">
      <button class="btn btn-sm btn-warning" id="btnRecargar"><span class="glyphicon glyphicon-refresh"></span> Recargar</button>
    </div>
  </div>
  
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Tipo Conexion</label>
    <div class="col-md-6">
      <p class="form-control-static" id="span_tipo_conexion">Local</p>
    </div>
  </div>
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">Direccion IP</label>
    <div class="col-md-6">
      <p class="form-control-static" id="span_direccion_ip">--</p>
    </div>
  </div>
  <div class="form-group" id="div_msj_network">
  
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="button" class="btn btn-success" id="btnGuardarTicketera"><span class="glyphicon glyphicon-saved"></span> Guardar como Ticketera</button>
      <button class="btn btn-primary" id="btnPrueba"><span class="glyphicon glyphicon-print"></span> Prueba de impresion</button>
    </div>
  </div>

  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10" id="msj_ticketera" ></div>
  </div>

</form>


</div>

</div><!-- /.container -->




  <script src="assets/js/jquery-3.5.1.min.js"></script>
  <script src="assets/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
  <script src="js/printer.js?v=<?php echo (rand()); ?>"></script>
</body>

</html>