87 lines
2.8 KiB
PHP
87 lines
2.8 KiB
PHP
|
<?php
|
|||
|
//==========================================================================
|
|||
|
//
|
|||
|
//Universit<69> de Strasbourg - Direction Informatique
|
|||
|
//Auteur : Guilhem BORGHESI
|
|||
|
//Cr<43>ation : F<>vrier 2008
|
|||
|
//
|
|||
|
//borghesi@unistra.fr
|
|||
|
//
|
|||
|
//Ce logiciel est r<>gi par la licence CeCILL-B soumise au droit fran<61>ais et
|
|||
|
//respectant les principes de diffusion des logiciels libres. Vous pouvez
|
|||
|
//utiliser, modifier et/ou redistribuer ce programme sous les conditions
|
|||
|
//de la licence CeCILL-B telle que diffus<75>e par le CEA, le CNRS et l'INRIA
|
|||
|
//sur le site "http://www.cecill.info".
|
|||
|
//
|
|||
|
//Le fait que vous puissiez acc<63>der <20> cet en-t<>te signifie que vous avez
|
|||
|
//pris connaissance de la licence CeCILL-B, et que vous en avez accept<70> les
|
|||
|
//termes. Vous pouvez trouver une copie de la licence dans le fichier LICENCE.
|
|||
|
//
|
|||
|
//==========================================================================
|
|||
|
//
|
|||
|
//Universit<69> de Strasbourg - Direction Informatique
|
|||
|
//Author : Guilhem BORGHESI
|
|||
|
//Creation : Feb 2008
|
|||
|
//
|
|||
|
//borghesi@unistra.fr
|
|||
|
//
|
|||
|
//This software is governed by the CeCILL-B license under French law and
|
|||
|
//abiding by the rules of distribution of free software. You can use,
|
|||
|
//modify and/ or redistribute the software under the terms of the CeCILL-B
|
|||
|
//license as circulated by CEA, CNRS and INRIA at the following URL
|
|||
|
//"http://www.cecill.info".
|
|||
|
//
|
|||
|
//The fact that you are presently reading this means that you have had
|
|||
|
//knowledge of the CeCILL-B license and that you accept its terms. You can
|
|||
|
//find a copy of this license in the file LICENSE.
|
|||
|
//
|
|||
|
//==========================================================================
|
|||
|
|
|||
|
session_start();
|
|||
|
|
|||
|
require_once('fpdf/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
|
|||
|
$PDF->Text(35,275,"Cette lettre de convocation a <20>t<EFBFBD> g<>n<EFBFBD>r<EFBFBD>e automatiquement par ".NOMAPPLICATION." sur ".get_server_name());
|
|||
|
|
|||
|
//Sortie
|
|||
|
$PDF->Output();
|
|||
|
|
|||
|
?>
|