Ejemplo n.º 1
0
    $content .= "      </a>\n";
    /*modif pour implementer l'impression pdf*/
    $content .= "      <br><a href=\"calendrier-pdf.php?session={$session}&printable=1&year={$year}&mois={$mois}&first_jour={$first_jour}&select_groupe={$select_groupe}\" target=\"_blank\" method=\"post\">\n";
    $content .= "\t\t<img src=\"" . TEMPLATE_PATH . "img/pdf_22x22_2.png\" width=\"22\" height=\"22\" border=\"0\" title=\"Version PDF\">\n";
    $content .= "      Version PDF\n";
    $content .= "      </a>\n";
} else {
    // si version imprimable
    $content .= "      <img src=\"" . TEMPLATE_PATH . "img/shim.gif\" width=\"25\" height=\"25\" border=\"0\" vspace=\"0\" hspace=\"0\">\n";
}
$content .= "   </td>\n";
$content .= "   <td valign=\"top\" align=\"right\">\n";
$content .= "      <h4>légende :</h4>\n";
$content .= "   </td>\n";
$content .= "   <td width=\"150\" valign=\"top\" align=\"left\">\n";
affiche_legende_type_absence($tab_type_absence, $DEBUG);
$content .= "   </td>\n";
$content .= "   <td width=\"30%\" valign=\"top\" align=\"left\">\n";
affiche_legende();
$content .= "   </td>\n";
$content .= "</tr>\n";
$content .= "</table>\n";
$content .= "   </td>\n";
$content .= "</tr>\n";
$content .= "</table>\n";
if ($printable != 1) {
    $content .= "<center><hr align=\"center\" size=\"2\" width=\"90%\"></center> \n";
}
/********************/
/* bouton retour */
/********************/
Ejemplo n.º 2
0
    $content .= "<h2>" . _('divers_groupe') . " : <strong>" . $group_names[$select_groupe] . "</strong></h2>\n";
}
$content .= "<h3 class=\"current-month\">{$nom_mois} {$year}</h3>\n";
/***********************************/
/* AFFICHAGE  TABLEAU (CALENDRIER) */
affichage_calendrier($year, $mois, $first_jour, $timestamp_today, $printable, $selected, $tab_type_absence, $select_groupe);
/**********************/
/* SOUS LE CALENDRIER */
/**********************/
$content .= "<table cellpadding=\"0\" cellspacing=\"5\" border=\"0\" width=\"90%\">\n";
$content .= "<tr>";
$content .= "   <td valign=\"top\" align=\"right\">\n";
$content .= "      <h4>légende :</h4>\n";
$content .= "   </td>\n";
$content .= "   <td width=\"150\" valign=\"top\" align=\"left\">\n";
affiche_legende_type_absence($tab_type_absence);
$content .= "   </td>\n";
$content .= "   <td width=\"30%\" valign=\"top\" align=\"left\">\n";
affiche_legende();
$content .= "   </td>\n";
$content .= "</tr>";
$content .= "</table>\n";
$content .= "</div>\n";
$content .= "</div>\n";
$content .= "</body>\n";
$content .= '   </page> ';
$content = htmlspecialchars_decode(htmlentities($content, ENT_NOQUOTES, "UTF-8"));
require_once LIBRARY_PATH . '/html2pdf/html2pdf.class.php';
$html2pdf = new HTML2PDF('L', 'A4', 'fr', false, 'ISO-8859-15');
$html2pdf->WriteHTML($content);
ob_clean();