| 3489 | nelberth | 1 | <?php
 | 
        
           |  |  | 2 |   | 
        
           |  |  | 3 | namespace LeadersLinked\Library;
 | 
        
           |  |  | 4 |   | 
        
           |  |  | 5 | use Fpdf\Fpdf;
 | 
        
           |  |  | 6 |   | 
        
           |  |  | 7 | class PlanningObjectivesAndGoalsObjectivesPdfOne extends FPDF {
 | 
        
           |  |  | 8 |   | 
        
           | 3716 | nelberth | 9 |     protected $titleObjective='';
 | 
        
           | 3730 | nelberth | 10 |     protected $descriptionObjective='';
 | 
        
           | 3719 | nelberth | 11 |     protected $swit=true;
 | 
        
           | 3786 | nelberth | 12 |     protected $descriptionGoals='';
 | 
        
           |  |  | 13 |     protected $titleGoals="";
 | 
        
           | 3787 | nelberth | 14 |     protected $titleTask="";
 | 
        
           | 3851 | nelberth | 15 |     public $continueTask=1;
 | 
        
           | 3954 | nelberth | 16 |   | 
        
           | 3856 | nelberth | 17 |   | 
        
           | 3854 | nelberth | 18 |   | 
        
           |  |  | 19 |     function setP($p){
 | 
        
           |  |  | 20 |         $this->continueTask=$p;
 | 
        
           |  |  | 21 |     }
 | 
        
           |  |  | 22 |     function getP(){
 | 
        
           |  |  | 23 |         return $this->continueTask;
 | 
        
           |  |  | 24 |     }
 | 
        
           | 3489 | nelberth | 25 |     /**
 | 
        
           |  |  | 26 |      * Header PDF
 | 
        
           |  |  | 27 |      */
 | 
        
           |  |  | 28 |     function Header() {
 | 
        
           |  |  | 29 |   | 
        
           |  |  | 30 |         if ($this->header != '') {
 | 
        
           | 12332 | nelberth | 31 |   | 
        
           |  |  | 32 |             $this->Image($this->header, -120, 1, 450);
 | 
        
           | 3489 | nelberth | 33 |             $this->SetY(55);
 | 
        
           |  |  | 34 |         }
 | 
        
           | 3929 | nelberth | 35 |   | 
        
           | 3803 | nelberth | 36 |         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 37 |         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 38 |         $this->SetLineWidth(0);
 | 
        
           |  |  | 39 |         $this->SetFont('Arial', 'B', 9);
 | 
        
           | 3807 | nelberth | 40 |   | 
        
           | 3803 | nelberth | 41 |         $this->Ln();
 | 
        
           | 3720 | nelberth | 42 |         if($this->swit==false){
 | 
        
           | 3804 | nelberth | 43 |             $this->SetFont('Arial', 'B', 9);
 | 
        
           | 3873 | nelberth | 44 |             $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           |  |  | 45 |             $this->Cell(188, 6, utf8_decode('Meta: '. $this->titleGoals), 1, 1, 'C', true);
 | 
        
           | 3786 | nelberth | 46 |             $this->Ln();
 | 
        
           | 3856 | nelberth | 47 |             if($this->getP()==5){
 | 
        
           | 3789 | nelberth | 48 |                 $this->SetFont('Arial', '', 9);
 | 
        
           | 3870 | nelberth | 49 |                 $this->Cell(188, 6, utf8_decode('Tareas: '. $this->titleTask.' ( Continuacion )'), 1, 1, 'C', true);
 | 
        
           | 3827 | nelberth | 50 |   | 
        
           | 3789 | nelberth | 51 |             }
 | 
        
           | 3719 | nelberth | 52 |         }
 | 
        
           | 3489 | nelberth | 53 |     }
 | 
        
           |  |  | 54 |   | 
        
           |  |  | 55 |     /**
 | 
        
           |  |  | 56 |      * Footer PDF
 | 
        
           |  |  | 57 |      */
 | 
        
           |  |  | 58 |     function Footer() {
 | 
        
           |  |  | 59 |         if ($this->footer != '') {
 | 
        
           | 3610 | nelberth | 60 |             $this->SetY(-40);
 | 
        
           | 12332 | nelberth | 61 |             $this->Image($this->footer, -70,$this->getY() , 350);
 | 
        
           | 3489 | nelberth | 62 |         }
 | 
        
           |  |  | 63 |     }
 | 
        
           |  |  | 64 |   | 
        
           | 4044 | nelberth | 65 |     function borderTable($title, $items) {
 | 
        
           | 3958 | nelberth | 66 |         $this->AddPage();
 | 
        
           | 3489 | nelberth | 67 |         // Header Table
 | 
        
           |  |  | 68 |         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 69 |         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 70 |         $this->SetLineWidth(0);
 | 
        
           | 3740 | nelberth | 71 |         $this->SetFont('Arial', 'B', 12);
 | 
        
           |  |  | 72 |         $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
 | 
        
           | 3742 | nelberth | 73 |         $this->Ln(5);
 | 
        
           | 3489 | nelberth | 74 |         // Body Table
 | 
        
           |  |  | 75 |         $this->SetFillColor(225, 255, 255);
 | 
        
           |  |  | 76 |         $this->SetTextColor(0);
 | 
        
           | 3889 | nelberth | 77 |   | 
        
           | 4005 | nelberth | 78 |         $addPageObjective=false;
 | 
        
           | 4044 | nelberth | 79 |         foreach ($items as $objective) {
 | 
        
           | 3958 | nelberth | 80 |   | 
        
           | 4015 | nelberth | 81 |             $this->titleObjective=$objective['title'];
 | 
        
           |  |  | 82 |             $this->descriptionObjective=$objective['description'];
 | 
        
           |  |  | 83 |   | 
        
           |  |  | 84 |             if ($objective['status']=='a') {
 | 
        
           |  |  | 85 |                 if($addPageObjective){
 | 
        
           |  |  | 86 |                     $this->AddPage();
 | 
        
           |  |  | 87 |                 }
 | 
        
           |  |  | 88 |                 $addPageObjective=true;
 | 
        
           |  |  | 89 |                 $this->SetFont('Arial', 'B', 9);
 | 
        
           |  |  | 90 |                  $costObjective=0;
 | 
        
           |  |  | 91 |                  $timeObjective=0;
 | 
        
           |  |  | 92 |                  $contObjetive=0;
 | 
        
           |  |  | 93 |                  $indicatorObjective=0;
 | 
        
           |  |  | 94 |                 foreach($objective['goals'] as $record){
 | 
        
           |  |  | 95 |                     $indicatorGoals=0;
 | 
        
           |  |  | 96 |                     if($record->status=='a'){
 | 
        
           |  |  | 97 |                         foreach($record->task as $record2){
 | 
        
           |  |  | 98 |                             if($record2->status=='a'){
 | 
        
           |  |  | 99 |                                 $costObjective=$costObjective+$record2->cost;
 | 
        
           |  |  | 100 |                                 $timeObjective=$timeObjective+$record2->time;
 | 
        
           |  |  | 101 |                                 $indicatorGoals= $indicatorGoals+$record2->indicator;
 | 
        
           |  |  | 102 |                             }
 | 
        
           |  |  | 103 |                         }
 | 
        
           |  |  | 104 |                     }
 | 
        
           |  |  | 105 |                     if(count($record->task)>0){
 | 
        
           |  |  | 106 |                         $indicatorObjective=$indicatorObjective+($indicatorGoals/count($record->task));
 | 
        
           |  |  | 107 |                         $contObjetive++;
 | 
        
           |  |  | 108 |                     }
 | 
        
           |  |  | 109 |                 }
 | 
        
           |  |  | 110 |                 if($contObjetive!=0){
 | 
        
           |  |  | 111 |                     $indicatorObjective=round($indicatorObjective/$contObjetive,2);
 | 
        
           |  |  | 112 |                 }
 | 
        
           |  |  | 113 |   | 
        
           |  |  | 114 |                 if(count($objective['goals'])<=0){
 | 
        
           |  |  | 115 |                         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 116 |                         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 117 |                         $this->SetLineWidth(0);
 | 
        
           |  |  | 118 |                         $this->SetFont('Arial', 'B', 9);
 | 
        
           |  |  | 119 |                         $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           |  |  | 120 |                         $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
 | 
        
           |  |  | 121 |                         $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           |  |  | 122 |                         $this->Cell(25, 6, utf8_decode($objective['date']), 1, 0, 'C', false);
 | 
        
           |  |  | 123 |                         $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
 | 
        
           |  |  | 124 |                         $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
 | 
        
           |  |  | 125 |                         $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 126 |                         $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
 | 
        
           |  |  | 127 |                         $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           |  |  | 128 |                         $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
 | 
        
           |  |  | 129 |                         $this->Ln();
 | 
        
           |  |  | 130 |                         $this->swit=false;
 | 
        
           |  |  | 131 |   | 
        
           |  |  | 132 |                 }
 | 
        
           |  |  | 133 |                 $addPageGoals=false;
 | 
        
           |  |  | 134 |                 foreach($objective['goals'] as $record){
 | 
        
           |  |  | 135 |                     if($record->status=='a'){
 | 
        
           |  |  | 136 |                         if($addPageGoals){
 | 
        
           |  |  | 137 |                             $this->AddPage();
 | 
        
           |  |  | 138 |                         }
 | 
        
           |  |  | 139 |                         $addPageGoals=true;
 | 
        
           |  |  | 140 |                         if($this->swit){
 | 
        
           |  |  | 141 |                             $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 142 |                             $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 143 |                             $this->SetLineWidth(0);
 | 
        
           |  |  | 144 |                             $this->SetFont('Arial', 'B', 9);
 | 
        
           |  |  | 145 |                             $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           |  |  | 146 |                             $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
 | 
        
           |  |  | 147 |                             $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           |  |  | 148 |                             $this->Cell(25, 6, utf8_decode($objective['date']), 1, 0, 'C', false);
 | 
        
           |  |  | 149 |                             $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
 | 
        
           |  |  | 150 |                             $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
 | 
        
           |  |  | 151 |                             $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 152 |                             $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
 | 
        
           |  |  | 153 |                             $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           |  |  | 154 |                             $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
 | 
        
           |  |  | 155 |                             $this->Ln();
 | 
        
           |  |  | 156 |                             $this->swit=false;
 | 
        
           |  |  | 157 |                         }
 | 
        
           |  |  | 158 |                         $indicatorGoals=0;
 | 
        
           |  |  | 159 |                         $timeGoals=0;
 | 
        
           |  |  | 160 |                         $costGoals=0;
 | 
        
           |  |  | 161 |                         foreach($record->task as $record2){
 | 
        
           |  |  | 162 |                             if($record2->status=='a'){
 | 
        
           |  |  | 163 |                                 $costGoals=$costGoals+$record2->cost;
 | 
        
           |  |  | 164 |                                 $timeGoals=$timeGoals+$record2->time;
 | 
        
           |  |  | 165 |                                 $indicatorGoals= $indicatorGoals+$record2->indicator;
 | 
        
           |  |  | 166 |                             }
 | 
        
           |  |  | 167 |                         }
 | 
        
           |  |  | 168 |                         if(count($record->task)>0){
 | 
        
           |  |  | 169 |                             $indicatorGoals=round($indicatorGoals/count($record->task),2);
 | 
        
           |  |  | 170 |                         }
 | 
        
           |  |  | 171 |                         $this->titleGoals=$record->title;
 | 
        
           |  |  | 172 |                         $this->descriptionGoals=$record->description;
 | 
        
           |  |  | 173 |                         $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
 | 
        
           |  |  | 174 |                         $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
 | 
        
           |  |  | 175 |                         $this->Cell(40, 6, utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
 | 
        
           |  |  | 176 |                         $this->Cell(54, 6, utf8_decode($timeGoals), 1, 0, 'C', false);
 | 
        
           |  |  | 177 |                         $this->Cell(54, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 178 |                         $this->Cell(40, 6, utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
 | 
        
           |  |  | 179 |                         $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           |  |  | 180 |                         $this->Cell(158, 6, utf8_decode('$'.$costGoals), 1, 1, 'R', false);
 | 
        
           |  |  | 181 |                         $this->Ln();
 | 
        
           |  |  | 182 |                         foreach ($record->task as $record2) {
 | 
        
           |  |  | 183 |                             if($record2->status=='a'){
 | 
        
           |  |  | 184 |                                 $this->SetFont('Arial', '', 9);
 | 
        
           |  |  | 185 |                                 $this->titleTask=$record2->title;
 | 
        
           |  |  | 186 |   | 
        
           |  |  | 187 |                                 $this->Cell(188, 6, utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
 | 
        
           |  |  | 188 |                                 $this->setP(5);
 | 
        
           |  |  | 189 |                                 $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
 | 
        
           |  |  | 190 |                                 $this->MultiCell(188, 6, utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
 | 
        
           | 6420 | nelberth | 191 |                                 $whoUser='';
 | 
        
           | 6425 | nelberth | 192 |                                 $toggleWho=true;
 | 
        
           | 6421 | nelberth | 193 |                                 foreach($record2->who as $record3){
 | 
        
           | 6425 | nelberth | 194 |                                     if($toggleWho){
 | 
        
           |  |  | 195 |                                         $whoUser=$whoUser.$record3;
 | 
        
           |  |  | 196 |                                         $toggleWho=false;
 | 
        
           |  |  | 197 |                                     }else{
 | 
        
           |  |  | 198 |                                         $whoUser=$whoUser.', '.$record3;
 | 
        
           |  |  | 199 |   | 
        
           |  |  | 200 |                                     }
 | 
        
           | 6421 | nelberth | 201 |                                 }
 | 
        
           | 6420 | nelberth | 202 |                                 $this->MultiCell(188, 6, utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
 | 
        
           | 4015 | nelberth | 203 |                                 $this->MultiCell(188, 6, utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
 | 
        
           |  |  | 204 |                                 $this->Cell(16, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           |  |  | 205 |                                 $this->Cell(20, 6, utf8_decode($record2->date), 1, 0, 'C', false);
 | 
        
           |  |  | 206 |                                 $this->Cell(16, 6, utf8_decode('Horas: '), 1, 0, 'L', false);
 | 
        
           |  |  | 207 |                                 $this->Cell(35, 6, utf8_decode($record2->time), 1, 0, 'C', false);
 | 
        
           |  |  | 208 |                                 $this->Cell(40, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 209 |                                 $this->Cell(16, 6, utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
 | 
        
           |  |  | 210 |   | 
        
           |  |  | 211 |                                 $this->Cell(20, 6, utf8_decode('Prioridad: '), 1, 0, 'L', false);
 | 
        
           |  |  | 212 |                                 if($record2->priority=='i'){
 | 
        
           |  |  | 213 |                                     $this->Cell(25, 6, utf8_decode('Importante'), 1, 1, 'C', false);
 | 
        
           |  |  | 214 |                                 }else if($record2->priority=='ni'){
 | 
        
           |  |  | 215 |                                     $this->Cell(25, 6, utf8_decode('No importante'), 1, 1, 'C', false);
 | 
        
           |  |  | 216 |                                 }else if($record2->priority=='nu'){
 | 
        
           |  |  | 217 |                                     $this->Cell(25, 6, utf8_decode('No urgente'), 1, 1, 'C', false);
 | 
        
           |  |  | 218 |                                 }else if($record2->priority=='u'){
 | 
        
           |  |  | 219 |                                     $this->Cell(25, 6, utf8_decode('Urgente'), 1, 1, 'C', false);
 | 
        
           |  |  | 220 |                                 }
 | 
        
           |  |  | 221 |                                 if($record2->indicator==100){
 | 
        
           |  |  | 222 |                                     $this->MultiCell(188, 6, utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
 | 
        
           |  |  | 223 |                                     $this->MultiCell(188, 6, utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
 | 
        
           |  |  | 224 |                                 }
 | 
        
           |  |  | 225 |                                 $this->SetFont('Arial', 'B', 11);
 | 
        
           |  |  | 226 |   | 
        
           |  |  | 227 |                                 $this->Cell(20, 8, utf8_decode('Costo: '), 1, 0, 'L', false);
 | 
        
           |  |  | 228 |   | 
        
           |  |  | 229 |                                 $this->Cell(168, 8, utf8_decode('$'.$record2->cost), 1, 1, 'R', false);
 | 
        
           |  |  | 230 |                                 $this->setP(1);
 | 
        
           |  |  | 231 |   | 
        
           |  |  | 232 |                                 $this->Ln(7);
 | 
        
           |  |  | 233 |                             }
 | 
        
           |  |  | 234 |   | 
        
           |  |  | 235 |                         }
 | 
        
           |  |  | 236 |                         $this->swit=true;
 | 
        
           |  |  | 237 |   | 
        
           |  |  | 238 |                     }
 | 
        
           |  |  | 239 |                 }
 | 
        
           |  |  | 240 |             }
 | 
        
           |  |  | 241 |   | 
        
           |  |  | 242 |         }
 | 
        
           |  |  | 243 |   | 
        
           |  |  | 244 |     }
 | 
        
           | 4044 | nelberth | 245 |   | 
        
           |  |  | 246 |     function borderTableAll($title, $items) {
 | 
        
           | 4015 | nelberth | 247 |         $this->AddPage();
 | 
        
           |  |  | 248 |         // Header Table
 | 
        
           |  |  | 249 |         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 250 |         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 251 |         $this->SetLineWidth(0);
 | 
        
           |  |  | 252 |         $this->SetFont('Arial', 'B', 12);
 | 
        
           |  |  | 253 |         $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
 | 
        
           |  |  | 254 |         $this->Ln(5);
 | 
        
           |  |  | 255 |   | 
        
           |  |  | 256 |         // Body Table
 | 
        
           |  |  | 257 |         $this->SetFillColor(225, 255, 255);
 | 
        
           |  |  | 258 |         $this->SetTextColor(0);
 | 
        
           |  |  | 259 |   | 
        
           |  |  | 260 |         $addPageObjective=false;
 | 
        
           | 4044 | nelberth | 261 |         foreach ($items as $objective) {
 | 
        
           | 4015 | nelberth | 262 |   | 
        
           | 4012 | nelberth | 263 |             $this->titleObjective=$objective->title;
 | 
        
           | 4023 | nelberth | 264 |             $this->descriptionObjective=$objective->description;
 | 
        
           | 4013 | nelberth | 265 |             if ($objective->status=='a') {
 | 
        
           | 3958 | nelberth | 266 |                 if($addPageObjective){
 | 
        
           |  |  | 267 |                     $this->AddPage();
 | 
        
           |  |  | 268 |                 }
 | 
        
           |  |  | 269 |                 $addPageObjective=true;
 | 
        
           | 3489 | nelberth | 270 |                 $this->SetFont('Arial', 'B', 9);
 | 
        
           | 3890 | nelberth | 271 |                  $costObjective=0;
 | 
        
           | 3901 | nelberth | 272 |                  $timeObjective=0;
 | 
        
           | 3910 | nelberth | 273 |                  $contObjetive=0;
 | 
        
           |  |  | 274 |                  $indicatorObjective=0;
 | 
        
           | 4014 | nelberth | 275 |                 foreach($objective->goals as $record){
 | 
        
           | 3915 | nelberth | 276 |                     $indicatorGoals=0;
 | 
        
           | 3935 | nelberth | 277 |                     if($record->status=='a'){
 | 
        
           |  |  | 278 |                         foreach($record->task as $record2){
 | 
        
           |  |  | 279 |                             if($record2->status=='a'){
 | 
        
           |  |  | 280 |                                 $costObjective=$costObjective+$record2->cost;
 | 
        
           |  |  | 281 |                                 $timeObjective=$timeObjective+$record2->time;
 | 
        
           |  |  | 282 |                                 $indicatorGoals= $indicatorGoals+$record2->indicator;
 | 
        
           |  |  | 283 |                             }
 | 
        
           |  |  | 284 |                         }
 | 
        
           | 3912 | nelberth | 285 |                     }
 | 
        
           |  |  | 286 |                     if(count($record->task)>0){
 | 
        
           |  |  | 287 |                         $indicatorObjective=$indicatorObjective+($indicatorGoals/count($record->task));
 | 
        
           | 3910 | nelberth | 288 |                         $contObjetive++;
 | 
        
           | 3890 | nelberth | 289 |                     }
 | 
        
           | 12695 | nelberth | 290 |                     $this->descriptionGoals=$record->description;
 | 
        
           | 3890 | nelberth | 291 |                 }
 | 
        
           | 3920 | nelberth | 292 |                 if($contObjetive!=0){
 | 
        
           |  |  | 293 |                     $indicatorObjective=round($indicatorObjective/$contObjetive,2);
 | 
        
           |  |  | 294 |                 }
 | 
        
           | 3931 | nelberth | 295 |   | 
        
           | 12695 | nelberth | 296 |   | 
        
           | 4015 | nelberth | 297 |                 if(count($objective->goals)<=0){
 | 
        
           | 3933 | nelberth | 298 |                         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 299 |                         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 300 |                         $this->SetLineWidth(0);
 | 
        
           |  |  | 301 |                         $this->SetFont('Arial', 'B', 9);
 | 
        
           |  |  | 302 |                         $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           |  |  | 303 |                         $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
 | 
        
           |  |  | 304 |                         $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           | 4020 | nelberth | 305 |                         $this->Cell(25, 6, utf8_decode($objective->date), 1, 0, 'C', false);
 | 
        
           | 3933 | nelberth | 306 |                         $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
 | 
        
           |  |  | 307 |                         $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
 | 
        
           |  |  | 308 |                         $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 309 |                         $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
 | 
        
           |  |  | 310 |                         $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           |  |  | 311 |                         $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
 | 
        
           |  |  | 312 |                         $this->Ln();
 | 
        
           |  |  | 313 |                         $this->swit=false;
 | 
        
           |  |  | 314 |   | 
        
           | 3931 | nelberth | 315 |                 }
 | 
        
           | 3954 | nelberth | 316 |                 $addPageGoals=false;
 | 
        
           | 4015 | nelberth | 317 |                 foreach($objective->goals as $record){
 | 
        
           | 4021 | nelberth | 318 |   | 
        
           |  |  | 319 |                     $this->titleGoals=$record->title;
 | 
        
           | 3938 | nelberth | 320 |                     if($record->status=='a'){
 | 
        
           | 3954 | nelberth | 321 |                         if($addPageGoals){
 | 
        
           |  |  | 322 |                             $this->AddPage();
 | 
        
           |  |  | 323 |                         }
 | 
        
           |  |  | 324 |                         $addPageGoals=true;
 | 
        
           |  |  | 325 |                         if($this->swit){
 | 
        
           |  |  | 326 |                             $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 327 |                             $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 328 |                             $this->SetLineWidth(0);
 | 
        
           |  |  | 329 |                             $this->SetFont('Arial', 'B', 9);
 | 
        
           |  |  | 330 |                             $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           |  |  | 331 |                             $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$this->descriptionObjective), 1, 'L', false);
 | 
        
           |  |  | 332 |                             $this->Cell(20, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           | 4019 | nelberth | 333 |                             $this->Cell(25, 6, utf8_decode($objective->date), 1, 0, 'C', false);
 | 
        
           | 3954 | nelberth | 334 |                             $this->Cell(30, 6, utf8_decode('Horas Totales: '), 1, 0, 'L', false);
 | 
        
           |  |  | 335 |                             $this->Cell(43, 6, utf8_decode($timeObjective), 1, 0, 'C', false);
 | 
        
           |  |  | 336 |                             $this->Cell(50, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 337 |                             $this->Cell(20, 6, utf8_decode($indicatorObjective.'%'), 1, 1, 'C', false);
 | 
        
           |  |  | 338 |                             $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           |  |  | 339 |                             $this->Cell(158, 6, utf8_decode('$'.$costObjective), 1, 1, 'R', false);
 | 
        
           |  |  | 340 |                             $this->Ln();
 | 
        
           |  |  | 341 |                             $this->swit=false;
 | 
        
           |  |  | 342 |                         }
 | 
        
           |  |  | 343 |                         $indicatorGoals=0;
 | 
        
           |  |  | 344 |                         $timeGoals=0;
 | 
        
           |  |  | 345 |                         $costGoals=0;
 | 
        
           |  |  | 346 |                         foreach($record->task as $record2){
 | 
        
           |  |  | 347 |                             if($record2->status=='a'){
 | 
        
           |  |  | 348 |                                 $costGoals=$costGoals+$record2->cost;
 | 
        
           |  |  | 349 |                                 $timeGoals=$timeGoals+$record2->time;
 | 
        
           |  |  | 350 |                                 $indicatorGoals= $indicatorGoals+$record2->indicator;
 | 
        
           |  |  | 351 |                             }
 | 
        
           |  |  | 352 |                         }
 | 
        
           |  |  | 353 |                         if(count($record->task)>0){
 | 
        
           |  |  | 354 |                             $indicatorGoals=round($indicatorGoals/count($record->task),2);
 | 
        
           |  |  | 355 |                         }
 | 
        
           |  |  | 356 |                         $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
 | 
        
           |  |  | 357 |                         $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record->description), 1, 'L', false);
 | 
        
           |  |  | 358 |                         $this->Cell(40, 6, utf8_decode('Horas Totalesa: '), 1, 0, 'L', false);
 | 
        
           |  |  | 359 |                         $this->Cell(54, 6, utf8_decode($timeGoals), 1, 0, 'C', false);
 | 
        
           |  |  | 360 |                         $this->Cell(54, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 361 |                         $this->Cell(40, 6, utf8_decode($indicatorGoals.'%'), 1, 1, 'C', false);
 | 
        
           | 3933 | nelberth | 362 |                         $this->Cell(30, 6, utf8_decode('Costo total: '), 1, 0, 'L', false);
 | 
        
           | 3954 | nelberth | 363 |                         $this->Cell(158, 6, utf8_decode('$'.$costGoals), 1, 1, 'R', false);
 | 
        
           | 3933 | nelberth | 364 |                         $this->Ln();
 | 
        
           | 3954 | nelberth | 365 |                         foreach ($record->task as $record2) {
 | 
        
           |  |  | 366 |                             if($record2->status=='a'){
 | 
        
           |  |  | 367 |                                 $this->SetFont('Arial', '', 9);
 | 
        
           |  |  | 368 |                                 $this->titleTask=$record2->title;
 | 
        
           |  |  | 369 |   | 
        
           |  |  | 370 |                                 $this->Cell(188, 6, utf8_decode('Tarea: '.$record2->title), 1, 1, 'C', true);
 | 
        
           |  |  | 371 |                                 $this->setP(5);
 | 
        
           |  |  | 372 |                                 $this->MultiCell(188, 6, utf8_decode('Descripcion: '.$record2->description), 1, 'L', false);
 | 
        
           |  |  | 373 |                                 $this->MultiCell(188, 6, utf8_decode('Implementacion: '.$record2->how), 1, 'L', false);
 | 
        
           | 6432 | nelberth | 374 |                                 $whoUser='';
 | 
        
           |  |  | 375 |                                 $toggleWho=true;
 | 
        
           |  |  | 376 |                                 foreach($record2->who as $record3){
 | 
        
           |  |  | 377 |                                     if($toggleWho){
 | 
        
           |  |  | 378 |                                         $whoUser=$whoUser.$record3;
 | 
        
           |  |  | 379 |                                         $toggleWho=false;
 | 
        
           |  |  | 380 |                                     }else{
 | 
        
           |  |  | 381 |                                         $whoUser=$whoUser.', '.$record3;
 | 
        
           |  |  | 382 |   | 
        
           |  |  | 383 |                                     }
 | 
        
           |  |  | 384 |                                 }
 | 
        
           |  |  | 385 |                                 $this->MultiCell(188, 6, utf8_decode('Participantes: '.$whoUser), 1, 'L', false);
 | 
        
           | 3954 | nelberth | 386 |                                 $this->MultiCell(188, 6, utf8_decode('Lugar: '.$record2->place), 1, 'L', false);
 | 
        
           |  |  | 387 |                                 $this->Cell(16, 6, utf8_decode('Fecha: '), 1, 0, 'L', false);
 | 
        
           |  |  | 388 |                                 $this->Cell(20, 6, utf8_decode($record2->date), 1, 0, 'C', false);
 | 
        
           |  |  | 389 |                                 $this->Cell(16, 6, utf8_decode('Horas: '), 1, 0, 'L', false);
 | 
        
           |  |  | 390 |                                 $this->Cell(35, 6, utf8_decode($record2->time), 1, 0, 'C', false);
 | 
        
           |  |  | 391 |                                 $this->Cell(40, 6, utf8_decode('Indicador de progreso: '), 1, 0, 'L', false);
 | 
        
           |  |  | 392 |                                 $this->Cell(16, 6, utf8_decode($record2->indicator.'%'), 1, 0, 'C', false);
 | 
        
           |  |  | 393 |   | 
        
           |  |  | 394 |                                 $this->Cell(20, 6, utf8_decode('Prioridad: '), 1, 0, 'L', false);
 | 
        
           |  |  | 395 |                                 if($record2->priority=='i'){
 | 
        
           |  |  | 396 |                                     $this->Cell(25, 6, utf8_decode('Importante'), 1, 1, 'C', false);
 | 
        
           |  |  | 397 |                                 }else if($record2->priority=='ni'){
 | 
        
           |  |  | 398 |                                     $this->Cell(25, 6, utf8_decode('No importante'), 1, 1, 'C', false);
 | 
        
           |  |  | 399 |                                 }else if($record2->priority=='nu'){
 | 
        
           |  |  | 400 |                                     $this->Cell(25, 6, utf8_decode('No urgente'), 1, 1, 'C', false);
 | 
        
           |  |  | 401 |                                 }else if($record2->priority=='u'){
 | 
        
           |  |  | 402 |                                     $this->Cell(25, 6, utf8_decode('Urgente'), 1, 1, 'C', false);
 | 
        
           |  |  | 403 |                                 }
 | 
        
           |  |  | 404 |                                 if($record2->indicator==100){
 | 
        
           |  |  | 405 |                                     $this->MultiCell(188, 6, utf8_decode('Descripcion evaluacion: '.$record2->evaluation), 1, 'L', false);
 | 
        
           |  |  | 406 |                                     $this->MultiCell(188, 6, utf8_decode('Descripcion desvio: '.$record2->detour), 1, 'L', false);
 | 
        
           |  |  | 407 |                                 }
 | 
        
           |  |  | 408 |                                 $this->SetFont('Arial', 'B', 11);
 | 
        
           | 3938 | nelberth | 409 |   | 
        
           | 3954 | nelberth | 410 |                                 $this->Cell(20, 8, utf8_decode('Costo: '), 1, 0, 'L', false);
 | 
        
           | 3938 | nelberth | 411 |   | 
        
           | 3954 | nelberth | 412 |                                 $this->Cell(168, 8, utf8_decode('$'.$record2->cost), 1, 1, 'R', false);
 | 
        
           |  |  | 413 |                                 $this->setP(1);
 | 
        
           |  |  | 414 |   | 
        
           | 3984 | nelberth | 415 |                                 $this->Ln(7);
 | 
        
           | 3954 | nelberth | 416 |                             }
 | 
        
           |  |  | 417 |   | 
        
           |  |  | 418 |                         }
 | 
        
           |  |  | 419 |                         $this->swit=true;
 | 
        
           |  |  | 420 |   | 
        
           | 3704 | nelberth | 421 |                     }
 | 
        
           | 3702 | nelberth | 422 |                 }
 | 
        
           | 3489 | nelberth | 423 |             }
 | 
        
           | 4021 | nelberth | 424 |             $this->swit=true;
 | 
        
           | 3489 | nelberth | 425 |         }
 | 
        
           | 3606 | nelberth | 426 |   | 
        
           | 3489 | nelberth | 427 |     }
 | 
        
           | 4044 | nelberth | 428 |     function borderTableMatriz($title,$items){
 | 
        
           |  |  | 429 |         $this->AddPage();
 | 
        
           |  |  | 430 |         // Header Table
 | 
        
           |  |  | 431 |         $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 432 |         $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 433 |         $this->SetLineWidth(0);
 | 
        
           |  |  | 434 |         $this->SetFont('Arial', 'B', 12);
 | 
        
           |  |  | 435 |         $this->Cell(188, 12, utf8_decode($title), 0, 1, 'C', false);
 | 
        
           |  |  | 436 |         $this->Ln(5);
 | 
        
           | 4215 | nelberth | 437 |         $titleswitch=true;
 | 
        
           | 4044 | nelberth | 438 |         // Body Table
 | 
        
           |  |  | 439 |         $this->SetFillColor(225, 255, 255);
 | 
        
           |  |  | 440 |         $this->SetTextColor(0);
 | 
        
           | 4048 | nelberth | 441 |         $addPageObjective=false;
 | 
        
           | 12970 | nelberth | 442 |         $addPageGoals=false;
 | 
        
           | 4080 | nelberth | 443 |         foreach ($items as $objective) {
 | 
        
           |  |  | 444 |             if ($objective->status=='a'&&count($objective->goals)>0) {
 | 
        
           | 4079 | nelberth | 445 |                     $this->titleObjective=$objective->title;
 | 
        
           | 4072 | nelberth | 446 |                 $this->descriptionObjective=$objective->description;
 | 
        
           | 12968 | nelberth | 447 |                     /*if($addPageObjective){
 | 
        
           |  |  | 448 |                         $this->AddPage();
 | 
        
           |  |  | 449 |                     }
 | 
        
           |  |  | 450 |                     $addPageObjective=true;*/
 | 
        
           | 12970 | nelberth | 451 |   | 
        
           | 4168 | nelberth | 452 |                     foreach($objective->goals as $record){
 | 
        
           |  |  | 453 |   | 
        
           | 4079 | nelberth | 454 |                         if($record->status=='a'&&count($record->task)>0){
 | 
        
           |  |  | 455 |                             $this->titleGoals=$record->title;
 | 
        
           | 12965 | nelberth | 456 |                             if($addPageGoals){
 | 
        
           |  |  | 457 |                                 $this->AddPage();
 | 
        
           |  |  | 458 |                             }
 | 
        
           | 12968 | nelberth | 459 |   | 
        
           | 4072 | nelberth | 460 |                             $addPageGoals=true;
 | 
        
           |  |  | 461 |                             if($this->swit){
 | 
        
           |  |  | 462 |                                 $this->SetFillColor(204, 204, 204);
 | 
        
           |  |  | 463 |                                 $this->SetDrawColor(0, 0, 0);
 | 
        
           |  |  | 464 |                                 $this->SetLineWidth(0);
 | 
        
           |  |  | 465 |                                 $this->SetFont('Arial', 'B', 9);
 | 
        
           | 4227 | nelberth | 466 |                                 $this->Cell(188, 6, utf8_decode('Objectivo: '.$this->titleObjective), 1, 1, 'C', true);
 | 
        
           | 4072 | nelberth | 467 |                                 $this->swit=false;
 | 
        
           |  |  | 468 |                             }
 | 
        
           | 4227 | nelberth | 469 |                             $this->Cell(188, 6, utf8_decode('Meta: '.$record->title), 1, 1, 'C', true);
 | 
        
           | 4048 | nelberth | 470 |                             $this->Ln();
 | 
        
           | 4088 | nelberth | 471 |   | 
        
           | 4095 | nelberth | 472 |                             $iu=[];
 | 
        
           |  |  | 473 |                             $niu=[];
 | 
        
           |  |  | 474 |                             $inu=[];
 | 
        
           |  |  | 475 |                             $ninu=[];
 | 
        
           | 4170 | nelberth | 476 |   | 
        
           | 4168 | nelberth | 477 |                             $matriz= array(
 | 
        
           |  |  | 478 |                                 array()
 | 
        
           |  |  | 479 |                             );
 | 
        
           | 4092 | nelberth | 480 |                             foreach($record->task as $record2){
 | 
        
           | 4095 | nelberth | 481 |                                 if($record2->priority=='i'&&$record2->urgent=='u'){
 | 
        
           | 4236 | nelberth | 482 |   | 
        
           | 4213 | nelberth | 483 |                                     array_push($iu, $record2->title);
 | 
        
           | 4236 | nelberth | 484 |   | 
        
           | 4221 | nelberth | 485 |   | 
        
           | 4092 | nelberth | 486 |                                 }
 | 
        
           | 4095 | nelberth | 487 |                                 if($record2->priority=='i'&&$record2->urgent=='nu'){
 | 
        
           | 4237 | nelberth | 488 |   | 
        
           | 4095 | nelberth | 489 |                                     array_push($inu, $record2->title);
 | 
        
           | 4237 | nelberth | 490 |   | 
        
           | 4095 | nelberth | 491 |                                 }
 | 
        
           |  |  | 492 |                                 if($record2->priority=='ni'&&$record2->urgent=='u'){
 | 
        
           |  |  | 493 |                                     array_push($niu, $record2->title);
 | 
        
           |  |  | 494 |                                 }
 | 
        
           |  |  | 495 |                                 if($record2->priority=='ni'&&$record2->urgent=='nu'){
 | 
        
           | 4239 | nelberth | 496 |   | 
        
           | 4095 | nelberth | 497 |                                     array_push($ninu, $record2->title);
 | 
        
           | 4239 | nelberth | 498 |   | 
        
           | 4095 | nelberth | 499 |                                 }
 | 
        
           |  |  | 500 |   | 
        
           | 4092 | nelberth | 501 |                             }
 | 
        
           | 4088 | nelberth | 502 |   | 
        
           | 4099 | nelberth | 503 |                             foreach ($iu as $index=>$record2) {
 | 
        
           |  |  | 504 |                                 $matriz[$index][0]=$record2;
 | 
        
           |  |  | 505 |   | 
        
           |  |  | 506 |                             }
 | 
        
           | 4102 | nelberth | 507 |                             foreach ($inu as $index=>$record2) {
 | 
        
           |  |  | 508 |                                 $matriz[$index][1]=$record2;
 | 
        
           |  |  | 509 |   | 
        
           |  |  | 510 |                             }
 | 
        
           | 4135 | nelberth | 511 |                             foreach ($niu as $index=>$record2) {
 | 
        
           |  |  | 512 |                                 $matriz[$index][2]=$record2;
 | 
        
           |  |  | 513 |   | 
        
           |  |  | 514 |                             }
 | 
        
           |  |  | 515 |                             foreach ($ninu as $index=>$record2) {
 | 
        
           |  |  | 516 |                                 $matriz[$index][3]=$record2;
 | 
        
           |  |  | 517 |                             }
 | 
        
           |  |  | 518 |   | 
        
           | 4223 | nelberth | 519 |                             $countMatriz=count($matriz);
 | 
        
           | 4231 | nelberth | 520 |                             $countMatriz=ceil($countMatriz/10);
 | 
        
           | 4224 | nelberth | 521 |                             $pageSwitch=false;
 | 
        
           | 4230 | nelberth | 522 |                             for($h=1;$h<=$countMatriz;$h++){
 | 
        
           | 4224 | nelberth | 523 |                                 if($pageSwitch){
 | 
        
           | 4233 | nelberth | 524 |                                     $this->titleGoals=$record->title.' (Continuacion)';
 | 
        
           | 4224 | nelberth | 525 |                                     $this->AddPage();
 | 
        
           |  |  | 526 |                                 }
 | 
        
           | 4220 | nelberth | 527 |                                 $this->SetFont('Arial', 'B', 12);
 | 
        
           | 4192 | nelberth | 528 |                                 $this->Cell(32, 12, '', 0, 0, 'C', false);
 | 
        
           | 4220 | nelberth | 529 |                                 $this->Cell(78, 12, utf8_decode('Urgente'), 1, 0, 'C', true);
 | 
        
           |  |  | 530 |                                 $this->Cell(78, 12, utf8_decode('No urgente'), 1, 1, 'C', true);
 | 
        
           |  |  | 531 |   | 
        
           |  |  | 532 |                                 $this->Cell(32, 70, utf8_decode('Importante'), 1, 0, 'C', true);
 | 
        
           |  |  | 533 |                                 $this->Cell(156,70,'',1,1,'',false);
 | 
        
           |  |  | 534 |                                 $this->Cell(32, 70, utf8_decode('No Importante'), 1, 0, 'C', true);
 | 
        
           |  |  | 535 |                                 $this->Cell(156,70,'',1,1,'',false);
 | 
        
           |  |  | 536 |                                 if($titleswitch){
 | 
        
           |  |  | 537 |                                     $this->Line(120, 102,120,242);
 | 
        
           |  |  | 538 |                                     $this->SetXY(10,108);
 | 
        
           | 4127 | nelberth | 539 |                                 }else{
 | 
        
           | 4220 | nelberth | 540 |                                     $this->Line(120, 89,120,231);
 | 
        
           | 4228 | nelberth | 541 |                                     $this->SetXY(10,96);
 | 
        
           | 4110 | nelberth | 542 |                                 }
 | 
        
           | 4220 | nelberth | 543 |                                 $this->SetFont('Arial', '', 10);
 | 
        
           |  |  | 544 |   | 
        
           | 4230 | nelberth | 545 |                                 for($i=($h-1)*10;$i<($h*10);$i++) {
 | 
        
           | 4220 | nelberth | 546 |                                     $this->Cell(32, 12, '', 0, 0, 'C', false);
 | 
        
           |  |  | 547 |                                     if(isset($matriz[$i][0])){
 | 
        
           |  |  | 548 |                                         $this->Cell(78, 6, utf8_decode($matriz[$i][0]), 0, 0, 'C', false);
 | 
        
           |  |  | 549 |                                     }else{
 | 
        
           |  |  | 550 |                                         $this->Cell(78, 6, utf8_decode(''), 0, 0, 'l', false);
 | 
        
           |  |  | 551 |                                     }
 | 
        
           |  |  | 552 |                                     if(isset($matriz[$i][1])){
 | 
        
           |  |  | 553 |                                         $this->Cell(78, 6, utf8_decode($matriz[$i][1]), 0, 1, 'C', false);
 | 
        
           |  |  | 554 |                                     }else{
 | 
        
           |  |  | 555 |                                         $this->Cell(78, 6, utf8_decode(''), 0, 1, 'l', false);
 | 
        
           |  |  | 556 |                                     }
 | 
        
           |  |  | 557 |                                 }
 | 
        
           | 4234 | nelberth | 558 |                                 if($titleswitch){
 | 
        
           |  |  | 559 |                                     $this->SetXY(10,178);
 | 
        
           |  |  | 560 |                                     $titleswitch=false;
 | 
        
           |  |  | 561 |                                 }else{
 | 
        
           |  |  | 562 |                                     $this->SetXY(10,166);
 | 
        
           |  |  | 563 |                                 }
 | 
        
           |  |  | 564 |                                 for($i=($h-1)*10;$i<($h*10);$i++) {
 | 
        
           |  |  | 565 |                                     $this->Cell(32, 12, '', 0, 0, 'C', false);
 | 
        
           | 4235 | nelberth | 566 |                                     if(isset($matriz[$i][2])){
 | 
        
           | 4234 | nelberth | 567 |                                         $this->Cell(78, 6, utf8_decode($matriz[$i][2]), 0, 0, 'C', false);
 | 
        
           |  |  | 568 |                                     }else{
 | 
        
           |  |  | 569 |                                         $this->Cell(78, 6, utf8_decode(''), 0, 0, 'l', false);
 | 
        
           |  |  | 570 |                                     }
 | 
        
           | 4235 | nelberth | 571 |                                     if(isset($matriz[$i][3])){
 | 
        
           | 4234 | nelberth | 572 |                                         $this->Cell(78, 6, utf8_decode($matriz[$i][3]), 0, 1, 'C', false);
 | 
        
           |  |  | 573 |                                     }else{
 | 
        
           |  |  | 574 |                                         $this->Cell(78, 6, utf8_decode(''), 0, 1, 'l', false);
 | 
        
           |  |  | 575 |                                     }
 | 
        
           |  |  | 576 |                                 }
 | 
        
           | 4224 | nelberth | 577 |                                 $pageSwitch=true;
 | 
        
           | 4223 | nelberth | 578 |                             }
 | 
        
           | 4072 | nelberth | 579 |                             $this->swit=true;
 | 
        
           |  |  | 580 |   | 
        
           | 4048 | nelberth | 581 |                         }
 | 
        
           |  |  | 582 |                     }
 | 
        
           |  |  | 583 |                 }
 | 
        
           | 4072 | nelberth | 584 |                 $this->swit=true;
 | 
        
           | 4080 | nelberth | 585 |   | 
        
           | 4048 | nelberth | 586 |         }
 | 
        
           | 4044 | nelberth | 587 |     }
 | 
        
           |  |  | 588 |   | 
        
           | 3489 | nelberth | 589 | }
 |