Lesnina inženiring - Finance in kontroling
");
$num_of_elements = count($xml->setup);
for($i = 0; $i < $num_of_elements; $i++){
echo("" . $xml->setup[$i]->title . "
");
echo($xml->setup[$i]->text);
echo("
");
}
}
break;
case '/vodstvo':
if (file_exists('xml/management.xml')) {
$xml = simplexml_load_file('xml/management.xml');
echo("VODSTVO
");
$num_of_elements = count($xml->region);
for($i = 0; $i < $num_of_elements; $i++){
//echo "" . "\r\n";
echo("" . $xml->region[$i]->setup->default_contact . "
");
/* echo($xml->content->firm[$i]->main->description);
echo("
");
echo($xml->content->firm[$i]->main->web); */
echo("
");
$num_of_sub_elements = count($xml->region[$i]->content);
for($j = 0; $j < $num_of_sub_elements; $j++){
echo($xml->region[$i]->content[$j]->text);
echo("
");
}
}
}
break;
case '/vizitka':
if (file_exists('xml/business_card.xml')) {
$xml = simplexml_load_file('xml/business_card.xml');
echo("VIZITKA
");
$num_of_elements = count($xml->setup);
for($i = 0; $i < $num_of_elements; $i++){
echo("" . $xml->setup[$i]->title . "
");
echo($xml->setup[$i]->text);
echo("
");
}
}
break;
case '/letno-porocilo':
if (file_exists('xml/annual_report.xml')) {
$xml = simplexml_load_file('xml/annual_report.xml');
echo("LETNO POROČILO
");
$num_of_elements = count($xml->content);
for($i = 0; $i < $num_of_elements; $i++){
echo("" . $xml->content[$i]->title . "
");
}
}
break;
}
?>