</div> </div> <div class="col-lg-6"> <button class="btn btn-primary btn-block">Procesar</button> </div> </div> </form> <?php $products = array(); if (isset($_GET["start_at"]) && $_GET["start_at"] != "" && isset($_GET["finish_at"]) && $_GET["finish_at"] != "") { if ($_GET["start_at"] < $_GET["finish_at"]) { $products = OperationData::getAllByItemIdAndRange($item->id, $_GET["start_at"], $_GET["finish_at"]); } } else { $products = OperationData::getAllByItemId($item->id); } if (count($products) > 0) { ?> <br> <table class="table table-bordered table-hover "> <thead> <th>Ejemplar</th> <th>Libro</th> <th>Cliente</th> <th>Inicio</th> <th>Fin</th> <th>Regreso</th> </thead> <?php foreach ($products as $sell) {