<thead> <tr> <th> Folio</th> <th> Fecha </th> <th> Referencia/Descripción/Serie</th> <th> Incentivos</th> <th> Estatus</th> <th> Observacion</th> <th> Imagen</th> </tr> </thead> <tbody> <?php while ($row = $datos->fetch_array(MYSQLI_ASSOC)) { echo "<tr>"; echo "<td class='text-center'>" . $row['id_venta'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $cLibreria->getFechaDMY($row['fecha']) . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'> " . $row['clave'] . "/" . $row['descripcion'] . "/" . $row['numero_serie'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-right'>\$" . $row['comision_total'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $cVentas->getEstatusLabel($row['estatus']) . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $row['observacion'] . "</td>\n\t\t\t\t\t\t\t\t<td>"; if ($row['imagen'] != null && $row['estatus'] == 3) { echo "<a href='#' class='btn btn-default' data-tol='tooltip' title='imagen'data-target='#stack1' data-toggle='modal' onclick='imagen(\"" . $row['imagen'] . "\")'><i class='fa fa-paperclip'></i> </a"; } echo "</td>"; echo "</tr>"; } ?> </tbody> </table> <?php break; case 'getVentasExistentes': //muestra la tabla de los pedidos para el amdinistrador $datos = $cVentas->getVentasExistentes($_POST['id_cliente'], $_POST['id_usuario'], $_POST['id_sucursal'], $_POST['fecha_inicio'], $_POST['fecha_fin'], $_POST['estatus']);
<table class="table table-hover table-bordered table-striped" id="tabla" border="1" cellpadding="10" cellspacing="0"> <thead> <tr> <th> Folio</th> <th> Fecha </th> <th> Referencia/serie</th> <th> Incentivos por venta(comisiones) </th> <th> Estatus</th> <th> Observacion</th> </tr> </thead> <tbody> <?php while ($row = $datos->fetch_array(MYSQLI_ASSOC)) { echo "<tr>"; echo "\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['id_venta'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['fecha'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['clave'] . "/" . $row['numero_serie'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-right'>\$" . $row['comision_total'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $cVentas->getEstatusLabel($row['estatus']) . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $row['observacion'] . "</td>\n\t\t\t\t\t\t\t\t"; echo "</tr>"; } ?> </tbody> </table> </div> <form action="../view/reportesExcel.php" method="post" target="_blank" id="formExcel"> <input type="hidden" name="nombre_reporte" value="ventas"> <input type="hidden" id="datos_a_enviar" name="datos_a_enviar" /> </form> <script src="../assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script> <!--<script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>--> <script> $(document).ready(function() { exportar();
<tr> <th> Folio</th> <th> Sucursal </th> <th> Vendedor </th> <th> Fecha </th> <th> Referencia/serie</th> <th> Incentivos por venta(comisiones) </th> <th> Estatus</th> <th> Observacion</th> </tr> </thead> <tbody> <?php while ($row = $datos->fetch_array(MYSQLI_ASSOC)) { echo "<tr>"; echo "\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['id_venta'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['descripcion'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $row['paterno'] . " " . $row['materno'] . " " . $row['nombre'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-center'>" . $cLibreria->getFechaDMY($row['fecha']) . "</td>\n\n\t\t\t\t\t\t\t\t<td class='text-center'> " . $row['clave'] . "/" . $row['numero_serie'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-right'>\$" . $row['comision_total'] . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $cVentas->getEstatusLabel($row['estatus']) . "</td>\n\t\t\t\t\t\t\t\t<td class='text-left'>" . $row['observacion'] . "</td>\n\t\t\t\t\t\t\t\t"; echo "</tr>"; } ?> </tbody> </table> </div> <form action="../view/reportesExcel.php" method="post" target="_blank" id="formExcel"> <input type="hidden" name="nombre_reporte" value="ventas_existentes"> <input type="hidden" id="datos_a_enviar" name="datos_a_enviar" /> </form> <script src="../assets/global/plugins/jquery-1.11.0.min.js" type="text/javascript"></script> <!--<script src="../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>--> <script> $(document).ready(function() { exportar();