| 3 |
lars |
1 |
Artikelnummer;Hersteller;Produktname;Produktbeschreibung;Preis(EUR);Link;Bildlink;EAN;Kategorie;Versand(EUR);Lieferzeit
|
|
|
2 |
<?
|
|
|
3 |
include("/web/apache/mediaran.de/preisagent/transfer/connect.php");
|
|
|
4 |
include("/web/apache/mediaran.de/preisagent/transfer/avt-24/core_data.php");
|
|
|
5 |
|
|
|
6 |
function get_clear_path($heritage)
|
|
|
7 |
{
|
|
|
8 |
array_shift($heritage);
|
|
|
9 |
return $heritage;
|
|
|
10 |
}
|
|
|
11 |
|
|
|
12 |
function ausgabe($subdir,$heritage)
|
|
|
13 |
{
|
|
|
14 |
global $output;
|
|
|
15 |
|
|
|
16 |
$artikel=array_pop($subdir);
|
|
|
17 |
$subdirs=array_pop($subdir);
|
|
|
18 |
|
|
|
19 |
$heritage[]=$subdir[Name];
|
|
|
20 |
|
|
|
21 |
foreach($artikel as $current_row)
|
|
|
22 |
{
|
|
|
23 |
$buffer=get_clear_path($heritage);
|
|
|
24 |
$current_row[category]=$buffer[0];
|
|
|
25 |
|
|
|
26 |
$buffer=array();
|
|
|
27 |
|
|
|
28 |
$buffer["category"] = $current_row[category];
|
|
|
29 |
$buffer["Produktname"] = $current_row[bezeichnung];
|
|
|
30 |
$buffer["Link"] = "http://www.avt-24.de/preistrend.htm?file=item.php&id=".$current_row[ID];
|
|
|
31 |
$buffer["Preis(EUR)"] = $current_row[preis];
|
|
|
32 |
|
|
|
33 |
$output[]=$buffer;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
foreach($subdirs as $current_subdir)
|
|
|
37 |
{
|
|
|
38 |
ausgabe($current_subdir,$heritage);
|
|
|
39 |
}
|
|
|
40 |
}
|
|
|
41 |
|
|
|
42 |
$output=array();
|
|
|
43 |
ausgabe(core_data(419),array());
|
|
|
44 |
// $output ist jetzt gefüllt
|
|
|
45 |
|
|
|
46 |
foreach($output as $elem)
|
|
|
47 |
{
|
|
|
48 |
echo implode(";",$elem)."\n";
|
|
|
49 |
}
|
|
|
50 |
?>
|