Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 881 Rev 996
Line 62... Line 62...
62
			$id = sprintf('%09s', $id) ;
62
			$id = sprintf('%09s', $id) ;
63
            $id = wordwrap($id, 3 , '_', true) ;
63
            $id = wordwrap($id, 3 , '_', true) ;
Line 64... Line 64...
64
 
64
 
Line 65... Line 65...
65
            $id_fichier = $id.".jpg" ;
65
            $id_fichier = $id.".jpg" ;
Line 66... Line 66...
66
 
66
 
67
            $niveauDossier = split("_", $id) ;
67
            $niveauDossier = explode("_", $id) ;
Line 68... Line 68...
68
 
68
 
Line 82... Line 82...
82
			$xml .= '		dc:creator="'.$picture['ce_utilisateur'].'"'."\n";
82
			$xml .= '		dc:creator="'.$picture['ce_utilisateur'].'"'."\n";
83
			$xml .= '		dc:publisher="CEL"'."\n";
83
			$xml .= '		dc:publisher="CEL"'."\n";
84
			$xml .= '		dcterms:spatial="'.utf8_decode($picture['zone_geo'])." (".$picture['ce_zone_geo'].")".'"'."\n";
84
			$xml .= '		dcterms:spatial="'.utf8_decode($picture['zone_geo'])." (".$picture['ce_zone_geo'].")".'"'."\n";
Line 85... Line 85...
85
			
85
			
86
	        if ($picture['date_observation'] != '0000-00-00 00:00:00') {
86
	        if ($picture['date_observation'] != '0000-00-00 00:00:00') {
87
				list($year,$month,$day) = split ('-',$picture['date_observation']);
87
				list($year,$month,$day) = explode('-',$picture['date_observation']);
88
	            list($day) = split (' ',$day);
88
	            list($day) = explode(' ',$day);
89
				$created = $day.'/'.$month.'/'.$year;
89
				$created = $day.'/'.$month.'/'.$year;
90
				$xml .= '		dcterms:created="'.$created.'"'."\n";
90
				$xml .= '		dcterms:created="'.$created.'"'."\n";
91
			}
91
			}
92
			$xml .= '		dcterms:licence="CC BY-SA"/>'."\n";
92
			$xml .= '		dcterms:licence="CC BY-SA"/>'."\n";