/**
 * Code inclus commun aux pages
 * [./releves_bilans__releve_items_matiere.ajax.php]
 * [./releves_bilans__releve_items_multimatiere.ajax.php]
 * [./releves_bilans__releve_items_selection.ajax.php]
 * 
 */

/*
$type_individuel   $type_synthese   $type_bulletin
$format				matiere	selection	multimatiere
*/

$dossier     = './__tmp/export/';
$fichier_nom = 'releve_item_'.$format.'_'.clean_fichier($groupe_nom).'_<REPLACE>_'.fabriquer_fin_nom_fichier();

if(!$aff_coef)  { $texte_coef       = ''; }
if(!$aff_socle) { $texte_socle      = ''; }
if(!$aff_lien)  { $texte_lien_avant = ''; }
if(!$aff_lien)  { $texte_lien_apres = ''; }

$date_complement = ($retroactif=='oui') ? ' (notes antérieures comptées).' : '.';
$texte_periode   = 'Du '.$date_debut.' au '.$date_fin.$date_complement;
$tab_titre       = array('matiere'=>'d\'items - '.$matiere_nom , 'multimatiere'=>'d\'items pluridisciplinaire' , 'selection'=>'d\'items sélectionnés');

$info_ponderation_complete = ($with_coef) ? '(pondérée)' : '(non pondérée)' ;
$info_ponderation_courte   = ($with_coef) ? 'pondérée' : 'simple' ;

//	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
/* 
 * sans même la garantie implicite de COMMERCIALISABILITÉ ni d’ADÉQUATION À UN OBJECTIF PARTICULIER.
 * Consultez la Licence Générale Publique GNU pour plus de détails.
 * 
 * Vous devriez avoir reçu une copie de la Licence Générale Publique GNU avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */

/**
 * Code inclus commun aux pages
 * [./releves_bilans__releve_synthese_matiere.ajax.php]
 * [./releves_bilans__releve_synthese_multimatiere.ajax.php]
 */

$dossier     = './__tmp/export/';
$fichier_nom = 'releve_synthese_'.$format.'_'.clean_fichier($groupe_nom).'_'.fabriquer_fin_nom_fichier();

if(!$aff_coef)  { $texte_coef       = ''; }
if(!$aff_socle) { $texte_socle      = ''; }
if(!$aff_lien)  { $texte_lien_avant = ''; }
if(!$aff_lien)  { $texte_lien_apres = ''; }

$date_complement = ($retroactif=='oui') ? ' (évaluations antérieures comptabilisées).' : '.';
$texte_periode   = 'Du '.$date_debut.' au '.$date_fin.$date_complement ;
$tab_titre       = array('matiere'=>'d\'une matière' , 'multimatiere'=>'multidisciplinaire');

//	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
/* 
 * Libérer de la place mémoire car les scripts de bilans sont assez gourmands.
 * Supprimer $DB_TAB ne fonctionne pas si on ne force pas auparavant la fermeture de la connexion.
 * SebR devrait peut-être envisager d'ajouter une méthode qui libère cette mémoire, si c'est possible...