Пример #1
0
$sql = "SELECT DATE_FORMAT(t_fecha_registro,'%d/%m/%Y') as fecha_registro, nombre, CONCAT(cc_centrocostos,' - ',cc_nombre) as ceco, t_etiqueta, et_etapa_nombre,\r\n\t\t\t(SELECT nombre FROM empleado WHERE idfwk_usuario = t_delegado) as t_delegado,\r\n\t\t\t(SELECT MIN(svi_fecha_salida) FROM sv_itinerario WHERE svi_solicitud = sv_id) AS svi_fecha_salida,\r\n\t\t\t(SELECT MAX(svi_fecha_llegada) FROM sv_itinerario WHERE svi_solicitud = sv_id) AS svi_fecha_llegada,\r\n\t\t\tIF(sv_viaje = 'Multidestinos','Multidestinos',\r\n\t\t\t\tIF(sv_viaje = 'Redondo',CONCAT((SELECT svi_origen FROM sv_itinerario WHERE svi_solicitud = sv_id ORDER BY svi_fecha_salida LIMIT 1),'|',(SELECT svi_destino FROM sv_itinerario WHERE svi_solicitud = sv_id ORDER BY svi_fecha_llegada DESC LIMIT 1)),(SELECT svi_destino FROM sv_itinerario WHERE svi_solicitud = sv_id ORDER BY svi_fecha_llegada DESC LIMIT 1))) AS destino,\r\n\t\t\t(SELECT SUM(svi_dias_viaje) FROM sv_itinerario WHERE svi_solicitud = sv_id) AS dias_viaje, t_iniciador\r\n\t\t\tFROM tramites\r\n\t\t\tJOIN usuario ON u_id = t_iniciador\r\n\t\t\tJOIN empleado ON idfwk_usuario = u_id\r\n\t\t\tJOIN solicitud_viaje ON sv_tramite = t_id\r\n\t\t\tJOIN cat_cecos ON cc_id = sv_ceco_paga\r\n\t\t\tJOIN etapas ON et_flujo_id = t_flujo AND et_etapa_id = t_etapa_actual\r\n\t\t\tWHERE t_id = " . $idTramite;
//error_log("Query".$sql);
$res = mysql_query($sql);
$row = mysql_fetch_assoc($res);
//TIPO DE VIAJE EN LA SOLICITUD.
$sql = "SELECT sv_viaje FROM solicitud_viaje WHERE sv_tramite = {$idTramite}";
$res = mysql_query($sql);
$tipoViajeSol = mysql_result($res, 0, "sv_viaje");
$fecha_registro = $row["fecha_registro"];
$solicitante = $row["nombre"];
$ceco = $row["ceco"];
$motivo = $row["t_etiqueta"];
$etapa = $row["et_etapa_nombre"];
$iniciador = $row["t_iniciador"];
$co_fecha_salida = cambiarFormatoFecha($row["svi_fecha_salida"]);
$co_fecha_llegada = cambiarFormatoFecha($row["svi_fecha_llegada"]);
//$fecha_viaje = $row["fecha_viaje"];
$destino = $row["destino"];
//se obtiene la suma de los dias de cada uno de los itinerarios que poseea
$tramiteDias = new Tramite();
$dias_viaje = $tramiteDias->calculoDias($idTramite);
$t_delegado = $row["t_delegado"];
$rutaAutorizacion = new RutaAutorizacion();
$autorizadores = $rutaAutorizacion->getNombreAutorizadores($idTramite);
//construccion de cuadro principal (informacion general)
$pdf->SetFont('consola', 'B', 12);
$pdf->Ln(7);
$pdf->SetX(50);
$pdf->Multicell(190, 8, "Información general", 'LRT', 'C', 0);
$pdf->SetX(50);
$pdf->Cell(45, 3, "No. de Folio:", 0, 0, 'R');
Пример #2
0
								<tr id="album<?php 
        echo $i->getId();
        ?>
">
									<td><a href="album.php?id=<?php 
        echo $i->getId();
        ?>
"><?php 
        echo $i->getTitulo();
        ?>
</a> (con <?php 
        echo count($i->getFotos()) . " fotos";
        ?>
)</td>
									<td><?php 
        echo cambiarFormatoFecha($i->getFecha());
        ?>
</td>
									<td><?php 
        echo $i->getPais();
        ?>
