//find a copy of this license in the file LICENSE. // //========================================================================== session_start(); require_once 'php2pdf/phpToPDF.php'; include_once 'fonctions.php'; $dsondage = get_sondage_from_id($_POST['numsondage']); $lieureunion = stripcslashes($_POST["lieureunion"]); $datereunion = explode("@", $_POST["meilleursujet"]); //creation du fichier PDF $PDF = new phpToPDF(); $PDF->AddPage(); $PDF->SetFont('Arial', '', 11); //affichage de la date de convocation $PDF->Text(140, 30, "Le " . date("d/m/Y")); $PDF->Image("./" . LOGOLETTRE . "", 20, 20, 65, 40); $PDF->SetFont('Arial', 'U', 11); $PDF->Text(40, 120, "Objet : "); $PDF->SetFont('Arial', '', 11); $PDF->Text(55, 120, _(' Convocation')); $PDF->Text(55, 140, _('Hello,')); $PDF->Text(40, 150, _("You're invited at the meeting") . ' "' . utf8_decode($dsondage->titre) . '".'); $PDF->SetFont('Arial', 'B', 11); $PDF->Text(40, 170, _('Informations about the meeting')); $PDF->SetFont('Arial', '', 11); $PDF->Text(60, 180, _('Date') . ' : ' . date("d/m/Y", "{$datereunion['0']}") . ' ' . _('at') . ' ' . $datereunion[1]); $PDF->Text(60, 185, _('Place') . ' : ' . utf8_decode($lieureunion)); $PDF->Text(55, 220, _('Cordially,')); $PDF->Text(140, 240, utf8_decode($dsondage->nom_admin)); $PDF->SetFont('Arial', 'B', 8); // TODO: translate
$monday_date = $_GET['monday_date']; $data = $_SESSION['data']; $data_pdf = $_SESSION['data_pdf']; $data2 = $_SESSION['data2']; $tab = $_SESSION['tab']; if ($nb_display == 5) { $orientation = 'P'; } elseif ($nb_display == 7) { $orientation = 'L'; } else { $orientation = 'L'; } include "../../phpToPDF/phpToPDF.php"; $PDF = new phpToPDF(); $PDF->AddPage($orientation); $PDF->Image("../images/logo_stluc.jpg", 10, 10, 65, 28); $PDF->SetFont('Arial', 'B', 10); $text_a = "Date : " . date("d-m-Y") . "\n"; if ($orientation == 'P') { $PDF->setXY(160, 10); } elseif ($orientation == 'L') { $PDF->setXY(260, 10); } else { $PDF->setXY(260, 10); } $PDF->MultiCell(50, 5, $text_a, 0, 1, 'C'); //Sélection de la police $PDF->SetFont('Arial', 'B', 18); if ($orientation == 'P') { $PDF->setXY(10, 40); $PDF->Cell(50);
$time_unit = mysql_result($Resultat, $Compteur, "time_unit"); $nb_display = mysql_result($Resultat, $Compteur, "nb_display"); $sqldata = mysql_result($Resultat, $Compteur, "data"); $data = unserialize($sqldata); $sqldata2 = mysql_result($Resultat, $Compteur, "data2"); $data2 = unserialize($sqldata2); $nb_item = count($data); $nb_sub_tab = count($data2); } include "../../phpToPDF/phpToPDF.php"; $orientation = 'L'; $PDF = new phpToPDF(); $PDF->AddPage($orientation); //Generation du tableau for ($m_init = 0; $m_init <= 3; $m_init++) { $PDF->Image("../images/logo_stluc.jpg", 10, 10, 38, 15); $PDF->SetFont('Arial', 'B', 10); $text_a = "Date : " . date("d-m-Y") . "\n"; $PDF->setXY(260, 8); $PDF->MultiCell(50, 5, $text_a, 0, 1, 'C'); //Sélection de la police $PDF->SetFont('Arial', 'B', 18); $PDF->setXY(15, 15); $PDF->Cell(55); //Texte centré dans une cellule 20*10 mm encadrée et retour à la ligne $PDF->Cell(150, 10, utf8_decode($calend . ": " . $item_name), 1, 1, 'C'); $PDF->SetFont('Arial', 'B', 10); $newY = 29; $newX = 10; $PDF->setXY($newX, $newY); include 'calend_year_overview_pdf_tab.php';