{ $note = '-'; $date = ''; $info = ''; } $pdf_bg = ''; $td_class = ''; if( $date && ($date<$jour_debut_annee_scolaire) ) { $pdf_bg = ( (!$_SESSION['USER_DALTONISME']) || ($couleur=='non') ) ? 'prev_year' : '' ; $td_class = (!$_SESSION['USER_DALTONISME']) ? ' class="prev_year"' : '' ; } elseif( $date && ($date<$date_mysql_debut) ) { $pdf_bg = ( (!$_SESSION['USER_DALTONISME']) || ($couleur=='non') ) ? 'prev_date' : '' ; $td_class = (!$_SESSION['USER_DALTONISME']) ? ' class="prev_date"' : '' ; } $releve_HTML_individuel .= '<td'.$td_class.'>'.Html::note_image($note,$date,$info,FALSE).'</td>'; $releve_PDF->afficher_note_lomer( $note , 1 /*border*/ , floor(($i+1)/$colspan_nb) /*br*/ , $pdf_bg ); } else { $releve_HTML_individuel .= '<td> </td>'; $releve_PDF->Cell( $cases_largeur , $releve_PDF->cases_hauteur , '' , 1 , floor(($i+1)/$colspan_nb) , 'C' , TRUE , '' ); } } // Case bilan if($colonne_bilan=='oui') { $releve_HTML_individuel .= Html::td_score($score,'score'); $releve_PDF->afficher_score_bilan( $score , 1 /*br*/ ); } } $releve_HTML_individuel .= '</tr>'.NL;
} else { $note = '-'; $date = ''; $info = ''; } $pdf_bg = ''; $td_class = ''; if ($date && $date < $jour_debut_annee_scolaire) { $pdf_bg = !$_SESSION['USER_DALTONISME'] || $couleur == 'non' ? 'prev_year' : ''; $td_class = !$_SESSION['USER_DALTONISME'] ? ' class="prev_year"' : ''; } elseif ($date && $date < $date_mysql_debut) { $pdf_bg = !$_SESSION['USER_DALTONISME'] || $couleur == 'non' ? 'prev_date' : ''; $td_class = !$_SESSION['USER_DALTONISME'] ? ' class="prev_date"' : ''; } $releve_HTML_individuel .= '<td' . $td_class . '>' . Html::note_image($note, $date, $info, FALSE) . '</td>'; $releve_PDF->afficher_note_lomer($note, 1, floor(($i + 1) / $colspan_nb), $pdf_bg); } else { $releve_HTML_individuel .= '<td> </td>'; $releve_PDF->Cell($cases_largeur, $releve_PDF->cases_hauteur, '', 1, floor(($i + 1) / $colspan_nb), 'C', TRUE, ''); } } // Case bilan if ($colonne_bilan == 'oui') { $releve_HTML_individuel .= Html::td_score($score, 'score'); $releve_PDF->afficher_score_bilan($score, 1); } } $releve_HTML_individuel .= '</tr>' . NL; } } }