</td>
<?php 
        if ($propio) {
            ?>
									<td><input type="button" value="Eliminar" onclick="eliminarAlbum('<?php 
            echo $i->getId();
            ?>
');"/></td>
<?php 
        }
Пример #3
0
								<td class="columna2"><?php 
echo $foto->getTitulo();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Descripción:</td>
								<td class="columna2"><?php 
echo $foto->getDescripcion();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Fecha:</td>
								<td class="columna2"><?php 
echo cambiarFormatoFecha($foto->getFecha());
?>
</td>
							</tr>
							<tr>
								<td class="columna1">País:</td>
								<td class="columna2"><?php 
echo $foto->getPais();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Álbum de fotos:</td>
								<td class="columna2"><a href="album.php?id=<?php 
echo $album->getId();
?>
$idComprobacion = $comp_inv->Get_dato("co_id");
$co_fecha_registro = cambiarFormatoFecha($comp_inv->Get_dato("co_fecha_registro"));
$co_tipo = $comp_inv->Get_dato("co_tipo");
$motivo = $comp_inv->Get_dato("co_motivo");
$ciudad = $comp_inv->Get_dato("co_ciudad");
$co_tramite = $comp_inv->Get_dato("co_tramite");
$co_cc_clave = $comp_inv->Get_dato("co_cc_clave");
$subtotal_comp = number_format($comp_inv->Get_dato("co_subtotal"), 2, ".", ",");
$iva_comp = number_format($comp_inv->Get_dato("co_iva"), 2, ".", ",");
$total_comp = number_format($comp_inv->Get_dato("co_total"), 2, ".", ",");
$co_total_aprobado = number_format($comp_inv->Get_dato("co_total_aprobado"), 2, ".", ",");
$co_pendiente = number_format($comp_inv->Get_dato("co_total") - $comp_inv->Get_dato("co_total_aprobado"), 2, ".", ",");
$observaciones = $comp_inv->Get_dato("co_observaciones");
$co_num_invitados = $comp_inv->Get_dato("co_num_invitado");
$co_lugar = $comp_inv->Get_dato("co_lugar");
$co_fecha_invitacion = cambiarFormatoFecha($comp_inv->Get_dato("co_fecha_invitacion"));
$co_hubo_excedente = $comp_inv->Get_dato("co_hubo_exedente");
$referencia = $tramite->Get_dato("t_etiqueta");
$t_owner = $tramite->Get_dato("t_dueno");
$t_iniciador = $tramite->Get_dato("t_iniciador");
$comprobacion_etapa = $tramite->Get_dato("t_etapa_actual");
$comprobacion_flujo = $tramite->Get_dato("t_flujo");
$t_delegado = $tramite->Get_dato("t_delegado");
$sql = "SELECT nombre FROM empleado WHERE idfwk_usuario = " . $t_delegado;
$rst = $cnn->consultar($sql);
$fila = mysql_fetch_assoc($rst);
$t_delegado = $fila['nombre'];
$usu = new Usuario();
$usu->Load_Usuario_By_ID($t_iniciador);
$nombreEmpleado = $usu->Get_dato("nombre");
$query = "SELECT FORMAT(dc_monto,2) AS dc_monto, FORMAT(dc_iva,2) AS dc_iva, FORMAt(dc_propinas,2) AS dc_propinas, dc_divisa, dc_proveedor, pro_proveedor, pro_rfc,\n\t\t\tFORMAT(dci_monto_total_pesos,2) AS dci_monto_total_pesos, dc_concepto\n\t\t\tFROM detalle_comprobacion_invitacion AS dci \n\t\t\tLEFT JOIN proveedores AS p on p.pro_id = dci.dc_proveedor \n\t\t\tWHERE dc_comprobacion = {$idComprobacion}";
Пример #5
0
								<td class="columna2"><?php 
echo $usuario->getEmail();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Sexo:</td>
								<td class="columna2"><?php 
echo $usuario->getSexo();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Fecha de nacimiento:</td>
								<td class="columna2"><?php 
echo cambiarFormatoFecha($usuario->getFechaNacimiento());
?>
</td>
							</tr>
							<tr>
								<td class="columna1">Fecha de registro:</td>
								<td class="columna2"><?php 
echo $usuario->getFechaRegistro();
?>
</td>
							</tr>
							<tr>
								<td class="columna1">País:</td>
								<td class="columna2"><?php 
echo $usuario->getPais();
?>