Subversion Repositories eFlore/Applications.cel

Rev

Rev 1683 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1683 Rev 1684
Line 325... Line 325...
325
		$this->pdf->writeHTMLCell($w = $width, $lh * 4.5, '', '',
325
		$this->pdf->writeHTMLCell($w = $width, $lh * 4.5, '', '',
326
								  //$html = '<strong>Observation</strong> : ' . self::elude('Observation : ', $obs['commentaire']),
326
								  //$html = '<strong>Observation</strong> : ' . self::elude('Observation : ', $obs['commentaire']),
327
								  $html = self::elude('<strong>Observations</strong> : ' . $obs['commentaire'], 4),
327
								  $html = self::elude('<strong>Observations</strong> : ' . $obs['commentaire'], 4),
328
								  $border = 'LR', $ln = 1, $fill = false, $reset = true, $align = 'L', $autopadding = true);
328
								  $border = 'LR', $ln = 1, $fill = false, $reset = true, $align = 'L', $autopadding = true);
Line -... Line 329...
-
 
329
 
329
 
330
		// date, note: en 64 bits, strtotime() renvoi un entier négatif (!= FALSE) pour l'an 0
330
		// date
331
		if(strncmp("0000", $obs['date_observation'], 4) == 0) $temps = false;
331
		$temps = strtotime($obs['date_observation']);
332
		else $temps = strtotime($obs['date_observation']);
332
		$this->pdf->writeHTMLCell($w = $width, '', '', '',
333
		$this->pdf->writeHTMLCell($w = $width, '', '', '',
333
								  $html = '<strong>Date de récolte</strong> : ' . ($temps ? strftime("%d/%m/%Y", $temps) : '               '),
334
								  $html = '<strong>Date de récolte</strong> : ' . ($temps ? strftime("%d/%m/%Y", $temps) : '               '),
Line 334... Line 335...
334
								  $border = 'LBR', $ln = 1, $fill = false, $reset = true, $align = 'R', $autopadding = true);
335
								  $border = 'LBR', $ln = 1, $fill = false, $reset = true, $align = 'R', $autopadding = true);