Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 1980 Rev 2012
Line 80... Line 80...
80
			$xml .= '		dc:creator="'.$picture['courriel_utilisateur'].'"'."\n";
80
			$xml .= '		dc:creator="'.$picture['courriel_utilisateur'].'"'."\n";
81
			$xml .= '		dc:publisher="CEL"'."\n";
81
			$xml .= '		dc:publisher="CEL"'."\n";
82
			$xml .= '		dcterms:spatial="'.utf8_decode($picture['zone_geo'])." (".$picture['ce_zone_geo'].")".'"'."\n";
82
			$xml .= '		dcterms:spatial="'.utf8_decode($picture['zone_geo'])." (".$picture['ce_zone_geo'].")".'"'."\n";
Line 83... Line 83...
83
			
83
			
84
	        if ($picture['date_observation'] != '0000-00-00 00:00:00') {
84
	        if ($picture['date_observation'] != '0000-00-00 00:00:00') {
-
 
85
				$yearMonthDay = explode('-',$picture['date_observation']);
-
 
86
				$year = $yearMonthDay[0];
-
 
87
				if (count($yearMonthDay) > 1) {
-
 
88
					$month = $yearMonthDay[1];
-
 
89
				}
-
 
90
				if (count($yearMonthDay) > 2) {
-
 
91
					$day = $yearMonthDay[2];
85
				list($year,$month,$day) = explode('-',$picture['date_observation']);
92
				}
86
	            list($day) = explode(' ',$day);
93
	            list($day) = explode(' ',$day);
87
				$created = $day.'/'.$month.'/'.$year;
94
				$created = $day.'/'.$month.'/'.$year;
88
				$xml .= '		dcterms:created="'.$created.'"'."\n";
95
				$xml .= '		dcterms:created="'.$created.'"'."\n";
89
			}
96
			}