Exemplo n.º 1
0
				<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']);
 public function editarEvento()
 {
     $filescripts = array("agregarEvento.js");
     $pag_title = "ACTUALIZAR EVENTO -CIEFT";
     $eventos = new eventosModel();
     $cLibreria = new cLibreria();
     $participantesModel = new participantesModel();
     $paises = $participantesModel->getPaises();
     $id_evento = $_GET['id_evento'];
     $datos = $eventos->getEvento($id_evento);
     $tiposMonedas = $eventos->getEventosMoneda();
     foreach ($datos as $key => $row) {
         $txtCiudad = $row['ciudad'];
         $constancia_evento = "";
         $txtPrecio = $row['costo_evento'];
         $txtMoneda = $row['id_moneda'];
         $txtPais = $row['id_pais'];
         $txtPaypal = $row['codigo_paypal'];
         $txtFecha = $cLibreria->getFechaDMY($row['fecha_evento']);
         $txtFechaFin = $cLibreria->getFechaDMY($row['fecha_evento_fin']);
         $txtNombre = $row['nombre_evento'];
         $txtTipo = $row['tipo_evento'];
         $txtNombre_banco = $row['nombre_banco'];
         $txtNombre_deposito = $row['nombre_deposito'];
         $txtNumDeposito = $row['numero_deposito'];
         $txtNumTransferencia = $row['numero_transferencia'];
         $programa_evento = "";
         $txtSitioWeb = $row['sitio_web'];
         if ($row['programa_evento'] == "") {
             $txtPrograma = "";
             $txtDirPrograma = "#";
         } else {
             $txtDirPrograma = PATH_SITE . "public/programasEventos/" . $row['programa_evento'];
             $txtPrograma = $row['programa_evento'];
         }
         if ($row['constancia'] == "") {
             $txtDirConstancia = "#";
             $txtConstancia = "";
         } else {
             $txtDirConstancia = PATH_SITE . "public/constanciasEventos/" . $row['constancia'];
             $txtConstancia = $row['constancia'];
         }
         if ($row['poster_evento'] == "") {
             $txtDirPoster = "#";
             $txtPoster = "";
         } else {
             $txtDirPoster = PATH_SITE . "public/posterEventos/" . $row['poster_evento'];
             $txtPoster = $row['poster_evento'];
         }
     }
     $msg = "";
     $form = PATH_SITE . "admin/updateEvento";
     $btnCancelar = PATH_SITE . "admin/updateEvento?id_evento=" . $id_evento;
     $active = 2;
     //variable que se usa para saber que pestaña estara activada
     include 'view/head.php';
     include 'view/agregarEvento.php';
     include 'view/footer.php';
 }
					<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();