$idusuario = $_SESSION['CodUsuarioLog'];
} else {
    $idusuario = $_GET['CodUsuarioAsignado'];
}
//print_r($_GET);
//echo $idusuario;
$datosUsuario = $usuario->mostrarDatos($idusuario);
$datosUsuario = array_shift($datosUsuario);
$Apodo = $datosUsuario['Nick'];
$ApellidoPSis = $datosUsuario['Paterno'];
$ApellidoMSis = $datosUsuario['Materno'];
$NombresSis = $datosUsuario['Nombres'];
$FotoSis = $datosUsuario['Foto'];
$FechaIncio = $_GET['Desde'];
$FechaFinal = $_GET['Hasta'];
$opt = $optica->MostrarTodoRegistro("FechaEmitido BETWEEN '{$FechaIncio}' and '{$FechaFinal}' and CodUsuarioEmitido={$idusuario} and Emitido=1 and Anulado=0", "", "FechaRegistro,NumeroBoleta");
$titulo = "Planilla por Ingresos por Ventas";
class PDF extends PPDF
{
    function Cabecera()
    {
        global $ApellidoPSis, $ApellidoMSis, $NombresSis, $TC;
        $this->CuadroCabecera(25, "Reporte de:", 80, $ApellidoPSis . " " . $ApellidoMSis . " " . $NombresSis);
        $this->CuadroCabecera(10, "T/C:", 60, $TC);
        $this->Pagina();
        $this->Ln();
        $this->TituloCabecera(15, "N Orden", 7);
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(30, "Cliente", 8);
        $this->TituloCabecera(25, "Tipo Cristal", 8);
        $this->TituloCabecera(25, "Armazon", 8);
} else {
    $idusuario = $_GET['CodUsuarioAsignado'];
}
$datosUsuario = $usuario->mostrarDatos($idusuario);
$datosUsuario = array_shift($datosUsuario);
$Apodo = $datosUsuario['Nick'];
$ApellidoPSis = $datosUsuario['Paterno'];
$ApellidoMSis = $datosUsuario['Materno'];
$NombresSis = $datosUsuario['Nombres'];
$FotoSis = $datosUsuario['Foto'];
$FechaIncio = $_GET['Desde'];
$FechaFinal = $_GET['Hasta'];
$ApellidoPSis = "";
$ApellidoMSis = "";
$NombresSis = "Todos los usuarios";
$opt = $optica->MostrarTodoRegistro("FechaEntrega BETWEEN '{$FechaIncio}' and '{$FechaFinal}' and EstadoEntrega=0 and Emitido=1", "1", "FechaEntrega,NumeroBoleta");
//$opt=$optica->MostrarTodoRegistro("FechaRegistro BETWEEN '$FechaIncio' and '$FechaFinal' and CodUsuario=$idusuario and EstadoEntrega=0","","FechaRegistro,NumeroBoleta");
$titulo = "Planilla de Trabajos No Entregados";
class PDF extends PPDF
{
    function Cabecera()
    {
        global $ApellidoPSis, $ApellidoMSis, $NombresSis, $TC;
        $this->CuadroCabecera(25, "Reporte de:", 80, $ApellidoPSis . " " . $ApellidoMSis . " " . $NombresSis);
        $this->CuadroCabecera(10, "T/C:", 60, $TC);
        $this->Pagina();
        $this->Ln();
        $this->TituloCabecera(10, "N", 8);
        $this->TituloCabecera(15, "N Orden", 8);
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(15, "HIngreso", 8);
$usuario = new usuario();
if ($_GET['CodUsuarioAsignado'] == "") {
    $idusuario = $_SESSION['CodUsuarioLog'];
} else {
    $idusuario = $_GET['CodUsuarioAsignado'];
}
$datosUsuario = $usuario->mostrarDatos($idusuario);
$datosUsuario = array_shift($datosUsuario);
$Apodo = $datosUsuario['Nick'];
$ApellidoPSis = $datosUsuario['Paterno'];
$ApellidoMSis = $datosUsuario['Materno'];
$NombresSis = $datosUsuario['Nombres'];
$FotoSis = $datosUsuario['Foto'];
$FechaIncio = $_GET['Desde'];
$FechaFinal = $_GET['Hasta'];
$opt = $optica->MostrarTodoRegistro("FechaEntregaReal BETWEEN '{$FechaIncio}' and '{$FechaFinal}' and CodUsuarioEntrega={$idusuario} and EstadoEntrega=1 and Anulado=0", "", "FechaRegistro,NumeroBoleta");
$titulo = "Planilla de Entrega de Trabajos";
class PDF extends PPDF
{
    function Cabecera()
    {
        global $ApellidoPSis, $ApellidoMSis, $NombresSis, $TC;
        $this->CuadroCabecera(25, "Reporte de:", 80, $ApellidoPSis . " " . $ApellidoMSis . " " . $NombresSis);
        $this->CuadroCabecera(10, "T/C:", 60, $TC);
        $this->Pagina();
        $this->Ln();
        $this->TituloCabecera(15, "N Orden", 8);
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(40, "Cliente", 8);
        /*$this->TituloCabecera(25,"Tipo Cristal",8);
        		$this->TituloCabecera(35,"Armazon",8);
Esempio n. 4
0
$medico = new medico();
$CodMedico = $_GET['CodMedico'];
//print_r($_GET);
//echo $idusuario;
$datosUsuario = $medico->mostrarTodoRegistro("CodMedico=" . $CodMedico);
$datosUsuario = array_shift($datosUsuario);
$ApellidoP = $datosUsuario['Paterno'];
$ApellidoM = $datosUsuario['Materno'];
$Nombres = $datosUsuario['Nombres'];
$Telefono = $datosUsuario['Telefono'];
$Celular = $datosUsuario['Celular'];
$Porcentaje = $datosUsuario['Porcentaje'];
$FechaIncio = $_GET['Desde'];
$FechaFinal = $_GET['Hasta'];
$ReporteCompleto = $_GET['ReporteCompleto'];
$opt = $optica->MostrarTodoRegistro("FechaRegistro BETWEEN '{$FechaIncio}' and '{$FechaFinal}' and CodMedico={$CodMedico}", "", "FechaRegistro,NumeroBoleta");
$titulo = "Planilla de Ingreso Médico";
class PDF extends PPDF
{
    function Cabecera()
    {
        global $ApellidoP, $ApellidoM, $Nombres, $Telefono, $ReporteCompleto, $Celular, $FechaIncio, $FechaFinal;
        $this->CuadroCabecera(30, "Reporte de: ", 60, "Dr. " . $ApellidoP . " " . $ApellidoM . " " . $Nombres);
        $this->CuadroCabecera(20, "Teléfono: ", 40, "" . $Telefono . " - " . $Celular);
        $this->Pagina();
        $this->Ln();
        $this->CuadroCabecera(35, "Rango de Fechas: ", 60, fecha2Str($FechaIncio) . "   -   " . fecha2Str($FechaFinal));
        $this->Ln();
        $this->TituloCabecera(10, "N", 8);
        $this->TituloCabecera(20, "FechaIngreso", 8);
        $this->TituloCabecera(40, "Cliente", 8);