Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?
2
	include("/web/apache/mediaran.de/connect.php");
3
	include("/web/apache/mediaran.de/preisagent/transfer/1und1/core_data.php");
4
 
5
	function get_clear_path($heritage)
6
	{
7
		array_shift($heritage);
8
		return $heritage;
9
	}
10
 
11
	function ausgabe($subdir,$heritage)
12
	{
13
		global $output;
14
 
15
		$artikel=array_pop($subdir);
16
		$subdirs=array_pop($subdir);
17
 
18
		$heritage[]=$subdir[Name];
19
 
20
		foreach($artikel as $current_row)
21
		{
22
			$dropFelder=array
23
			(
24
				"bild",
25
				"beschreibung",
26
				"detailbeschreibung",
27
				"detailbild",
28
				"templatefile_smalllist",
29
				"templatefile_detail",
30
				"is_invisible",
31
				"mwst",
32
				"artikelnr"
33
			);
34
 
35
			foreach($dropFelder as $dropping)
36
			{
37
				unset($current_row[$dropping]);
38
			}
39
 
40
			$current_row[preis]=number_format($current_row[preis],2,',','.');
41
 
42
			$current_row[category]=$heritage[1];
43
			$output[]=$current_row;
44
		}
45
 
46
		foreach($subdirs as $current_subdir)
47
		{
48
			ausgabe($current_subdir,$heritage);
49
		}
50
	}
51
 
52
	$output=array();
53
	ausgabe(core_data(),array());
54
	// $output ist jetzt gefüllt
55
 
56
	echo "Angebotsnummer;Kategorie;Produktname;Preis\n";
57
	foreach($output as $elem)
58
	{
59
		echo implode(";",$elem)."\n";
60
	}
61
?>