1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
   | function Header()
	{
		global $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu;
 
		$this->SetFont('times','B',11);
		$this->SetY(10);
		$this->MultiCell(0, 4, $stat_titre, 0, 'C', 0);
		$this->Ln(10);
		$this->SetFont('times','',8);
// Définition des propriétés du tableau.
	$proprietesTableau = array(
		'TB_ALIGN' => 'L',
		'L_MARGIN' => 0,
		'BRD_COLOR' => array(0,92,177),
		'BRD_SIZE' => '0.3',
		);
 
	// Définition des propriétés du header du tableau.
	$proprieteHeader = array(
		'T_COLOR' => array(150,10,8),
		'T_SIZE' => 5,
		'T_FONT' => 'times',
		'T_ALIGN' => 'C',
		'V_ALIGN' => 'M',
		'T_TYPE' => 'B',
		'LN_SIZE' => 4,
		'BG_COLOR_COL0' => array(170, 240, 230),
		'BG_COLOR' => array(170, 240, 230),
		'BRD_COLOR' => array(0,92,177),
		'BRD_SIZE' => 0.2,
		'BRD_TYPE' => '1',
		'BRD_TYPE_NEW_PAGE' => '',
		);
 
	// Définition des propriétés du reste du contenu du tableau.
	// La valeur de 'IMAGE' donne le n° de la colonne devant recevoir cette image
	$proprieteContenu = array(
			'IMAGE' => '1',
			'T_COLOR' => array(100,10,8),
			'T_SIZE' => 5,
			'T_FONT' => 'Arial',
			'T_ALIGN_COL0' => 'L',
			'T_ALIGN' => 'L',
			'V_ALIGN' => 'T',
			'T_TYPE' => '',
			'LN_SIZE' => 4,
			'BG_COLOR_COL0' => array(170, 240, 230),
			'BG_COLOR' => array(170, 240, 230),
			'BRD_COLOR' => array(0,92,177),
			'BRD_SIZE' => 0.2,
			'BRD_TYPE' => '1',
			'BRD_TYPE_NEW_PAGE' => '',
			);
	// Contenu du header du tableau.
	$contenuHeader = array(
			50, 20, 20, 20, 20, 20, 20, 20, 20,
			"",
			"",
			"",
			"",
			"",
			"",
			"",
			"",
			"",
			);
	$contenuTableau = array();
	$contenuTableau = array_merge($contenuTableau, array("[RB]FAMILLE",
													 "[CB]ROUGE",
													 "COLSPAN2",
													 "[CB]GRIS",
													 "COLSPAN2",
													 "[CB]BLANC",
													 "COLSPAN2",
													 "[CB]T O T A L",
													 "COLSPAN2",
													 ));
 
	$pdf->drawTableau($pdf, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau);
	$contenuTableau = array();
	// Contenu du header du tableau.
	$contenuHeader = array(
		50, 20, 20, 20, 20, 20, 20, 20, 20,
		"[B]".$stat_titre_colonne,
		"[CB]NOMBRE",
		"[CB]%",
		"[CB]NOMBRE",
		"[CB]%",
		"[CB]NOMBRE",
		"[CB]%",
		"[CB]NOMBRE",
		"[CB]%",
		);
	$proprieteContenu = array(
		'IMAGE' => '1',
		'T_COLOR' => array(0,0,0),
		'T_SIZE' => 5,
		'T_FONT' => 'Arial',
		'T_ALIGN_COL0' => 'L',
		'T_ALIGN' => 'L',
		'V_ALIGN' => 'T',
		'T_TYPE' => '',
		'LN_SIZE' => 5,
		'BG_COLOR_COL0' => array(255,255,255),
		'BG_COLOR' => array(255,255,255),
		'BRD_COLOR' => array(0,92,177),
		'BRD_SIZE' => 0.1,
		'BRD_TYPE' => '1',
		'BRD_TYPE_NEW_PAGE' => '',
		);
 
	$pdf->drawTableau($pdf, $proprietesTableau, $proprieteHeader, $contenuHeader, $proprieteContenu, $contenuTableau);		
 
	} | 
Partager