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> Sucursal </th>
						<th> Vendedor </th>
						<th> Fecha </th>
						<th> Referencia/serie</th>
						<th> Incentivos por venta(comisiones) </th>
						<th> Estatus</th>
						<th> Observacion</th>
						<th> Opciones</th>
						<th> Imagen</th>
					</tr>
	<title>Temposatis</title>
	<!-- <link href="../assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> -->
	<style>
		.text-center{text-align: center; }
		.text-left{text-align: left; }
		.text-right{text-align: right; }
	</style>
</head>
<body>
	<div class="datos">
		<?php 
include_once "../controller/cVentas.php";
include_once '../controller/cLibreria.php';
$cLibreria = new cLibreria();
$cVentas = new cVentas();
$datos = $cVentas->getVentasExistentes($_GET['id_cliente'], $_GET['vendedor'], $_GET['sucursal'], $_GET['fecha_inicio'], $_GET['fecha_fin'], $_GET['estatus']);
?>
			<table class="table table-hover table-bordered table-striped" id="tabla" border="1" cellpadding="10" cellspacing="0">
				<thead>
					<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>