Subversion Repositories eFlore/Applications.coel

Rev

Rev 1744 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1744 Rev 1750
Line 674... Line 674...
674
	private function getDiffInfos($info) {
674
	private function getDiffInfos($info) {
675
		$diff = null;
675
		$diff = null;
676
		$format = '%d/%m/%Y à %H:%M:%S';
676
		$format = '%d/%m/%Y à %H:%M:%S';
677
		if ($info['cmhl_ce_etat'] == '1') {
677
		if ($info['cmhl_ce_etat'] == '1') {
678
			$diff['date_nouvelle'] = strftime($format, strtotime($info['cmhl_date_modification']));
678
			$diff['date_nouvelle'] = strftime($format, strtotime($info['cmhl_date_modification']));
-
 
679
			$diff['date_ancienne'] = '';
679
			$diff['etat'] = 'A';
680
			$diff['etat'] = 'A';
680
		} else if ($info['cmhl_ce_etat'] == '2') {
681
		} else if ($info['cmhl_ce_etat'] == '2') {
681
			$diff['date_nouvelle'] = strftime($format, strtotime($info['cmhl_date_modification']));
682
			$diff['date_nouvelle'] = strftime($format, strtotime($info['cmhl_date_modification']));
682
			$diff['date_ancienne'] = strftime($format, strtotime($info['date_prec']));
683
			$diff['date_ancienne'] = strftime($format, strtotime($info['date_prec']));
683
			$diff['etat'] = 'M';
684
			$diff['etat'] = 'M';